1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (C) 2016 NXP Semiconductors.
4 * Author: Fabio Estevam <fabio.estevam@nxp.com>
9 #include <dt-bindings/input/input.h>
13 model = "Warp i.MX7 Board";
14 compatible = "warp,imx7s-warp", "fsl,imx7s";
17 reg = <0x80000000 0x20000000>;
21 compatible = "gpio-keys";
22 pinctrl-0 = <&pinctrl_gpio>;
27 gpios = <&gpio7 1 GPIO_ACTIVE_HIGH>;
28 linux,code = <KEY_BACK>;
33 reg_brcm: regulator-brcm {
34 compatible = "regulator-fixed";
36 gpio = <&gpio5 10 GPIO_ACTIVE_HIGH>;
37 pinctrl-names = "default";
38 pinctrl-0 = <&pinctrl_brcm_reg>;
39 regulator-name = "brcm_reg";
40 regulator-min-microvolt = <3300000>;
41 regulator-max-microvolt = <3300000>;
42 startup-delay-us = <200000>;
45 reg_bt: regulator-bt {
46 compatible = "regulator-fixed";
47 pinctrl-names = "default";
48 pinctrl-0 = <&pinctrl_bt_reg>;
50 gpio = <&gpio5 17 GPIO_ACTIVE_HIGH>;
51 regulator-name = "bt_reg";
52 regulator-min-microvolt = <3300000>;
53 regulator-max-microvolt = <3300000>;
58 compatible = "simple-audio-card";
59 simple-audio-card,name = "imx7-sgtl5000";
60 simple-audio-card,format = "i2s";
61 simple-audio-card,bitclock-master = <&dailink_master>;
62 simple-audio-card,frame-master = <&dailink_master>;
63 simple-audio-card,cpu {
67 dailink_master: simple-audio-card,codec {
69 clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_CLK>;
75 assigned-clocks = <&clks IMX7D_PLL_AUDIO_POST_DIV>;
76 assigned-clock-rates = <884736000>;
80 pinctrl-names = "default";
81 pinctrl-0 = <&pinctrl_i2c1>;
85 compatible = "fsl,pfuze3000";
90 regulator-min-microvolt = <700000>;
91 regulator-max-microvolt = <1475000>;
94 regulator-ramp-delay = <6250>;
97 /* use sw1c_reg to align with pfuze100/pfuze200 */
99 regulator-min-microvolt = <700000>;
100 regulator-max-microvolt = <1475000>;
103 regulator-ramp-delay = <6250>;
107 regulator-min-microvolt = <1500000>;
108 regulator-max-microvolt = <1850000>;
114 regulator-min-microvolt = <900000>;
115 regulator-max-microvolt = <1650000>;
121 regulator-min-microvolt = <5000000>;
122 regulator-max-microvolt = <5150000>;
126 regulator-min-microvolt = <1000000>;
127 regulator-max-microvolt = <3000000>;
138 regulator-min-microvolt = <1800000>;
139 regulator-max-microvolt = <3300000>;
144 regulator-min-microvolt = <800000>;
145 regulator-max-microvolt = <1550000>;
149 regulator-min-microvolt = <2850000>;
150 regulator-max-microvolt = <3300000>;
155 regulator-min-microvolt = <2850000>;
156 regulator-max-microvolt = <3300000>;
161 regulator-min-microvolt = <1800000>;
162 regulator-max-microvolt = <3300000>;
167 regulator-min-microvolt = <1800000>;
168 regulator-max-microvolt = <3300000>;
176 clock-frequency = <100000>;
177 pinctrl-names = "default";
178 pinctrl-0 = <&pinctrl_i2c2>;
183 clock-frequency = <100000>;
184 pinctrl-names = "default";
185 pinctrl-0 = <&pinctrl_i2c3>;
190 clock-frequency = <100000>;
191 pinctrl-names = "default";
192 pinctrl-0 = <&pinctrl_i2c4>;
196 #sound-dai-cells = <0>;
198 compatible = "fsl,sgtl5000";
199 clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_CLK>;
200 pinctrl-names = "default";
201 pinctrl-0 = <&pinctrl_sai1_mclk>;
202 VDDA-supply = <&vgen4_reg>;
203 VDDIO-supply = <&vgen4_reg>;
204 VDDD-supply = <&vgen2_reg>;
208 compatible = "fsl,mpl3115";
214 pinctrl-names = "default";
215 pinctrl-0 = <&pinctrl_sai1>;
216 assigned-clocks = <&clks IMX7D_SAI1_ROOT_SRC>,
217 <&clks IMX7D_SAI1_ROOT_CLK>;
218 assigned-clock-parents = <&clks IMX7D_PLL_AUDIO_POST_DIV>;
219 assigned-clock-rates = <0>, <36864000>;
224 pinctrl-names = "default";
225 pinctrl-0 = <&pinctrl_uart1>;
226 assigned-clocks = <&clks IMX7D_UART1_ROOT_SRC>;
227 assigned-clock-parents = <&clks IMX7D_PLL_SYS_MAIN_240M_CLK>;
232 pinctrl-names = "default";
233 pinctrl-0 = <&pinctrl_uart3>;
234 assigned-clocks = <&clks IMX7D_UART3_ROOT_SRC>;
235 assigned-clock-parents = <&clks IMX7D_PLL_SYS_MAIN_240M_CLK>;
241 pinctrl-names = "default";
242 pinctrl-0 = <&pinctrl_uart6>;
243 assigned-clocks = <&clks IMX7D_UART6_ROOT_SRC>;
244 assigned-clock-parents = <&clks IMX7D_PLL_SYS_MAIN_240M_CLK>;
250 dr_mode = "peripheral";
255 pinctrl-names = "default";
256 pinctrl-0 = <&pinctrl_usdhc1>;
258 keep-power-in-suspend;
261 vmmc-supply = <®_brcm>;
266 pinctrl-names = "default", "state_100mhz", "state_200mhz";
267 pinctrl-0 = <&pinctrl_usdhc3>;
268 pinctrl-1 = <&pinctrl_usdhc3_100mhz>;
269 pinctrl-2 = <&pinctrl_usdhc3_200mhz>;
270 assigned-clocks = <&clks IMX7D_USDHC3_ROOT_CLK>;
271 assigned-clock-rates = <400000000>;
274 fsl,tuning-step = <2>;
280 pinctrl-names = "default";
281 pinctrl-0 = <&pinctrl_wdog>;
282 fsl,ext-reset-output;
287 pinctrl_brcm_reg: brcmreggrp {
289 MX7D_PAD_SD2_WP__GPIO5_IO10 0x14 /* WL_REG_ON */
293 pinctrl_bt_reg: btreggrp {
295 MX7D_PAD_SD2_DATA3__GPIO5_IO17 0x14 /* BT_REG_ON */
299 pinctrl_gpio: gpiogrp {
301 MX7D_PAD_ENET1_RGMII_RD1__GPIO7_IO1 0x14
305 pinctrl_i2c1: i2c1grp {
307 MX7D_PAD_I2C1_SDA__I2C1_SDA 0x4000007f
308 MX7D_PAD_I2C1_SCL__I2C1_SCL 0x4000007f
312 pinctrl_i2c2: i2c2grp {
314 MX7D_PAD_I2C2_SDA__I2C2_SDA 0x4000007f
315 MX7D_PAD_I2C2_SCL__I2C2_SCL 0x4000007f
319 pinctrl_i2c3: i2c3grp {
321 MX7D_PAD_I2C3_SDA__I2C3_SDA 0x4000007f
322 MX7D_PAD_I2C3_SCL__I2C3_SCL 0x4000007f
326 pinctrl_i2c4: i2c4grp {
328 MX7D_PAD_I2C4_SCL__I2C4_SCL 0x4000007f
329 MX7D_PAD_I2C4_SDA__I2C4_SDA 0x4000007f
333 pinctrl_sai1: sai1grp {
335 MX7D_PAD_SAI1_RX_DATA__SAI1_RX_DATA0 0x1f
336 MX7D_PAD_SAI1_TX_BCLK__SAI1_TX_BCLK 0x1f
337 MX7D_PAD_SAI1_TX_SYNC__SAI1_TX_SYNC 0x1f
338 MX7D_PAD_SAI1_TX_DATA__SAI1_TX_DATA0 0x30
342 pinctrl_sai1_mclk: sai1mclkgrp {
344 MX7D_PAD_SAI1_MCLK__SAI1_MCLK 0x1f
348 pinctrl_uart1: uart1grp {
350 MX7D_PAD_UART1_TX_DATA__UART1_DCE_TX 0x79
351 MX7D_PAD_UART1_RX_DATA__UART1_DCE_RX 0x79
355 pinctrl_uart3: uart3grp {
357 MX7D_PAD_UART3_TX_DATA__UART3_DCE_TX 0x79
358 MX7D_PAD_UART3_RX_DATA__UART3_DCE_RX 0x79
359 MX7D_PAD_UART3_CTS_B__UART3_DCE_CTS 0x79
360 MX7D_PAD_UART3_RTS_B__UART3_DCE_RTS 0x79
364 pinctrl_uart6: uart6grp {
366 MX7D_PAD_ECSPI1_MOSI__UART6_DTE_RX 0x79
367 MX7D_PAD_ECSPI1_SCLK__UART6_DTE_TX 0x79
371 pinctrl_usdhc1: usdhc1grp {
373 MX7D_PAD_SD1_CMD__SD1_CMD 0x59
374 MX7D_PAD_SD1_CLK__SD1_CLK 0x19
375 MX7D_PAD_SD1_DATA0__SD1_DATA0 0x59
376 MX7D_PAD_SD1_DATA1__SD1_DATA1 0x59
377 MX7D_PAD_SD1_DATA2__SD1_DATA2 0x59
378 MX7D_PAD_SD1_DATA3__SD1_DATA3 0x59
379 MX7D_PAD_SD2_RESET_B__GPIO5_IO11 0x14 /* WL_HOST_WAKE */
383 pinctrl_usdhc3: usdhc3grp {
385 MX7D_PAD_SD3_CMD__SD3_CMD 0x59
386 MX7D_PAD_SD3_CLK__SD3_CLK 0x19
387 MX7D_PAD_SD3_DATA0__SD3_DATA0 0x59
388 MX7D_PAD_SD3_DATA1__SD3_DATA1 0x59
389 MX7D_PAD_SD3_DATA2__SD3_DATA2 0x59
390 MX7D_PAD_SD3_DATA3__SD3_DATA3 0x59
391 MX7D_PAD_SD3_DATA4__SD3_DATA4 0x59
392 MX7D_PAD_SD3_DATA5__SD3_DATA5 0x59
393 MX7D_PAD_SD3_DATA6__SD3_DATA6 0x59
394 MX7D_PAD_SD3_DATA7__SD3_DATA7 0x59
395 MX7D_PAD_SD3_RESET_B__SD3_RESET_B 0x19
399 pinctrl_usdhc3_100mhz: usdhc3grp_100mhz {
401 MX7D_PAD_SD3_CMD__SD3_CMD 0x5a
402 MX7D_PAD_SD3_CLK__SD3_CLK 0x1a
403 MX7D_PAD_SD3_DATA0__SD3_DATA0 0x5a
404 MX7D_PAD_SD3_DATA1__SD3_DATA1 0x5a
405 MX7D_PAD_SD3_DATA2__SD3_DATA2 0x5a
406 MX7D_PAD_SD3_DATA3__SD3_DATA3 0x5a
407 MX7D_PAD_SD3_DATA4__SD3_DATA4 0x5a
408 MX7D_PAD_SD3_DATA5__SD3_DATA5 0x5a
409 MX7D_PAD_SD3_DATA6__SD3_DATA6 0x5a
410 MX7D_PAD_SD3_DATA7__SD3_DATA7 0x5a
411 MX7D_PAD_SD3_RESET_B__SD3_RESET_B 0x1a
415 pinctrl_usdhc3_200mhz: usdhc3grp_200mhz {
417 MX7D_PAD_SD3_CMD__SD3_CMD 0x5b
418 MX7D_PAD_SD3_CLK__SD3_CLK 0x1b
419 MX7D_PAD_SD3_DATA0__SD3_DATA0 0x5b
420 MX7D_PAD_SD3_DATA1__SD3_DATA1 0x5b
421 MX7D_PAD_SD3_DATA2__SD3_DATA2 0x5b
422 MX7D_PAD_SD3_DATA3__SD3_DATA3 0x5b
423 MX7D_PAD_SD3_DATA4__SD3_DATA4 0x5b
424 MX7D_PAD_SD3_DATA5__SD3_DATA5 0x5b
425 MX7D_PAD_SD3_DATA6__SD3_DATA6 0x5b
426 MX7D_PAD_SD3_DATA7__SD3_DATA7 0x5b
427 MX7D_PAD_SD3_RESET_B__SD3_RESET_B 0x1b
433 pinctrl_wdog: wdoggrp {
435 MX7D_PAD_LPSR_GPIO1_IO00__WDOG1_WDOG_B 0x74