]> git.karo-electronics.de Git - karo-tx-linux.git/blob - arch/arm/boot/dts/imx53-tx53-x13x.dts
ARM: dts: imx53-tx53: remove the regulators bus
[karo-tx-linux.git] / arch / arm / boot / dts / imx53-tx53-x13x.dts
1 /*
2  * Copyright 2013-2017 Lothar Waßmann <LW@KARO-electronics.de>
3  *
4  * This file is dual-licensed: you can use it either under the terms
5  * of the GPL or the X11 license, at your option. Note that this dual
6  * licensing only applies to this file, and not this project as a
7  * whole.
8  *
9  *  a) This file is free software; you can redistribute it and/or
10  *     modify it under the terms of the GNU General Public License
11  *     version 2 as published by the Free Software Foundation.
12  *
13  *     This file is distributed in the hope that it will be useful,
14  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
15  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  *     GNU General Public License for more details.
17  *
18  * Or, alternatively,
19  *
20  *  b) Permission is hereby granted, free of charge, to any person
21  *     obtaining a copy of this software and associated documentation
22  *     files (the "Software"), to deal in the Software without
23  *     restriction, including without limitation the rights to use,
24  *     copy, modify, merge, publish, distribute, sublicense, and/or
25  *     sell copies of the Software, and to permit persons to whom the
26  *     Software is furnished to do so, subject to the following
27  *     conditions:
28  *
29  *     The above copyright notice and this permission notice shall be
30  *     included in all copies or substantial portions of the Software.
31  *
32  *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
33  *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
34  *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
35  *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
36  *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
37  *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
38  *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
39  *     OTHER DEALINGS IN THE SOFTWARE.
40  * The code contained herein is licensed under the GNU General Public
41  * License. You may obtain a copy of the GNU General Public License
42  * Version 2 at the following locations:
43  *
44  * http://www.opensource.org/licenses/gpl-license.html
45  * http://www.gnu.org/copyleft/gpl.html
46  */
47
48 /dts-v1/;
49 #include "imx53-tx53.dtsi"
50 #include <dt-bindings/input/input.h>
51
52 / {
53         model = "Ka-Ro electronics TX53 module (LVDS)";
54         compatible = "karo,tx53", "fsl,imx53";
55
56         aliases {
57                 display = &lvds0;
58                 lvds0 = &lvds0;
59                 lvds1 = &lvds1;
60         };
61
62         backlight0: backlight0 {
63                 compatible = "pwm-backlight";
64                 pwms = <&pwm2 0 500000 0>;
65                 power-supply = <&reg_3v3>;
66                 brightness-levels = <
67                           0  1  2  3  4  5  6  7  8  9
68                          10 11 12 13 14 15 16 17 18 19
69                          20 21 22 23 24 25 26 27 28 29
70                          30 31 32 33 34 35 36 37 38 39
71                          40 41 42 43 44 45 46 47 48 49
72                          50 51 52 53 54 55 56 57 58 59
73                          60 61 62 63 64 65 66 67 68 69
74                          70 71 72 73 74 75 76 77 78 79
75                          80 81 82 83 84 85 86 87 88 89
76                          90 91 92 93 94 95 96 97 98 99
77                         100
78                 >;
79                 default-brightness-level = <50>;
80         };
81
82         backlight1: backlight1 {
83                 compatible = "pwm-backlight";
84                 pwms = <&pwm1 0 500000 0>;
85                 power-supply = <&reg_3v3>;
86                 brightness-levels = <
87                           0  1  2  3  4  5  6  7  8  9
88                          10 11 12 13 14 15 16 17 18 19
89                          20 21 22 23 24 25 26 27 28 29
90                          30 31 32 33 34 35 36 37 38 39
91                          40 41 42 43 44 45 46 47 48 49
92                          50 51 52 53 54 55 56 57 58 59
93                          60 61 62 63 64 65 66 67 68 69
94                          70 71 72 73 74 75 76 77 78 79
95                          80 81 82 83 84 85 86 87 88 89
96                          90 91 92 93 94 95 96 97 98 99
97                         100
98                 >;
99                 default-brightness-level = <50>;
100         };
101
102         reg_lcd_pwr0: regulator-lvds0-pwr {
103                 compatible = "regulator-fixed";
104                 regulator-name = "LVDS0 POWER";
105                 regulator-min-microvolt = <3300000>;
106                 regulator-max-microvolt = <3300000>;
107                 gpio = <&gpio3 29 GPIO_ACTIVE_HIGH>;
108                 enable-active-high;
109                 regulator-boot-on;
110         };
111
112         reg_lcd_pwr1: regulator-lvds1-pwr {
113                 compatible = "regulator-fixed";
114                 regulator-name = "LVDS1 POWER";
115                 regulator-min-microvolt = <3300000>;
116                 regulator-max-microvolt = <3300000>;
117                 gpio = <&gpio2 31 GPIO_ACTIVE_HIGH>;
118                 enable-active-high;
119                 regulator-boot-on;
120         };
121 };
122
123 &i2c2 {
124         pinctrl-names = "default";
125         pinctrl-0 = <&pinctrl_i2c2>;
126         status = "okay";
127
128         touchscreen2: eeti@04 {
129                 compatible = "eeti,egalax_ts";
130                 reg = <0x04>;
131                 pinctrl-names = "default";
132                 pinctrl-0 = <&pinctrl_eeti2>;
133                 interrupt-parent = <&gpio3>;
134                 interrupts = <23 0>;
135                 wakeup-gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>;
136                 wakeup-source;
137         };
138 };
139
140 &i2c3 {
141         pinctrl-names = "default";
142         pinctrl-0 = <&pinctrl_i2c3>;
143         status = "okay";
144
145         sgtl5000: codec@0a {
146                 compatible = "fsl,sgtl5000";
147                 reg = <0x0a>;
148                 VDDA-supply = <&reg_2v5>;
149                 VDDIO-supply = <&reg_3v3>;
150                 clocks = <&mclk>;
151         };
152
153         touchscreen1: eeti@04 {
154                 compatible = "eeti,egalax_ts";
155                 reg = <0x04>;
156                 pinctrl-names = "default";
157                 pinctrl-0 = <&pinctrl_eeti1>;
158                 interrupt-parent = <&gpio3>;
159                 interrupts = <22 0>;
160                 wakeup-gpios = <&gpio3 22 GPIO_ACTIVE_HIGH>;
161                 wakeup-source;
162         };
163 };
164
165 &iomuxc {
166         imx53-tx53-x13x {
167                 pinctrl_i2c2: i2c2-grp1 {
168                         fsl,pins = <
169                                 MX53_PAD_KEY_ROW3__I2C2_SDA             0xc0000000
170                                 MX53_PAD_KEY_COL3__I2C2_SCL             0xc0000000
171                         >;
172                 };
173
174                 pinctrl_lvds0: lvds0grp {
175                         fsl,pins = <
176                                 MX53_PAD_LVDS0_TX3_P__LDB_LVDS0_TX3 0x80000000
177                                 MX53_PAD_LVDS0_CLK_P__LDB_LVDS0_CLK 0x80000000
178                                 MX53_PAD_LVDS0_TX2_P__LDB_LVDS0_TX2 0x80000000
179                                 MX53_PAD_LVDS0_TX1_P__LDB_LVDS0_TX1 0x80000000
180                                 MX53_PAD_LVDS0_TX0_P__LDB_LVDS0_TX0 0x80000000
181                         >;
182                 };
183
184                 pinctrl_lvds1: lvds1grp {
185                         fsl,pins = <
186                                 MX53_PAD_LVDS1_TX3_P__LDB_LVDS1_TX3 0x80000000
187                                 MX53_PAD_LVDS1_TX2_P__LDB_LVDS1_TX2 0x80000000
188                                 MX53_PAD_LVDS1_CLK_P__LDB_LVDS1_CLK 0x80000000
189                                 MX53_PAD_LVDS1_TX1_P__LDB_LVDS1_TX1 0x80000000
190                                 MX53_PAD_LVDS1_TX0_P__LDB_LVDS1_TX0 0x80000000
191                         >;
192                 };
193
194                 pinctrl_pwm1: pwm1grp {
195                         fsl,pins = <MX53_PAD_GPIO_9__PWM1_PWMO 0x04>;
196                 };
197
198                 pinctrl_eeti1: eeti1grp {
199                         fsl,pins = <
200                                 MX53_PAD_EIM_D22__GPIO3_22 0x1f0 /* Interrupt */
201                         >;
202                 };
203
204                 pinctrl_eeti2: eeti2grp {
205                         fsl,pins = <
206                                 MX53_PAD_EIM_D23__GPIO3_23 0x1f0 /* Interrupt */
207                         >;
208                 };
209         };
210 };
211
212 &ldb {
213         pinctrl-names = "default";
214         pinctrl-0 = <&pinctrl_lvds0 &pinctrl_lvds1>;
215         status = "okay";
216
217         lvds0: lvds-channel@0 {
218                 fsl,data-mapping = "spwg";
219                 fsl,data-width = <18>;
220                 status = "okay";
221
222                 display-timings {
223                         native-mode = <&lvds0_timing0>;
224
225                         lvds0_timing0: hsd100pxn1 {
226                                 clock-frequency = <65000000>;
227                                 hactive = <1024>;
228                                 vactive = <768>;
229                                 hback-porch = <220>;
230                                 hsync-len = <60>;
231                                 hfront-porch = <40>;
232                                 vback-porch = <21>;
233                                 vsync-len = <10>;
234                                 vfront-porch = <7>;
235                                 hsync-active = <0>;
236                                 vsync-active = <0>;
237                                 de-active = <1>;
238                                 pixelclk-active = <1>;
239                         };
240
241                         lvds0_timing1: nl12880bc20 {
242                                 clock-frequency = <71000000>;
243                                 hactive = <1280>;
244                                 vactive = <800>;
245                                 hback-porch = <50>;
246                                 hsync-len = <60>;
247                                 hfront-porch = <50>;
248                                 vback-porch = <5>;
249                                 vsync-len = <13>;
250                                 vfront-porch = <5>;
251                                 hsync-active = <0>;
252                                 vsync-active = <0>;
253                                 de-active = <1>;
254                                 pixelclk-active = <1>;
255                         };
256                 };
257         };
258
259         lvds1: lvds-channel@1 {
260                 fsl,data-mapping = "spwg";
261                 fsl,data-width = <18>;
262                 status = "okay";
263
264                 display-timings {
265                         native-mode = <&lvds1_timing0>;
266
267                         lvds1_timing0: hsd100pxn1 {
268                                 clock-frequency = <65000000>;
269                                 hactive = <1024>;
270                                 vactive = <768>;
271                                 hback-porch = <220>;
272                                 hsync-len = <60>;
273                                 hfront-porch = <40>;
274                                 vback-porch = <21>;
275                                 vsync-len = <10>;
276                                 vfront-porch = <7>;
277                                 hsync-active = <0>;
278                                 vsync-active = <0>;
279                                 de-active = <1>;
280                                 pixelclk-active = <1>;
281                         };
282                 };
283         };
284 };
285
286 &pwm1 {
287         pinctrl-names = "default";
288         pinctrl-0 = <&pinctrl_pwm1>;
289 };
290
291 &sata {
292         status = "okay";
293 };