1 // SPDX-License-Identifier: GPL-2.0+ OR MIT
3 * Copyright 2021-2022 Marek Vasut <marex@denx.de>
8 #include "imx8mm-verdin.dtsi"
11 model = "MENLO MX8MM EMBEDDED DEVICE";
12 compatible = "menlo,mx8menlo",
13 "toradex,verdin-imx8mm",
16 /delete-node/ gpio-keys;
19 compatible = "gpio-leds";
20 pinctrl-names = "default";
21 pinctrl-0 = <&pinctrl_led>;
25 gpios = <&gpio4 18 GPIO_ACTIVE_HIGH>;
26 linux,default-trigger = "mmc0";
31 gpios = <&gpio4 10 GPIO_ACTIVE_HIGH>;
32 linux,default-trigger = "heartbeat";
37 compatible = "gpio-beeper";
38 pinctrl-names = "default";
39 pinctrl-0 = <&pinctrl_beeper>;
40 gpios = <&gpio5 3 GPIO_ACTIVE_HIGH>;
43 /* Fixed clock dedicated to SPI CAN on carrier board */
44 clk_xtal20: clk-xtal20 {
45 compatible = "fixed-clock";
47 clock-frequency = <20000000>;
54 pinctrl-names = "default";
55 pinctrl-0 = <&pinctrl_ecspi1>;
56 cs-gpios = <&gpio5 9 GPIO_ACTIVE_LOW>;
59 /* CAN controller on the baseboard */
61 compatible = "microchip,mcp2518fd";
62 clocks = <&clk_xtal20>;
63 interrupt-parent = <&gpio1>;
64 interrupts = <8 IRQ_TYPE_EDGE_FALLING>;
66 spi-max-frequency = <2000000>;
72 pinctrl-0 = <&pinctrl_ecspi2 &pinctrl_gpio1>;
73 cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>, <&gpio3 4 GPIO_ACTIVE_LOW>;
77 compatible = "menlo,m53cpld";
79 spi-max-frequency = <25000000>;
83 compatible = "menlo,m53cpld";
85 spi-max-frequency = <25000000>;
103 #address-cells = <1>;
105 compatible = "jedec,spi-nor";
106 spi-max-frequency = <66000000>;
107 spi-rx-bus-width = <4>;
108 spi-tx-bus-width = <4>;
143 "", "", "DISP_reset", "KBD_intI",
150 * CPLD_D[n] is ARM_CPLD[n] in schematic
151 * CPLD_int is SA_INTERRUPT in schematic
152 * CPLD_reset is RESET_SOFT in schematic
155 "CPLD_D[6]", "CPLD_int", "CPLD_reset", "",
156 "", "CPLD_D[7]", "", "",
157 "", "", "", "CPLD_D[5]",
158 "CPLD_D[4]", "CPLD_D[3]", "CPLD_D[2]", "CPLD_D[1]",
159 "CPLD_D[0]", "", "", "",
161 "", "", "", "KBD_intK",
190 /* None of this is present on the SoM. */
191 /delete-node/ bridge@2c;
192 /delete-node/ hdmi@48;
193 /delete-node/ touch@4a;
194 /delete-node/ sensor@4f;
195 /delete-node/ eeprom@50;
196 /delete-node/ eeprom@57;
200 pinctrl-0 = <&pinctrl_gpio7>, <&pinctrl_gpio_hog1>,
201 <&pinctrl_gpio_hog2>, <&pinctrl_gpio_hog3>;
203 pinctrl_beeper: beepergrp {
205 MX8MM_IOMUXC_SPDIF_TX_GPIO5_IO3 0x1c4
209 pinctrl_ecspi1: ecspi1grp {
211 MX8MM_IOMUXC_ECSPI1_SCLK_ECSPI1_SCLK 0x4
212 MX8MM_IOMUXC_ECSPI1_MOSI_ECSPI1_MOSI 0x4
213 MX8MM_IOMUXC_ECSPI1_MISO_ECSPI1_MISO 0x1c4
214 MX8MM_IOMUXC_ECSPI1_SS0_GPIO5_IO9 0x1c4
218 pinctrl_led: ledgrp {
220 MX8MM_IOMUXC_SAI1_TXD6_GPIO4_IO18 0x1c4
221 MX8MM_IOMUXC_SAI1_TXFS_GPIO4_IO10 0x1c4
225 pinctrl_uart4_rts: uart4rtsgrp {
228 MX8MM_IOMUXC_GPIO1_IO09_GPIO1_IO9 0x184
236 MX8MM_IOMUXC_NAND_CE3_B_GPIO3_IO4 0x1c4
243 MX8MM_IOMUXC_SAI1_MCLK_GPIO4_IO20 0x1c4
245 MX8MM_IOMUXC_SAI1_RXC_GPIO4_IO1 0x1c4
247 MX8MM_IOMUXC_SAI1_RXD0_GPIO4_IO2 0x1c4
249 MX8MM_IOMUXC_SAI1_RXD1_GPIO4_IO3 0x1c4
251 MX8MM_IOMUXC_SAI1_RXD2_GPIO4_IO4 0x1c4
253 MX8MM_IOMUXC_SAI1_RXD3_GPIO4_IO5 0x1c4
255 MX8MM_IOMUXC_SAI1_RXFS_GPIO4_IO0 0x1c4
257 MX8MM_IOMUXC_SAI1_TXC_GPIO4_IO11 0x1c4
259 MX8MM_IOMUXC_SAI1_TXD0_GPIO4_IO12 0x1c4
261 MX8MM_IOMUXC_SAI1_TXD1_GPIO4_IO13 0x1c4
263 MX8MM_IOMUXC_SAI1_TXD2_GPIO4_IO14 0x1c4
265 MX8MM_IOMUXC_SAI1_TXD3_GPIO4_IO15 0x1c4
267 MX8MM_IOMUXC_SAI1_TXD4_GPIO4_IO16 0x1c4
269 MX8MM_IOMUXC_SAI2_MCLK_GPIO4_IO27 0x1c4
271 MX8MM_IOMUXC_SAI5_RXD1_GPIO3_IO22 0x1c4
273 MX8MM_IOMUXC_SAI5_RXD2_GPIO3_IO23 0x1c4
275 MX8MM_IOMUXC_SAI5_RXD3_GPIO3_IO24 0x1c4
282 MX8MM_IOMUXC_SAI2_RXFS_UART1_DCE_TX 0x1c4
284 MX8MM_IOMUXC_SAI2_RXC_UART1_DCE_RX 0x1c4
286 MX8MM_IOMUXC_UART3_RXD_UART1_DTE_RTS_B 0x1c4
288 MX8MM_IOMUXC_UART3_TXD_UART1_DTE_CTS_B 0x1c4
293 /delete-property/ enable-active-high;
294 gpio = <&gpio1 12 GPIO_ACTIVE_LOW>;
298 /delete-property/ enable-active-high;
299 gpio = <&gpio1 14 GPIO_ACTIVE_LOW>;
316 pinctrl-0 = <&pinctrl_uart4 &pinctrl_uart4_rts>;
317 linux,rs485-enabled-at-boot-time;
318 rts-gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>;
323 dr_mode = "peripheral";