omap: add kernel 3.14 support
[openwrt/openwrt.git] / target / linux / omap / patches-3.14 / 920-arm-dts-am335x-evmsk-add-support-for-lcd-panel.patch
1 --- a/arch/arm/boot/dts/am335x-evmsk.dts
2 +++ b/arch/arm/boot/dts/am335x-evmsk.dts
3 @@ -132,6 +132,39 @@
4 pinctrl-names = "default";
5 pinctrl-0 = <&gpio_keys_s0 &clkout2_pin>;
6
7 + lcd_pins_s0: lcd_pins_s0 {
8 + pinctrl-single,pins = <
9 + 0x20 0x01 /* gpmc_ad8.lcd_data16, OUTPUT | MODE1 */
10 + 0x24 0x01 /* gpmc_ad9.lcd_data17, OUTPUT | MODE1 */
11 + 0x28 0x01 /* gpmc_ad10.lcd_data18, OUTPUT | MODE1 */
12 + 0x2c 0x01 /* gpmc_ad11.lcd_data19, OUTPUT | MODE1 */
13 + 0x30 0x01 /* gpmc_ad12.lcd_data20, OUTPUT | MODE1 */
14 + 0x34 0x01 /* gpmc_ad13.lcd_data21, OUTPUT | MODE1 */
15 + 0x38 0x01 /* gpmc_ad14.lcd_data22, OUTPUT | MODE1 */
16 + 0x3c 0x01 /* gpmc_ad15.lcd_data23, OUTPUT | MODE1 */
17 + 0xa0 0x00 /* lcd_data0.lcd_data0, OUTPUT | MODE0 */
18 + 0xa4 0x00 /* lcd_data1.lcd_data1, OUTPUT | MODE0 */
19 + 0xa8 0x00 /* lcd_data2.lcd_data2, OUTPUT | MODE0 */
20 + 0xac 0x00 /* lcd_data3.lcd_data3, OUTPUT | MODE0 */
21 + 0xb0 0x00 /* lcd_data4.lcd_data4, OUTPUT | MODE0 */
22 + 0xb4 0x00 /* lcd_data5.lcd_data5, OUTPUT | MODE0 */
23 + 0xb8 0x00 /* lcd_data6.lcd_data6, OUTPUT | MODE0 */
24 + 0xbc 0x00 /* lcd_data7.lcd_data7, OUTPUT | MODE0 */
25 + 0xc0 0x00 /* lcd_data8.lcd_data8, OUTPUT | MODE0 */
26 + 0xc4 0x00 /* lcd_data9.lcd_data9, OUTPUT | MODE0 */
27 + 0xc8 0x00 /* lcd_data10.lcd_data10, OUTPUT | MODE0 */
28 + 0xcc 0x00 /* lcd_data11.lcd_data11, OUTPUT | MODE0 */
29 + 0xd0 0x00 /* lcd_data12.lcd_data12, OUTPUT | MODE0 */
30 + 0xd4 0x00 /* lcd_data13.lcd_data13, OUTPUT | MODE0 */
31 + 0xd8 0x00 /* lcd_data14.lcd_data14, OUTPUT | MODE0 */
32 + 0xdc 0x00 /* lcd_data15.lcd_data15, OUTPUT | MODE0 */
33 + 0xe0 0x00 /* lcd_vsync.lcd_vsync, OUTPUT | MODE0 */
34 + 0xe4 0x00 /* lcd_hsync.lcd_hsync, OUTPUT | MODE0 */
35 + 0xe8 0x00 /* lcd_pclk.lcd_pclk, OUTPUT | MODE0 */
36 + 0xec 0x00 /* lcd_ac_bias_en.lcd_ac_bias_en, OUTPUT | MODE0 */
37 + >;
38 + };
39 +
40 user_leds_s0: user_leds_s0 {
41 pinctrl-single,pins = <
42 0x10 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad4.gpio1_4 */
43 @@ -495,6 +528,27 @@
44 rx-num-evt = <1>;
45 };
46
47 +&lcdc {
48 + pinctrl-names = "default";
49 + pinctrl-0 = <&lcd_pins_s0>;
50 + status = "okay";
51 + display-timings {
52 + 480x272 {
53 + hactive = <480>;
54 + vactive = <272>;
55 + hback-porch = <43>;
56 + hfront-porch = <8>;
57 + hsync-len = <4>;
58 + vback-porch = <12>;
59 + vfront-porch = <4>;
60 + vsync-len = <10>;
61 + clock-frequency = <9000000>;
62 + hsync-active = <0>;
63 + vsync-active = <0>;
64 + };
65 + };
66 +};
67 +
68 &tscadc {
69 status = "okay";
70 tsc {