mm: fix exec activate_mm vs TLB shootdown and lazy tlb switching race
[linux/fpc-iii.git] / arch / arm / boot / dts / imx6ul-geam.dts
blob571eea7f1c6b47a962d66142adf5e954b5ac604d
1 /*
2  * Copyright (C) 2016 Amarula Solutions B.V.
3  * Copyright (C) 2016 Engicam S.r.l.
4  *
5  * This file is dual-licensed: you can use it either under the terms
6  * of the GPL or the X11 license, at your option. Note that this dual
7  * licensing only applies to this file, and not this project as a
8  * whole.
9  *
10  *  a) This file is free software; you can redistribute it and/or
11  *     modify it under the terms of the GNU General Public License
12  *     version 2 as published by the Free Software Foundation.
13  *
14  *     This file is distributed in the hope that it will be useful,
15  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
16  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  *     GNU General Public License for more details.
18  *
19  * Or, alternatively,
20  *
21  *  b) Permission is hereby granted, free of charge, to any person
22  *     obtaining a copy of this software and associated documentation
23  *     files (the "Software"), to deal in the Software without
24  *     restriction, including without limitation the rights to use,
25  *     copy, modify, merge, publish, distribute, sublicense, and/or
26  *     sell copies of the Software, and to permit persons to whom the
27  *     Software is furnished to do so, subject to the following
28  *     conditions:
29  *
30  *     The above copyright notice and this permission notice shall be
31  *     included in all copies or substantial portions of the Software.
32  *
33  *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34  *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35  *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36  *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37  *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38  *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39  *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40  *     OTHER DEALINGS IN THE SOFTWARE.
41  */
43 /dts-v1/;
45 #include <dt-bindings/gpio/gpio.h>
46 #include <dt-bindings/input/input.h>
47 #include "imx6ul.dtsi"
49 / {
50         model = "Engicam GEAM6UL Starter Kit";
51         compatible = "engicam,imx6ul-geam", "fsl,imx6ul";
53         memory {
54                 reg = <0x80000000 0x08000000>;
55         };
57         backlight {
58                 compatible = "pwm-backlight";
59                 pwms = <&pwm8 0 100000>;
60                 brightness-levels = < 0  1  2  3  4  5  6  7  8  9
61                                      10 11 12 13 14 15 16 17 18 19
62                                      20 21 22 23 24 25 26 27 28 29
63                                      30 31 32 33 34 35 36 37 38 39
64                                      40 41 42 43 44 45 46 47 48 49
65                                      50 51 52 53 54 55 56 57 58 59
66                                      60 61 62 63 64 65 66 67 68 69
67                                      70 71 72 73 74 75 76 77 78 79
68                                      80 81 82 83 84 85 86 87 88 89
69                                      90 91 92 93 94 95 96 97 98 99
70                                     100>;
71                 default-brightness-level = <100>;
72         };
74         chosen {
75                 stdout-path = &uart1;
76         };
78         reg_1p8v: regulator-1p8v {
79                 compatible = "regulator-fixed";
80                 regulator-name = "1P8V";
81                 regulator-min-microvolt = <1800000>;
82                 regulator-max-microvolt = <1800000>;
83                 regulator-always-on;
84                 regulator-boot-on;
85         };
87         reg_3p3v: regulator-3p3v {
88                 compatible = "regulator-fixed";
89                 regulator-name = "3P3V";
90                 regulator-min-microvolt = <3300000>;
91                 regulator-max-microvolt = <3300000>;
92                 regulator-always-on;
93                 regulator-boot-on;
94         };
96         sound {
97                 compatible = "simple-audio-card";
98                 simple-audio-card,name = "imx6ul-geam-sgtl5000";
99                 simple-audio-card,format = "i2s";
100                 simple-audio-card,bitclock-master = <&dailink_master>;
101                 simple-audio-card,frame-master = <&dailink_master>;
102                 simple-audio-card,widgets =
103                         "Microphone", "Mic Jack",
104                         "Line", "Line In",
105                         "Line", "Line Out",
106                         "Headphone", "Headphone Jack";
107                 simple-audio-card,routing =
108                         "MIC_IN", "Mic Jack",
109                         "Mic Jack", "Mic Bias",
110                         "Headphone Jack", "HP_OUT";
112                 simple-audio-card,cpu {
113                         sound-dai = <&sai2>;
114                 };
116                 dailink_master: simple-audio-card,codec {
117                         sound-dai = <&sgtl5000>;
118                         clocks = <&clks IMX6UL_CLK_SAI2>;
119                 };
120         };
123 &can1 {
124         pinctrl-names = "default";
125         pinctrl-0 = <&pinctrl_flexcan1>;
126         xceiver-supply = <&reg_3p3v>;
127         status = "okay";
130 &can2 {
131         pinctrl-names = "default";
132         pinctrl-0 = <&pinctrl_flexcan2>;
133         xceiver-supply = <&reg_3p3v>;
134         status = "okay";
137 &fec1 {
138         pinctrl-names = "default";
139         pinctrl-0 = <&pinctrl_enet1>;
140         phy-mode = "rmii";
141         phy-handle = <&ethphy0>;
142         status = "okay";
145 &fec2 {
146         pinctrl-names = "default";
147         pinctrl-0 = <&pinctrl_enet2>;
148         phy-mode = "rmii";
149         phy-handle = <&ethphy1>;
150         status = "okay";
152         mdio {
153                 #address-cells = <1>;
154                 #size-cells = <0>;
156                 ethphy0: ethernet-phy@0 {
157                         compatible = "ethernet-phy-ieee802.3-c22";
158                         reg = <0>;
159                 };
161                 ethphy1: ethernet-phy@1 {
162                         compatible = "ethernet-phy-ieee802.3-c22";
163                         reg = <1>;
164                 };
165         };
168 &gpmi {
169         pinctrl-names = "default";
170         pinctrl-0 = <&pinctrl_gpmi_nand>;
171         nand-on-flash-bbt;
172         status = "okay";
175 &i2c1 {
176         clock-frequency = <100000>;
177         pinctrl-names = "default";
178         pinctrl-0 = <&pinctrl_i2c1>;
179         status = "okay";
181         sgtl5000: codec@a {
182                 compatible = "fsl,sgtl5000";
183                 reg = <0x0a>;
184                 clocks = <&clks IMX6UL_CLK_OSC>;
185                 clock-names = "mclk";
186                 VDDA-supply = <&reg_3p3v>;
187                 VDDIO-supply = <&reg_3p3v>;
188                 VDDD-supply = <&reg_1p8v>;
189         };
192 &i2c2 {
193         clock_frequency = <100000>;
194         pinctrl-names = "default";
195         pinctrl-0 = <&pinctrl_i2c2>;
196         status = "okay";
199 &lcdif {
200         pinctrl-names = "default";
201         pinctrl-0 = <&pinctrl_lcdif_dat
202                      &pinctrl_lcdif_ctrl>;
203         display = <&display0>;
204         status = "okay";
206         display0: display {
207                 bits-per-pixel = <16>;
208                 bus-width = <18>;
210                 display-timings {
211                         native-mode = <&timing0>;
212                         timing0: timing0 {
213                                 clock-frequency = <28000000>;
214                                 hactive = <800>;
215                                 vactive = <480>;
216                                 hfront-porch = <30>;
217                                 hback-porch = <30>;
218                                 hsync-len = <64>;
219                                 vback-porch = <5>;
220                                 vfront-porch = <5>;
221                                 vsync-len = <20>;
222                                 hsync-active = <0>;
223                                 vsync-active = <0>;
224                                 de-active = <1>;
225                                 pixelclk-active = <0>;
226                         };
227                 };
228         };
231 &pwm8 {
232         pinctrl-names = "default";
233         pinctrl-0 = <&pinctrl_pwm8>;
234         status = "okay";
237 &tsc {
238         pinctrl-names = "default";
239         pinctrl-0 = <&pinctrl_tsc>;
240         xnur-gpio = <&gpio1 3 GPIO_ACTIVE_LOW>;
243 &sai2 {
244         pinctrl-names = "default";
245         pinctrl-0 = <&pinctrl_sai2>;
246         status = "okay";
249 &tsc {
250         measure-delay-time = <0x1ffff>;
251         pre-charge-time = <0x1fff>;
252         status = "okay";
255 &uart1 {
256         pinctrl-names = "default";
257         pinctrl-0 = <&pinctrl_uart1>;
258         status = "okay";
261 &uart2 {
262         pinctrl-names = "default";
263         pinctrl-0 = <&pinctrl_uart2>;
264         status = "okay";
267 &usbotg1 {
268         dr_mode = "peripheral";
269         status = "okay";
272 &usbotg2 {
273         dr_mode = "host";
274         status = "okay";
277 &usdhc1 {
278         pinctrl-names = "default", "state_100mhz", "state_200mhz";
279         pinctrl-0 = <&pinctrl_usdhc1>;
280         pinctrl-1 = <&pinctrl_usdhc1_100mhz>;
281         pinctrl-2 = <&pinctrl_usdhc1_200mhz>;
282         bus-width = <4>;
283         cd-gpios = <&gpio1 19 GPIO_ACTIVE_LOW>;
284         no-1-8-v;
285         status = "okay";
288 &iomuxc {
289         pinctrl_enet1: enet1grp {
290                 fsl,pins = <
291                         MX6UL_PAD_ENET1_RX_EN__ENET1_RX_EN      0x1b0b0
292                         MX6UL_PAD_ENET1_RX_DATA0__ENET1_RDATA00 0x1b0b0
293                         MX6UL_PAD_ENET1_RX_DATA1__ENET1_RDATA01 0x1b0b0
294                         MX6UL_PAD_ENET1_TX_EN__ENET1_TX_EN      0x1b0b0
295                         MX6UL_PAD_ENET1_TX_DATA0__ENET1_TDATA00 0x1b0b0
296                         MX6UL_PAD_ENET1_TX_DATA1__ENET1_TDATA01 0x1b0b0
297                         MX6UL_PAD_ENET1_TX_CLK__ENET1_REF_CLK1  0x4001b031
298                 >;
299         };
301         pinctrl_enet2: enet2grp {
302                 fsl,pins = <
303                         MX6UL_PAD_GPIO1_IO07__ENET2_MDC         0x1b0b0
304                         MX6UL_PAD_GPIO1_IO06__ENET2_MDIO        0x1b0b0
305                         MX6UL_PAD_ENET2_RX_EN__ENET2_RX_EN      0x1b0b0
306                         MX6UL_PAD_ENET2_RX_ER__GPIO2_IO15       0x1b0b0         /* ENET_nRST */
307                         MX6UL_PAD_ENET2_RX_DATA0__ENET2_RDATA00 0x1b0b0
308                         MX6UL_PAD_ENET2_RX_DATA1__ENET2_RDATA01 0x1b0b0
309                         MX6UL_PAD_ENET2_TX_EN__ENET2_TX_EN      0x1b0b0
310                         MX6UL_PAD_ENET2_TX_DATA0__ENET2_TDATA00 0x1b0b0
311                         MX6UL_PAD_ENET2_TX_DATA1__ENET2_TDATA01 0x1b0b0
312                         MX6UL_PAD_GPIO1_IO05__ENET2_REF_CLK2    0x4001b031
313                 >;
314         };
316         pinctrl_flexcan1: flexcan1grp {
317                 fsl,pins = <
318                         MX6UL_PAD_UART3_RTS_B__FLEXCAN1_RX      0x1b020
319                         MX6UL_PAD_UART3_CTS_B__FLEXCAN1_TX      0x1b020
320                 >;
321         };
323         pinctrl_flexcan2: flexcan2grp {
324                 fsl,pins = <
325                         MX6UL_PAD_UART2_RTS_B__FLEXCAN2_RX      0x1b020
326                         MX6UL_PAD_UART2_CTS_B__FLEXCAN2_TX      0x1b020
327                 >;
328         };
330         pinctrl_gpmi_nand: gpmi-nand {
331                 fsl,pins = <
332                         MX6UL_PAD_NAND_CLE__RAWNAND_CLE         0xb0b1
333                         MX6UL_PAD_NAND_ALE__RAWNAND_ALE         0xb0b1
334                         MX6UL_PAD_NAND_WP_B__RAWNAND_WP_B       0xb0b1
335                         MX6UL_PAD_NAND_READY_B__RAWNAND_READY_B 0xb000
336                         MX6UL_PAD_NAND_CE0_B__RAWNAND_CE0_B     0xb0b1
337                         MX6UL_PAD_NAND_RE_B__RAWNAND_RE_B       0xb0b1
338                         MX6UL_PAD_NAND_WE_B__RAWNAND_WE_B       0xb0b1
339                         MX6UL_PAD_NAND_DATA00__RAWNAND_DATA00   0xb0b1
340                         MX6UL_PAD_NAND_DATA01__RAWNAND_DATA01   0xb0b1
341                         MX6UL_PAD_NAND_DATA02__RAWNAND_DATA02   0xb0b1
342                         MX6UL_PAD_NAND_DATA03__RAWNAND_DATA03   0xb0b1
343                         MX6UL_PAD_NAND_DATA04__RAWNAND_DATA04   0xb0b1
344                         MX6UL_PAD_NAND_DATA05__RAWNAND_DATA05   0xb0b1
345                         MX6UL_PAD_NAND_DATA06__RAWNAND_DATA06   0xb0b1
346                         MX6UL_PAD_NAND_DATA07__RAWNAND_DATA07   0xb0b1
347                 >;
348         };
350         pinctrl_i2c1: i2c1grp {
351                 fsl,pins = <
352                         MX6UL_PAD_UART4_TX_DATA__I2C1_SCL 0x4001b8b0
353                         MX6UL_PAD_UART4_RX_DATA__I2C1_SDA 0x4001b8b0
354                 >;
355         };
357         pinctrl_i2c2: i2c2grp {
358                         fsl,pins = <
359                         MX6UL_PAD_UART5_TX_DATA__I2C2_SCL 0x4001b8b0
360                         MX6UL_PAD_UART5_RX_DATA__I2C2_SDA 0x4001b8b0
361                 >;
362         };
364         pinctrl_lcdif_ctrl: lcdifctrlgrp {
365                 fsl,pins = <
366                         MX6UL_PAD_LCD_CLK__LCDIF_CLK        0x79
367                         MX6UL_PAD_LCD_ENABLE__LCDIF_ENABLE  0x79
368                         MX6UL_PAD_LCD_HSYNC__LCDIF_HSYNC    0x79
369                         MX6UL_PAD_LCD_VSYNC__LCDIF_VSYNC    0x79
370                 >;
371         };
373         pinctrl_lcdif_dat: lcdifdatgrp {
374                 fsl,pins = <
375                         MX6UL_PAD_LCD_DATA00__LCDIF_DATA00  0x79
376                         MX6UL_PAD_LCD_DATA01__LCDIF_DATA01  0x79
377                         MX6UL_PAD_LCD_DATA02__LCDIF_DATA02  0x79
378                         MX6UL_PAD_LCD_DATA03__LCDIF_DATA03  0x79
379                         MX6UL_PAD_LCD_DATA04__LCDIF_DATA04  0x79
380                         MX6UL_PAD_LCD_DATA05__LCDIF_DATA05  0x79
381                         MX6UL_PAD_LCD_DATA06__LCDIF_DATA06  0x79
382                         MX6UL_PAD_LCD_DATA07__LCDIF_DATA07  0x79
383                         MX6UL_PAD_LCD_DATA08__LCDIF_DATA08  0x79
384                         MX6UL_PAD_LCD_DATA09__LCDIF_DATA09  0x79
385                         MX6UL_PAD_LCD_DATA10__LCDIF_DATA10  0x79
386                         MX6UL_PAD_LCD_DATA11__LCDIF_DATA11  0x79
387                         MX6UL_PAD_LCD_DATA12__LCDIF_DATA12  0x79
388                         MX6UL_PAD_LCD_DATA13__LCDIF_DATA13  0x79
389                         MX6UL_PAD_LCD_DATA14__LCDIF_DATA14  0x79
390                         MX6UL_PAD_LCD_DATA15__LCDIF_DATA15  0x79
391                         MX6UL_PAD_LCD_DATA16__LCDIF_DATA16  0x79
392                         MX6UL_PAD_LCD_DATA17__LCDIF_DATA17  0x79
393                 >;
394         };
396         pinctrl_pwm8: pwm8grp {
397                 fsl,pins = <
398                         MX6UL_PAD_ENET1_RX_ER__PWM8_OUT   0x110b0
399                 >;
400         };
402         pinctrl_tsc: tscgrp {
403                 fsl,pin = <
404                         MX6UL_PAD_GPIO1_IO01__GPIO1_IO01        0xb0
405                         MX6UL_PAD_GPIO1_IO02__GPIO1_IO02        0xb0
406                         MX6UL_PAD_GPIO1_IO03__GPIO1_IO03        0xb0
407                         MX6UL_PAD_GPIO1_IO04__GPIO1_IO04        0xb0
408                 >;
409         };
411         pinctrl_sai2: sai2grp {
412                 fsl,pins = <
413                         MX6UL_PAD_JTAG_TCK__SAI2_RX_DATA        0x130b0
414                         MX6UL_PAD_JTAG_TMS__CCM_CLKO1           0x4001b031
415                         MX6UL_PAD_JTAG_TDI__SAI2_TX_BCLK        0x17088
416                         MX6UL_PAD_JTAG_TDO__SAI2_TX_SYNC        0x17088
417                         MX6UL_PAD_JTAG_TRST_B__SAI2_TX_DATA     0x120b0
418                 >;
419         };
421         pinctrl_uart1: uart1grp {
422                 fsl,pins = <
423                         MX6UL_PAD_UART1_TX_DATA__UART1_DCE_TX 0x1b0b1
424                         MX6UL_PAD_UART1_RX_DATA__UART1_DCE_RX 0x1b0b1
425                 >;
426         };
428         pinctrl_uart2: uart2grp {
429                 fsl,pins = <
430                         MX6UL_PAD_UART2_TX_DATA__UART2_DCE_TX   0x1b0b1
431                         MX6UL_PAD_UART2_RX_DATA__UART2_DCE_RX   0x1b0b1
432                         MX6UL_PAD_UART3_RX_DATA__UART2_DCE_RTS  0x1b0b1
433                         MX6UL_PAD_UART3_TX_DATA__UART2_DCE_CTS  0x1b0b1
434                 >;
435         };
437         pinctrl_usdhc1: usdhc1grp {
438                 fsl,pins = <
439                         MX6UL_PAD_SD1_CMD__USDHC1_CMD     0x17059
440                         MX6UL_PAD_SD1_CLK__USDHC1_CLK     0x10059
441                         MX6UL_PAD_SD1_DATA0__USDHC1_DATA0 0x17059
442                         MX6UL_PAD_SD1_DATA1__USDHC1_DATA1 0x17059
443                         MX6UL_PAD_SD1_DATA2__USDHC1_DATA2 0x17059
444                         MX6UL_PAD_SD1_DATA3__USDHC1_DATA3 0x17059
445                 >;
446         };
448         pinctrl_usdhc1_100mhz: usdhc1grp100mhz {
449                 fsl,pins = <
450                         MX6UL_PAD_SD1_CMD__USDHC1_CMD     0x170b9
451                         MX6UL_PAD_SD1_CLK__USDHC1_CLK     0x100b9
452                         MX6UL_PAD_SD1_DATA0__USDHC1_DATA0 0x170b9
453                         MX6UL_PAD_SD1_DATA1__USDHC1_DATA1 0x170b9
454                         MX6UL_PAD_SD1_DATA2__USDHC1_DATA2 0x170b9
455                         MX6UL_PAD_SD1_DATA3__USDHC1_DATA3 0x170b9
456                 >;
457         };
459         pinctrl_usdhc1_200mhz: usdhc1grp200mhz {
460                 fsl,pins = <
461                         MX6UL_PAD_SD1_CMD__USDHC1_CMD     0x170f9
462                         MX6UL_PAD_SD1_CLK__USDHC1_CLK     0x100f9
463                         MX6UL_PAD_SD1_DATA0__USDHC1_DATA0 0x170f9
464                         MX6UL_PAD_SD1_DATA1__USDHC1_DATA1 0x170f9
465                         MX6UL_PAD_SD1_DATA2__USDHC1_DATA2 0x170f9
466                         MX6UL_PAD_SD1_DATA3__USDHC1_DATA3 0x170f9
467                 >;
468         };
470         pinctrl_usdhc2: usdhc2grp {
471                 fsl,pins = <
472                         MX6UL_PAD_CSI_VSYNC__USDHC2_CLK     0x17070
473                         MX6UL_PAD_CSI_HSYNC__USDHC2_CMD     0x10070
474                         MX6UL_PAD_CSI_DATA00__USDHC2_DATA0  0x17070
475                         MX6UL_PAD_CSI_DATA01__USDHC2_DATA1  0x17070
476                         MX6UL_PAD_CSI_DATA02__USDHC2_DATA2  0x17070
477                         MX6UL_PAD_CSI_DATA03__USDHC2_DATA3  0x17070
478                 >;
479         };