blob: 8148196902dd539d0ce171b8e8d0ffd1348ab127 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright 2017~2018 NXP
4 */
5
6/dts-v1/;
7
8#include "imx8qxp.dtsi"
9
10/ {
11 model = "Freescale i.MX8QXP MEK";
12 compatible = "fsl,imx8qxp-mek", "fsl,imx8qxp";
13
14 chosen {
15 stdout-path = &adma_lpuart0;
16 };
17
18 memory@80000000 {
19 device_type = "memory";
20 reg = <0x00000000 0x80000000 0 0x40000000>;
21 };
22
23 reg_usdhc2_vmmc: usdhc2-vmmc {
24 compatible = "regulator-fixed";
25 regulator-name = "SD1_SPWR";
26 regulator-min-microvolt = <3000000>;
27 regulator-max-microvolt = <3000000>;
28 gpio = <&lsio_gpio4 19 GPIO_ACTIVE_HIGH>;
29 enable-active-high;
30 };
31};
32
33&adma_lpuart0 {
34 pinctrl-names = "default";
35 pinctrl-0 = <&pinctrl_lpuart0>;
36 status = "okay";
37};
38
39&fec1 {
40 pinctrl-names = "default";
41 pinctrl-0 = <&pinctrl_fec1>;
42 phy-mode = "rgmii-id";
43 phy-handle = <&ethphy0>;
44 fsl,magic-packet;
45 status = "okay";
46
47 mdio {
48 #address-cells = <1>;
49 #size-cells = <0>;
50
51 ethphy0: ethernet-phy@0 {
52 compatible = "ethernet-phy-ieee802.3-c22";
53 reg = <0>;
54 };
55 };
56};
57
58&adma_i2c1 {
59 #address-cells = <1>;
60 #size-cells = <0>;
61 clock-frequency = <100000>;
62 pinctrl-names = "default";
63 pinctrl-0 = <&pinctrl_lpi2c1 &pinctrl_ioexp_rst>;
64 status = "okay";
65
66 i2c-switch@71 {
67 compatible = "nxp,pca9646", "nxp,pca9546";
68 #address-cells = <1>;
69 #size-cells = <0>;
70 reg = <0x71>;
71 reset-gpios = <&lsio_gpio1 1 GPIO_ACTIVE_LOW>;
72
73 i2c@0 {
74 #address-cells = <1>;
75 #size-cells = <0>;
76 reg = <0>;
77
78 max7322: gpio@68 {
79 compatible = "maxim,max7322";
80 reg = <0x68>;
81 gpio-controller;
82 #gpio-cells = <2>;
83 };
84 };
85
86 i2c@1 {
87 #address-cells = <1>;
88 #size-cells = <0>;
89 reg = <1>;
90 };
91
92 i2c@2 {
93 #address-cells = <1>;
94 #size-cells = <0>;
95 reg = <2>;
96
97 pressure-sensor@60 {
98 compatible = "fsl,mpl3115";
99 reg = <0x60>;
100 };
101 };
102
103 i2c@3 {
104 #address-cells = <1>;
105 #size-cells = <0>;
106 reg = <3>;
107
108 pca9557_a: gpio@1a {
109 compatible = "nxp,pca9557";
110 reg = <0x1a>;
111 gpio-controller;
112 #gpio-cells = <2>;
113 };
114
115 pca9557_b: gpio@1d {
116 compatible = "nxp,pca9557";
117 reg = <0x1d>;
118 gpio-controller;
119 #gpio-cells = <2>;
120 };
121
122 light-sensor@44 {
123 pinctrl-names = "default";
124 pinctrl-0 = <&pinctrl_isl29023>;
125 compatible = "isil,isl29023";
126 reg = <0x44>;
127 interrupt-parent = <&lsio_gpio1>;
128 interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
129 };
130 };
131 };
132};
133
134&usdhc1 {
135 pinctrl-names = "default";
136 pinctrl-0 = <&pinctrl_usdhc1>;
137 bus-width = <8>;
138 no-sd;
139 no-sdio;
140 non-removable;
141 status = "okay";
142};
143
144&usdhc2 {
145 pinctrl-names = "default";
146 pinctrl-0 = <&pinctrl_usdhc2>;
147 bus-width = <4>;
148 vmmc-supply = <&reg_usdhc2_vmmc>;
149 cd-gpios = <&lsio_gpio4 22 GPIO_ACTIVE_LOW>;
150 wp-gpios = <&lsio_gpio4 21 GPIO_ACTIVE_HIGH>;
151 status = "okay";
152};
153
154&iomuxc {
155 pinctrl_fec1: fec1grp {
156 fsl,pins = <
157 IMX8QXP_ENET0_MDC_CONN_ENET0_MDC 0x06000020
158 IMX8QXP_ENET0_MDIO_CONN_ENET0_MDIO 0x06000020
159 IMX8QXP_ENET0_RGMII_TX_CTL_CONN_ENET0_RGMII_TX_CTL 0x06000020
160 IMX8QXP_ENET0_RGMII_TXC_CONN_ENET0_RGMII_TXC 0x06000020
161 IMX8QXP_ENET0_RGMII_TXD0_CONN_ENET0_RGMII_TXD0 0x06000020
162 IMX8QXP_ENET0_RGMII_TXD1_CONN_ENET0_RGMII_TXD1 0x06000020
163 IMX8QXP_ENET0_RGMII_TXD2_CONN_ENET0_RGMII_TXD2 0x06000020
164 IMX8QXP_ENET0_RGMII_TXD3_CONN_ENET0_RGMII_TXD3 0x06000020
165 IMX8QXP_ENET0_RGMII_RXC_CONN_ENET0_RGMII_RXC 0x06000020
166 IMX8QXP_ENET0_RGMII_RX_CTL_CONN_ENET0_RGMII_RX_CTL 0x06000020
167 IMX8QXP_ENET0_RGMII_RXD0_CONN_ENET0_RGMII_RXD0 0x06000020
168 IMX8QXP_ENET0_RGMII_RXD1_CONN_ENET0_RGMII_RXD1 0x06000020
169 IMX8QXP_ENET0_RGMII_RXD2_CONN_ENET0_RGMII_RXD2 0x06000020
170 IMX8QXP_ENET0_RGMII_RXD3_CONN_ENET0_RGMII_RXD3 0x06000020
171 >;
172 };
173
174 pinctrl_ioexp_rst: ioexp_rst_grp {
175 fsl,pins = <
176 IMX8QXP_SPI2_SDO_LSIO_GPIO1_IO01 0x06000021
177 >;
178 };
179
180 pinctrl_isl29023: isl29023grp {
181 fsl,pins = <
182 IMX8QXP_SPI2_SDI_LSIO_GPIO1_IO02 0x00000021
183 >;
184 };
185
186 pinctrl_lpi2c1: lpi2c1grp {
187 fsl,pins = <
188 IMX8QXP_USB_SS3_TC1_ADMA_I2C1_SCL 0x06000021
189 IMX8QXP_USB_SS3_TC3_ADMA_I2C1_SDA 0x06000021
190 >;
191 };
192
193 pinctrl_lpuart0: lpuart0grp {
194 fsl,pins = <
195 IMX8QXP_UART0_RX_ADMA_UART0_RX 0x06000020
196 IMX8QXP_UART0_TX_ADMA_UART0_TX 0x06000020
197 >;
198 };
199
200 pinctrl_usdhc1: usdhc1grp {
201 fsl,pins = <
202 IMX8QXP_EMMC0_CLK_CONN_EMMC0_CLK 0x06000041
203 IMX8QXP_EMMC0_CMD_CONN_EMMC0_CMD 0x00000021
204 IMX8QXP_EMMC0_DATA0_CONN_EMMC0_DATA0 0x00000021
205 IMX8QXP_EMMC0_DATA1_CONN_EMMC0_DATA1 0x00000021
206 IMX8QXP_EMMC0_DATA2_CONN_EMMC0_DATA2 0x00000021
207 IMX8QXP_EMMC0_DATA3_CONN_EMMC0_DATA3 0x00000021
208 IMX8QXP_EMMC0_DATA4_CONN_EMMC0_DATA4 0x00000021
209 IMX8QXP_EMMC0_DATA5_CONN_EMMC0_DATA5 0x00000021
210 IMX8QXP_EMMC0_DATA6_CONN_EMMC0_DATA6 0x00000021
211 IMX8QXP_EMMC0_DATA7_CONN_EMMC0_DATA7 0x00000021
212 IMX8QXP_EMMC0_STROBE_CONN_EMMC0_STROBE 0x00000041
213 >;
214 };
215
216 pinctrl_usdhc2: usdhc2grp {
217 fsl,pins = <
218 IMX8QXP_USDHC1_CLK_CONN_USDHC1_CLK 0x06000041
219 IMX8QXP_USDHC1_CMD_CONN_USDHC1_CMD 0x00000021
220 IMX8QXP_USDHC1_DATA0_CONN_USDHC1_DATA0 0x00000021
221 IMX8QXP_USDHC1_DATA1_CONN_USDHC1_DATA1 0x00000021
222 IMX8QXP_USDHC1_DATA2_CONN_USDHC1_DATA2 0x00000021
223 IMX8QXP_USDHC1_DATA3_CONN_USDHC1_DATA3 0x00000021
224 IMX8QXP_USDHC1_VSELECT_CONN_USDHC1_VSELECT 0x00000021
225 >;
226 };
227};
228
229&adma_dsp {
230 status = "okay";
231};