xref: /openbmc/linux/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts (revision 26de33a1e273ea2b66c5470a4434754d6386d2e2)
1fdea904eSAisheng Dong// SPDX-License-Identifier: GPL-2.0+
2fdea904eSAisheng Dong/*
3fdea904eSAisheng Dong * Copyright 2017~2018 NXP
4fdea904eSAisheng Dong */
5fdea904eSAisheng Dong
6fdea904eSAisheng Dong/dts-v1/;
7fdea904eSAisheng Dong
8fdea904eSAisheng Dong#include "imx8qxp.dtsi"
9fdea904eSAisheng Dong
10fdea904eSAisheng Dong/ {
11fdea904eSAisheng Dong	model = "Freescale i.MX8QXP MEK";
12fdea904eSAisheng Dong	compatible = "fsl,imx8qxp-mek", "fsl,imx8qxp";
13fdea904eSAisheng Dong
14fdea904eSAisheng Dong	chosen {
15fdea904eSAisheng Dong		stdout-path = &adma_lpuart0;
16fdea904eSAisheng Dong	};
17fdea904eSAisheng Dong
18fdea904eSAisheng Dong	memory@80000000 {
19fdea904eSAisheng Dong		device_type = "memory";
20fdea904eSAisheng Dong		reg = <0x00000000 0x80000000 0 0x40000000>;
21fdea904eSAisheng Dong	};
22fdea904eSAisheng Dong
23fdea904eSAisheng Dong	reg_usdhc2_vmmc: usdhc2-vmmc {
24fdea904eSAisheng Dong		compatible = "regulator-fixed";
25fdea904eSAisheng Dong		regulator-name = "SD1_SPWR";
26fdea904eSAisheng Dong		regulator-min-microvolt = <3000000>;
27fdea904eSAisheng Dong		regulator-max-microvolt = <3000000>;
28fdea904eSAisheng Dong		gpio = <&lsio_gpio4 19 GPIO_ACTIVE_HIGH>;
29fdea904eSAisheng Dong		enable-active-high;
30fdea904eSAisheng Dong	};
31fdea904eSAisheng Dong};
32fdea904eSAisheng Dong
33bc3895b2SAnson Huang&adma_dsp {
34fdea904eSAisheng Dong	status = "okay";
35fdea904eSAisheng Dong};
36fdea904eSAisheng Dong
377b2ac489SLeonard Crestez&adma_i2c1 {
387b2ac489SLeonard Crestez	#address-cells = <1>;
397b2ac489SLeonard Crestez	#size-cells = <0>;
407b2ac489SLeonard Crestez	clock-frequency = <100000>;
417b2ac489SLeonard Crestez	pinctrl-names = "default";
427b2ac489SLeonard Crestez	pinctrl-0 = <&pinctrl_lpi2c1 &pinctrl_ioexp_rst>;
437b2ac489SLeonard Crestez	status = "okay";
447b2ac489SLeonard Crestez
457b2ac489SLeonard Crestez	i2c-switch@71 {
467b2ac489SLeonard Crestez		compatible = "nxp,pca9646", "nxp,pca9546";
477b2ac489SLeonard Crestez		#address-cells = <1>;
487b2ac489SLeonard Crestez		#size-cells = <0>;
497b2ac489SLeonard Crestez		reg = <0x71>;
507b2ac489SLeonard Crestez		reset-gpios = <&lsio_gpio1 1 GPIO_ACTIVE_LOW>;
517b2ac489SLeonard Crestez
527b2ac489SLeonard Crestez		i2c@0 {
537b2ac489SLeonard Crestez			#address-cells = <1>;
547b2ac489SLeonard Crestez			#size-cells = <0>;
557b2ac489SLeonard Crestez			reg = <0>;
567b2ac489SLeonard Crestez
577b2ac489SLeonard Crestez			max7322: gpio@68 {
587b2ac489SLeonard Crestez				compatible = "maxim,max7322";
597b2ac489SLeonard Crestez				reg = <0x68>;
607b2ac489SLeonard Crestez				gpio-controller;
617b2ac489SLeonard Crestez				#gpio-cells = <2>;
627b2ac489SLeonard Crestez			};
637b2ac489SLeonard Crestez		};
647b2ac489SLeonard Crestez
657b2ac489SLeonard Crestez		i2c@1 {
667b2ac489SLeonard Crestez			#address-cells = <1>;
677b2ac489SLeonard Crestez			#size-cells = <0>;
687b2ac489SLeonard Crestez			reg = <1>;
697b2ac489SLeonard Crestez		};
707b2ac489SLeonard Crestez
717b2ac489SLeonard Crestez		i2c@2 {
727b2ac489SLeonard Crestez			#address-cells = <1>;
737b2ac489SLeonard Crestez			#size-cells = <0>;
747b2ac489SLeonard Crestez			reg = <2>;
757b2ac489SLeonard Crestez
767b2ac489SLeonard Crestez			pressure-sensor@60 {
777b2ac489SLeonard Crestez				compatible = "fsl,mpl3115";
787b2ac489SLeonard Crestez				reg = <0x60>;
797b2ac489SLeonard Crestez			};
807b2ac489SLeonard Crestez		};
817b2ac489SLeonard Crestez
827b2ac489SLeonard Crestez		i2c@3 {
837b2ac489SLeonard Crestez			#address-cells = <1>;
847b2ac489SLeonard Crestez			#size-cells = <0>;
857b2ac489SLeonard Crestez			reg = <3>;
867b2ac489SLeonard Crestez
877b2ac489SLeonard Crestez			pca9557_a: gpio@1a {
887b2ac489SLeonard Crestez				compatible = "nxp,pca9557";
897b2ac489SLeonard Crestez				reg = <0x1a>;
907b2ac489SLeonard Crestez				gpio-controller;
917b2ac489SLeonard Crestez				#gpio-cells = <2>;
927b2ac489SLeonard Crestez			};
937b2ac489SLeonard Crestez
947b2ac489SLeonard Crestez			pca9557_b: gpio@1d {
957b2ac489SLeonard Crestez				compatible = "nxp,pca9557";
967b2ac489SLeonard Crestez				reg = <0x1d>;
977b2ac489SLeonard Crestez				gpio-controller;
987b2ac489SLeonard Crestez				#gpio-cells = <2>;
997b2ac489SLeonard Crestez			};
1007b2ac489SLeonard Crestez
1017b2ac489SLeonard Crestez			light-sensor@44 {
1027b2ac489SLeonard Crestez				pinctrl-names = "default";
1037b2ac489SLeonard Crestez				pinctrl-0 = <&pinctrl_isl29023>;
1047b2ac489SLeonard Crestez				compatible = "isil,isl29023";
1057b2ac489SLeonard Crestez				reg = <0x44>;
1067b2ac489SLeonard Crestez				interrupt-parent = <&lsio_gpio1>;
1077b2ac489SLeonard Crestez				interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
1087b2ac489SLeonard Crestez			};
1097b2ac489SLeonard Crestez		};
1107b2ac489SLeonard Crestez	};
1117b2ac489SLeonard Crestez};
1127b2ac489SLeonard Crestez
113bc3895b2SAnson Huang&adma_lpuart0 {
114bc3895b2SAnson Huang	pinctrl-names = "default";
115bc3895b2SAnson Huang	pinctrl-0 = <&pinctrl_lpuart0>;
116bc3895b2SAnson Huang	status = "okay";
117bc3895b2SAnson Huang};
118bc3895b2SAnson Huang
119bc3895b2SAnson Huang&fec1 {
120bc3895b2SAnson Huang	pinctrl-names = "default";
121bc3895b2SAnson Huang	pinctrl-0 = <&pinctrl_fec1>;
122bc3895b2SAnson Huang	phy-mode = "rgmii-id";
123bc3895b2SAnson Huang	phy-handle = <&ethphy0>;
124bc3895b2SAnson Huang	fsl,magic-packet;
125bc3895b2SAnson Huang	status = "okay";
126bc3895b2SAnson Huang
127bc3895b2SAnson Huang	mdio {
128bc3895b2SAnson Huang		#address-cells = <1>;
129bc3895b2SAnson Huang		#size-cells = <0>;
130bc3895b2SAnson Huang
131bc3895b2SAnson Huang		ethphy0: ethernet-phy@0 {
132bc3895b2SAnson Huang			compatible = "ethernet-phy-ieee802.3-c22";
133bc3895b2SAnson Huang			reg = <0>;
134bc3895b2SAnson Huang		};
135bc3895b2SAnson Huang	};
136bc3895b2SAnson Huang};
137bc3895b2SAnson Huang
138bc3895b2SAnson Huang&scu_key {
139bc3895b2SAnson Huang	status = "okay";
140bc3895b2SAnson Huang};
141bc3895b2SAnson Huang
142d394039cSAnson Huang&thermal_zones {
143d394039cSAnson Huang	pmic-thermal0 {
144d394039cSAnson Huang		polling-delay-passive = <250>;
145d394039cSAnson Huang		polling-delay = <2000>;
146d394039cSAnson Huang		thermal-sensors = <&tsens IMX_SC_R_PMIC_0>;
147d394039cSAnson Huang
148d394039cSAnson Huang		trips {
149d394039cSAnson Huang			pmic_alert0: trip0 {
150d394039cSAnson Huang				temperature = <110000>;
151d394039cSAnson Huang				hysteresis = <2000>;
152d394039cSAnson Huang				type = "passive";
153d394039cSAnson Huang			};
154d394039cSAnson Huang
155d394039cSAnson Huang			pmic_crit0: trip1 {
156d394039cSAnson Huang				temperature = <125000>;
157d394039cSAnson Huang				hysteresis = <2000>;
158d394039cSAnson Huang				type = "critical";
159d394039cSAnson Huang			};
160d394039cSAnson Huang		};
161d394039cSAnson Huang
162d394039cSAnson Huang		cooling-maps {
163d394039cSAnson Huang			map0 {
164d394039cSAnson Huang				trip = <&pmic_alert0>;
165d394039cSAnson Huang				cooling-device =
166d394039cSAnson Huang					<&A35_0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
167d394039cSAnson Huang					<&A35_1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
168d394039cSAnson Huang					<&A35_2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
169d394039cSAnson Huang					<&A35_3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
170d394039cSAnson Huang			};
171d394039cSAnson Huang		};
172d394039cSAnson Huang	};
173d394039cSAnson Huang};
174d394039cSAnson Huang
175fdea904eSAisheng Dong&usdhc1 {
176*26de33a1SDong Aisheng	assigned-clocks = <&clk IMX_SC_R_SDHC_0 IMX_SC_PM_CLK_PER>;
1773944b454SAnson Huang	assigned-clock-rates = <200000000>;
178fdea904eSAisheng Dong	pinctrl-names = "default";
179fdea904eSAisheng Dong	pinctrl-0 = <&pinctrl_usdhc1>;
180fdea904eSAisheng Dong	bus-width = <8>;
181fdea904eSAisheng Dong	no-sd;
182fdea904eSAisheng Dong	no-sdio;
183fdea904eSAisheng Dong	non-removable;
184fdea904eSAisheng Dong	status = "okay";
185fdea904eSAisheng Dong};
186fdea904eSAisheng Dong
187fdea904eSAisheng Dong&usdhc2 {
188*26de33a1SDong Aisheng	assigned-clocks = <&clk IMX_SC_R_SDHC_1 IMX_SC_PM_CLK_PER>;
1893944b454SAnson Huang	assigned-clock-rates = <200000000>;
190fdea904eSAisheng Dong	pinctrl-names = "default";
191fdea904eSAisheng Dong	pinctrl-0 = <&pinctrl_usdhc2>;
192fdea904eSAisheng Dong	bus-width = <4>;
193fdea904eSAisheng Dong	vmmc-supply = <&reg_usdhc2_vmmc>;
194fdea904eSAisheng Dong	cd-gpios = <&lsio_gpio4 22 GPIO_ACTIVE_LOW>;
195fdea904eSAisheng Dong	wp-gpios = <&lsio_gpio4 21 GPIO_ACTIVE_HIGH>;
196fdea904eSAisheng Dong	status = "okay";
197fdea904eSAisheng Dong};
198fdea904eSAisheng Dong
199fdea904eSAisheng Dong&iomuxc {
200fdea904eSAisheng Dong	pinctrl_fec1: fec1grp {
201fdea904eSAisheng Dong		fsl,pins = <
202fdea904eSAisheng Dong			IMX8QXP_ENET0_MDC_CONN_ENET0_MDC			0x06000020
203fdea904eSAisheng Dong			IMX8QXP_ENET0_MDIO_CONN_ENET0_MDIO			0x06000020
204fdea904eSAisheng Dong			IMX8QXP_ENET0_RGMII_TX_CTL_CONN_ENET0_RGMII_TX_CTL	0x06000020
205fdea904eSAisheng Dong			IMX8QXP_ENET0_RGMII_TXC_CONN_ENET0_RGMII_TXC		0x06000020
206fdea904eSAisheng Dong			IMX8QXP_ENET0_RGMII_TXD0_CONN_ENET0_RGMII_TXD0		0x06000020
207fdea904eSAisheng Dong			IMX8QXP_ENET0_RGMII_TXD1_CONN_ENET0_RGMII_TXD1		0x06000020
208fdea904eSAisheng Dong			IMX8QXP_ENET0_RGMII_TXD2_CONN_ENET0_RGMII_TXD2		0x06000020
209fdea904eSAisheng Dong			IMX8QXP_ENET0_RGMII_TXD3_CONN_ENET0_RGMII_TXD3		0x06000020
210fdea904eSAisheng Dong			IMX8QXP_ENET0_RGMII_RXC_CONN_ENET0_RGMII_RXC		0x06000020
211fdea904eSAisheng Dong			IMX8QXP_ENET0_RGMII_RX_CTL_CONN_ENET0_RGMII_RX_CTL	0x06000020
212fdea904eSAisheng Dong			IMX8QXP_ENET0_RGMII_RXD0_CONN_ENET0_RGMII_RXD0		0x06000020
213fdea904eSAisheng Dong			IMX8QXP_ENET0_RGMII_RXD1_CONN_ENET0_RGMII_RXD1		0x06000020
214fdea904eSAisheng Dong			IMX8QXP_ENET0_RGMII_RXD2_CONN_ENET0_RGMII_RXD2		0x06000020
215fdea904eSAisheng Dong			IMX8QXP_ENET0_RGMII_RXD3_CONN_ENET0_RGMII_RXD3		0x06000020
216fdea904eSAisheng Dong		>;
217fdea904eSAisheng Dong	};
218fdea904eSAisheng Dong
219e98ad559SFabio Estevam	pinctrl_ioexp_rst: ioexprstgrp {
2207b2ac489SLeonard Crestez		fsl,pins = <
2217b2ac489SLeonard Crestez			IMX8QXP_SPI2_SDO_LSIO_GPIO1_IO01			0x06000021
2227b2ac489SLeonard Crestez		>;
2237b2ac489SLeonard Crestez	};
2247b2ac489SLeonard Crestez
2257b2ac489SLeonard Crestez	pinctrl_isl29023: isl29023grp {
2267b2ac489SLeonard Crestez		fsl,pins = <
2277b2ac489SLeonard Crestez			IMX8QXP_SPI2_SDI_LSIO_GPIO1_IO02			0x00000021
2287b2ac489SLeonard Crestez		>;
2297b2ac489SLeonard Crestez	};
2307b2ac489SLeonard Crestez
2317b2ac489SLeonard Crestez	pinctrl_lpi2c1: lpi2c1grp {
2327b2ac489SLeonard Crestez		fsl,pins = <
2337b2ac489SLeonard Crestez			IMX8QXP_USB_SS3_TC1_ADMA_I2C1_SCL			0x06000021
2347b2ac489SLeonard Crestez			IMX8QXP_USB_SS3_TC3_ADMA_I2C1_SDA			0x06000021
2357b2ac489SLeonard Crestez		>;
2367b2ac489SLeonard Crestez	};
2377b2ac489SLeonard Crestez
238fdea904eSAisheng Dong	pinctrl_lpuart0: lpuart0grp {
239fdea904eSAisheng Dong		fsl,pins = <
240fdea904eSAisheng Dong			IMX8QXP_UART0_RX_ADMA_UART0_RX				0x06000020
241fdea904eSAisheng Dong			IMX8QXP_UART0_TX_ADMA_UART0_TX				0x06000020
242fdea904eSAisheng Dong		>;
243fdea904eSAisheng Dong	};
244fdea904eSAisheng Dong
245fdea904eSAisheng Dong	pinctrl_usdhc1: usdhc1grp {
246fdea904eSAisheng Dong		fsl,pins = <
247fdea904eSAisheng Dong			IMX8QXP_EMMC0_CLK_CONN_EMMC0_CLK			0x06000041
248fdea904eSAisheng Dong			IMX8QXP_EMMC0_CMD_CONN_EMMC0_CMD			0x00000021
249fdea904eSAisheng Dong			IMX8QXP_EMMC0_DATA0_CONN_EMMC0_DATA0			0x00000021
250fdea904eSAisheng Dong			IMX8QXP_EMMC0_DATA1_CONN_EMMC0_DATA1			0x00000021
251fdea904eSAisheng Dong			IMX8QXP_EMMC0_DATA2_CONN_EMMC0_DATA2			0x00000021
252fdea904eSAisheng Dong			IMX8QXP_EMMC0_DATA3_CONN_EMMC0_DATA3			0x00000021
253fdea904eSAisheng Dong			IMX8QXP_EMMC0_DATA4_CONN_EMMC0_DATA4			0x00000021
254fdea904eSAisheng Dong			IMX8QXP_EMMC0_DATA5_CONN_EMMC0_DATA5			0x00000021
255fdea904eSAisheng Dong			IMX8QXP_EMMC0_DATA6_CONN_EMMC0_DATA6			0x00000021
256fdea904eSAisheng Dong			IMX8QXP_EMMC0_DATA7_CONN_EMMC0_DATA7			0x00000021
257fdea904eSAisheng Dong			IMX8QXP_EMMC0_STROBE_CONN_EMMC0_STROBE			0x00000041
258fdea904eSAisheng Dong		>;
259fdea904eSAisheng Dong	};
260fdea904eSAisheng Dong
261fdea904eSAisheng Dong	pinctrl_usdhc2: usdhc2grp {
262fdea904eSAisheng Dong		fsl,pins = <
263fdea904eSAisheng Dong			IMX8QXP_USDHC1_CLK_CONN_USDHC1_CLK			0x06000041
264fdea904eSAisheng Dong			IMX8QXP_USDHC1_CMD_CONN_USDHC1_CMD			0x00000021
265fdea904eSAisheng Dong			IMX8QXP_USDHC1_DATA0_CONN_USDHC1_DATA0			0x00000021
266fdea904eSAisheng Dong			IMX8QXP_USDHC1_DATA1_CONN_USDHC1_DATA1			0x00000021
267fdea904eSAisheng Dong			IMX8QXP_USDHC1_DATA2_CONN_USDHC1_DATA2			0x00000021
268fdea904eSAisheng Dong			IMX8QXP_USDHC1_DATA3_CONN_USDHC1_DATA3			0x00000021
269fdea904eSAisheng Dong			IMX8QXP_USDHC1_VSELECT_CONN_USDHC1_VSELECT		0x00000021
270fdea904eSAisheng Dong		>;
271fdea904eSAisheng Dong	};
272fdea904eSAisheng Dong};
273