mm: fix exec activate_mm vs TLB shootdown and lazy tlb switching race
[linux/fpc-iii.git] / arch / arm / boot / dts / imx7s-warp.dts
blob07b63f8b7314595980f928e06c68ee8e602a6111
1 /*
2  * Copyright (C) 2016 NXP Semiconductors.
3  * Author: Fabio Estevam <fabio.estevam@nxp.com>
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 as
12  *     published by the Free Software Foundation; either version 2 of the
13  *     License, or (at your option) any later version.
14  *
15  *     This file is distributed in the hope that it will be useful,
16  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
17  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  *     GNU General Public License for more details.
19  *
20  * Or, alternatively,
21  *
22  *  b) Permission is hereby granted, free of charge, to any person
23  *     obtaining a copy of this software and associated documentation
24  *     files (the "Software"), to deal in the Software without
25  *     restriction, including without limitation the rights to use,
26  *     copy, modify, merge, publish, distribute, sublicense, and/or
27  *     sell copies of the Software, and to permit persons to whom the
28  *     Software is furnished to do so, subject to the following
29  *     conditions:
30  *
31  *     The above copyright notice and this permission notice shall be
32  *     included in all copies or substantial portions of the Software.
33  *
34  *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
35  *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
36  *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
37  *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
38  *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
39  *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
40  *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
41  *     OTHER DEALINGS IN THE SOFTWARE.
42  */
44 /dts-v1/;
46 #include <dt-bindings/input/input.h>
47 #include "imx7s.dtsi"
49 / {
50         model = "Warp i.MX7 Board";
51         compatible = "warp,imx7s-warp", "fsl,imx7s";
53         memory {
54                 reg = <0x80000000 0x20000000>;
55         };
57         gpio-keys {
58                 compatible = "gpio-keys";
59                 pinctrl-0 = <&pinctrl_gpio>;
60                 autorepeat;
62                 back {
63                         label = "Back";
64                         gpios = <&gpio7 1 GPIO_ACTIVE_HIGH>;
65                         linux,code = <KEY_BACK>;
66                         wakeup-source;
67                 };
68         };
70         reg_brcm: regulator-brcm {
71                 compatible = "regulator-fixed";
72                 enable-active-high;
73                 gpio = <&gpio5 10 GPIO_ACTIVE_HIGH>;
74                 pinctrl-names = "default";
75                 pinctrl-0 = <&pinctrl_brcm_reg>;
76                 regulator-name = "brcm_reg";
77                 regulator-min-microvolt = <3300000>;
78                 regulator-max-microvolt = <3300000>;
79                 startup-delay-us = <200000>;
80         };
82         reg_bt: regulator-bt {
83                 compatible = "regulator-fixed";
84                 pinctrl-names = "default";
85                 pinctrl-0 = <&pinctrl_bt_reg>;
86                 enable-active-high;
87                 gpio = <&gpio5 17 GPIO_ACTIVE_HIGH>;
88                 regulator-name = "bt_reg";
89                 regulator-min-microvolt = <3300000>;
90                 regulator-max-microvolt = <3300000>;
91                 regulator-always-on;
92         };
94         sound {
95                 compatible = "simple-audio-card";
96                 simple-audio-card,name = "imx7-sgtl5000";
97                 simple-audio-card,format = "i2s";
98                 simple-audio-card,bitclock-master = <&dailink_master>;
99                 simple-audio-card,frame-master = <&dailink_master>;
100                 simple-audio-card,cpu {
101                         sound-dai = <&sai1>;
102                 };
104                 dailink_master: simple-audio-card,codec {
105                         sound-dai = <&codec>;
106                         clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_CLK>;
107                 };
108         };
111 &clks {
112         assigned-clocks = <&clks IMX7D_PLL_AUDIO_POST_DIV>;
113         assigned-clock-rates = <884736000>;
116 &cpu0 {
117         arm-supply = <&sw1a_reg>;
120 &i2c1 {
121         pinctrl-names = "default";
122         pinctrl-0 = <&pinctrl_i2c1>;
123         status = "okay";
125         pmic: pfuze3000@08 {
126                 compatible = "fsl,pfuze3000";
127                 reg = <0x08>;
129                 regulators {
130                         sw1a_reg: sw1a {
131                                 regulator-min-microvolt = <700000>;
132                                 regulator-max-microvolt = <1475000>;
133                                 regulator-boot-on;
134                                 regulator-always-on;
135                                 regulator-ramp-delay = <6250>;
136                         };
138                         /* use sw1c_reg to align with pfuze100/pfuze200 */
139                         sw1c_reg: sw1b {
140                                 regulator-min-microvolt = <700000>;
141                                 regulator-max-microvolt = <1475000>;
142                                 regulator-boot-on;
143                                 regulator-always-on;
144                                 regulator-ramp-delay = <6250>;
145                         };
147                         sw2_reg: sw2 {
148                                 regulator-min-microvolt = <1500000>;
149                                 regulator-max-microvolt = <1850000>;
150                                 regulator-boot-on;
151                                 regulator-always-on;
152                         };
154                         sw3a_reg: sw3 {
155                                 regulator-min-microvolt = <900000>;
156                                 regulator-max-microvolt = <1650000>;
157                                 regulator-boot-on;
158                                 regulator-always-on;
159                         };
161                         swbst_reg: swbst {
162                                 regulator-min-microvolt = <5000000>;
163                                 regulator-max-microvolt = <5150000>;
164                         };
166                         snvs_reg: vsnvs {
167                                 regulator-min-microvolt = <1000000>;
168                                 regulator-max-microvolt = <3000000>;
169                                 regulator-boot-on;
170                                 regulator-always-on;
171                         };
173                         vref_reg: vrefddr {
174                                 regulator-boot-on;
175                                 regulator-always-on;
176                         };
178                         vgen1_reg: vldo1 {
179                                 regulator-min-microvolt = <1800000>;
180                                 regulator-max-microvolt = <3300000>;
181                                 regulator-always-on;
182                         };
184                         vgen2_reg: vldo2 {
185                                 regulator-min-microvolt = <800000>;
186                                 regulator-max-microvolt = <1550000>;
187                         };
189                         vgen3_reg: vccsd {
190                                 regulator-min-microvolt = <2850000>;
191                                 regulator-max-microvolt = <3300000>;
192                                 regulator-always-on;
193                         };
195                         vgen4_reg: v33 {
196                                 regulator-min-microvolt = <2850000>;
197                                 regulator-max-microvolt = <3300000>;
198                                 regulator-always-on;
199                         };
201                         vgen5_reg: vldo3 {
202                                 regulator-min-microvolt = <1800000>;
203                                 regulator-max-microvolt = <3300000>;
204                                 regulator-always-on;
205                         };
207                         vgen6_reg: vldo4 {
208                                 regulator-min-microvolt = <1800000>;
209                                 regulator-max-microvolt = <3300000>;
210                                 regulator-always-on;
211                         };
212                 };
213         };
216 &i2c2 {
217         clock-frequency = <100000>;
218         pinctrl-names = "default";
219         pinctrl-0 = <&pinctrl_i2c2>;
220         status = "okay";
223 &i2c4 {
224         clock-frequency = <100000>;
225         pinctrl-names = "default";
226         pinctrl-0 = <&pinctrl_i2c4>;
227         status = "okay";
229         codec: sgtl5000@0a {
230                 #sound-dai-cells = <0>;
231                 reg = <0x0a>;
232                 compatible = "fsl,sgtl5000";
233                 clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_CLK>;
234                 pinctrl-names = "default";
235                 pinctrl-0 = <&pinctrl_sai1_mclk>;
236                 VDDA-supply = <&vgen4_reg>;
237                 VDDIO-supply = <&vgen4_reg>;
238                 VDDD-supply = <&vgen2_reg>;
239         };
241         mpl3115@60 {
242                 compatible = "fsl,mpl3115";
243                 reg = <0x60>;
244         };
247 &sai1 {
248         pinctrl-names = "default";
249         pinctrl-0 = <&pinctrl_sai1>;
250         assigned-clocks = <&clks IMX7D_SAI1_ROOT_SRC>,
251                           <&clks IMX7D_SAI1_ROOT_CLK>;
252         assigned-clock-parents = <&clks IMX7D_PLL_AUDIO_POST_DIV>;
253         assigned-clock-rates = <0>, <36864000>;
254         status = "okay";
257 &uart1 {
258         pinctrl-names = "default";
259         pinctrl-0 = <&pinctrl_uart1>;
260         assigned-clocks = <&clks IMX7D_UART1_ROOT_SRC>;
261         assigned-clock-parents = <&clks IMX7D_PLL_SYS_MAIN_240M_CLK>;
262         status = "okay";
265 &uart3  {
266         pinctrl-names = "default";
267         pinctrl-0 = <&pinctrl_uart3>;
268         assigned-clocks = <&clks IMX7D_UART3_ROOT_SRC>;
269         assigned-clock-parents = <&clks IMX7D_PLL_SYS_MAIN_240M_CLK>;
270         uart-has-rtscts;
271         status = "okay";
274 &usbotg1 {
275         dr_mode = "peripheral";
276         status = "okay";
279 &usdhc1 {
280         pinctrl-names = "default";
281         pinctrl-0 = <&pinctrl_usdhc1>;
282         bus-width = <4>;
283         keep-power-in-suspend;
284         no-1-8-v;
285         non-removable;
286         vmmc-supply = <&reg_brcm>;
287         status = "okay";
290 &usdhc3 {
291         pinctrl-names = "default", "state_100mhz", "state_200mhz";
292         pinctrl-0 = <&pinctrl_usdhc3>;
293         pinctrl-1 = <&pinctrl_usdhc3_100mhz>;
294         pinctrl-2 = <&pinctrl_usdhc3_200mhz>;
295         assigned-clocks = <&clks IMX7D_USDHC3_ROOT_CLK>;
296         assigned-clock-rates = <400000000>;
297         bus-width = <8>;
298         no-1-8-v;
299         fsl,tuning-step = <2>;
300         non-removable;
301         status = "okay";
304 &wdog1 {
305         pinctrl-names = "default";
306         pinctrl-0 = <&pinctrl_wdog>;
307         fsl,ext-reset-output;
308         status = "okay";
311 &iomuxc {
312         pinctrl_brcm_reg: brcmreggrp {
313                 fsl,pins = <
314                         MX7D_PAD_SD2_WP__GPIO5_IO10     0x14 /* WL_REG_ON */
315                 >;
316         };
318         pinctrl_bt_reg: btreggrp {
319                 fsl,pins = <
320                         MX7D_PAD_SD2_DATA3__GPIO5_IO17  0x14 /* BT_REG_ON */
321                 >;
322         };
324         pinctrl_gpio: gpiogrp {
325                 fsl,pins = <
326                         MX7D_PAD_ENET1_RGMII_RD1__GPIO7_IO1     0x14
327                 >;
328         };
330         pinctrl_i2c1: i2c1grp {
331                 fsl,pins = <
332                         MX7D_PAD_I2C1_SDA__I2C1_SDA             0x4000007f
333                         MX7D_PAD_I2C1_SCL__I2C1_SCL             0x4000007f
334                 >;
335         };
337         pinctrl_i2c2: i2c2grp {
338                 fsl,pins = <
339                         MX7D_PAD_I2C2_SDA__I2C2_SDA     0x4000007f
340                         MX7D_PAD_I2C2_SCL__I2C2_SCL     0x4000007f
341                 >;
342         };
344         pinctrl_i2c4: i2c4grp {
345                 fsl,pins = <
346                         MX7D_PAD_I2C4_SCL__I2C4_SCL     0x4000007f
347                         MX7D_PAD_I2C4_SDA__I2C4_SDA     0x4000007f
348                 >;
349         };
351         pinctrl_sai1: sai1grp {
352                 fsl,pins = <
353                         MX7D_PAD_SAI1_RX_DATA__SAI1_RX_DATA0    0x1f
354                         MX7D_PAD_SAI1_TX_BCLK__SAI1_TX_BCLK     0x1f
355                         MX7D_PAD_SAI1_TX_SYNC__SAI1_TX_SYNC     0x1f
356                         MX7D_PAD_SAI1_TX_DATA__SAI1_TX_DATA0    0x30
357                 >;
358         };
360         pinctrl_sai1_mclk: sai1mclkgrp {
361                 fsl,pins = <
362                         MX7D_PAD_SAI1_MCLK__SAI1_MCLK           0x1f
363                 >;
364         };
366         pinctrl_uart1: uart1grp {
367                 fsl,pins = <
368                         MX7D_PAD_UART1_TX_DATA__UART1_DCE_TX    0x79
369                         MX7D_PAD_UART1_RX_DATA__UART1_DCE_RX    0x79
370                 >;
371         };
373         pinctrl_uart3: uart3grp {
374                 fsl,pins = <
375                         MX7D_PAD_UART3_TX_DATA__UART3_DCE_TX    0x79
376                         MX7D_PAD_UART3_RX_DATA__UART3_DCE_RX    0x79
377                         MX7D_PAD_UART3_CTS_B__UART3_DCE_CTS     0x79
378                         MX7D_PAD_UART3_RTS_B__UART3_DCE_RTS     0x79
379                 >;
380         };
382         pinctrl_usdhc1: usdhc1grp {
383                 fsl,pins = <
384                         MX7D_PAD_SD1_CMD__SD1_CMD       0x59
385                         MX7D_PAD_SD1_CLK__SD1_CLK       0x19
386                         MX7D_PAD_SD1_DATA0__SD1_DATA0   0x59
387                         MX7D_PAD_SD1_DATA1__SD1_DATA1   0x59
388                         MX7D_PAD_SD1_DATA2__SD1_DATA2   0x59
389                         MX7D_PAD_SD1_DATA3__SD1_DATA3   0x59
390                         MX7D_PAD_SD2_RESET_B__GPIO5_IO11 0x14 /* WL_HOST_WAKE */
391                 >;
392         };
394         pinctrl_usdhc3: usdhc3grp {
395                 fsl,pins = <
396                         MX7D_PAD_SD3_CMD__SD3_CMD               0x59
397                         MX7D_PAD_SD3_CLK__SD3_CLK               0x19
398                         MX7D_PAD_SD3_DATA0__SD3_DATA0           0x59
399                         MX7D_PAD_SD3_DATA1__SD3_DATA1           0x59
400                         MX7D_PAD_SD3_DATA2__SD3_DATA2           0x59
401                         MX7D_PAD_SD3_DATA3__SD3_DATA3           0x59
402                         MX7D_PAD_SD3_DATA4__SD3_DATA4           0x59
403                         MX7D_PAD_SD3_DATA5__SD3_DATA5           0x59
404                         MX7D_PAD_SD3_DATA6__SD3_DATA6           0x59
405                         MX7D_PAD_SD3_DATA7__SD3_DATA7           0x59
406                         MX7D_PAD_SD3_RESET_B__SD3_RESET_B       0x19
407                 >;
408         };
410         pinctrl_usdhc3_100mhz: usdhc3grp_100mhz {
411                 fsl,pins = <
412                         MX7D_PAD_SD3_CMD__SD3_CMD               0x5a
413                         MX7D_PAD_SD3_CLK__SD3_CLK               0x1a
414                         MX7D_PAD_SD3_DATA0__SD3_DATA0           0x5a
415                         MX7D_PAD_SD3_DATA1__SD3_DATA1           0x5a
416                         MX7D_PAD_SD3_DATA2__SD3_DATA2           0x5a
417                         MX7D_PAD_SD3_DATA3__SD3_DATA3           0x5a
418                         MX7D_PAD_SD3_DATA4__SD3_DATA4           0x5a
419                         MX7D_PAD_SD3_DATA5__SD3_DATA5           0x5a
420                         MX7D_PAD_SD3_DATA6__SD3_DATA6           0x5a
421                         MX7D_PAD_SD3_DATA7__SD3_DATA7           0x5a
422                         MX7D_PAD_SD3_RESET_B__SD3_RESET_B       0x1a
423                 >;
424         };
426         pinctrl_usdhc3_200mhz: usdhc3grp_200mhz {
427                 fsl,pins = <
428                         MX7D_PAD_SD3_CMD__SD3_CMD               0x5b
429                         MX7D_PAD_SD3_CLK__SD3_CLK               0x1b
430                         MX7D_PAD_SD3_DATA0__SD3_DATA0           0x5b
431                         MX7D_PAD_SD3_DATA1__SD3_DATA1           0x5b
432                         MX7D_PAD_SD3_DATA2__SD3_DATA2           0x5b
433                         MX7D_PAD_SD3_DATA3__SD3_DATA3           0x5b
434                         MX7D_PAD_SD3_DATA4__SD3_DATA4           0x5b
435                         MX7D_PAD_SD3_DATA5__SD3_DATA5           0x5b
436                         MX7D_PAD_SD3_DATA6__SD3_DATA6           0x5b
437                         MX7D_PAD_SD3_DATA7__SD3_DATA7           0x5b
438                         MX7D_PAD_SD3_RESET_B__SD3_RESET_B       0x1b
439                 >;
440         };
443 &iomuxc_lpsr {
444         pinctrl_wdog: wdoggrp {
445                 fsl,pins = <
446                         MX7D_PAD_LPSR_GPIO1_IO00__WDOG1_WDOG_B  0x74
447                 >;
448         };