2 * Copyright 2013 Lothar Waßmann <LW@KARO-electronics.de>
4 * The code contained herein is licensed under the GNU General Public
5 * License. You may obtain a copy of the GNU General Public License
6 * Version 2 at the following locations:
8 * http://www.opensource.org/licenses/gpl-license.html
9 * http://www.gnu.org/copyleft/gpl.html
13 #include "imx53-tx53.dtsi"
14 #include <dt-bindings/input/input.h>
15 #include <dt-bindings/interrupt-controller/irq.h>
16 #include <dt-bindings/pwm/pwm.h>
19 model = "Ka-Ro electronics TX53 module (LCD)";
20 compatible = "karo,tx53", "fsl,imx53";
27 display: display@di0 {
28 compatible = "fsl,imx-parallel-display";
29 interface-pix-fmt = "rgb24";
30 pinctrl-names = "default";
31 pinctrl-0 = <&pinctrl_rgb24_vga1>;
35 display0_in: endpoint {
36 remote-endpoint = <&ipu_di0_disp0>;
42 clock-frequency = <25200000>;
54 pixelclk-active = <0>;
58 clock-frequency = <25200000>;
70 pixelclk-active = <0>;
74 clock-frequency = <6413760>;
86 pixelclk-active = <0>;
90 clock-frequency = <9009000>;
102 pixelclk-active = <1>;
106 clock-frequency = <33264000>;
118 pixelclk-active = <0>;
121 ET0700 { /* same as ET0500 */
122 clock-frequency = <33264000>;
134 pixelclk-active = <0>;
138 clock-frequency = <6596040>;
150 pixelclk-active = <0>;
156 backlight: backlight {
157 compatible = "pwm-backlight";
158 pwms = <&pwm2 0 500000 PWM_POLARITY_INVERTED>;
159 power-supply = <®_3v3>;
160 brightness-levels = <
162 10 11 12 13 14 15 16 17 18 19
163 20 21 22 23 24 25 26 27 28 29
164 30 31 32 33 34 35 36 37 38 39
165 40 41 42 43 44 45 46 47 48 49
166 50 51 52 53 54 55 56 57 58 59
167 60 61 62 63 64 65 66 67 68 69
168 70 71 72 73 74 75 76 77 78 79
169 80 81 82 83 84 85 86 87 88 89
170 90 91 92 93 94 95 96 97 98 99
173 default-brightness-level = <50>;
177 reg_lcd_pwr: regulator@5 {
178 compatible = "regulator-fixed";
180 regulator-name = "LCD POWER";
181 regulator-min-microvolt = <3300000>;
182 regulator-max-microvolt = <3300000>;
183 gpio = <&gpio2 31 GPIO_ACTIVE_HIGH>;
188 reg_lcd_reset: regulator@6 {
189 compatible = "regulator-fixed";
191 regulator-name = "LCD RESET";
192 regulator-min-microvolt = <3300000>;
193 regulator-max-microvolt = <3300000>;
194 gpio = <&gpio3 29 GPIO_ACTIVE_HIGH>;
202 pinctrl-names = "default";
203 pinctrl-0 = <&pinctrl_i2c3>;
207 compatible = "fsl,sgtl5000";
209 VDDA-supply = <®_2v5>;
210 VDDIO-supply = <®_3v3>;
214 polytouch: edt-ft5x06@38 {
215 compatible = "edt,edt-ft5x06";
217 pinctrl-names = "default";
218 pinctrl-0 = <&pinctrl_edt_ft5x06_1>;
219 interrupt-parent = <&gpio6>;
220 interrupts = <15 IRQ_TYPE_EDGE_FALLING>;
221 reset-gpios = <&gpio2 22 GPIO_ACTIVE_LOW>;
222 wake-gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>;
225 touchscreen: tsc2007@48 {
226 compatible = "ti,tsc2007";
228 pinctrl-names = "default";
229 pinctrl-0 = <&pinctrl_tsc2007>;
230 interrupt-parent = <&gpio3>;
232 gpios = <&gpio3 26 GPIO_ACTIVE_LOW>;
233 ti,x-plate-ohms = <660>;
240 pinctrl_edt_ft5x06_1: edt-ft5x06grp-1 {
242 MX53_PAD_NANDF_CS2__GPIO6_15 0x1f0 /* Interrupt */
243 MX53_PAD_EIM_A16__GPIO2_22 0x04 /* Reset */
244 MX53_PAD_EIM_A17__GPIO2_21 0x04 /* Wake */
248 pinctrl_kpp: kppgrp {
250 MX53_PAD_GPIO_9__KPP_COL_6 0x1f4
251 MX53_PAD_GPIO_4__KPP_COL_7 0x1f4
252 MX53_PAD_KEY_COL2__KPP_COL_2 0x1f4
253 MX53_PAD_KEY_COL3__KPP_COL_3 0x1f4
254 MX53_PAD_GPIO_2__KPP_ROW_6 0x1f4
255 MX53_PAD_GPIO_5__KPP_ROW_7 0x1f4
256 MX53_PAD_KEY_ROW2__KPP_ROW_2 0x1f4
257 MX53_PAD_KEY_ROW3__KPP_ROW_3 0x1f4
261 pinctrl_rgb24_vga1: rgb24-vgagrp1 {
263 MX53_PAD_DI0_DISP_CLK__IPU_DI0_DISP_CLK 0x5
264 MX53_PAD_DI0_PIN15__IPU_DI0_PIN15 0x5
265 MX53_PAD_DI0_PIN2__IPU_DI0_PIN2 0x5
266 MX53_PAD_DI0_PIN3__IPU_DI0_PIN3 0x5
267 MX53_PAD_DISP0_DAT0__IPU_DISP0_DAT_0 0x5
268 MX53_PAD_DISP0_DAT1__IPU_DISP0_DAT_1 0x5
269 MX53_PAD_DISP0_DAT2__IPU_DISP0_DAT_2 0x5
270 MX53_PAD_DISP0_DAT3__IPU_DISP0_DAT_3 0x5
271 MX53_PAD_DISP0_DAT4__IPU_DISP0_DAT_4 0x5
272 MX53_PAD_DISP0_DAT5__IPU_DISP0_DAT_5 0x5
273 MX53_PAD_DISP0_DAT6__IPU_DISP0_DAT_6 0x5
274 MX53_PAD_DISP0_DAT7__IPU_DISP0_DAT_7 0x5
275 MX53_PAD_DISP0_DAT8__IPU_DISP0_DAT_8 0x5
276 MX53_PAD_DISP0_DAT9__IPU_DISP0_DAT_9 0x5
277 MX53_PAD_DISP0_DAT10__IPU_DISP0_DAT_10 0x5
278 MX53_PAD_DISP0_DAT11__IPU_DISP0_DAT_11 0x5
279 MX53_PAD_DISP0_DAT12__IPU_DISP0_DAT_12 0x5
280 MX53_PAD_DISP0_DAT13__IPU_DISP0_DAT_13 0x5
281 MX53_PAD_DISP0_DAT14__IPU_DISP0_DAT_14 0x5
282 MX53_PAD_DISP0_DAT15__IPU_DISP0_DAT_15 0x5
283 MX53_PAD_DISP0_DAT16__IPU_DISP0_DAT_16 0x5
284 MX53_PAD_DISP0_DAT17__IPU_DISP0_DAT_17 0x5
285 MX53_PAD_DISP0_DAT18__IPU_DISP0_DAT_18 0x5
286 MX53_PAD_DISP0_DAT19__IPU_DISP0_DAT_19 0x5
287 MX53_PAD_DISP0_DAT20__IPU_DISP0_DAT_20 0x5
288 MX53_PAD_DISP0_DAT21__IPU_DISP0_DAT_21 0x5
289 MX53_PAD_DISP0_DAT22__IPU_DISP0_DAT_22 0x5
290 MX53_PAD_DISP0_DAT23__IPU_DISP0_DAT_23 0x5
294 pinctrl_tsc2007: tsc2007grp {
296 MX53_PAD_EIM_D26__GPIO3_26 0x1f0 /* Interrupt */
303 remote-endpoint = <&display0_in>;
307 pinctrl-names = "default";
308 pinctrl-0 = <&pinctrl_kpp>;
310 /* row/col 0,1 are mapped to KPP row/col 6,7 */
312 MATRIX_KEY(6, 6, KEY_POWER)
313 MATRIX_KEY(6, 7, KEY_KP0)
314 MATRIX_KEY(6, 2, KEY_KP1)
315 MATRIX_KEY(6, 3, KEY_KP2)
316 MATRIX_KEY(7, 6, KEY_KP3)
317 MATRIX_KEY(7, 7, KEY_KP4)
318 MATRIX_KEY(7, 2, KEY_KP5)
319 MATRIX_KEY(7, 3, KEY_KP6)
320 MATRIX_KEY(2, 6, KEY_KP7)
321 MATRIX_KEY(2, 7, KEY_KP8)
322 MATRIX_KEY(2, 2, KEY_KP9)