Commit 25dccd6fdd30656e70619ca70b947c9f67466667

Authored by Marc Dietrich
Committed by Tom Warren
1 parent 716d943983

tegra: enable LCD on PAZ00

This adds LCD panel descriptions to the device tree of PAZ00 and
enables LCD support in the configuration.

Signed-off-by: Marc Dietrich <marvin24@gmx.de>
Signed-off-by: Tom Warren <twarren@nvidia.com>

Showing 3 changed files with 58 additions and 0 deletions Side-by-side Diff

board/compal/dts/tegra20-paz00.dts
... ... @@ -54,5 +54,37 @@
54 54 usb@c5004000 {
55 55 status = "disabled";
56 56 };
  57 +
  58 + host1x {
  59 + status = "okay";
  60 + dc@54200000 {
  61 + status = "okay";
  62 + rgb {
  63 + status = "okay";
  64 + nvidia,panel = <&lcd_panel>;
  65 + };
  66 + };
  67 + };
  68 +
  69 + lcd_panel: panel {
  70 + /* PAZ00 has 1024x600 */
  71 + clock = <54030000>;
  72 + xres = <1024>;
  73 + yres = <600>;
  74 + right-margin = <160>;
  75 + left-margin = <24>;
  76 + hsync-len = <136>;
  77 + upper-margin = <3>;
  78 + lower-margin = <61>;
  79 + vsync-len = <6>;
  80 + hsync-active-high;
  81 + nvidia,bits-per-pixel = <16>;
  82 + nvidia,pwm = <&pwm 0 0>;
  83 + nvidia,backlight-enable-gpios = <&gpio 164 0>; /* PU4 */
  84 + nvidia,lvds-shutdown-gpios = <&gpio 102 0>; /* PM6 */
  85 + nvidia,backlight-vdd-gpios = <&gpio 176 0>; /* PW0 */
  86 + nvidia,panel-vdd-gpios = <&gpio 4 0>; /* PA4 */
  87 + nvidia,panel-timings = <400 4 203 17 15>;
  88 + };
57 89 };
board/compal/paz00/paz00.c
... ... @@ -71,4 +71,15 @@
71 71 return 0;
72 72 }
73 73 #endif
  74 +
  75 +#ifdef CONFIG_LCD
  76 +/* this is a weak define that we are overriding */
  77 +void pin_mux_display(void)
  78 +{
  79 + debug("init display pinmux\n");
  80 +
  81 + /* EN_VDD_PANEL GPIO A4 */
  82 + pinmux_tristate_disable(PINGRP_DAP2);
  83 +}
  84 +#endif
include/configs/paz00.h
... ... @@ -36,6 +36,7 @@
36 36 #define CONFIG_MACH_TYPE MACH_TYPE_PAZ00
37 37  
38 38 #define CONFIG_BOARD_EARLY_INIT_F
  39 +#define CONFIG_BOARD_LATE_INIT
39 40  
40 41 /* SD/MMC */
41 42 #define CONFIG_MMC
... ... @@ -70,6 +71,20 @@
70 71 /* General networking support */
71 72 #define CONFIG_CMD_NET
72 73 #define CONFIG_CMD_DHCP
  74 +
  75 +#undef TEGRA_DEVICE_SETTINGS
  76 +#define TEGRA_DEVICE_SETTINGS \
  77 + "stdin=serial\0" \
  78 + "stdout=serial,lcd\0" \
  79 + "stderr=serial,lcd\0"
  80 +
  81 +/* LCD support */
  82 +#define CONFIG_LCD
  83 +#define CONFIG_PWM_TEGRA
  84 +#define CONFIG_VIDEO_TEGRA
  85 +#define LCD_BPP LCD_COLOR16
  86 +#define CONFIG_SYS_WHITE_ON_BLACK
  87 +#define CONFIG_CONSOLE_SCROLL_LINES 10
73 88  
74 89 #include "tegra-common-post.h"
75 90