2 * Copyright (C) 2014 Florian Vaussard, EPFL Mobots group
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
10 * 4.3'' LCD panel output for some Gumstix Overo boards (Gallop43, Chestnut43)
14 dss_dpi_pins: pinmux_dss_dpi_pins {
15 pinctrl-single,pins = <
16 OMAP3_CORE1_IOPAD(0x20d4, PIN_OUTPUT | MUX_MODE0) /* dss_pclk.dss_pclk */
17 OMAP3_CORE1_IOPAD(0x20d6, PIN_OUTPUT | MUX_MODE0) /* dss_hsync.dss_hsync */
18 OMAP3_CORE1_IOPAD(0x20d8, PIN_OUTPUT | MUX_MODE0) /* dss_vsync.dss_vsync */
19 OMAP3_CORE1_IOPAD(0x20da, PIN_OUTPUT | MUX_MODE0) /* dss_acbias.dss_acbias */
20 OMAP3_CORE1_IOPAD(0x20dc, PIN_OUTPUT | MUX_MODE0) /* dss_data0.dss_data0 */
21 OMAP3_CORE1_IOPAD(0x20de, PIN_OUTPUT | MUX_MODE0) /* dss_data1.dss_data1 */
22 OMAP3_CORE1_IOPAD(0x20e0, PIN_OUTPUT | MUX_MODE0) /* dss_data2.dss_data2 */
23 OMAP3_CORE1_IOPAD(0x20e2, PIN_OUTPUT | MUX_MODE0) /* dss_data3.dss_data3 */
24 OMAP3_CORE1_IOPAD(0x20e4, PIN_OUTPUT | MUX_MODE0) /* dss_data4.dss_data4 */
25 OMAP3_CORE1_IOPAD(0x20e6, PIN_OUTPUT | MUX_MODE0) /* dss_data5.dss_data5 */
26 OMAP3_CORE1_IOPAD(0x20e8, PIN_OUTPUT | MUX_MODE0) /* dss_data6.dss_data6 */
27 OMAP3_CORE1_IOPAD(0x20ea, PIN_OUTPUT | MUX_MODE0) /* dss_data7.dss_data7 */
28 OMAP3_CORE1_IOPAD(0x20ec, PIN_OUTPUT | MUX_MODE0) /* dss_data8.dss_data8 */
29 OMAP3_CORE1_IOPAD(0x20ee, PIN_OUTPUT | MUX_MODE0) /* dss_data9.dss_data9 */
30 OMAP3_CORE1_IOPAD(0x20f0, PIN_OUTPUT | MUX_MODE0) /* dss_data10.dss_data10 */
31 OMAP3_CORE1_IOPAD(0x20f2, PIN_OUTPUT | MUX_MODE0) /* dss_data11.dss_data11 */
32 OMAP3_CORE1_IOPAD(0x20f4, PIN_OUTPUT | MUX_MODE0) /* dss_data12.dss_data12 */
33 OMAP3_CORE1_IOPAD(0x20f6, PIN_OUTPUT | MUX_MODE0) /* dss_data13.dss_data13 */
34 OMAP3_CORE1_IOPAD(0x20f8, PIN_OUTPUT | MUX_MODE0) /* dss_data14.dss_data14 */
35 OMAP3_CORE1_IOPAD(0x20fa, PIN_OUTPUT | MUX_MODE0) /* dss_data15.dss_data15 */
36 OMAP3_CORE1_IOPAD(0x20fc, PIN_OUTPUT | MUX_MODE0) /* dss_data16.dss_data16 */
37 OMAP3_CORE1_IOPAD(0x20fe, PIN_OUTPUT | MUX_MODE0) /* dss_data17.dss_data17 */
38 OMAP3_CORE1_IOPAD(0x2100, PIN_OUTPUT | MUX_MODE0) /* dss_data18.dss_data18 */
39 OMAP3_CORE1_IOPAD(0x2102, PIN_OUTPUT | MUX_MODE0) /* dss_data19.dss_data19 */
40 OMAP3_CORE1_IOPAD(0x2104, PIN_OUTPUT | MUX_MODE0) /* dss_data20.dss_data20 */
41 OMAP3_CORE1_IOPAD(0x2106, PIN_OUTPUT | MUX_MODE0) /* dss_data21.dss_data21 */
42 OMAP3_CORE1_IOPAD(0x2108, PIN_OUTPUT | MUX_MODE0) /* dss_data22.dss_data22 */
43 OMAP3_CORE1_IOPAD(0x210a, PIN_OUTPUT | MUX_MODE0) /* dss_data23.dss_data23 */
47 lb035_pins: pinmux_lb035_pins {
48 pinctrl-single,pins = <
49 OMAP3_CORE1_IOPAD(0x2174, PIN_OUTPUT | MUX_MODE4) /* uart2_cts.gpio_144 */
53 backlight_pins: pinmux_backlight_pins {
54 pinctrl-single,pins = <
55 OMAP3_CORE1_IOPAD(0x2176, PIN_OUTPUT | MUX_MODE4) /* uart2_rts.gpio_145 */
59 mcspi1_pins: pinmux_mcspi1_pins {
60 pinctrl-single,pins = <
61 OMAP3_CORE1_IOPAD(0x21c8, PIN_INPUT | MUX_MODE0) /* mcspi1_clk.mcspi1_clk */
62 OMAP3_CORE1_IOPAD(0x21ca, PIN_INPUT | MUX_MODE0) /* mcspi1_simo.mcspi1_simo */
63 OMAP3_CORE1_IOPAD(0x21cc, PIN_INPUT | MUX_MODE0) /* mcspi1_somi.mcspi1_somi */
64 OMAP3_CORE1_IOPAD(0x21ce, PIN_INPUT | MUX_MODE0) /* mcspi1_cs0.mcspi1_cs0 */
65 OMAP3_CORE1_IOPAD(0x21d0, PIN_INPUT | MUX_MODE0) /* mcspi1_cs1.mcspi1_cs1 */
69 ads7846_pins: pinmux_ads7846_pins {
70 pinctrl-single,pins = <
71 OMAP3_CORE1_IOPAD(0x2138, PIN_INPUT_PULLDOWN | MUX_MODE4) /* csi2_dx1.gpio_114 */
76 /* Needed to power the DPI pins */
84 pinctrl-names = "default";
85 pinctrl-0 = <&dss_dpi_pins>;
89 remote-endpoint = <&lcd_in>;
100 ads7846reg: ads7846-reg {
101 compatible = "regulator-fixed";
102 regulator-name = "ads7846-reg";
103 regulator-min-microvolt = <3300000>;
104 regulator-max-microvolt = <3300000>;
108 compatible = "gpio-backlight";
110 pinctrl-names = "default";
111 pinctrl-0 = <&backlight_pins>;
112 gpios = <&gpio5 17 GPIO_ACTIVE_HIGH>; /* gpio_145 */
119 pinctrl-names = "default";
120 pinctrl-0 = <&mcspi1_pins>;
123 compatible = "lgphilips,lb035q02";
127 spi-max-frequency = <500000>;
131 pinctrl-names = "default";
132 pinctrl-0 = <&lb035_pins>;
133 enable-gpios = <&gpio5 16 GPIO_ACTIVE_HIGH>; /* gpio_144 */
137 remote-endpoint = <&dpi_out>;
142 /* touch controller */
144 pinctrl-names = "default";
145 pinctrl-0 = <&ads7846_pins>;
147 compatible = "ti,ads7846";
148 vcc-supply = <&ads7846reg>;
151 spi-max-frequency = <1500000>;
153 interrupt-parent = <&gpio4>;
154 interrupts = <18 0>; /* gpio_114 */
155 pendown-gpio = <&gpio4 18 GPIO_ACTIVE_HIGH>;
157 ti,x-min = /bits/ 16 <0x0>;
158 ti,x-max = /bits/ 16 <0x0fff>;
159 ti,y-min = /bits/ 16 <0x0>;
160 ti,y-max = /bits/ 16 <0x0fff>;
161 ti,x-plate-ohms = /bits/ 16 <180>;
162 ti,pressure-max = /bits/ 16 <255>;