]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - arch/arm/boot/dts/imx6dl-tx6u-811x.dts
37dcbba082f2343661cfaf706e3e44fd98821957
[karo-tx-linux.git] / arch / arm / boot / dts / imx6dl-tx6u-811x.dts
1 /*
2  * Copyright 2014 Lothar Waßmann <LW@KARO-electronics.de>
3  *
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:
7  *
8  * http://www.opensource.org/licenses/gpl-license.html
9  * http://www.gnu.org/copyleft/gpl.html
10  */
11
12 /dts-v1/;
13 #include "imx6dl.dtsi"
14 #include "imx6qdl-tx6.dtsi"
15
16 / {
17         model = "Ka-Ro electronics TX6U-811x Module";
18         compatible = "karo,imx6dl-tx6dl", "fsl,imx6dl";
19
20         aliases {
21                 display = &lvds0;
22                 lvds0 = &lvds0;
23                 mxcfb0 = &lvds0;
24         };
25
26         backlight0: backlight0 {
27                 compatible = "pwm-backlight";
28                 pwms = <&pwm2 0 500000 0>;
29                 power-supply = <&reg_lcd0_pwr>;
30                 /*
31                  * a poor man's way to create a 1:1 relationship between
32                  * the PWM value and the actual duty cycle
33                  */
34                 brightness-levels = < 0  1  2  3  4  5  6  7  8  9
35                                      10 11 12 13 14 15 16 17 18 19
36                                      20 21 22 23 24 25 26 27 28 29
37                                      30 31 32 33 34 35 36 37 38 39
38                                      40 41 42 43 44 45 46 47 48 49
39                                      50 51 52 53 54 55 56 57 58 59
40                                      60 61 62 63 64 65 66 67 68 69
41                                      70 71 72 73 74 75 76 77 78 79
42                                      80 81 82 83 84 85 86 87 88 89
43                                      90 91 92 93 94 95 96 97 98 99
44                                     100>;
45                 default-brightness-level = <50>;
46         };
47
48         backlight1: backlight1 {
49                 compatible = "pwm-backlight";
50                 pwms = <&pwm1 0 500000 0>;
51                 power-supply = <&reg_lcd1_pwr>;
52                 /*
53                  * a poor man's way to create a 1:1 relationship between
54                  * the PWM value and the actual duty cycle
55                  */
56                 brightness-levels = < 0  1  2  3  4  5  6  7  8  9
57                                      10 11 12 13 14 15 16 17 18 19
58                                      20 21 22 23 24 25 26 27 28 29
59                                      30 31 32 33 34 35 36 37 38 39
60                                      40 41 42 43 44 45 46 47 48 49
61                                      50 51 52 53 54 55 56 57 58 59
62                                      60 61 62 63 64 65 66 67 68 69
63                                      70 71 72 73 74 75 76 77 78 79
64                                      80 81 82 83 84 85 86 87 88 89
65                                      90 91 92 93 94 95 96 97 98 99
66                                     100>;
67                 default-brightness-level = <50>;
68         };
69
70         lvds0: fb@0 {
71                 compatible = "fsl,mxc_sdc_fb";
72                 disp_dev = "ldb";
73                 interface_pix_fmt = "RGB666";
74                 mode_str ="LDB-XGA";
75                 default_bpp = <32>;
76                 int_clk = <0>;
77                 late_init = <0>;
78                 status = "okay";
79         };
80 };
81
82 &i2c3 {
83         polytouch1: eeti@04 {
84                 compatible = "eeti,egalax_ts";
85                 reg = <0x04>;
86                 pinctrl-names = "default";
87                 pinctrl-0 = <&pinctrl_eeti>;
88                 interrupt-parent = <&gpio3>;
89                 interrupts = <22 0>;
90                 wakeup-gpios = <&gpio3 22 GPIO_ACTIVE_HIGH>;
91                 linux,wakeup;
92         };
93 };
94
95 &iomuxc {
96         imx6dl-tx6u-811x {
97                 pinctrl_eeti: eetigrp {
98                         fsl,pins = <
99                                 MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x1b0b1 /* Interrupt */
100                         >;
101                 };
102         };
103 };
104
105 &kpp {
106         status = "disabled"; /* pads partially clash with backlight1 PWM */
107 };
108
109 &ldb {
110         ipu_id = <0>;
111         disp_id = <0>;
112         ext_ref = <0>;
113         mode = "sep0";
114         sec_ipu_id = <1>;
115         sec_disp_id = <1>;
116         status = "okay";
117
118         display-timings {
119                 native-mode = <&lvds_timing0>;
120
121                 lvds_timing0: hsd100pxn1 {
122                         clock-frequency = <65000000>;
123                         hactive = <1024>;
124                         vactive = <768>;
125                         hback-porch = <220>;
126                         hfront-porch = <40>;
127                         vback-porch = <21>;
128                         vfront-porch = <7>;
129                         hsync-len = <60>;
130                         vsync-len = <10>;
131                         de-active = <1>;
132                         pixelclk-active = <1>;
133                 };
134         };
135 };
136
137 &pwm1 {
138         status = "okay";
139 };
140
141 &reg_lcd0_pwr {
142         status = "okay";
143 };
144
145 &reg_lcd1_pwr {
146         status = "okay";
147 };