]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - arch/arm/boot/dts/imx6dl-tx6u-811x.dts
ARM: dts: imx6: split Ka-Ro DTS files into various board specific files
[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                 lvds1 = &lvds1;
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         panel0 {
71                 compatible = "simple-panel";
72                 power-supply = <&reg_3v3>;
73                 backlight = <&backlight0>;
74         };
75
76         panel1 {
77                 compatible = "simple-panel";
78                 power-supply = <&reg_3v3>;
79                 backlight = <&backlight1>;
80         };
81 };
82
83 &i2c3 {
84         polytouch2: eeti@04 {
85                 compatible = "eeti,egalax_ts";
86                 reg = <0x04>;
87                 pinctrl-names = "default";
88                 pinctrl-0 = <&pinctrl_eeti>;
89                 interrupt-parent = <&gpio3>;
90                 interrupts = <22 0>;
91                 wakeup-gpios = <&gpio3 22 GPIO_ACTIVE_HIGH>;
92                 linux,wakeup;
93         };
94 };
95
96 &iomuxc {
97         imx6dl-tx6u-811x {
98                 pinctrl_eeti: eetigrp {
99                         fsl,pins = <
100                                 MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x1b0b1 /* Interrupt */
101                         >;
102                 };
103         };
104 };
105
106 &kpp {
107         status = "disabled"; /* clashes with backlight1 PWM */
108 };
109
110 &ldb {
111         status = "okay";
112
113         lvds0: lvds-channel@0 {
114                 fsl,data-mapping = "spwg";
115                 fsl,data-width = <18>;
116                 status = "okay";
117
118                 display-timings {
119                         native-mode = <&lvds_timing0>;
120                         lvds_timing0: hsd100pxn1 {
121                                 clock-frequency = <65000000>;
122                                 hactive = <1024>;
123                                 vactive = <768>;
124                                 hback-porch = <220>;
125                                 hfront-porch = <40>;
126                                 vback-porch = <21>;
127                                 vfront-porch = <7>;
128                                 hsync-len = <60>;
129                                 vsync-len = <10>;
130                                 de-active = <1>;
131                                 pixelclk-active = <1>;
132                         };
133                 };
134         };
135
136         lvds1: lvds-channel@1 {
137                 fsl,data-mapping = "spwg";
138                 fsl,data-width = <18>;
139                 status = "okay";
140
141                 display-timings {
142                         native-mode = <&lvds_timing1>;
143                         lvds_timing1: hsd100pxn1 {
144                                 clock-frequency = <65000000>;
145                                 hactive = <1024>;
146                                 vactive = <768>;
147                                 hback-porch = <220>;
148                                 hfront-porch = <40>;
149                                 vback-porch = <21>;
150                                 vfront-porch = <7>;
151                                 hsync-len = <60>;
152                                 vsync-len = <10>;
153                                 de-active = <1>;
154                                 pixelclk-active = <1>;
155                         };
156                 };
157         };
158 };
159
160 &pwm1 {
161         status = "okay";
162 };
163
164 &reg_lcd0_pwr {
165         status = "okay";
166 };
167
168 &reg_lcd1_pwr {
169         status = "okay";
170 };