]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - board/merica/imx6q-rsb4411-a1/patches/kernel/0001_GPIO_keys_and_WUXGA_diplay.patch
13f9fb91a3f6220a7736f1dc34327a22591ab5bd
[coffee/buildroot.git] / board / merica / imx6q-rsb4411-a1 / patches / kernel / 0001_GPIO_keys_and_WUXGA_diplay.patch
1 diff --git a/arch/arm/boot/dts/imx6q-rsb4411-a1.dts b/arch/arm/boot/dts/imx6q-rsb4411-a1.dts
2 index 777c654f4..31e63f5dc 100755
3 --- a/arch/arm/boot/dts/imx6q-rsb4411-a1.dts
4 +++ b/arch/arm/boot/dts/imx6q-rsb4411-a1.dts
5 @@ -24,7 +24,7 @@
6                 board-type = "RSB-4411 A1";
7                 board-cpu = "DualQuad";
8         };
9 -       
10 +
11         regulators {
12                  reg_usb_otg_vbus: usb_otg_vbus {
13                          compatible = "regulator-fixed";
14 @@ -41,6 +41,132 @@
15                         mmc0 = &usdhc4;
16                 };
17  
18 +    gpio-keys {
19 +        compatible = "gpio-keys";
20 +        #address-cells = <1>;
21 +        #size-cells = <0>;
22 +        label = "gpio-keys";
23 +        gpio01 {
24 +            label = "gpio01";
25 +            gpios = <&gpio1 27 GPIO_ACTIVE_LOW>;
26 +            linux,code = <BTN_TRIGGER_HAPPY1>;
27 +            gpio-key,wakeup;
28 +        };
29 +        gpio02 {
30 +            label = "gpio02";
31 +            gpios = <&gpio1 29 GPIO_ACTIVE_LOW>;
32 +            linux,code = <BTN_TRIGGER_HAPPY2>;
33 +            gpio-key,wakeup;
34 +        };
35 +        gpio03 {
36 +            label = "gpio03";
37 +            gpios = <&gpio1 25 GPIO_ACTIVE_LOW>;
38 +            linux,code = <BTN_TRIGGER_HAPPY3>;
39 +            gpio-key,wakeup;
40 +        };
41 +        gpio04 {
42 +            label = "gpio04";
43 +            gpios = <&gpio1 30 GPIO_ACTIVE_LOW>;
44 +            linux,code = <BTN_TRIGGER_HAPPY4>;
45 +            gpio-key,wakeup;
46 +        };
47 +        gpio05 {
48 +            label = "gpio05";
49 +            gpios = <&gpio6 31 GPIO_ACTIVE_LOW>;
50 +            linux,code = <BTN_TRIGGER_HAPPY5>;
51 +            gpio-key,wakeup;
52 +        };
53 +        gpio06 {
54 +            label = "gpio06";
55 +            gpios = <&gpio3 30 GPIO_ACTIVE_LOW>;
56 +            linux,code = <BTN_TRIGGER_HAPPY6>;
57 +            gpio-key,wakeup;
58 +        };
59 +        gpio07 {
60 +            label = "gpio07";
61 +            gpios = <&gpio3 31 GPIO_ACTIVE_LOW>;
62 +            linux,code = <BTN_TRIGGER_HAPPY7>;
63 +            gpio-key,wakeup;
64 +        };
65 +        gpio08 {
66 +            label = "gpio08";
67 +            gpios = <&gpio3 21 GPIO_ACTIVE_LOW>;
68 +            linux,code = <BTN_TRIGGER_HAPPY8>;
69 +            gpio-key,wakeup;
70 +        };
71 +        gpio09 {
72 +            label = "gpio09";
73 +            gpios = <&gpio5 2 GPIO_ACTIVE_LOW>;
74 +            linux,code = <BTN_TRIGGER_HAPPY9>;
75 +            gpio-key,wakeup;
76 +        };
77 +        gpio10 {
78 +            label = "gpio10";
79 +            gpios = <&gpio3 20 GPIO_ACTIVE_LOW>;
80 +            linux,code = <BTN_TRIGGER_HAPPY10>;
81 +            gpio-key,wakeup;
82 +        };
83 +        gpio11 {
84 +            label = "gpio11";
85 +            gpios = <&gpio3 23 GPIO_ACTIVE_LOW>;
86 +            linux,code = <BTN_TRIGGER_HAPPY11>;
87 +            gpio-key,wakeup;
88 +        };
89 +        gpio12 {
90 +            label = "gpio12";
91 +            gpios = <&gpio6 11 GPIO_ACTIVE_LOW>;
92 +            linux,code = <BTN_TRIGGER_HAPPY12>;
93 +            gpio-key,wakeup;
94 +        };
95 +        gpio13 {
96 +            label = "gpio13";
97 +            gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
98 +            linux,code = <BTN_TRIGGER_HAPPY13>;
99 +            gpio-key,wakeup;
100 +        };
101 +        gpio14 {
102 +            label = "gpio14";
103 +            gpios = <&gpio6 9 GPIO_ACTIVE_LOW>;
104 +            linux,code = <BTN_TRIGGER_HAPPY14>;
105 +            gpio-key,wakeup;
106 +        };
107 +        gpio15 {
108 +            label = "gpio15";
109 +            gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
110 +            linux,code = <BTN_TRIGGER_HAPPY15>;
111 +            gpio-key,wakeup;
112 +        };
113 +        gpio16 {
114 +            label = "gpio16";
115 +            gpios = <&gpio6 16 GPIO_ACTIVE_LOW>;
116 +            linux,code = <BTN_TRIGGER_HAPPY16>;
117 +            gpio-key,wakeup;
118 +        };
119 +        gpio17 {
120 +            label = "gpio17";
121 +            gpios = <&gpio6 7 GPIO_ACTIVE_LOW>;
122 +            linux,code = <BTN_TRIGGER_HAPPY17>;
123 +            gpio-key,wakeup;
124 +        };
125 +        gpio18 {
126 +            label = "gpio18";
127 +            gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
128 +            linux,code = <BTN_TRIGGER_HAPPY18>;
129 +            gpio-key,wakeup;
130 +        };
131 +        gpio19 {
132 +            label = "gpio19";
133 +            gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
134 +            linux,code = <BTN_TRIGGER_HAPPY19>;
135 +            gpio-key,wakeup;
136 +        };
137 +        gpio20 {
138 +            label = "gpio20";
139 +            gpios = <&gpio6 8 GPIO_ACTIVE_LOW>;
140 +            linux,code = <BTN_TRIGGER_HAPPY20>;
141 +            gpio-key,wakeup;
142 +        };
143 +    };
144  
145  };
146  
147 @@ -113,7 +239,7 @@
148                 wdt-ping = <&gpio1 9 0>;
149                 reg = <0x29>;
150         };
151 -       
152 +
153         ov5640_mipi: ov5640_mipi@3c {
154                 compatible = "ovti,ov564x_mipi";
155                 reg = <0x3c>;
156 @@ -333,6 +459,81 @@
157  
158  &ldb {
159         status = "okay";
160 +       split-mode; /* dual-channel setting */
161 +
162 +       lvds-channel@0 {
163 +               fsl,data-mapping = "spwg";
164 +               fsl,data-width = <24>;
165 +               crtc = "ipu2-di0";
166 +               primary;
167 +               status = "okay";
168 +
169 +               display-timings {
170 +                       native-mode = <&timingauo>;
171 +
172 +            timingauo: b101uan021 {
173 +                               clock-frequency = <170000000>;
174 +                               hactive = <1920>;
175 +                               vactive = <1200>;
176 +                               hback-porch = <0>;
177 +                               hfront-porch = <0>;
178 +                               vback-porch = <0>;
179 +                               vfront-porch = <0>;
180 +                               hsync-len = <138>;
181 +                               vsync-len = <12>;
182 +            };
183 +
184 +               };
185 +       };
186 +
187 +       lvds-channel@1 {
188 +               fsl,data-mapping = "spwg";
189 +               fsl,data-width = <24>;
190 +               crtc = "ipu1-di1";
191 +               /* crtc = "ipu1-di0"; */ /* dual-channel setting */
192 +               status = "okay";
193 +/*
194 +               display-timings {
195 +                       native-mode = <&timing01>;
196 +                       timing01: g070vw01v0 {
197 +                               clock-frequency = <29500000>;
198 +                               hactive = <800>;
199 +                               vactive = <480>;
200 +                               hback-porch = <96>;
201 +                               hfront-porch = <24>;
202 +                               vback-porch = <3>;
203 +                               vfront-porch = <10>;
204 +                               hsync-len = <72>;
205 +                               vsync-len = <7>;
206 +                       };
207 +
208 +                       //SI Test panel
209 +                       timing11: g150xgel04 {
210 +                               clock-frequency = <63500000>;
211 +                               hactive = <1024>;
212 +                               vactive = <768>;
213 +                               hback-porch = <152>;
214 +                               hfront-porch = <48>;
215 +                               vback-porch = <3>;
216 +                               vfront-porch = <23>;
217 +                               hsync-len = <104>;
218 +                               vsync-len = <4>;
219 +                       };
220 +
221 +                       timing21:g150xgel05 {
222 +                               clock-frequency = <65000000>;
223 +                               hactive = <1024>;
224 +                               vactive = <768>;
225 +                               hback-porch = <220>;
226 +                               hfront-porch = <40>;
227 +                               vback-porch = <21>;
228 +                               vfront-porch = <7>;
229 +                               hsync-len = <60>;
230 +                               vsync-len = <10>;
231 +                       };
232 +               };
233 +*/
234 +       };
235  };
236  
237  &mxcfb1 {