1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright 2023 Emtop Embedded Solutions
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/leds/common.h>
10 #include <dt-bindings/usb/pd.h>
12 #include "imx8mm.dtsi"
15 model = "Emtop Embedded Solutions i.MX8M Mini SOM-IMX8MMLPD4 SoM";
16 compatible = "ees,imx8mm-emtop-som", "fsl,imx8mm";
23 compatible = "gpio-leds";
24 pinctrl-names = "default";
25 pinctrl-0 = <&pinctrl_gpio_led>;
28 function = LED_FUNCTION_POWER;
29 gpios = <&gpio3 16 GPIO_ACTIVE_HIGH>;
30 linux,default-trigger = "heartbeat";
36 cpu-supply = <&buck2>;
40 cpu-supply = <&buck2>;
44 cpu-supply = <&buck2>;
48 cpu-supply = <&buck2>;
52 clock-frequency = <400000>;
53 pinctrl-names = "default";
54 pinctrl-0 = <&pinctrl_i2c1>;
58 compatible = "nxp,pca9450c";
60 pinctrl-names = "default";
61 pinctrl-0 = <&pinctrl_pmic>;
62 interrupt-parent = <&gpio1>;
63 interrupts = <3 IRQ_TYPE_EDGE_RISING>;
67 regulator-name = "BUCK1";
68 regulator-min-microvolt = <800000>;
69 regulator-max-microvolt = <1000000>;
72 regulator-ramp-delay = <3125>;
76 regulator-name = "BUCK2";
77 regulator-min-microvolt = <800000>;
78 regulator-max-microvolt = <900000>;
81 regulator-ramp-delay = <3125>;
85 regulator-name = "BUCK3";
86 regulator-min-microvolt = <800000>;
87 regulator-max-microvolt = <1000000>;
93 regulator-name = "BUCK4";
94 regulator-min-microvolt = <3000000>;
95 regulator-max-microvolt = <3600000>;
101 regulator-name = "BUCK5";
102 regulator-min-microvolt = <1650000>;
103 regulator-max-microvolt = <1950000>;
109 regulator-name = "BUCK6";
110 regulator-min-microvolt = <1100000>;
111 regulator-max-microvolt = <1200000>;
117 regulator-name = "LDO1";
118 regulator-min-microvolt = <1650000>;
119 regulator-max-microvolt = <1950000>;
125 regulator-name = "LDO2";
126 regulator-min-microvolt = <800000>;
127 regulator-max-microvolt = <945000>;
133 regulator-name = "LDO3";
134 regulator-min-microvolt = <1710000>;
135 regulator-max-microvolt = <1890000>;
141 regulator-name = "LDO4";
142 regulator-min-microvolt = <810000>;
143 regulator-max-microvolt = <945000>;
149 regulator-name = "LDO5";
150 regulator-min-microvolt = <1650000>;
151 regulator-max-microvolt = <3600000>;
158 pinctrl-names = "default";
159 pinctrl-0 = <&pinctrl_uart2>;
164 pinctrl-names = "default", "state_100mhz", "state_200mhz";
165 pinctrl-0 = <&pinctrl_usdhc3>;
166 pinctrl-1 = <&pinctrl_usdhc3_100mhz>;
167 pinctrl-2 = <&pinctrl_usdhc3_200mhz>;
174 pinctrl-names = "default";
175 pinctrl-0 = <&pinctrl_wdog>;
176 fsl,ext-reset-output;
181 pinctrl_gpio_led: emtop-gpio-led-grp {
183 MX8MM_IOMUXC_NAND_READY_B_GPIO3_IO16 0x19
184 MX8MM_IOMUXC_SAI3_RXC_GPIO4_IO29 0x19
188 pinctrl_i2c1: emtop-i2c1-grp {
190 MX8MM_IOMUXC_I2C1_SCL_I2C1_SCL 0x400001c3
191 MX8MM_IOMUXC_I2C1_SDA_I2C1_SDA 0x400001c3
195 pinctrl_pmic: emtop-pmic-grp {
197 MX8MM_IOMUXC_GPIO1_IO03_GPIO1_IO3 0x41
201 pinctrl_uart2: emtop-uart2-grp {
203 MX8MM_IOMUXC_UART2_RXD_UART2_DCE_RX 0x140
204 MX8MM_IOMUXC_UART2_TXD_UART2_DCE_TX 0x140
208 pinctrl_usdhc3: emtop-usdhc3-grp {
210 MX8MM_IOMUXC_NAND_WE_B_USDHC3_CLK 0x190
211 MX8MM_IOMUXC_NAND_WP_B_USDHC3_CMD 0x1d0
212 MX8MM_IOMUXC_NAND_DATA04_USDHC3_DATA0 0x1d0
213 MX8MM_IOMUXC_NAND_DATA05_USDHC3_DATA1 0x1d0
214 MX8MM_IOMUXC_NAND_DATA06_USDHC3_DATA2 0x1d0
215 MX8MM_IOMUXC_NAND_DATA07_USDHC3_DATA3 0x1d0
216 MX8MM_IOMUXC_NAND_RE_B_USDHC3_DATA4 0x1d0
217 MX8MM_IOMUXC_NAND_CE2_B_USDHC3_DATA5 0x1d0
218 MX8MM_IOMUXC_NAND_CE3_B_USDHC3_DATA6 0x1d0
219 MX8MM_IOMUXC_NAND_CLE_USDHC3_DATA7 0x1d0
220 MX8MM_IOMUXC_NAND_CE1_B_USDHC3_STROBE 0x190
224 pinctrl_usdhc3_100mhz: emtop-usdhc3-100mhz-grp {
226 MX8MM_IOMUXC_NAND_WE_B_USDHC3_CLK 0x194
227 MX8MM_IOMUXC_NAND_WP_B_USDHC3_CMD 0x1d4
228 MX8MM_IOMUXC_NAND_DATA04_USDHC3_DATA0 0x1d4
229 MX8MM_IOMUXC_NAND_DATA05_USDHC3_DATA1 0x1d4
230 MX8MM_IOMUXC_NAND_DATA06_USDHC3_DATA2 0x1d4
231 MX8MM_IOMUXC_NAND_DATA07_USDHC3_DATA3 0x1d4
232 MX8MM_IOMUXC_NAND_RE_B_USDHC3_DATA4 0x1d4
233 MX8MM_IOMUXC_NAND_CE2_B_USDHC3_DATA5 0x1d4
234 MX8MM_IOMUXC_NAND_CE3_B_USDHC3_DATA6 0x1d4
235 MX8MM_IOMUXC_NAND_CLE_USDHC3_DATA7 0x1d4
236 MX8MM_IOMUXC_NAND_CE1_B_USDHC3_STROBE 0x194
240 pinctrl_usdhc3_200mhz: emtop-usdhc3-200mhz-grp {
242 MX8MM_IOMUXC_NAND_WE_B_USDHC3_CLK 0x196
243 MX8MM_IOMUXC_NAND_WP_B_USDHC3_CMD 0x1d6
244 MX8MM_IOMUXC_NAND_DATA04_USDHC3_DATA0 0x1d6
245 MX8MM_IOMUXC_NAND_DATA05_USDHC3_DATA1 0x1d6
246 MX8MM_IOMUXC_NAND_DATA06_USDHC3_DATA2 0x1d6
247 MX8MM_IOMUXC_NAND_DATA07_USDHC3_DATA3 0x1d6
248 MX8MM_IOMUXC_NAND_RE_B_USDHC3_DATA4 0x1d6
249 MX8MM_IOMUXC_NAND_CE2_B_USDHC3_DATA5 0x1d6
250 MX8MM_IOMUXC_NAND_CE3_B_USDHC3_DATA6 0x1d6
251 MX8MM_IOMUXC_NAND_CLE_USDHC3_DATA7 0x1d6
252 MX8MM_IOMUXC_NAND_CE1_B_USDHC3_STROBE 0x196
256 pinctrl_wdog: emtop-wdog-grp {
258 MX8MM_IOMUXC_GPIO1_IO02_WDOG1_WDOG_B 0xc6