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