2 * Copyright (C) 2016 NXP Semiconductors.
3 * Author: Fabio Estevam <fabio.estevam@nxp.com>
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
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.
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.
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
31 * The above copyright notice and this permission notice shall be
32 * included in all copies or substantial portions of the Software.
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.
46 #include <dt-bindings/input/input.h>
50 model = "Warp i.MX7 Board";
51 compatible = "warp,imx7s-warp", "fsl,imx7s";
54 reg = <0x80000000 0x20000000>;
58 compatible = "gpio-keys";
59 pinctrl-0 = <&pinctrl_gpio>;
64 gpios = <&gpio7 1 GPIO_ACTIVE_HIGH>;
65 linux,code = <KEY_BACK>;
70 reg_brcm: regulator-brcm {
71 compatible = "regulator-fixed";
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>;
82 reg_bt: regulator-bt {
83 compatible = "regulator-fixed";
84 pinctrl-names = "default";
85 pinctrl-0 = <&pinctrl_bt_reg>;
87 gpio = <&gpio5 17 GPIO_ACTIVE_HIGH>;
88 regulator-name = "bt_reg";
89 regulator-min-microvolt = <3300000>;
90 regulator-max-microvolt = <3300000>;
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 {
104 dailink_master: simple-audio-card,codec {
105 sound-dai = <&codec>;
106 clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_CLK>;
112 assigned-clocks = <&clks IMX7D_PLL_AUDIO_POST_DIV>;
113 assigned-clock-rates = <884736000>;
117 arm-supply = <&sw1a_reg>;
121 pinctrl-names = "default";
122 pinctrl-0 = <&pinctrl_i2c1>;
126 compatible = "fsl,pfuze3000";
131 regulator-min-microvolt = <700000>;
132 regulator-max-microvolt = <1475000>;
135 regulator-ramp-delay = <6250>;
138 /* use sw1c_reg to align with pfuze100/pfuze200 */
140 regulator-min-microvolt = <700000>;
141 regulator-max-microvolt = <1475000>;
144 regulator-ramp-delay = <6250>;
148 regulator-min-microvolt = <1500000>;
149 regulator-max-microvolt = <1850000>;
155 regulator-min-microvolt = <900000>;
156 regulator-max-microvolt = <1650000>;
162 regulator-min-microvolt = <5000000>;
163 regulator-max-microvolt = <5150000>;
167 regulator-min-microvolt = <1000000>;
168 regulator-max-microvolt = <3000000>;
179 regulator-min-microvolt = <1800000>;
180 regulator-max-microvolt = <3300000>;
185 regulator-min-microvolt = <800000>;
186 regulator-max-microvolt = <1550000>;
190 regulator-min-microvolt = <2850000>;
191 regulator-max-microvolt = <3300000>;
196 regulator-min-microvolt = <2850000>;
197 regulator-max-microvolt = <3300000>;
202 regulator-min-microvolt = <1800000>;
203 regulator-max-microvolt = <3300000>;
208 regulator-min-microvolt = <1800000>;
209 regulator-max-microvolt = <3300000>;
217 clock-frequency = <100000>;
218 pinctrl-names = "default";
219 pinctrl-0 = <&pinctrl_i2c2>;
224 clock-frequency = <100000>;
225 pinctrl-names = "default";
226 pinctrl-0 = <&pinctrl_i2c4>;
230 #sound-dai-cells = <0>;
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>;
242 compatible = "fsl,mpl3115";
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>;
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>;
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>;
275 dr_mode = "peripheral";
280 pinctrl-names = "default";
281 pinctrl-0 = <&pinctrl_usdhc1>;
283 keep-power-in-suspend;
286 vmmc-supply = <®_brcm>;
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>;
299 fsl,tuning-step = <2>;
305 pinctrl-names = "default";
306 pinctrl-0 = <&pinctrl_wdog>;
307 fsl,ext-reset-output;
312 pinctrl_brcm_reg: brcmreggrp {
314 MX7D_PAD_SD2_WP__GPIO5_IO10 0x14 /* WL_REG_ON */
318 pinctrl_bt_reg: btreggrp {
320 MX7D_PAD_SD2_DATA3__GPIO5_IO17 0x14 /* BT_REG_ON */
324 pinctrl_gpio: gpiogrp {
326 MX7D_PAD_ENET1_RGMII_RD1__GPIO7_IO1 0x14
330 pinctrl_i2c1: i2c1grp {
332 MX7D_PAD_I2C1_SDA__I2C1_SDA 0x4000007f
333 MX7D_PAD_I2C1_SCL__I2C1_SCL 0x4000007f
337 pinctrl_i2c2: i2c2grp {
339 MX7D_PAD_I2C2_SDA__I2C2_SDA 0x4000007f
340 MX7D_PAD_I2C2_SCL__I2C2_SCL 0x4000007f
344 pinctrl_i2c4: i2c4grp {
346 MX7D_PAD_I2C4_SCL__I2C4_SCL 0x4000007f
347 MX7D_PAD_I2C4_SDA__I2C4_SDA 0x4000007f
351 pinctrl_sai1: sai1grp {
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
360 pinctrl_sai1_mclk: sai1mclkgrp {
362 MX7D_PAD_SAI1_MCLK__SAI1_MCLK 0x1f
366 pinctrl_uart1: uart1grp {
368 MX7D_PAD_UART1_TX_DATA__UART1_DCE_TX 0x79
369 MX7D_PAD_UART1_RX_DATA__UART1_DCE_RX 0x79
373 pinctrl_uart3: uart3grp {
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
382 pinctrl_usdhc1: usdhc1grp {
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 */
394 pinctrl_usdhc3: usdhc3grp {
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
410 pinctrl_usdhc3_100mhz: usdhc3grp_100mhz {
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
426 pinctrl_usdhc3_200mhz: usdhc3grp_200mhz {
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
444 pinctrl_wdog: wdoggrp {
446 MX7D_PAD_LPSR_GPIO1_IO00__WDOG1_WDOG_B 0x74