1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright 2018 Wandboard, Org.
6 * Author: Richard Hu <hakahu@gmail.com>
11 #include "imx8mq.dtsi"
12 #include <dt-bindings/interrupt-controller/irq.h>
15 model = "TechNexion PICO-PI-8M";
16 compatible = "technexion,pico-pi-imx8m", "fsl,imx8mq";
22 pmic_osc: clock-pmic {
23 compatible = "fixed-clock";
25 clock-frequency = <32768>;
26 clock-output-names = "pmic_osc";
29 reg_usb_otg_vbus: regulator-usb-otg-vbus {
30 pinctrl-names = "default";
31 pinctrl-0 = <&pinctrl_otg_vbus>;
32 compatible = "regulator-fixed";
33 regulator-name = "usb_otg_vbus";
34 regulator-min-microvolt = <5000000>;
35 regulator-max-microvolt = <5000000>;
36 gpio = <&gpio3 14 GPIO_ACTIVE_LOW>;
41 pinctrl-names = "default";
42 pinctrl-0 = <&pinctrl_fec1 &pinctrl_enet_3v3>;
43 phy-mode = "rgmii-id";
44 phy-handle = <ðphy0>;
52 ethphy0: ethernet-phy@1 {
53 compatible = "ethernet-phy-ieee802.3-c22";
60 clock-frequency = <100000>;
61 pinctrl-names = "default";
62 pinctrl-0 = <&pinctrl_i2c1>;
67 compatible = "rohm,bd71837";
68 pinctrl-names = "default";
69 pinctrl-0 = <&pinctrl_pmic>;
72 clock-output-names = "pmic_clk";
73 interrupt-parent = <&gpio1>;
74 interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
75 interrupt-names = "irq";
79 regulator-name = "buck1";
80 regulator-min-microvolt = <700000>;
81 regulator-max-microvolt = <1300000>;
83 regulator-ramp-delay = <1250>;
84 rohm,dvs-run-voltage = <900000>;
85 rohm,dvs-idle-voltage = <850000>;
86 rohm,dvs-suspend-voltage = <800000>;
90 regulator-name = "buck2";
91 regulator-min-microvolt = <700000>;
92 regulator-max-microvolt = <1300000>;
94 regulator-ramp-delay = <1250>;
95 rohm,dvs-run-voltage = <1000000>;
96 rohm,dvs-idle-voltage = <900000>;
100 regulator-name = "buck3";
101 regulator-min-microvolt = <700000>;
102 regulator-max-microvolt = <1300000>;
104 rohm,dvs-run-voltage = <1000000>;
108 regulator-name = "buck4";
109 regulator-min-microvolt = <700000>;
110 regulator-max-microvolt = <1300000>;
112 rohm,dvs-run-voltage = <1000000>;
116 regulator-name = "buck5";
117 regulator-min-microvolt = <700000>;
118 regulator-max-microvolt = <1350000>;
123 regulator-name = "buck6";
124 regulator-min-microvolt = <3000000>;
125 regulator-max-microvolt = <3300000>;
130 regulator-name = "buck7";
131 regulator-min-microvolt = <1605000>;
132 regulator-max-microvolt = <1995000>;
137 regulator-name = "buck8";
138 regulator-min-microvolt = <800000>;
139 regulator-max-microvolt = <1400000>;
144 regulator-name = "ldo1";
145 regulator-min-microvolt = <3000000>;
146 regulator-max-microvolt = <3300000>;
152 regulator-name = "ldo2";
153 regulator-min-microvolt = <900000>;
154 regulator-max-microvolt = <900000>;
160 regulator-name = "ldo3";
161 regulator-min-microvolt = <1800000>;
162 regulator-max-microvolt = <3300000>;
167 regulator-name = "ldo4";
168 regulator-min-microvolt = <900000>;
169 regulator-max-microvolt = <1800000>;
174 regulator-name = "ldo5";
175 regulator-min-microvolt = <1800000>;
176 regulator-max-microvolt = <3300000>;
181 regulator-name = "ldo6";
182 regulator-min-microvolt = <900000>;
183 regulator-max-microvolt = <1800000>;
188 regulator-name = "ldo7";
189 regulator-min-microvolt = <1800000>;
190 regulator-max-microvolt = <3300000>;
198 clock-frequency = <100000>;
199 pinctrl-names = "default";
200 pinctrl-0 = <&pinctrl_i2c2>;
204 &uart1 { /* console */
205 pinctrl-names = "default";
206 pinctrl-0 = <&pinctrl_uart1>;
211 assigned-clocks = <&clk IMX8MQ_CLK_USDHC1>;
212 assigned-clock-rates = <400000000>;
213 pinctrl-names = "default", "state_100mhz", "state_200mhz";
214 pinctrl-0 = <&pinctrl_usdhc1>;
215 pinctrl-1 = <&pinctrl_usdhc1_100mhz>;
216 pinctrl-2 = <&pinctrl_usdhc1_200mhz>;
223 assigned-clocks = <&clk IMX8MQ_CLK_USDHC2>;
224 assigned-clock-rates = <200000000>;
225 pinctrl-names = "default", "state_100mhz", "state_200mhz";
226 pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>;
227 pinctrl-1 = <&pinctrl_usdhc2_100mhz>, <&pinctrl_usdhc2_gpio>;
228 pinctrl-2 = <&pinctrl_usdhc2_200mhz>, <&pinctrl_usdhc2_gpio>;
230 cd-gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
248 pinctrl-names = "default";
249 pinctrl-0 = <&pinctrl_wdog>;
250 fsl,ext-reset-output;
255 pinctrl_enet_3v3: enet3v3grp {
257 MX8MQ_IOMUXC_GPIO1_IO00_GPIO1_IO0 0x19
261 pinctrl_fec1: fec1grp {
263 MX8MQ_IOMUXC_ENET_MDC_ENET1_MDC 0x3
264 MX8MQ_IOMUXC_ENET_MDIO_ENET1_MDIO 0x23
265 MX8MQ_IOMUXC_ENET_TD3_ENET1_RGMII_TD3 0x1f
266 MX8MQ_IOMUXC_ENET_TD2_ENET1_RGMII_TD2 0x1f
267 MX8MQ_IOMUXC_ENET_TD1_ENET1_RGMII_TD1 0x1f
268 MX8MQ_IOMUXC_ENET_TD0_ENET1_RGMII_TD0 0x1f
269 MX8MQ_IOMUXC_ENET_RD3_ENET1_RGMII_RD3 0x91
270 MX8MQ_IOMUXC_ENET_RD2_ENET1_RGMII_RD2 0x91
271 MX8MQ_IOMUXC_ENET_RD1_ENET1_RGMII_RD1 0x91
272 MX8MQ_IOMUXC_ENET_RD0_ENET1_RGMII_RD0 0x91
273 MX8MQ_IOMUXC_ENET_TXC_ENET1_RGMII_TXC 0x1f
274 MX8MQ_IOMUXC_ENET_RXC_ENET1_RGMII_RXC 0x91
275 MX8MQ_IOMUXC_ENET_RX_CTL_ENET1_RGMII_RX_CTL 0x91
276 MX8MQ_IOMUXC_ENET_TX_CTL_ENET1_RGMII_TX_CTL 0x1f
277 MX8MQ_IOMUXC_GPIO1_IO09_GPIO1_IO9 0x19
281 pinctrl_i2c1: i2c1grp {
283 MX8MQ_IOMUXC_I2C1_SCL_I2C1_SCL 0x4000007f
284 MX8MQ_IOMUXC_I2C1_SDA_I2C1_SDA 0x4000007f
288 pinctrl_i2c2: i2c2grp {
290 MX8MQ_IOMUXC_I2C2_SCL_I2C2_SCL 0x4000007f
291 MX8MQ_IOMUXC_I2C2_SDA_I2C2_SDA 0x4000007f
295 pinctrl_otg_vbus: otgvbusgrp {
297 MX8MQ_IOMUXC_NAND_DQS_GPIO3_IO14 0x19 /* USB OTG VBUS Enable */
301 pinctrl_pmic: pmicirqgrp {
303 MX8MQ_IOMUXC_GPIO1_IO03_GPIO1_IO3 0x41
307 pinctrl_uart1: uart1grp {
309 MX8MQ_IOMUXC_UART1_RXD_UART1_DCE_RX 0x49
310 MX8MQ_IOMUXC_UART1_TXD_UART1_DCE_TX 0x49
314 pinctrl_uart2: uart2grp {
316 MX8MQ_IOMUXC_UART2_RXD_UART2_DCE_RX 0x49
317 MX8MQ_IOMUXC_UART2_TXD_UART2_DCE_TX 0x49
318 MX8MQ_IOMUXC_UART4_RXD_UART2_DCE_CTS_B 0x49
319 MX8MQ_IOMUXC_UART4_TXD_UART2_DCE_RTS_B 0x49
323 pinctrl_usdhc1: usdhc1grp {
325 MX8MQ_IOMUXC_SD1_CLK_USDHC1_CLK 0x83
326 MX8MQ_IOMUXC_SD1_CMD_USDHC1_CMD 0xc3
327 MX8MQ_IOMUXC_SD1_DATA0_USDHC1_DATA0 0xc3
328 MX8MQ_IOMUXC_SD1_DATA1_USDHC1_DATA1 0xc3
329 MX8MQ_IOMUXC_SD1_DATA2_USDHC1_DATA2 0xc3
330 MX8MQ_IOMUXC_SD1_DATA3_USDHC1_DATA3 0xc3
331 MX8MQ_IOMUXC_SD1_DATA4_USDHC1_DATA4 0xc3
332 MX8MQ_IOMUXC_SD1_DATA5_USDHC1_DATA5 0xc3
333 MX8MQ_IOMUXC_SD1_DATA6_USDHC1_DATA6 0xc3
334 MX8MQ_IOMUXC_SD1_DATA7_USDHC1_DATA7 0xc3
335 MX8MQ_IOMUXC_SD1_STROBE_USDHC1_STROBE 0x83
339 pinctrl_usdhc1_100mhz: usdhc1-100mhzgrp {
341 MX8MQ_IOMUXC_SD1_CLK_USDHC1_CLK 0x85
342 MX8MQ_IOMUXC_SD1_CMD_USDHC1_CMD 0xc5
343 MX8MQ_IOMUXC_SD1_DATA0_USDHC1_DATA0 0xc5
344 MX8MQ_IOMUXC_SD1_DATA1_USDHC1_DATA1 0xc5
345 MX8MQ_IOMUXC_SD1_DATA2_USDHC1_DATA2 0xc5
346 MX8MQ_IOMUXC_SD1_DATA3_USDHC1_DATA3 0xc5
347 MX8MQ_IOMUXC_SD1_DATA4_USDHC1_DATA4 0xc5
348 MX8MQ_IOMUXC_SD1_DATA5_USDHC1_DATA5 0xc5
349 MX8MQ_IOMUXC_SD1_DATA6_USDHC1_DATA6 0xc5
350 MX8MQ_IOMUXC_SD1_DATA7_USDHC1_DATA7 0xc5
351 MX8MQ_IOMUXC_SD1_STROBE_USDHC1_STROBE 0x85
355 pinctrl_usdhc1_200mhz: usdhc1-200mhzgrp {
357 MX8MQ_IOMUXC_SD1_CLK_USDHC1_CLK 0x87
358 MX8MQ_IOMUXC_SD1_CMD_USDHC1_CMD 0xc7
359 MX8MQ_IOMUXC_SD1_DATA0_USDHC1_DATA0 0xc7
360 MX8MQ_IOMUXC_SD1_DATA1_USDHC1_DATA1 0xc7
361 MX8MQ_IOMUXC_SD1_DATA2_USDHC1_DATA2 0xc7
362 MX8MQ_IOMUXC_SD1_DATA3_USDHC1_DATA3 0xc7
363 MX8MQ_IOMUXC_SD1_DATA4_USDHC1_DATA4 0xc7
364 MX8MQ_IOMUXC_SD1_DATA5_USDHC1_DATA5 0xc7
365 MX8MQ_IOMUXC_SD1_DATA6_USDHC1_DATA6 0xc7
366 MX8MQ_IOMUXC_SD1_DATA7_USDHC1_DATA7 0xc7
367 MX8MQ_IOMUXC_SD1_STROBE_USDHC1_STROBE 0x87
371 pinctrl_usdhc2_gpio: usdhc2gpiogrp {
373 MX8MQ_IOMUXC_SD2_CD_B_GPIO2_IO12 0x41
377 pinctrl_usdhc2: usdhc2grp {
379 MX8MQ_IOMUXC_SD2_CLK_USDHC2_CLK 0x83
380 MX8MQ_IOMUXC_SD2_CMD_USDHC2_CMD 0xc3
381 MX8MQ_IOMUXC_SD2_DATA0_USDHC2_DATA0 0xc3
382 MX8MQ_IOMUXC_SD2_DATA1_USDHC2_DATA1 0xc3
383 MX8MQ_IOMUXC_SD2_DATA2_USDHC2_DATA2 0xc3
384 MX8MQ_IOMUXC_SD2_DATA3_USDHC2_DATA3 0xc3
385 MX8MQ_IOMUXC_GPIO1_IO04_USDHC2_VSELECT 0xc1
389 pinctrl_usdhc2_100mhz: usdhc2-100mhzgrp {
391 MX8MQ_IOMUXC_SD2_CLK_USDHC2_CLK 0x85
392 MX8MQ_IOMUXC_SD2_CMD_USDHC2_CMD 0xc5
393 MX8MQ_IOMUXC_SD2_DATA0_USDHC2_DATA0 0xc5
394 MX8MQ_IOMUXC_SD2_DATA1_USDHC2_DATA1 0xc5
395 MX8MQ_IOMUXC_SD2_DATA2_USDHC2_DATA2 0xc5
396 MX8MQ_IOMUXC_SD2_DATA3_USDHC2_DATA3 0xc5
397 MX8MQ_IOMUXC_GPIO1_IO04_USDHC2_VSELECT 0xc1
401 pinctrl_usdhc2_200mhz: usdhc2-200mhzgrp {
403 MX8MQ_IOMUXC_SD2_CLK_USDHC2_CLK 0x87
404 MX8MQ_IOMUXC_SD2_CMD_USDHC2_CMD 0xc7
405 MX8MQ_IOMUXC_SD2_DATA0_USDHC2_DATA0 0xc7
406 MX8MQ_IOMUXC_SD2_DATA1_USDHC2_DATA1 0xc7
407 MX8MQ_IOMUXC_SD2_DATA2_USDHC2_DATA2 0xc7
408 MX8MQ_IOMUXC_SD2_DATA3_USDHC2_DATA3 0xc7
409 MX8MQ_IOMUXC_GPIO1_IO04_USDHC2_VSELECT 0xc1
413 pinctrl_wdog: wdoggrp {
415 MX8MQ_IOMUXC_GPIO1_IO02_WDOG1_WDOG_B 0xc6