tegra: Enable LCD on Medcom-Wide
The Medcom-Wide has a 15" LCD panel with a resolution of 1366x768 pixels. Add a corresponding panel description to the device tree and enable LCD support in the configuration. Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de> Signed-off-by: Tom Warren <twarren@nvidia.com>
This commit is contained in:
parent
0c5587549b
commit
7c3f386d0c
|
@ -24,6 +24,19 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
host1x {
|
||||||
|
status = "okay";
|
||||||
|
|
||||||
|
dc@54200000 {
|
||||||
|
status = "okay";
|
||||||
|
|
||||||
|
rgb {
|
||||||
|
nvidia,panel = <&lcd_panel>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
clock@60006000 {
|
clock@60006000 {
|
||||||
clocks = <&clk_32k &osc>;
|
clocks = <&clk_32k &osc>;
|
||||||
};
|
};
|
||||||
|
@ -55,4 +68,23 @@
|
||||||
usb@c5004000 {
|
usb@c5004000 {
|
||||||
status = "disabled";
|
status = "disabled";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
lcd_panel: panel {
|
||||||
|
clock = <61715000>;
|
||||||
|
xres = <1366>;
|
||||||
|
yres = <768>;
|
||||||
|
left-margin = <2>;
|
||||||
|
right-margin = <47>;
|
||||||
|
hsync-len = <136>;
|
||||||
|
lower-margin = <21>;
|
||||||
|
upper-margin = <11>;
|
||||||
|
vsync-len = <4>;
|
||||||
|
|
||||||
|
nvidia,bits-per-pixel = <16>;
|
||||||
|
nvidia,pwm = <&pwm 0 500000>;
|
||||||
|
nvidia,backlight-enable-gpios = <&gpio 13 0>; /* PB5 */
|
||||||
|
nvidia,backlight-vdd-gpios = <&gpio 176 0>; /* PW0 */
|
||||||
|
nvidia,lvds-shutdown-gpios = <&gpio 10 0>; /* PB2 */
|
||||||
|
nvidia,panel-timings = <0 0 0 0>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -42,6 +42,7 @@
|
||||||
#define CONFIG_SYS_NS16550_COM1 NV_PA_APB_UARTD_BASE
|
#define CONFIG_SYS_NS16550_COM1 NV_PA_APB_UARTD_BASE
|
||||||
|
|
||||||
#define CONFIG_BOARD_EARLY_INIT_F
|
#define CONFIG_BOARD_EARLY_INIT_F
|
||||||
|
#define CONFIG_BOARD_LATE_INIT
|
||||||
|
|
||||||
#define CONFIG_ENV_IS_NOWHERE
|
#define CONFIG_ENV_IS_NOWHERE
|
||||||
|
|
||||||
|
@ -77,6 +78,19 @@
|
||||||
"ext2load mmc 0 0x17000000 /boot/uImage;" \
|
"ext2load mmc 0 0x17000000 /boot/uImage;" \
|
||||||
"bootm"
|
"bootm"
|
||||||
|
|
||||||
|
#undef TEGRA_DEVICE_SETTINGS
|
||||||
|
#define TEGRA_DEVICE_SETTINGS \
|
||||||
|
"stdin=serial\0" \
|
||||||
|
"stdout=serial,lcd\0" \
|
||||||
|
"stderr=serial,lcd\0"
|
||||||
|
|
||||||
|
/* LCD support */
|
||||||
|
#define CONFIG_LCD
|
||||||
|
#define CONFIG_PWM_TEGRA
|
||||||
|
#define CONFIG_VIDEO_TEGRA
|
||||||
|
#define LCD_BPP LCD_COLOR16
|
||||||
|
#define CONFIG_SYS_WHITE_ON_BLACK
|
||||||
|
|
||||||
#include "tegra-common-post.h"
|
#include "tegra-common-post.h"
|
||||||
|
|
||||||
#endif /* __CONFIG_H */
|
#endif /* __CONFIG_H */
|
||||||
|
|
Loading…
Reference in New Issue