]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - arch/arm/boot/dts/imx6q-tx6q-10x0-comtft.dts
e8c9bbe47364407c384b52c91e22fd76588af102
[karo-tx-linux.git] / arch / arm / boot / dts / imx6q-tx6q-10x0-comtft.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-1010/-1030 Module on CoMpact TFT";
18         compatible = "karo,imx6q-tx6q", "fsl,imx6q";
19
20         aliases {
21                 display = &mxcfb0;
22                 mxcfb0 = &mxcfb0;
23         };
24
25         backlight: backlight {
26                 compatible = "pwm-backlight";
27                 pwms = <&pwm2 0 500000 0>;
28                 power-supply = <&reg_3v3>;
29                 /*
30                  * a poor man's way to create a 1:1 relationship between
31                  * the PWM value and the actual duty cycle
32                  */
33                 brightness-levels = < 0  1  2  3  4  5  6  7  8  9
34                                      10 11 12 13 14 15 16 17 18 19
35                                      20 21 22 23 24 25 26 27 28 29
36                                      30 31 32 33 34 35 36 37 38 39
37                                      40 41 42 43 44 45 46 47 48 49
38                                      50 51 52 53 54 55 56 57 58 59
39                                      60 61 62 63 64 65 66 67 68 69
40                                      70 71 72 73 74 75 76 77 78 79
41                                      80 81 82 83 84 85 86 87 88 89
42                                      90 91 92 93 94 95 96 97 98 99
43                                     100>;
44                 default-brightness-level = <50>;
45         };
46
47         mxcfb0: fb@2 {
48                 compatible = "fsl,mxc_sdc_fb";
49                 disp_dev = "lcd";
50                 interface_pix_fmt = "RGB24";
51                 mode_str = "";
52                 default_bpp = <32>;
53                 int_clk = <1>;
54                 late_init = <0>;
55                 status = "okay";
56
57                 display-timings {
58                         native-mode = <&ET070001DM6>;
59
60                         ET070001DM6: CoMTFT { /* same as ET0700 but with inverted pixel clock */
61                                 clock-frequency = <33264000>;
62                                 hactive = <800>;
63                                 vactive = <480>;
64                                 hback-porch = <88>;
65                                 hsync-len = <128>;
66                                 hfront-porch = <40>;
67                                 vback-porch = <33>;
68                                 vsync-len = <2>;
69                                 vfront-porch = <10>;
70                                 hsync-active = <0>;
71                                 vsync-active = <0>;
72                                 de-active = <1>;
73                                 pixelclk-active = <1>;
74                         };
75                 };
76         };
77
78         lcd: lcd@0 {
79                 compatible = "fsl,lcd";
80                 ipu_id = <0>;
81                 disp_id = <0>;
82                 default_ifmt = "RGB24";
83                 pinctrl-names = "default";
84                 pinctrl-0 = <&pinctrl_disp0_2>;
85                 status = "okay";
86         };
87 };
88
89 &can1 {
90         status = "disabled";
91 };
92
93 &can2 {
94         xceiver-supply = <&reg_3v3>;
95 };
96
97 &ipu2 {
98         status = "disabled";
99 };
100
101 &kpp {
102         status = "disabled";
103 };
104
105 &reg_can_xcvr {
106         status = "disabled";
107 };
108
109 &reg_lcd0_pwr {
110         status = "okay";
111 };
112
113 &reg_lcd1_pwr {
114         status = "okay";
115 };
116
117 &touchscreen {
118         status = "disabled";
119 };