1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2016 Freescale Semiconductor, Inc.
9 /* First 128KB is for PSCI ATF. */
10 /memreserve/ 0x80000000 0x00020000;
12 #include "fsl-imx8qm.dtsi"
15 model = "Advantech iMX8QM Qseven series";
16 compatible = "fsl,imx8qm-mek", "fsl,imx8qm";
19 bootargs = "console=ttyLP0,115200 earlycon=lpuart32,0x5a060000,115200";
20 stdout-path = &lpuart0;
24 compatible = "gpio-leds";
25 pinctrl-names = "default";
26 pinctrl-0 = <&pinctrl_gpio_leds>;
29 gpios = <&gpio2 15 0>;
31 linux,default-trigger = "heartbeat";
36 compatible = "simple-bus";
40 reg_usb_otg1_vbus: regulator@0 {
41 compatible = "regulator-fixed";
43 regulator-name = "usb_otg1_vbus";
44 regulator-min-microvolt = <5000000>;
45 regulator-max-microvolt = <5000000>;
46 gpio = <&gpio4 3 GPIO_ACTIVE_HIGH>;
50 reg_usdhc2_vmmc: usdhc2_vmmc {
51 compatible = "regulator-fixed";
52 regulator-name = "sw-3p3-sd1";
53 regulator-min-microvolt = <3300000>;
54 regulator-max-microvolt = <3300000>;
55 gpio = <&gpio4 7 GPIO_ACTIVE_HIGH>;
62 pinctrl-names = "default";
63 pinctrl-0 = <&pinctrl_hog_1>;
66 pinctrl_hog_1: hoggrp-1 {
68 SC_P_USB_SS3_TC0_LSIO_GPIO4_IO03 0x06000048
72 pinctrl_fec1: fec1grp {
74 SC_P_COMP_CTL_GPIO_1V8_3V3_ENET_ENETB_PAD 0x000014a0
75 SC_P_ENET0_MDC_CONN_ENET0_MDC 0x06000048
76 SC_P_ENET0_MDIO_CONN_ENET0_MDIO 0x06000048
77 SC_P_ENET0_RGMII_TX_CTL_CONN_ENET0_RGMII_TX_CTL 0x00000060
78 SC_P_ENET0_RGMII_TXC_CONN_ENET0_RGMII_TXC 0x00000060
79 SC_P_ENET0_RGMII_TXD0_CONN_ENET0_RGMII_TXD0 0x00000060
80 SC_P_ENET0_RGMII_TXD1_CONN_ENET0_RGMII_TXD1 0x00000060
81 SC_P_ENET0_RGMII_TXD2_CONN_ENET0_RGMII_TXD2 0x00000060
82 SC_P_ENET0_RGMII_TXD3_CONN_ENET0_RGMII_TXD3 0x00000060
83 SC_P_ENET0_RGMII_RXC_CONN_ENET0_RGMII_RXC 0x00000060
84 SC_P_ENET0_RGMII_RX_CTL_CONN_ENET0_RGMII_RX_CTL 0x00000060
85 SC_P_ENET0_RGMII_RXD0_CONN_ENET0_RGMII_RXD0 0x00000060
86 SC_P_ENET0_RGMII_RXD1_CONN_ENET0_RGMII_RXD1 0x00000060
87 SC_P_ENET0_RGMII_RXD2_CONN_ENET0_RGMII_RXD2 0x00000060
88 SC_P_ENET0_RGMII_RXD3_CONN_ENET0_RGMII_RXD3 0x00000060
92 pinctrl_fec2: fec2grp {
94 SC_P_COMP_CTL_GPIO_1V8_3V3_ENET_ENETA_PAD 0x000014a0
95 SC_P_ENET1_RGMII_TX_CTL_CONN_ENET1_RGMII_TX_CTL 0x00000060
96 SC_P_ENET1_RGMII_TXC_CONN_ENET1_RGMII_TXC 0x00000060
97 SC_P_ENET1_RGMII_TXD0_CONN_ENET1_RGMII_TXD0 0x00000060
98 SC_P_ENET1_RGMII_TXD1_CONN_ENET1_RGMII_TXD1 0x00000060
99 SC_P_ENET1_RGMII_TXD2_CONN_ENET1_RGMII_TXD2 0x00000060
100 SC_P_ENET1_RGMII_TXD3_CONN_ENET1_RGMII_TXD3 0x00000060
101 SC_P_ENET1_RGMII_RXC_CONN_ENET1_RGMII_RXC 0x00000060
102 SC_P_ENET1_RGMII_RX_CTL_CONN_ENET1_RGMII_RX_CTL 0x00000060
103 SC_P_ENET1_RGMII_RXD0_CONN_ENET1_RGMII_RXD0 0x00000060
104 SC_P_ENET1_RGMII_RXD1_CONN_ENET1_RGMII_RXD1 0x00000060
105 SC_P_ENET1_RGMII_RXD2_CONN_ENET1_RGMII_RXD2 0x00000060
106 SC_P_ENET1_RGMII_RXD3_CONN_ENET1_RGMII_RXD3 0x00000060
110 pinctrl_lpuart0: lpuart0grp {
112 SC_P_UART0_RX_DMA_UART0_RX 0x06000020
113 SC_P_UART0_TX_DMA_UART0_TX 0x06000020
117 pinctrl_usdhc1: usdhc1grp {
119 SC_P_EMMC0_CLK_CONN_EMMC0_CLK 0x06000041
120 SC_P_EMMC0_CMD_CONN_EMMC0_CMD 0x00000021
121 SC_P_EMMC0_DATA0_CONN_EMMC0_DATA0 0x00000021
122 SC_P_EMMC0_DATA1_CONN_EMMC0_DATA1 0x00000021
123 SC_P_EMMC0_DATA2_CONN_EMMC0_DATA2 0x00000021
124 SC_P_EMMC0_DATA3_CONN_EMMC0_DATA3 0x00000021
125 SC_P_EMMC0_DATA4_CONN_EMMC0_DATA4 0x00000021
126 SC_P_EMMC0_DATA5_CONN_EMMC0_DATA5 0x00000021
127 SC_P_EMMC0_DATA6_CONN_EMMC0_DATA6 0x00000021
128 SC_P_EMMC0_DATA7_CONN_EMMC0_DATA7 0x00000021
129 SC_P_EMMC0_STROBE_CONN_EMMC0_STROBE 0x06000041
130 SC_P_EMMC0_RESET_B_CONN_EMMC0_RESET_B 0x00000021
134 pinctrl_usdhc1_100mhz: usdhc1grp100mhz {
136 SC_P_EMMC0_CLK_CONN_EMMC0_CLK 0x06000040
137 SC_P_EMMC0_CMD_CONN_EMMC0_CMD 0x00000020
138 SC_P_EMMC0_DATA0_CONN_EMMC0_DATA0 0x00000020
139 SC_P_EMMC0_DATA1_CONN_EMMC0_DATA1 0x00000020
140 SC_P_EMMC0_DATA2_CONN_EMMC0_DATA2 0x00000020
141 SC_P_EMMC0_DATA3_CONN_EMMC0_DATA3 0x00000020
142 SC_P_EMMC0_DATA4_CONN_EMMC0_DATA4 0x00000020
143 SC_P_EMMC0_DATA5_CONN_EMMC0_DATA5 0x00000020
144 SC_P_EMMC0_DATA6_CONN_EMMC0_DATA6 0x00000020
145 SC_P_EMMC0_DATA7_CONN_EMMC0_DATA7 0x00000020
146 SC_P_EMMC0_STROBE_CONN_EMMC0_STROBE 0x06000040
147 SC_P_EMMC0_RESET_B_CONN_EMMC0_RESET_B 0x00000020
151 pinctrl_usdhc1_200mhz: usdhc1grp200mhz {
153 SC_P_EMMC0_CLK_CONN_EMMC0_CLK 0x06000040
154 SC_P_EMMC0_CMD_CONN_EMMC0_CMD 0x00000020
155 SC_P_EMMC0_DATA0_CONN_EMMC0_DATA0 0x00000020
156 SC_P_EMMC0_DATA1_CONN_EMMC0_DATA1 0x00000020
157 SC_P_EMMC0_DATA2_CONN_EMMC0_DATA2 0x00000020
158 SC_P_EMMC0_DATA3_CONN_EMMC0_DATA3 0x00000020
159 SC_P_EMMC0_DATA4_CONN_EMMC0_DATA4 0x00000020
160 SC_P_EMMC0_DATA5_CONN_EMMC0_DATA5 0x00000020
161 SC_P_EMMC0_DATA6_CONN_EMMC0_DATA6 0x00000020
162 SC_P_EMMC0_DATA7_CONN_EMMC0_DATA7 0x00000020
163 SC_P_EMMC0_STROBE_CONN_EMMC0_STROBE 0x06000040
164 SC_P_EMMC0_RESET_B_CONN_EMMC0_RESET_B 0x00000020
168 pinctrl_usdhc2_gpio: usdhc2grpgpio {
170 SC_P_USDHC1_DATA6_LSIO_GPIO5_IO21 0x00000021
171 SC_P_USDHC1_DATA7_LSIO_GPIO5_IO22 0x00000021
172 SC_P_USDHC1_RESET_B_LSIO_GPIO4_IO07 0x00000021
176 pinctrl_usdhc2: usdhc2grp {
178 SC_P_USDHC1_CLK_CONN_USDHC1_CLK 0x06000041
179 SC_P_USDHC1_CMD_CONN_USDHC1_CMD 0x00000021
180 SC_P_USDHC1_DATA0_CONN_USDHC1_DATA0 0x00000021
181 SC_P_USDHC1_DATA1_CONN_USDHC1_DATA1 0x00000021
182 SC_P_USDHC1_DATA2_CONN_USDHC1_DATA2 0x00000021
183 SC_P_USDHC1_DATA3_CONN_USDHC1_DATA3 0x00000021
184 SC_P_USDHC1_VSELECT_CONN_USDHC1_VSELECT 0x00000021
188 pinctrl_usdhc2_100mhz: usdhc2grp100mhz {
190 SC_P_USDHC1_CLK_CONN_USDHC1_CLK 0x06000040
191 SC_P_USDHC1_CMD_CONN_USDHC1_CMD 0x00000020
192 SC_P_USDHC1_DATA0_CONN_USDHC1_DATA0 0x00000020
193 SC_P_USDHC1_DATA1_CONN_USDHC1_DATA1 0x00000020
194 SC_P_USDHC1_DATA2_CONN_USDHC1_DATA2 0x00000020
195 SC_P_USDHC1_DATA3_CONN_USDHC1_DATA3 0x00000020
196 SC_P_USDHC1_VSELECT_CONN_USDHC1_VSELECT 0x00000020
200 pinctrl_usdhc2_200mhz: usdhc2grp200mhz {
202 SC_P_USDHC1_CLK_CONN_USDHC1_CLK 0x06000040
203 SC_P_USDHC1_CMD_CONN_USDHC1_CMD 0x00000020
204 SC_P_USDHC1_DATA0_CONN_USDHC1_DATA0 0x00000020
205 SC_P_USDHC1_DATA1_CONN_USDHC1_DATA1 0x00000020
206 SC_P_USDHC1_DATA2_CONN_USDHC1_DATA2 0x00000020
207 SC_P_USDHC1_DATA3_CONN_USDHC1_DATA3 0x00000020
208 SC_P_USDHC1_VSELECT_CONN_USDHC1_VSELECT 0x00000020
212 pinctrl_usdhc3: usdhc3grp {
214 SC_P_USDHC2_CLK_CONN_USDHC2_CLK 0x06000041
215 SC_P_USDHC2_CMD_CONN_USDHC2_CMD 0x00000021
216 SC_P_USDHC2_DATA0_CONN_USDHC2_DATA0 0x00000021
217 SC_P_USDHC2_DATA1_CONN_USDHC2_DATA1 0x00000021
218 SC_P_USDHC2_DATA2_CONN_USDHC2_DATA2 0x00000021
219 SC_P_USDHC2_DATA3_CONN_USDHC2_DATA3 0x00000021
221 SC_P_USDHC2_WP_LSIO_GPIO4_IO11 0x00000021
223 SC_P_USDHC2_CD_B_LSIO_GPIO4_IO12 0x00000021
227 pinctrl_lpi2c1: lpi2c1grp {
229 SC_P_GPT0_CLK_DMA_I2C1_SCL 0x06000020
230 SC_P_GPT0_CAPTURE_DMA_I2C1_SDA 0x06000020
232 * Change the default alt function from SCL/SDA to others,
233 * to avoid select input conflict with GPT0
235 SC_P_USB_SS3_TC0_LSIO_GPIO4_IO03 0x0700004c
236 SC_P_USB_SS3_TC1_LSIO_GPIO4_IO04 0x0700004c
237 SC_P_USB_SS3_TC2_LSIO_GPIO4_IO05 0x0700004c
238 SC_P_USB_SS3_TC3_LSIO_GPIO4_IO06 0x0700004c
242 pinctrl_gpio_leds: gpioledsgrp {
244 SC_P_SPDIF0_TX_LSIO_GPIO2_IO15 0x00000021
263 pinctrl-names = "default", "state_100mhz", "state_200mhz";
264 pinctrl-0 = <&pinctrl_usdhc1>;
265 pinctrl-1 = <&pinctrl_usdhc1_100mhz>;
266 pinctrl-2 = <&pinctrl_usdhc1_200mhz>;
273 pinctrl-names = "default", "state_100mhz", "state_200mhz";
274 pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>;
275 pinctrl-1 = <&pinctrl_usdhc2_100mhz>, <&pinctrl_usdhc2_gpio>;
276 pinctrl-2 = <&pinctrl_usdhc2_200mhz>, <&pinctrl_usdhc2_gpio>;
278 cd-gpios = <&gpio5 22 GPIO_ACTIVE_LOW>;
279 wp-gpios = <&gpio5 21 GPIO_ACTIVE_HIGH>;
280 vmmc-supply = <®_usdhc2_vmmc>;
285 pinctrl-names = "default";
286 pinctrl-0 = <&pinctrl_usdhc3>;
288 cd-gpios = <&gpio4 12 GPIO_ACTIVE_LOW>;
289 wp-gpios = <&gpio4 11 GPIO_ACTIVE_HIGH>;
294 pinctrl-names = "default";
295 pinctrl-0 = <&pinctrl_fec1>;
296 phy-mode = "rgmii-id";
297 phy-handle = <ðphy0>;
298 fsl,ar8031-phy-fixup;
303 #address-cells = <1>;
306 ethphy0: ethernet-phy@0 {
307 compatible = "ethernet-phy-ieee802.3-c22";
311 ethphy1: ethernet-phy@1 {
312 compatible = "ethernet-phy-ieee802.3-c22";
319 pinctrl-names = "default";
320 pinctrl-0 = <&pinctrl_fec2>;
321 phy-mode = "rgmii-id";
322 phy-handle = <ðphy1>;
323 fsl,ar8031-phy-fixup;
329 #address-cells = <1>;
331 clock-frequency = <100000>;
332 pinctrl-names = "default";
333 pinctrl-0 = <&pinctrl_lpi2c1>;
337 compatible = "nxp,pca9557";
344 compatible = "nxp,pca9557";
351 compatible = "nxp,pca9557";
358 compatible = "nxp,pca9557";
366 pinctrl-names = "default";
367 pinctrl-0 = <&pinctrl_lpuart0>;