]> git.karo-electronics.de Git - karo-tx-linux.git/blob - arch/arm/boot/dts/imx6q-tx6q-1110.dts
ARM: dts: imx6: split Ka-Ro DTS files into various board specific files
[karo-tx-linux.git] / arch / arm / boot / dts / imx6q-tx6q-1110.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 "imx6q.dtsi"
14 #include "imx6qdl-tx6.dtsi"
15
16 / {
17         model = "Ka-Ro electronics TX6Q-1110 Module";
18         compatible = "karo,imx6q-tx6q", "fsl,imx6q";
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         imx6q-tx6q-1110 {
98                 pinctrl_eeti: eetigrp {
99                         fsl,pins = <
100                                 MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x1b0b1 /* Interrupt */
101                         >;
102                 };
103         };
104 };
105
106 &ipu2 {
107         status = "disabled";
108 };
109
110 &kpp {
111         status = "disabled"; /* clashes with backlight1 PWM */
112 };
113
114 &ldb {
115         status = "okay";
116
117         lvds0: lvds-channel@0 {
118                 fsl,data-mapping = "spwg";
119                 fsl,data-width = <18>;
120                 status = "okay";
121
122                 display-timings {
123                         native-mode = <&lvds_timing0>;
124                         lvds_timing0: hsd100pxn1 {
125                                 clock-frequency = <65000000>;
126                                 hactive = <1024>;
127                                 vactive = <768>;
128                                 hback-porch = <220>;
129                                 hfront-porch = <40>;
130                                 vback-porch = <21>;
131                                 vfront-porch = <7>;
132                                 hsync-len = <60>;
133                                 vsync-len = <10>;
134                                 de-active = <1>;
135                                 pixelclk-active = <1>;
136                         };
137                 };
138         };
139
140         lvds1: lvds-channel@1 {
141                 fsl,data-mapping = "spwg";
142                 fsl,data-width = <18>;
143                 status = "okay";
144
145                 display-timings {
146                         native-mode = <&lvds_timing1>;
147                         lvds_timing1: hsd100pxn1 {
148                                 clock-frequency = <65000000>;
149                                 hactive = <1024>;
150                                 vactive = <768>;
151                                 hback-porch = <220>;
152                                 hfront-porch = <40>;
153                                 vback-porch = <21>;
154                                 vfront-porch = <7>;
155                                 hsync-len = <60>;
156                                 vsync-len = <10>;
157                                 de-active = <1>;
158                                 pixelclk-active = <1>;
159                         };
160                 };
161         };
162 };
163
164 &pwm1 {
165         status = "okay";
166 };
167
168 &reg_lcd0_pwr {
169         status = "okay";
170 };
171
172 &reg_lcd1_pwr {
173         status = "okay";
174 };
175
176 &sata {
177         status = "okay";
178 };