1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright 2018 Boundary Devices
8 #include <dt-bindings/input/input.h>
12 model = "Boundary Devices i.MX8MQ Nitrogen8M";
13 compatible = "boundary,imx8mq-nitrogen8m", "fsl,imx8mq";
16 stdout-path = "serial0:115200n8";
20 device_type = "memory";
21 reg = <0x00000000 0x40000000 0 0x80000000>;
25 compatible = "gpio-keys";
26 pinctrl-names = "default";
27 pinctrl-0 = <&pinctrl_gpio_keys>;
30 label = "Power Button";
31 gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_POWER>;
38 compatible = "hdmi-connector";
39 ddc-i2c-bus = <&ddc_i2c_bus>;
44 hdmi_connector_in: endpoint {
45 remote-endpoint = <<8912_out>;
50 reg_usb_otg_vbus: regulator-usb-otg-vbus {
51 compatible = "regulator-fixed";
52 pinctrl-names = "default";
53 pinctrl-0 = <&pinctrl_reg_usbotg_vbus>;
54 regulator-name = "usb_otg_vbus";
55 regulator-min-microvolt = <5000000>;
56 regulator-max-microvolt = <5000000>;
57 gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>;
61 reg_vref_0v9: regulator-vref-0v9 {
62 compatible = "regulator-fixed";
63 regulator-name = "vref-0v9";
64 regulator-min-microvolt = <900000>;
65 regulator-max-microvolt = <900000>;
68 reg_vref_1v8: regulator-vref-1v8 {
69 compatible = "regulator-fixed";
70 regulator-name = "vref-1v8";
71 regulator-min-microvolt = <1800000>;
72 regulator-max-microvolt = <1800000>;
75 reg_vref_2v5: regulator-vref-2v5 {
76 compatible = "regulator-fixed";
77 regulator-name = "vref-2v5";
78 regulator-min-microvolt = <2500000>;
79 regulator-max-microvolt = <2500000>;
82 reg_vref_3v3: regulator-vref-3v3 {
83 compatible = "regulator-fixed";
84 regulator-name = "vref-3v3";
85 regulator-min-microvolt = <3300000>;
86 regulator-max-microvolt = <3300000>;
89 reg_vref_5v: regulator-vref-5v {
90 compatible = "regulator-fixed";
91 regulator-name = "vref-5v";
92 regulator-min-microvolt = <5000000>;
93 regulator-max-microvolt = <5000000>;
102 pinctrl-names = "default";
103 pinctrl-0 = <&pinctrl_fec1>;
104 phy-mode = "rgmii-id";
105 phy-handle = <ðphy0>;
110 #address-cells = <1>;
113 ethphy0: ethernet-phy@4 {
114 compatible = "ethernet-phy-ieee802.3-c22";
116 interrupts-extended = <&gpio1 11 IRQ_TYPE_LEVEL_LOW>;
121 /* Release reset of the USB Host HUB */
125 gpios = <14 GPIO_ACTIVE_HIGH>;
131 clock-frequency = <400000>;
132 pinctrl-names = "default";
133 pinctrl-0 = <&pinctrl_i2c1>;
137 compatible = "nxp,pca9546";
138 pinctrl-names = "default";
139 pinctrl-0 = <&pinctrl_i2c1_pca9546>;
141 reset-gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
142 #address-cells = <1>;
147 #address-cells = <1>;
150 reg_arm_dram: regulator@60 {
151 compatible = "fcs,fan53555";
152 pinctrl-names = "default";
153 pinctrl-0 = <&pinctrl_reg_arm_dram>;
155 regulator-min-microvolt = <900000>;
156 regulator-max-microvolt = <1000000>;
158 vsel-gpios = <&gpio3 24 GPIO_ACTIVE_HIGH>;
164 #address-cells = <1>;
167 reg_dram_1p1v: regulator@60 {
168 compatible = "fcs,fan53555";
169 pinctrl-names = "default";
170 pinctrl-0 = <&pinctrl_reg_dram_1p1v>;
172 regulator-min-microvolt = <1100000>;
173 regulator-max-microvolt = <1100000>;
175 vsel-gpios = <&gpio2 11 GPIO_ACTIVE_HIGH>;
181 #address-cells = <1>;
184 reg_soc_gpu_vpu: regulator@60 {
185 compatible = "fcs,fan53555";
186 pinctrl-names = "default";
187 pinctrl-0 = <&pinctrl_reg_soc_gpu_vpu>;
189 regulator-min-microvolt = <900000>;
190 regulator-max-microvolt = <1000000>;
192 vsel-gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>;
198 #address-cells = <1>;
202 compatible = "microcrystal,rv4162";
203 pinctrl-names = "default";
204 pinctrl-0 = <&pinctrl_i2c1d_rv4162>;
206 interrupts-extended = <&gpio1 6 IRQ_TYPE_LEVEL_LOW>;
214 clock-frequency = <100000>;
215 pinctrl-names = "default";
216 pinctrl-0 = <&pinctrl_i2c4>;
220 compatible = "nxp,pca9546";
222 #address-cells = <1>;
227 #address-cells = <1>;
229 clock-frequency = <100000>;
232 compatible = "lontium,lt8912b";
234 reset-gpios = <&max7323 0 GPIO_ACTIVE_LOW>;
237 #address-cells = <1>;
243 hdmi_out_in: endpoint {
244 data-lanes = <1 2 3 4>;
245 remote-endpoint = <&mipi_dsi_out>;
252 lt8912_out: endpoint {
253 remote-endpoint = <&hdmi_connector_in>;
260 ddc_i2c_bus: i2c4@1 {
262 #address-cells = <1>;
264 clock-frequency = <100000>;
269 #address-cells = <1>;
271 clock-frequency = <100000>;
273 max7323: gpio-expander@68 {
274 compatible = "maxim,max7323";
275 pinctrl-names = "default";
276 pinctrl-0 = <&pinctrl_max7323>;
290 #address-cells = <1>;
298 mipi_dsi_out: endpoint {
299 remote-endpoint = <&hdmi_out_in>;
305 &uart1 { /* console */
306 pinctrl-names = "default";
307 pinctrl-0 = <&pinctrl_uart1>;
308 assigned-clocks = <&clk IMX8MQ_CLK_UART1>;
309 assigned-clock-parents = <&clk IMX8MQ_CLK_25M>;
314 pinctrl-names = "default";
315 pinctrl-0 = <&pinctrl_uart2>;
316 assigned-clocks = <&clk IMX8MQ_CLK_UART2>;
317 assigned-clock-parents = <&clk IMX8MQ_CLK_25M>;
323 pinctrl-names = "default";
324 pinctrl-0 = <&pinctrl_usb3_0>;
329 vbus-supply = <®_usb_otg_vbus>;
339 pinctrl-names = "default";
340 pinctrl-0 = <&pinctrl_usb3_1>;
345 assigned-clocks = <&clk IMX8MQ_CLK_USDHC1>;
346 assigned-clock-rates = <400000000>;
348 pinctrl-names = "default";
349 pinctrl-0 = <&pinctrl_usdhc1>;
351 vmmc-supply = <®_vref_1v8>;
356 pinctrl-names = "default";
357 pinctrl-0 = <&pinctrl_wdog>;
358 fsl,ext-reset-output;
363 pinctrl-names = "default";
364 pinctrl-0 = <&pinctrl_hog>;
366 pinctrl_hog: hoggrp {
368 /* J17 connector, odd */
369 MX8MQ_IOMUXC_SAI1_RXFS_GPIO4_IO0 0x19 /* Pin 19 */
370 MX8MQ_IOMUXC_SAI1_RXC_GPIO4_IO1 0x19 /* Pin 21 */
371 MX8MQ_IOMUXC_SAI1_RXD1_GPIO4_IO3 0x19 /* Pin 23 */
372 MX8MQ_IOMUXC_SAI1_RXD2_GPIO4_IO4 0x19 /* Pin 25 */
373 MX8MQ_IOMUXC_SAI1_RXD3_GPIO4_IO5 0x19 /* Pin 27 */
374 MX8MQ_IOMUXC_SAI1_RXD4_GPIO4_IO6 0x19 /* Pin 29 */
375 MX8MQ_IOMUXC_SAI1_RXD5_GPIO4_IO7 0x19 /* Pin 31 */
376 MX8MQ_IOMUXC_SAI1_RXD6_GPIO4_IO8 0x19 /* Pin 33 */
377 MX8MQ_IOMUXC_SAI1_RXD7_GPIO4_IO9 0x19 /* Pin 35 */
378 MX8MQ_IOMUXC_SAI1_TXD1_GPIO4_IO13 0x19 /* Pin 39 */
379 MX8MQ_IOMUXC_SAI1_TXD2_GPIO4_IO14 0x19 /* Pin 41 */
380 MX8MQ_IOMUXC_SAI1_TXD3_GPIO4_IO15 0x19 /* Pin 43 */
381 MX8MQ_IOMUXC_SAI1_TXD4_GPIO4_IO16 0x19 /* Pin 45 */
382 MX8MQ_IOMUXC_SAI1_TXD5_GPIO4_IO17 0x19 /* Pin 47 */
383 MX8MQ_IOMUXC_SAI1_TXD6_GPIO4_IO18 0x19 /* Pin 49 */
384 MX8MQ_IOMUXC_SAI1_TXD7_GPIO4_IO19 0x19 /* Pin 51 */
386 /* J17 connector, even */
387 MX8MQ_IOMUXC_SAI3_RXFS_GPIO4_IO28 0x19 /* Pin 44 */
388 MX8MQ_IOMUXC_SAI3_RXC_GPIO4_IO29 0x19 /* Pin 48 */
389 MX8MQ_IOMUXC_GPIO1_IO10_GPIO1_IO10 0x19 /* Pin 50 */
390 MX8MQ_IOMUXC_GPIO1_IO03_GPIO1_IO3 0x19 /* Pin 54 */
391 MX8MQ_IOMUXC_GPIO1_IO05_GPIO1_IO5 0x19 /* Pin 56 */
393 /* J18 connector, odd */
394 MX8MQ_IOMUXC_NAND_CE3_B_GPIO3_IO4 0x19 /* Pin 41 */
395 MX8MQ_IOMUXC_NAND_CLE_GPIO3_IO5 0x19 /* Pin 43 */
396 MX8MQ_IOMUXC_NAND_READY_B_GPIO3_IO16 0x19 /* Pin 45 */
397 MX8MQ_IOMUXC_NAND_DATA05_GPIO3_IO11 0x19 /* Pin 47 */
398 MX8MQ_IOMUXC_NAND_WP_B_GPIO3_IO18 0x19 /* Pin 49 */
399 MX8MQ_IOMUXC_NAND_DQS_GPIO3_IO14 0x19 /* Pin 53 */
401 /* J18 connector, even */
402 MX8MQ_IOMUXC_NAND_ALE_GPIO3_IO0 0x19 /* Pin 32 */
403 MX8MQ_IOMUXC_NAND_CE0_B_GPIO3_IO1 0x19 /* Pin 36 */
404 MX8MQ_IOMUXC_NAND_DATA00_GPIO3_IO6 0x19 /* Pin 38 */
405 MX8MQ_IOMUXC_NAND_DATA01_GPIO3_IO7 0x19 /* Pin 40 */
406 MX8MQ_IOMUXC_NAND_DATA02_GPIO3_IO8 0x19 /* Pin 42 */
407 MX8MQ_IOMUXC_NAND_DATA03_GPIO3_IO9 0x19 /* Pin 44 */
408 MX8MQ_IOMUXC_NAND_DATA04_GPIO3_IO10 0x19 /* Pin 46 */
410 /* J13 Pin 2, WL_WAKE */
411 MX8MQ_IOMUXC_SAI5_RXD2_GPIO3_IO23 0xd6
412 /* J13 Pin 4, WL_IRQ, not needed for Silex */
413 MX8MQ_IOMUXC_SAI5_RXD0_GPIO3_IO21 0xd6
414 /* J13 pin 9, unused */
415 MX8MQ_IOMUXC_SD2_CD_B_GPIO2_IO12 0x19
416 /* J13 Pin 41, BT_CLK_REQ */
417 MX8MQ_IOMUXC_SAI5_RXD1_GPIO3_IO22 0xd6
418 /* J13 Pin 42, BT_HOST_WAKE */
419 MX8MQ_IOMUXC_SAI5_MCLK_GPIO3_IO25 0xd6
421 /* Clock for both CSI1 and CSI2 */
422 MX8MQ_IOMUXC_GPIO1_IO15_CCMSRCGPCMIX_CLKO2 0x07
424 MX8MQ_IOMUXC_GPIO1_IO04_GPIO1_IO4 0xc1 /* TP87 */
428 pinctrl_fec1: fec1grp {
430 MX8MQ_IOMUXC_ENET_MDC_ENET1_MDC 0x3
431 MX8MQ_IOMUXC_ENET_MDIO_ENET1_MDIO 0x23
432 MX8MQ_IOMUXC_ENET_TX_CTL_ENET1_RGMII_TX_CTL 0x1f
433 MX8MQ_IOMUXC_ENET_TXC_ENET1_RGMII_TXC 0x1f
434 MX8MQ_IOMUXC_ENET_TD0_ENET1_RGMII_TD0 0x1f
435 MX8MQ_IOMUXC_ENET_TD1_ENET1_RGMII_TD1 0x1f
436 MX8MQ_IOMUXC_ENET_TD2_ENET1_RGMII_TD2 0x1f
437 MX8MQ_IOMUXC_ENET_TD3_ENET1_RGMII_TD3 0x1f
438 MX8MQ_IOMUXC_ENET_RX_CTL_ENET1_RGMII_RX_CTL 0x91
439 MX8MQ_IOMUXC_ENET_RXC_ENET1_RGMII_RXC 0x91
440 MX8MQ_IOMUXC_ENET_RD0_ENET1_RGMII_RD0 0x91
441 MX8MQ_IOMUXC_ENET_RD1_ENET1_RGMII_RD1 0x91
442 MX8MQ_IOMUXC_ENET_RD2_ENET1_RGMII_RD2 0x91
443 MX8MQ_IOMUXC_ENET_RD3_ENET1_RGMII_RD3 0x91
444 MX8MQ_IOMUXC_GPIO1_IO09_GPIO1_IO9 0x19
445 MX8MQ_IOMUXC_GPIO1_IO11_GPIO1_IO11 0x59
449 pinctrl_gpio_keys: gpio-keysgrp {
451 MX8MQ_IOMUXC_GPIO1_IO07_GPIO1_IO7 0x19
456 pinctrl_i2c1: i2c1grp {
458 MX8MQ_IOMUXC_I2C1_SCL_I2C1_SCL 0x4000007f
459 MX8MQ_IOMUXC_I2C1_SDA_I2C1_SDA 0x4000007f
463 pinctrl_i2c1_pca9546: i2c1-pca9546grp {
465 MX8MQ_IOMUXC_GPIO1_IO08_GPIO1_IO8 0x49
469 pinctrl_i2c1d_rv4162: i2c1d-rv4162grp {
471 MX8MQ_IOMUXC_GPIO1_IO06_GPIO1_IO6 0x49
475 pinctrl_i2c4: i2c4grp {
477 MX8MQ_IOMUXC_I2C4_SCL_I2C4_SCL 0x4000007f
478 MX8MQ_IOMUXC_I2C4_SDA_I2C4_SDA 0x4000007f
482 pinctrl_max7323: max7323grp {
484 MX8MQ_IOMUXC_NAND_RE_B_GPIO3_IO15 0x19
488 pinctrl_reg_arm_dram: reg-arm-dramgrp {
490 MX8MQ_IOMUXC_SAI5_RXD3_GPIO3_IO24 0x16
494 pinctrl_reg_dram_1p1v: reg-dram-1p1vgrp {
496 MX8MQ_IOMUXC_SD1_STROBE_GPIO2_IO11 0x16
500 pinctrl_reg_soc_gpu_vpu: reg-soc-gpu-vpugrp {
502 MX8MQ_IOMUXC_SD2_WP_GPIO2_IO20 0x16
506 pinctrl_reg_usbotg_vbus: reg-usbotg-vbusgrp {
508 MX8MQ_IOMUXC_GPIO1_IO12_GPIO1_IO12 0x16
512 pinctrl_uart1: uart1grp {
514 MX8MQ_IOMUXC_UART1_RXD_UART1_DCE_RX 0x45
515 MX8MQ_IOMUXC_UART1_TXD_UART1_DCE_TX 0x45
519 pinctrl_uart2: uart2grp {
521 MX8MQ_IOMUXC_UART2_RXD_UART2_DCE_RX 0x45
522 MX8MQ_IOMUXC_UART2_TXD_UART2_DCE_TX 0x45
526 pinctrl_usb3_0: usb3-0grp {
528 MX8MQ_IOMUXC_GPIO1_IO13_USB1_OTG_OC 0x16
532 pinctrl_usb3_1: usb3-1grp {
534 MX8MQ_IOMUXC_GPIO1_IO14_GPIO1_IO14 0x16
538 pinctrl_usdhc1: usdhc1grp {
540 MX8MQ_IOMUXC_SD1_CLK_USDHC1_CLK 0x83
541 MX8MQ_IOMUXC_SD1_CMD_USDHC1_CMD 0xc3
542 MX8MQ_IOMUXC_SD1_DATA0_USDHC1_DATA0 0xc3
543 MX8MQ_IOMUXC_SD1_DATA1_USDHC1_DATA1 0xc3
544 MX8MQ_IOMUXC_SD1_DATA2_USDHC1_DATA2 0xc3
545 MX8MQ_IOMUXC_SD1_DATA3_USDHC1_DATA3 0xc3
546 MX8MQ_IOMUXC_SD1_DATA4_USDHC1_DATA4 0xc3
547 MX8MQ_IOMUXC_SD1_DATA5_USDHC1_DATA5 0xc3
548 MX8MQ_IOMUXC_SD1_DATA6_USDHC1_DATA6 0xc3
549 MX8MQ_IOMUXC_SD1_DATA7_USDHC1_DATA7 0xc3
550 MX8MQ_IOMUXC_SD1_RESET_B_GPIO2_IO10 0x41
554 pinctrl_usdhc1_100mhz: usdhc1-100mhzgrp {
556 MX8MQ_IOMUXC_SD1_CLK_USDHC1_CLK 0x8d
557 MX8MQ_IOMUXC_SD1_CMD_USDHC1_CMD 0xcd
558 MX8MQ_IOMUXC_SD1_DATA0_USDHC1_DATA0 0xcd
559 MX8MQ_IOMUXC_SD1_DATA1_USDHC1_DATA1 0xcd
560 MX8MQ_IOMUXC_SD1_DATA2_USDHC1_DATA2 0xcd
561 MX8MQ_IOMUXC_SD1_DATA3_USDHC1_DATA3 0xcd
562 MX8MQ_IOMUXC_SD1_DATA4_USDHC1_DATA4 0xcd
563 MX8MQ_IOMUXC_SD1_DATA5_USDHC1_DATA5 0xcd
564 MX8MQ_IOMUXC_SD1_DATA6_USDHC1_DATA6 0xcd
565 MX8MQ_IOMUXC_SD1_DATA7_USDHC1_DATA7 0xcd
569 pinctrl_usdhc1_200mhz: usdhc1-200mhzgrp {
571 MX8MQ_IOMUXC_SD1_CLK_USDHC1_CLK 0x9f
572 MX8MQ_IOMUXC_SD1_CMD_USDHC1_CMD 0xdf
573 MX8MQ_IOMUXC_SD1_DATA0_USDHC1_DATA0 0xdf
574 MX8MQ_IOMUXC_SD1_DATA1_USDHC1_DATA1 0xdf
575 MX8MQ_IOMUXC_SD1_DATA2_USDHC1_DATA2 0xdf
576 MX8MQ_IOMUXC_SD1_DATA3_USDHC1_DATA3 0xdf
577 MX8MQ_IOMUXC_SD1_DATA4_USDHC1_DATA4 0xdf
578 MX8MQ_IOMUXC_SD1_DATA5_USDHC1_DATA5 0xdf
579 MX8MQ_IOMUXC_SD1_DATA6_USDHC1_DATA6 0xdf
580 MX8MQ_IOMUXC_SD1_DATA7_USDHC1_DATA7 0xdf
584 pinctrl_wdog: wdoggrp {
586 MX8MQ_IOMUXC_GPIO1_IO02_WDOG1_WDOG_B 0xc6