1 // SPDX-License-Identifier: (GPL-2.0 or MIT)
4 // Copyright (C) 2021 emtrion GmbH
17 compatible = "gpio-leds";
18 pinctrl-names = "default";
19 pinctrl-0 = <&pinctrl_gpio_led>;
23 gpios = <&gpio3 4 GPIO_ACTIVE_HIGH>;
25 linux,default-trigger = "heartbeat";
30 gpios = <&gpio5 10 GPIO_ACTIVE_HIGH>;
31 default-state = "off";
35 lvds_backlight: lvds-backlight {
36 compatible = "pwm-backlight";
37 enable-gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>;
38 pwms = <&pwm1 0 50000 0>;
40 0 4 8 16 32 64 80 96 112
43 default-brightness-level = <9>;
47 reg_usdhc1_vmmc: regulator-emmc {
48 compatible = "regulator-fixed";
49 regulator-name = "eMMC";
50 regulator-min-microvolt = <3300000>;
51 regulator-max-microvolt = <3300000>;
54 reg_usdhc2_vmmc: regulator-usdhc2 {
55 compatible = "regulator-fixed";
56 regulator-name = "sdcard_3V3";
57 regulator-min-microvolt = <3300000>;
58 regulator-max-microvolt = <3300000>;
63 cpu-supply = <&buck2_reg>;
67 pinctrl-names = "default";
68 pinctrl-0 = <&pinctrl_ecspi1 &pinctrl_ecspi1_cs>;
69 cs-gpios = <&gpio5 9 GPIO_ACTIVE_LOW>,
70 <&gpio5 13 GPIO_ACTIVE_LOW>;
75 pinctrl-names = "default";
76 pinctrl-0 = <&pinctrl_fec1>;
77 phy-mode = "rgmii-id";
78 phy-handle = <ðphy0>;
86 ethphy0: ethernet-phy@0 {
87 compatible = "ethernet-phy-ieee802.3-c22";
89 reset-gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
90 reset-assert-us = <10000>;
96 pinctrl-names = "default";
97 pinctrl-0 = <&pinctrl_flexspi0>;
98 pinctrl-1 = <&pinctrl_flexspi1>;
103 #address-cells = <1>;
105 compatible = "jedec,spi-nor";
106 spi-max-frequency = <40000000>;
111 pinctrl-names = "default";
113 pinctrl_csi_pwn: csi-pwn-grp {
115 MX8MM_IOMUXC_GPIO1_IO07_GPIO1_IO7 0x19
119 pinctrl_ecspi1: ecspi1-grp {
121 MX8MM_IOMUXC_ECSPI1_SCLK_ECSPI1_SCLK 0x82
122 MX8MM_IOMUXC_ECSPI1_MOSI_ECSPI1_MOSI 0x82
123 MX8MM_IOMUXC_ECSPI1_MISO_ECSPI1_MISO 0x82
127 pinctrl_ecspi1_cs: ecspi1-cs {
129 MX8MM_IOMUXC_ECSPI1_SS0_GPIO5_IO9 0x40000
130 MX8MM_IOMUXC_ECSPI2_SS0_GPIO5_IO13 0x40000
134 pinctrl_fec1: fec1-grp {
136 MX8MM_IOMUXC_ENET_MDC_ENET1_MDC 0x3
137 MX8MM_IOMUXC_ENET_MDIO_ENET1_MDIO 0x3
138 MX8MM_IOMUXC_ENET_TD3_ENET1_RGMII_TD3 0x1f
139 MX8MM_IOMUXC_ENET_TD2_ENET1_RGMII_TD2 0x1f
140 MX8MM_IOMUXC_ENET_TD1_ENET1_RGMII_TD1 0x1f
141 MX8MM_IOMUXC_ENET_TD0_ENET1_RGMII_TD0 0x1f
142 MX8MM_IOMUXC_ENET_RD3_ENET1_RGMII_RD3 0x91
143 MX8MM_IOMUXC_ENET_RD2_ENET1_RGMII_RD2 0x91
144 MX8MM_IOMUXC_ENET_RD1_ENET1_RGMII_RD1 0x91
145 MX8MM_IOMUXC_ENET_RD0_ENET1_RGMII_RD0 0x91
146 MX8MM_IOMUXC_ENET_TXC_ENET1_RGMII_TXC 0x1f
147 MX8MM_IOMUXC_ENET_RXC_ENET1_RGMII_RXC 0x91
148 MX8MM_IOMUXC_ENET_RX_CTL_ENET1_RGMII_RX_CTL 0x91
149 MX8MM_IOMUXC_ENET_TX_CTL_ENET1_RGMII_TX_CTL 0x1f
150 MX8MM_IOMUXC_GPIO1_IO09_GPIO1_IO9 0x19
154 pinctrl_flexspi0: flexspi0-grp {
156 MX8MM_IOMUXC_NAND_ALE_QSPI_A_SCLK 0x1c2
157 MX8MM_IOMUXC_NAND_CE0_B_QSPI_A_SS0_B 0x82
158 MX8MM_IOMUXC_NAND_DATA00_QSPI_A_DATA0 0x82
159 MX8MM_IOMUXC_NAND_DATA01_QSPI_A_DATA1 0x82
160 MX8MM_IOMUXC_NAND_DATA02_QSPI_A_DATA2 0x82
161 MX8MM_IOMUXC_NAND_DATA03_QSPI_A_DATA3 0x82
162 MX8MM_IOMUXC_NAND_DQS_QSPI_A_DQS 0x82
166 pinctrl_flexspi1: flexspi1-grp {
168 MX8MM_IOMUXC_NAND_CLE_QSPI_B_SCLK 0x1c2
169 MX8MM_IOMUXC_NAND_CE2_B_QSPI_B_SS0_B 0x82
170 MX8MM_IOMUXC_NAND_DATA04_QSPI_B_DATA0 0x82
171 MX8MM_IOMUXC_NAND_DATA05_QSPI_B_DATA1 0x82
172 MX8MM_IOMUXC_NAND_DATA06_QSPI_B_DATA2 0x82
173 MX8MM_IOMUXC_NAND_DATA07_QSPI_B_DATA3 0x82
177 pinctrl_gpio_led: gpio-led-grp {
179 MX8MM_IOMUXC_ECSPI2_SCLK_GPIO5_IO10 0x19
180 MX8MM_IOMUXC_NAND_CE3_B_GPIO3_IO4 0x19
184 pinctrl_i2c1: i2c1-grp {
186 MX8MM_IOMUXC_I2C1_SCL_I2C1_SCL 0x400001c3
187 MX8MM_IOMUXC_I2C1_SDA_I2C1_SDA 0x400001c3
191 pinctrl_i2c2: i2c2grp {
193 MX8MM_IOMUXC_I2C2_SCL_I2C2_SCL 0x400001c3
194 MX8MM_IOMUXC_I2C2_SDA_I2C2_SDA 0x400001c3
198 pinctrl_i2c3: i2c3-grp {
200 MX8MM_IOMUXC_I2C3_SCL_I2C3_SCL 0x400001c3
201 MX8MM_IOMUXC_I2C3_SDA_I2C3_SDA 0x400001c3
205 pinctrl_lvds: lvds-grp {
207 MX8MM_IOMUXC_SAI5_MCLK_GPIO3_IO25 0x06
211 pinctrl_pcie0: pcie0-grp {
213 MX8MM_IOMUXC_SAI5_RXC_GPIO3_IO20 0x41
214 MX8MM_IOMUXC_SAI5_RXFS_GPIO3_IO19 0x41
218 pinctrl_pmic: pmic-irq {
220 MX8MM_IOMUXC_NAND_CE1_B_GPIO3_IO2 0x41
224 pinctrl_pwm1: pwm1-grp {
226 MX8MM_IOMUXC_GPIO1_IO01_PWM1_OUT 0x06
230 pinctrl_sai2: sai2-grp {
232 MX8MM_IOMUXC_SAI2_MCLK_SAI2_MCLK 0xd6
233 MX8MM_IOMUXC_SAI2_RXC_SAI2_RX_BCLK 0xd6
234 MX8MM_IOMUXC_SAI2_RXD0_SAI2_RX_DATA0 0xd6
235 MX8MM_IOMUXC_SAI2_RXFS_SAI2_RX_SYNC 0xd6
236 MX8MM_IOMUXC_SAI2_TXC_SAI2_TX_BCLK 0xd6
237 MX8MM_IOMUXC_SAI2_TXD0_SAI2_TX_DATA0 0xd6
238 MX8MM_IOMUXC_SAI2_TXFS_SAI2_TX_SYNC 0xd6
242 pinctrl_spdif1: spdif1-grp {
244 MX8MM_IOMUXC_SPDIF_TX_SPDIF1_OUT 0xd6
245 MX8MM_IOMUXC_SPDIF_RX_SPDIF1_IN 0xd6
249 pinctrl_uart1: uart1-grp {
251 MX8MM_IOMUXC_UART1_RXD_UART1_DCE_RX 0x140
252 MX8MM_IOMUXC_UART1_TXD_UART1_DCE_TX 0x140
256 pinctrl_uart2: uart2-grp {
258 MX8MM_IOMUXC_UART2_RXD_UART2_DCE_RX 0x140
259 MX8MM_IOMUXC_UART2_TXD_UART2_DCE_TX 0x140
262 MX8MM_IOMUXC_SAI3_RXC_UART2_DCE_CTS_B 0x140
263 MX8MM_IOMUXC_SAI3_RXD_UART2_DCE_RTS_B 0x140
267 pinctrl_uart3: uart3-grp {
269 MX8MM_IOMUXC_UART3_RXD_UART3_DCE_RX 0x140
270 MX8MM_IOMUXC_UART3_TXD_UART3_DCE_TX 0x140
274 pinctrl_uart4: uart4-grp {
276 MX8MM_IOMUXC_UART4_RXD_UART4_DCE_RX 0x140
277 MX8MM_IOMUXC_UART4_TXD_UART4_DCE_TX 0x140
281 pinctrl_usdhc1: usdhc1-grp {
283 MX8MM_IOMUXC_SD1_CLK_USDHC1_CLK 0x190
284 MX8MM_IOMUXC_SD1_CMD_USDHC1_CMD 0x1d0
285 MX8MM_IOMUXC_SD1_DATA0_USDHC1_DATA0 0x1d0
286 MX8MM_IOMUXC_SD1_DATA1_USDHC1_DATA1 0x1d0
287 MX8MM_IOMUXC_SD1_DATA2_USDHC1_DATA2 0x1d0
288 MX8MM_IOMUXC_SD1_DATA3_USDHC1_DATA3 0x1d0
289 MX8MM_IOMUXC_SD1_DATA4_USDHC1_DATA4 0x1d0
290 MX8MM_IOMUXC_SD1_DATA5_USDHC1_DATA5 0x1d0
291 MX8MM_IOMUXC_SD1_DATA6_USDHC1_DATA6 0x1d0
292 MX8MM_IOMUXC_SD1_DATA7_USDHC1_DATA7 0x1d0
296 pinctrl_usdhc1_100mhz: usdhc1-100mhz-grp {
298 MX8MM_IOMUXC_SD1_CLK_USDHC1_CLK 0x194
299 MX8MM_IOMUXC_SD1_CMD_USDHC1_CMD 0x1d4
300 MX8MM_IOMUXC_SD1_DATA0_USDHC1_DATA0 0x1d4
301 MX8MM_IOMUXC_SD1_DATA1_USDHC1_DATA1 0x1d4
302 MX8MM_IOMUXC_SD1_DATA2_USDHC1_DATA2 0x1d4
303 MX8MM_IOMUXC_SD1_DATA3_USDHC1_DATA3 0x1d4
304 MX8MM_IOMUXC_SD1_DATA4_USDHC1_DATA4 0x1d4
305 MX8MM_IOMUXC_SD1_DATA5_USDHC1_DATA5 0x1d4
306 MX8MM_IOMUXC_SD1_DATA6_USDHC1_DATA6 0x1d4
307 MX8MM_IOMUXC_SD1_DATA7_USDHC1_DATA7 0x1d4
311 pinctrl_usdhc1_200mhz: usdhc1-200mhz-grp {
313 MX8MM_IOMUXC_SD1_CLK_USDHC1_CLK 0x196
314 MX8MM_IOMUXC_SD1_CMD_USDHC1_CMD 0x1d6
315 MX8MM_IOMUXC_SD1_DATA0_USDHC1_DATA0 0x1d6
316 MX8MM_IOMUXC_SD1_DATA1_USDHC1_DATA1 0x1d6
317 MX8MM_IOMUXC_SD1_DATA2_USDHC1_DATA2 0x1d6
318 MX8MM_IOMUXC_SD1_DATA3_USDHC1_DATA3 0x1d6
319 MX8MM_IOMUXC_SD1_DATA4_USDHC1_DATA4 0x1d6
320 MX8MM_IOMUXC_SD1_DATA5_USDHC1_DATA5 0x1d6
321 MX8MM_IOMUXC_SD1_DATA6_USDHC1_DATA6 0x1d6
322 MX8MM_IOMUXC_SD1_DATA7_USDHC1_DATA7 0x1d6
326 pinctrl_usdhc1_gpio: usdhc1-gpio-grp {
328 MX8MM_IOMUXC_SD1_RESET_B_USDHC1_RESET_B 0x41
329 MX8MM_IOMUXC_GPIO1_IO03_GPIO1_IO3 0x1c4
333 pinctrl_usdhc2: usdhc2-grp {
335 MX8MM_IOMUXC_SD2_CLK_USDHC2_CLK 0x190
336 MX8MM_IOMUXC_SD2_CMD_USDHC2_CMD 0x1d0
337 MX8MM_IOMUXC_SD2_DATA0_USDHC2_DATA0 0x1d0
338 MX8MM_IOMUXC_SD2_DATA1_USDHC2_DATA1 0x1d0
339 MX8MM_IOMUXC_SD2_DATA2_USDHC2_DATA2 0x1d0
340 MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d0
341 MX8MM_IOMUXC_GPIO1_IO04_USDHC2_VSELECT 0x1d0
345 pinctrl_usdhc2_100mhz: usdhc2-100mhz-grp {
347 MX8MM_IOMUXC_SD2_CLK_USDHC2_CLK 0x194
348 MX8MM_IOMUXC_SD2_CMD_USDHC2_CMD 0x1d4
349 MX8MM_IOMUXC_SD2_DATA0_USDHC2_DATA0 0x1d4
350 MX8MM_IOMUXC_SD2_DATA1_USDHC2_DATA1 0x1d4
351 MX8MM_IOMUXC_SD2_DATA2_USDHC2_DATA2 0x1d4
352 MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d4
353 MX8MM_IOMUXC_GPIO1_IO04_USDHC2_VSELECT 0x1d0
357 pinctrl_usdhc2_200mhz: usdhc2-200mhz-grp {
359 MX8MM_IOMUXC_SD2_CLK_USDHC2_CLK 0x196
360 MX8MM_IOMUXC_SD2_CMD_USDHC2_CMD 0x1d6
361 MX8MM_IOMUXC_SD2_DATA0_USDHC2_DATA0 0x1d6
362 MX8MM_IOMUXC_SD2_DATA1_USDHC2_DATA1 0x1d6
363 MX8MM_IOMUXC_SD2_DATA2_USDHC2_DATA2 0x1d6
364 MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d6
365 MX8MM_IOMUXC_GPIO1_IO04_USDHC2_VSELECT 0x1d0
369 /* no reset for sdhc2 interface */
370 pinctrl_usdhc2_gpio: usdhc2-gpio-grp {
372 MX8MM_IOMUXC_SD2_CD_B_GPIO2_IO12 0x1c4
373 MX8MM_IOMUXC_SD2_WP_USDHC2_WP 0x1c4
377 pinctrl_wdog: wdog-grp {
379 MX8MM_IOMUXC_GPIO1_IO02_WDOG1_WDOG_B 0xc6
385 clock-frequency = <400000>;
386 pinctrl-names = "default";
387 pinctrl-0 = <&pinctrl_i2c1>;
392 clock-frequency = <400000>;
393 pinctrl-names = "default";
394 pinctrl-0 = <&pinctrl_i2c2>;
399 clock-frequency = <400000>;
400 pinctrl-names = "default";
401 pinctrl-0 = <&pinctrl_i2c3>;
405 compatible = "rohm,bd71847";
407 pinctrl-0 = <&pinctrl_pmic>;
408 interrupt-parent = <&gpio3>;
409 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
410 rohm,reset-snvs-powered;
414 regulator-name = "BUCK1";
415 regulator-min-microvolt = <700000>;
416 regulator-max-microvolt = <1300000>;
419 regulator-ramp-delay = <1250>;
423 regulator-name = "BUCK2";
424 regulator-min-microvolt = <700000>;
425 regulator-max-microvolt = <1300000>;
428 regulator-ramp-delay = <1250>;
429 rohm,dvs-run-voltage = <1000000>;
430 rohm,dvs-idle-voltage = <900000>;
434 // BUCK5 in datasheet
435 regulator-name = "BUCK3";
436 regulator-min-microvolt = <700000>;
437 regulator-max-microvolt = <1350000>;
443 // BUCK6 in datasheet
444 regulator-name = "BUCK4";
445 regulator-min-microvolt = <3000000>;
446 regulator-max-microvolt = <3300000>;
452 // BUCK7 in datasheet
453 regulator-name = "BUCK5";
454 regulator-min-microvolt = <1605000>;
455 regulator-max-microvolt = <1995000>;
461 // BUCK8 in datasheet
462 regulator-name = "BUCK6";
463 regulator-min-microvolt = <800000>;
464 regulator-max-microvolt = <1400000>;
470 regulator-name = "LDO1";
471 regulator-min-microvolt = <1600000>;
472 regulator-max-microvolt = <1900000>;
478 regulator-name = "LDO2";
479 regulator-min-microvolt = <800000>;
480 regulator-max-microvolt = <900000>;
486 regulator-name = "LDO3";
487 regulator-min-microvolt = <1800000>;
488 regulator-max-microvolt = <3300000>;
494 regulator-name = "LDO4";
495 regulator-min-microvolt = <900000>;
496 regulator-max-microvolt = <1800000>;
502 regulator-name = "LDO6";
503 regulator-min-microvolt = <900000>;
504 regulator-max-microvolt = <1800000>;
512 compatible = "abracon,ab1805";
522 pinctrl-names = "default";
523 pinctrl-0 = <&pinctrl_pwm1>;
527 #sound-dai-cells = <0>;
528 pinctrl-names = "default";
529 pinctrl-0 = <&pinctrl_sai2>;
530 assigned-clocks = <&clk IMX8MM_CLK_SAI2>;
531 assigned-clock-parents = <&clk IMX8MM_AUDIO_PLL1_OUT>;
532 assigned-clock-rates = <12000000>;
537 pinctrl-names = "default";
538 pinctrl-0 = <&pinctrl_spdif1>;
539 assigned-clocks = <&clk IMX8MM_CLK_SPDIF1>;
540 assigned-clock-parents = <&clk IMX8MM_AUDIO_PLL1_OUT>;
541 assigned-clock-rates = <24576000>;
542 clocks = <&clk IMX8MM_CLK_AUDIO_AHB>, <&clk IMX8MM_CLK_24M>,
543 <&clk IMX8MM_CLK_SPDIF1>, <&clk IMX8MM_CLK_DUMMY>,
544 <&clk IMX8MM_CLK_DUMMY>, <&clk IMX8MM_CLK_DUMMY>,
545 <&clk IMX8MM_CLK_AUDIO_AHB>, <&clk IMX8MM_CLK_DUMMY>,
546 <&clk IMX8MM_CLK_DUMMY>, <&clk IMX8MM_CLK_DUMMY>,
547 <&clk IMX8MM_AUDIO_PLL1_OUT>, <&clk IMX8MM_AUDIO_PLL2_OUT>;
548 clock-names = "core", "rxtx0", "rxtx1", "rxtx2", "rxtx3",
549 "rxtx4", "rxtx5", "rxtx6", "rxtx7", "spba", "pll8k", "pll11k";
553 &uart1 { /* console */
554 pinctrl-names = "default";
555 pinctrl-0 = <&pinctrl_uart1>;
556 assigned-clocks = <&clk IMX8MM_CLK_UART1>;
557 assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_80M>;
562 pinctrl-names = "default";
563 pinctrl-0 = <&pinctrl_uart2>;
564 assigned-clocks = <&clk IMX8MM_CLK_UART2>;
565 assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_80M>;
570 pinctrl-names = "default";
571 pinctrl-0 = <&pinctrl_uart3>;
572 assigned-clocks = <&clk IMX8MM_CLK_UART3>;
573 assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_80M>;
578 pinctrl-names = "default";
579 pinctrl-0 = <&pinctrl_uart4>;
580 assigned-clocks = <&clk IMX8MM_CLK_UART4>;
581 assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_80M>;
587 over-current-active-low;
593 disable-over-current;
598 pinctrl-names = "default", "state_100mhz", "state_200mhz";
599 pinctrl-0 = <&pinctrl_usdhc1>, <&pinctrl_usdhc1_gpio>;
600 pinctrl-1 = <&pinctrl_usdhc1_100mhz>, <&pinctrl_usdhc1_gpio>;
601 pinctrl-2 = <&pinctrl_usdhc1_200mhz>, <&pinctrl_usdhc1_gpio>;
603 vmmc-supply = <®_usdhc1_vmmc>;
604 keep-power-in-suspend;
610 pinctrl-names = "default", "state_100mhz", "state_200mhz";
611 pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>;
612 pinctrl-1 = <&pinctrl_usdhc2_100mhz>, <&pinctrl_usdhc2_gpio>;
613 pinctrl-2 = <&pinctrl_usdhc2_200mhz>, <&pinctrl_usdhc2_gpio>;
614 cd-gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
615 wp-gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>;
617 vmmc-supply = <®_usdhc2_vmmc>;
623 pinctrl-names = "default";
624 pinctrl-0 = <&pinctrl_wdog>;
625 fsl,ext-reset-output;