]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - arch/arm/boot/dts/imx6q-tx6q-1110.dts
ARM: dts: imx6: fix messed up LDB clocks
[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                 ipu1 = &ipu2;
23                 lvds0 = &lvds0;
24                 mxcfb0 = &lvds0;
25         };
26
27         backlight0: backlight0 {
28                 compatible = "pwm-backlight";
29                 pwms = <&pwm2 0 500000 0>;
30                 power-supply = <&reg_lcd0_pwr>;
31                 /*
32                  * a poor man's way to create a 1:1 relationship between
33                  * the PWM value and the actual duty cycle
34                  */
35                 brightness-levels = < 0  1  2  3  4  5  6  7  8  9
36                                      10 11 12 13 14 15 16 17 18 19
37                                      20 21 22 23 24 25 26 27 28 29
38                                      30 31 32 33 34 35 36 37 38 39
39                                      40 41 42 43 44 45 46 47 48 49
40                                      50 51 52 53 54 55 56 57 58 59
41                                      60 61 62 63 64 65 66 67 68 69
42                                      70 71 72 73 74 75 76 77 78 79
43                                      80 81 82 83 84 85 86 87 88 89
44                                      90 91 92 93 94 95 96 97 98 99
45                                     100>;
46                 default-brightness-level = <50>;
47         };
48
49         backlight1: backlight1 {
50                 compatible = "pwm-backlight";
51                 pwms = <&pwm1 0 500000 0>;
52                 power-supply = <&reg_lcd1_pwr>;
53                 /*
54                  * a poor man's way to create a 1:1 relationship between
55                  * the PWM value and the actual duty cycle
56                  */
57                 brightness-levels = < 0  1  2  3  4  5  6  7  8  9
58                                      10 11 12 13 14 15 16 17 18 19
59                                      20 21 22 23 24 25 26 27 28 29
60                                      30 31 32 33 34 35 36 37 38 39
61                                      40 41 42 43 44 45 46 47 48 49
62                                      50 51 52 53 54 55 56 57 58 59
63                                      60 61 62 63 64 65 66 67 68 69
64                                      70 71 72 73 74 75 76 77 78 79
65                                      80 81 82 83 84 85 86 87 88 89
66                                      90 91 92 93 94 95 96 97 98 99
67                                     100>;
68                 default-brightness-level = <50>;
69         };
70
71         lvds0: fb@0 {
72                 compatible = "fsl,mxc_sdc_fb";
73                 disp_dev = "ldb";
74                 interface_pix_fmt = "RGB666";
75                 mode_str ="LDB-XGA";
76                 default_bpp = <32>;
77                 int_clk = <0>;
78                 late_init = <0>;
79                 status = "okay";
80         };
81 };
82
83 &i2c3 {
84         polytouch1: 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"; /* pads partially clash with backlight1 PWM */
112 };
113
114 &ldb {
115         ipu_id = <0>;
116         disp_id = <0>;
117         ext_ref = <0>;
118         mode = "sep0";
119         sec_ipu_id = <1>;
120         sec_disp_id = <1>;
121         status = "okay";
122
123         display-timings {
124                 native-mode = <&lvds_timing0>;
125
126                 lvds_timing0: hsd100pxn1 {
127                         clock-frequency = <65000000>;
128                         hactive = <1024>;
129                         vactive = <768>;
130                         hback-porch = <220>;
131                         hfront-porch = <40>;
132                         vback-porch = <21>;
133                         vfront-porch = <7>;
134                         hsync-len = <60>;
135                         vsync-len = <10>;
136                         de-active = <1>;
137                         pixelclk-active = <1>;
138                 };
139         };
140 };
141
142 &pwm1 {
143         status = "okay";
144 };
145
146 &reg_lcd0_pwr {
147         status = "okay";
148 };
149
150 &reg_lcd1_pwr {
151         status = "okay";
152 };
153
154 &sata {
155         status = "okay";
156 };