Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: am57xx: sbc-am57x: add LCD support

Startek-kd050c 800x480 LCD panel timings are described in
compulab-sb-som.dtsi.

Add appropriate DT endpoints to connect DPI output and LCD.

Signed-off-by: Dmitry Lifshitz <lifshitz@compulab.co.il>
Acked-by: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Tony Lindgren <tony@atomide.com>

authored by

Dmitry Lifshitz and committed by
Tony Lindgren
85f99c75 7442173e

+38
+38
arch/arm/boot/dts/am57xx-sbc-am57x.dts
··· 15 15 / { 16 16 model = "CompuLab CL-SOM-AM57x on SB-SOM-AM57x"; 17 17 compatible = "compulab,sbc-am57x", "compulab,cl-som-am57x", "ti,am5728", "ti,dra742", "ti,dra74", "ti,dra7"; 18 + 19 + aliases { 20 + display0 = &lcd0; 21 + }; 18 22 }; 19 23 20 24 &dra7_pmx_core { ··· 52 48 pinctrl-single,pins = < 53 49 DRA7XX_CORE_IOPAD(0x36b4, PIN_INPUT| MUX_MODE10) /* mcasp1_axr0.i2c5_sda */ 54 50 DRA7XX_CORE_IOPAD(0x36b8, PIN_INPUT| MUX_MODE10) /* mcasp1_axr1.i2c5_scl */ 51 + >; 52 + }; 53 + 54 + lcd_pins_default: lcd_pins_default { 55 + pinctrl-single,pins = < 56 + DRA7XX_CORE_IOPAD(0x3564, PIN_OUTPUT | MUX_MODE14) /* vin2a_vsync0.gpio4_0 */ 55 57 >; 56 58 }; 57 59 }; ··· 105 95 reg = <0x20>; 106 96 gpio-controller; 107 97 #gpio-cells = <2>; 98 + }; 99 + }; 100 + 101 + &dss { 102 + status = "ok"; 103 + 104 + vdda_video-supply = <&ldoln_reg>; 105 + 106 + port { 107 + dpi_lcd_out: endpoint@0 { 108 + remote-endpoint = <&lcd_in>; 109 + data-lines = <24>; 110 + }; 111 + }; 112 + }; 113 + 114 + &lcd0 { 115 + pinctrl-names = "default"; 116 + pinctrl-0 = <&lcd_pins_default>; 117 + 118 + enable-gpios = <&pca9555 14 GPIO_ACTIVE_HIGH 119 + &gpio4 0 GPIO_ACTIVE_HIGH>; 120 + 121 + port { 122 + lcd_in: endpoint { 123 + remote-endpoint = <&dpi_lcd_out>; 124 + data-lines = <24>; 125 + }; 108 126 }; 109 127 };