xref: /linux/arch/arm/boot/dts/nxp/imx/imx7d-zii-rmu2.dts (revision 3a39d672e7f48b8d6b91a09afa4b55352773b4b5)
1724ba675SRob Herring// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2724ba675SRob Herring/*
3724ba675SRob Herring * Device tree file for ZII's RMU2 board
4724ba675SRob Herring *
5724ba675SRob Herring * RMU - Remote Modem Unit
6724ba675SRob Herring *
7724ba675SRob Herring * Copyright (C) 2019 Zodiac Inflight Innovations
8724ba675SRob Herring */
9724ba675SRob Herring
10724ba675SRob Herring/dts-v1/;
11724ba675SRob Herring#include <dt-bindings/thermal/thermal.h>
12724ba675SRob Herring#include "imx7d.dtsi"
13724ba675SRob Herring
14724ba675SRob Herring/ {
15724ba675SRob Herring	model = "ZII RMU2 Board";
16724ba675SRob Herring	compatible = "zii,imx7d-rmu2", "fsl,imx7d";
17724ba675SRob Herring
18724ba675SRob Herring	chosen {
19724ba675SRob Herring		stdout-path = &uart2;
20724ba675SRob Herring	};
21724ba675SRob Herring
22724ba675SRob Herring	gpio-leds {
23724ba675SRob Herring		compatible = "gpio-leds";
24724ba675SRob Herring		pinctrl-0 = <&pinctrl_leds_debug>;
25724ba675SRob Herring		pinctrl-names = "default";
26724ba675SRob Herring
27724ba675SRob Herring		led-debug {
28724ba675SRob Herring			label = "zii:green:debug1";
29724ba675SRob Herring			gpios = <&gpio2 8 GPIO_ACTIVE_HIGH>;
30724ba675SRob Herring			linux,default-trigger = "heartbeat";
31724ba675SRob Herring		};
32724ba675SRob Herring	};
33724ba675SRob Herring};
34724ba675SRob Herring
35724ba675SRob Herring&cpu0 {
36724ba675SRob Herring	cpu-supply = <&sw1a_reg>;
37724ba675SRob Herring};
38724ba675SRob Herring
39724ba675SRob Herring&ecspi1 {
40724ba675SRob Herring	pinctrl-names = "default";
41724ba675SRob Herring	pinctrl-0 = <&pinctrl_ecspi1>;
42724ba675SRob Herring	cs-gpios = <&gpio4 19 GPIO_ACTIVE_LOW>;
43724ba675SRob Herring	status = "okay";
44724ba675SRob Herring
45724ba675SRob Herring	flash@0 {
46724ba675SRob Herring		compatible = "jedec,spi-nor";
47724ba675SRob Herring		spi-max-frequency = <20000000>;
48724ba675SRob Herring		reg = <0>;
49724ba675SRob Herring		#address-cells = <1>;
50724ba675SRob Herring		#size-cells = <1>;
51724ba675SRob Herring	};
52724ba675SRob Herring};
53724ba675SRob Herring
54724ba675SRob Herring&fec1 {
55724ba675SRob Herring	pinctrl-names = "default";
56724ba675SRob Herring	pinctrl-0 = <&pinctrl_enet1>;
57724ba675SRob Herring	assigned-clocks = <&clks IMX7D_ENET1_TIME_ROOT_SRC>,
58724ba675SRob Herring			  <&clks IMX7D_ENET1_TIME_ROOT_CLK>;
59724ba675SRob Herring	assigned-clock-parents = <&clks IMX7D_PLL_ENET_MAIN_100M_CLK>;
60724ba675SRob Herring	assigned-clock-rates = <0>, <100000000>;
61724ba675SRob Herring	phy-mode = "rgmii-id";
62724ba675SRob Herring	phy-handle = <&fec1_phy>;
63724ba675SRob Herring	status = "okay";
64724ba675SRob Herring
65724ba675SRob Herring	mdio {
66724ba675SRob Herring		#address-cells = <1>;
67724ba675SRob Herring		#size-cells = <0>;
68724ba675SRob Herring
69724ba675SRob Herring		fec1_phy: ethernet-phy@0 {
70724ba675SRob Herring			pinctrl-names = "default";
71724ba675SRob Herring			pinctrl-0 = <&pinctrl_enet1_phy_reset>,
72724ba675SRob Herring				    <&pinctrl_enet1_phy_interrupt>;
73724ba675SRob Herring			reg = <0>;
74724ba675SRob Herring			interrupt-parent = <&gpio1>;
75724ba675SRob Herring			interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
76724ba675SRob Herring			reset-gpios = <&gpio5 11 GPIO_ACTIVE_LOW>;
77724ba675SRob Herring		};
78724ba675SRob Herring	};
79724ba675SRob Herring};
80724ba675SRob Herring
81724ba675SRob Herring&i2c1 {
82724ba675SRob Herring	clock-frequency = <100000>;
83724ba675SRob Herring	pinctrl-names = "default";
84724ba675SRob Herring	pinctrl-0 = <&pinctrl_i2c1>;
85724ba675SRob Herring	status = "okay";
86724ba675SRob Herring
87724ba675SRob Herring	pmic@8 {
88724ba675SRob Herring		compatible = "fsl,pfuze3000";
89724ba675SRob Herring		reg = <0x08>;
90724ba675SRob Herring
91724ba675SRob Herring		regulators {
92724ba675SRob Herring			sw1a_reg: sw1a {
93724ba675SRob Herring				regulator-min-microvolt = <700000>;
94724ba675SRob Herring				regulator-max-microvolt = <3300000>;
95724ba675SRob Herring				regulator-boot-on;
96724ba675SRob Herring				regulator-always-on;
97724ba675SRob Herring				regulator-ramp-delay = <6250>;
98724ba675SRob Herring			};
99724ba675SRob Herring
100724ba675SRob Herring			sw1c_reg: sw1b {
101724ba675SRob Herring				regulator-min-microvolt = <700000>;
102724ba675SRob Herring				regulator-max-microvolt = <1475000>;
103724ba675SRob Herring				regulator-boot-on;
104724ba675SRob Herring				regulator-always-on;
105724ba675SRob Herring				regulator-ramp-delay = <6250>;
106724ba675SRob Herring			};
107724ba675SRob Herring
108724ba675SRob Herring			sw2_reg: sw2 {
109724ba675SRob Herring				regulator-min-microvolt = <1500000>;
110724ba675SRob Herring				regulator-max-microvolt = <1850000>;
111724ba675SRob Herring				regulator-boot-on;
112724ba675SRob Herring				regulator-always-on;
113724ba675SRob Herring			};
114724ba675SRob Herring
115724ba675SRob Herring			sw3a_reg: sw3 {
116724ba675SRob Herring				regulator-min-microvolt = <900000>;
117724ba675SRob Herring				regulator-max-microvolt = <1650000>;
118724ba675SRob Herring				regulator-boot-on;
119724ba675SRob Herring				regulator-always-on;
120724ba675SRob Herring			};
121724ba675SRob Herring
122724ba675SRob Herring			swbst_reg: swbst {
123724ba675SRob Herring				regulator-min-microvolt = <5000000>;
124724ba675SRob Herring				regulator-max-microvolt = <5150000>;
125724ba675SRob Herring			};
126724ba675SRob Herring
127724ba675SRob Herring			snvs_reg: vsnvs {
128724ba675SRob Herring				regulator-min-microvolt = <1000000>;
129724ba675SRob Herring				regulator-max-microvolt = <3000000>;
130724ba675SRob Herring				regulator-boot-on;
131724ba675SRob Herring				regulator-always-on;
132724ba675SRob Herring			};
133724ba675SRob Herring
134724ba675SRob Herring			vref_reg: vrefddr {
135724ba675SRob Herring				regulator-boot-on;
136724ba675SRob Herring				regulator-always-on;
137724ba675SRob Herring			};
138724ba675SRob Herring
139724ba675SRob Herring			vgen1_reg: vldo1 {
140724ba675SRob Herring				regulator-min-microvolt = <1800000>;
141724ba675SRob Herring				regulator-max-microvolt = <3300000>;
142724ba675SRob Herring				regulator-always-on;
143724ba675SRob Herring			};
144724ba675SRob Herring
145724ba675SRob Herring			vgen2_reg: vldo2 {
146724ba675SRob Herring				regulator-min-microvolt = <800000>;
147724ba675SRob Herring				regulator-max-microvolt = <1550000>;
148724ba675SRob Herring				regulator-always-on;
149724ba675SRob Herring			};
150724ba675SRob Herring
151724ba675SRob Herring			vgen3_reg: vccsd {
152724ba675SRob Herring				regulator-min-microvolt = <2850000>;
153724ba675SRob Herring				regulator-max-microvolt = <3300000>;
154724ba675SRob Herring				regulator-always-on;
155724ba675SRob Herring			};
156724ba675SRob Herring
157724ba675SRob Herring			vgen4_reg: v33 {
158724ba675SRob Herring				regulator-min-microvolt = <2850000>;
159724ba675SRob Herring				regulator-max-microvolt = <3300000>;
160724ba675SRob Herring				regulator-always-on;
161724ba675SRob Herring			};
162724ba675SRob Herring
163724ba675SRob Herring			vgen5_reg: vldo3 {
164724ba675SRob Herring				regulator-min-microvolt = <1800000>;
165724ba675SRob Herring				regulator-max-microvolt = <3300000>;
166724ba675SRob Herring				regulator-always-on;
167724ba675SRob Herring			};
168724ba675SRob Herring
169724ba675SRob Herring			vgen6_reg: vldo4 {
170724ba675SRob Herring				regulator-min-microvolt = <1800000>;
171724ba675SRob Herring				regulator-max-microvolt = <3300000>;
172724ba675SRob Herring				regulator-always-on;
173724ba675SRob Herring			};
174724ba675SRob Herring		};
175724ba675SRob Herring	};
176724ba675SRob Herring
177724ba675SRob Herring	eeprom@50 {
178724ba675SRob Herring		compatible = "atmel,24c04";
179724ba675SRob Herring		reg = <0x50>;
180724ba675SRob Herring	};
181724ba675SRob Herring
182724ba675SRob Herring	eeprom@52 {
183724ba675SRob Herring		compatible = "atmel,24c04";
184724ba675SRob Herring		reg = <0x52>;
185724ba675SRob Herring	};
186724ba675SRob Herring};
187724ba675SRob Herring
188724ba675SRob Herring&snvs_rtc {
189724ba675SRob Herring	status = "disabled";
190724ba675SRob Herring};
191724ba675SRob Herring
192724ba675SRob Herring&uart2 {
193724ba675SRob Herring	pinctrl-names = "default";
194724ba675SRob Herring	pinctrl-0 = <&pinctrl_uart2>;
195724ba675SRob Herring	assigned-clocks = <&clks IMX7D_UART2_ROOT_SRC>;
196724ba675SRob Herring	assigned-clock-parents = <&clks IMX7D_OSC_24M_CLK>;
197724ba675SRob Herring	status = "okay";
198724ba675SRob Herring};
199724ba675SRob Herring
200724ba675SRob Herring&uart4 {
201724ba675SRob Herring	pinctrl-names = "default";
202724ba675SRob Herring	pinctrl-0 = <&pinctrl_uart4>;
203724ba675SRob Herring	assigned-clocks = <&clks IMX7D_UART4_ROOT_SRC>;
204724ba675SRob Herring	assigned-clock-parents = <&clks IMX7D_PLL_SYS_MAIN_240M_CLK>;
205724ba675SRob Herring	status = "okay";
206724ba675SRob Herring
207724ba675SRob Herring	mcu {
208724ba675SRob Herring		compatible = "zii,rave-sp-rdu2";
209724ba675SRob Herring		current-speed = <1000000>;
210724ba675SRob Herring		#address-cells = <1>;
211724ba675SRob Herring		#size-cells = <1>;
212724ba675SRob Herring
213724ba675SRob Herring		watchdog {
214724ba675SRob Herring			compatible = "zii,rave-sp-watchdog";
215724ba675SRob Herring		};
216724ba675SRob Herring
217724ba675SRob Herring		eeprom@a3 {
218724ba675SRob Herring			compatible = "zii,rave-sp-eeprom";
219724ba675SRob Herring			reg = <0xa3 0x4000>;
220724ba675SRob Herring			#address-cells = <1>;
221724ba675SRob Herring			#size-cells = <1>;
222724ba675SRob Herring			zii,eeprom-name = "main-eeprom";
223724ba675SRob Herring		};
224724ba675SRob Herring	};
225724ba675SRob Herring};
226724ba675SRob Herring
227724ba675SRob Herring&usbotg2 {
228724ba675SRob Herring	dr_mode = "host";
229724ba675SRob Herring	disable-over-current;
230724ba675SRob Herring	status = "okay";
231724ba675SRob Herring};
232724ba675SRob Herring
233724ba675SRob Herring&usdhc1 {
234724ba675SRob Herring	pinctrl-names = "default";
235724ba675SRob Herring	pinctrl-0 = <&pinctrl_usdhc1>;
236724ba675SRob Herring	bus-width = <4>;
237724ba675SRob Herring	no-1-8-v;
238724ba675SRob Herring	no-sdio;
239724ba675SRob Herring	keep-power-in-suspend;
240724ba675SRob Herring	status = "okay";
241724ba675SRob Herring};
242724ba675SRob Herring
243724ba675SRob Herring&usdhc3 {
244724ba675SRob Herring	pinctrl-names = "default";
245724ba675SRob Herring	pinctrl-0 = <&pinctrl_usdhc3>;
246724ba675SRob Herring	bus-width = <8>;
247724ba675SRob Herring	no-1-8-v;
248724ba675SRob Herring	non-removable;
249724ba675SRob Herring	no-sdio;
250724ba675SRob Herring	no-sd;
251724ba675SRob Herring	keep-power-in-suspend;
252724ba675SRob Herring	status = "okay";
253724ba675SRob Herring};
254724ba675SRob Herring
255724ba675SRob Herring&wdog1 {
256724ba675SRob Herring	status = "disabled";
257724ba675SRob Herring};
258724ba675SRob Herring
259724ba675SRob Herring&iomuxc {
260724ba675SRob Herring	pinctrl_ecspi1: ecspi1grp {
261724ba675SRob Herring		fsl,pins = <
262724ba675SRob Herring			MX7D_PAD_ECSPI1_SCLK__ECSPI1_SCLK	0x2
263724ba675SRob Herring			MX7D_PAD_ECSPI1_MOSI__ECSPI1_MOSI	0x2
264724ba675SRob Herring			MX7D_PAD_ECSPI1_MISO__ECSPI1_MISO	0x2
265724ba675SRob Herring			MX7D_PAD_ECSPI1_SS0__GPIO4_IO19         0x59
266724ba675SRob Herring		>;
267724ba675SRob Herring	};
268724ba675SRob Herring
269724ba675SRob Herring	pinctrl_enet1: enet1grp {
270724ba675SRob Herring		fsl,pins = <
271724ba675SRob Herring			MX7D_PAD_SD2_CD_B__ENET1_MDIO				0x3
272724ba675SRob Herring			MX7D_PAD_SD2_WP__ENET1_MDC				0x3
273724ba675SRob Herring			MX7D_PAD_ENET1_RGMII_TXC__ENET1_RGMII_TXC		0x1
274724ba675SRob Herring			MX7D_PAD_ENET1_RGMII_TD0__ENET1_RGMII_TD0		0x1
275724ba675SRob Herring			MX7D_PAD_ENET1_RGMII_TD1__ENET1_RGMII_TD1		0x1
276724ba675SRob Herring			MX7D_PAD_ENET1_RGMII_TD2__ENET1_RGMII_TD2		0x1
277724ba675SRob Herring			MX7D_PAD_ENET1_RGMII_TD3__ENET1_RGMII_TD3		0x1
278724ba675SRob Herring			MX7D_PAD_ENET1_RGMII_TX_CTL__ENET1_RGMII_TX_CTL		0x1
279724ba675SRob Herring			MX7D_PAD_ENET1_RGMII_RXC__ENET1_RGMII_RXC		0x1
280724ba675SRob Herring			MX7D_PAD_ENET1_RGMII_RD0__ENET1_RGMII_RD0		0x1
281724ba675SRob Herring			MX7D_PAD_ENET1_RGMII_RD1__ENET1_RGMII_RD1		0x1
282724ba675SRob Herring			MX7D_PAD_ENET1_RGMII_RD2__ENET1_RGMII_RD2		0x1
283724ba675SRob Herring			MX7D_PAD_ENET1_RGMII_RD3__ENET1_RGMII_RD3		0x1
284724ba675SRob Herring			MX7D_PAD_ENET1_RGMII_RX_CTL__ENET1_RGMII_RX_CTL		0x1
285724ba675SRob Herring		>;
286724ba675SRob Herring	};
287724ba675SRob Herring
288724ba675SRob Herring	pinctrl_enet1_phy_reset: enet1phyresetgrp {
289724ba675SRob Herring		fsl,pins = <
290724ba675SRob Herring			MX7D_PAD_SD2_RESET_B__GPIO5_IO11	0x14
291724ba675SRob Herring
292724ba675SRob Herring		>;
293724ba675SRob Herring	};
294724ba675SRob Herring
295724ba675SRob Herring	pinctrl_i2c1: i2c1grp {
296724ba675SRob Herring		fsl,pins = <
297724ba675SRob Herring			MX7D_PAD_I2C1_SDA__I2C1_SDA		0x4000007f
298724ba675SRob Herring			MX7D_PAD_I2C1_SCL__I2C1_SCL		0x4000007f
299724ba675SRob Herring		>;
300724ba675SRob Herring	};
301724ba675SRob Herring
302724ba675SRob Herring	pinctrl_leds_debug: ledsgrp {
303724ba675SRob Herring		fsl,pins = <
304724ba675SRob Herring			MX7D_PAD_EPDC_DATA08__GPIO2_IO8		0x59
305724ba675SRob Herring		>;
306724ba675SRob Herring	};
307724ba675SRob Herring
308724ba675SRob Herring
309724ba675SRob Herring	pinctrl_uart2: uart2grp {
310724ba675SRob Herring		fsl,pins = <
311724ba675SRob Herring			MX7D_PAD_UART2_RX_DATA__UART2_DCE_RX	0x79
312724ba675SRob Herring			MX7D_PAD_UART2_TX_DATA__UART2_DCE_TX	0x79
313724ba675SRob Herring		>;
314724ba675SRob Herring	};
315724ba675SRob Herring
316724ba675SRob Herring	pinctrl_uart4: uart4grp {
317724ba675SRob Herring		fsl,pins = <
318724ba675SRob Herring			MX7D_PAD_SD2_DATA0__UART4_DCE_RX	0x79
319724ba675SRob Herring			MX7D_PAD_SD2_DATA1__UART4_DCE_TX	0x79
320724ba675SRob Herring		>;
321724ba675SRob Herring	};
322724ba675SRob Herring
323724ba675SRob Herring	pinctrl_usdhc1: usdhc1grp {
324724ba675SRob Herring		fsl,pins = <
325724ba675SRob Herring			MX7D_PAD_SD1_CMD__SD1_CMD		0x59
326724ba675SRob Herring			MX7D_PAD_SD1_CLK__SD1_CLK		0x19
327724ba675SRob Herring			MX7D_PAD_SD1_DATA0__SD1_DATA0		0x59
328724ba675SRob Herring			MX7D_PAD_SD1_DATA1__SD1_DATA1		0x59
329724ba675SRob Herring			MX7D_PAD_SD1_DATA2__SD1_DATA2		0x59
330724ba675SRob Herring			MX7D_PAD_SD1_DATA3__SD1_DATA3		0x59
331724ba675SRob Herring		>;
332724ba675SRob Herring	};
333724ba675SRob Herring
334724ba675SRob Herring	pinctrl_usdhc3: usdhc3grp {
335724ba675SRob Herring		fsl,pins = <
336724ba675SRob Herring			MX7D_PAD_SD3_CMD__SD3_CMD		0x59
337724ba675SRob Herring			MX7D_PAD_SD3_CLK__SD3_CLK		0x19
338724ba675SRob Herring			MX7D_PAD_SD3_DATA0__SD3_DATA0		0x59
339724ba675SRob Herring			MX7D_PAD_SD3_DATA1__SD3_DATA1		0x59
340724ba675SRob Herring			MX7D_PAD_SD3_DATA2__SD3_DATA2		0x59
341724ba675SRob Herring			MX7D_PAD_SD3_DATA3__SD3_DATA3		0x59
342724ba675SRob Herring			MX7D_PAD_SD3_DATA4__SD3_DATA4		0x59
343724ba675SRob Herring			MX7D_PAD_SD3_DATA5__SD3_DATA5		0x59
344724ba675SRob Herring			MX7D_PAD_SD3_DATA6__SD3_DATA6		0x59
345724ba675SRob Herring			MX7D_PAD_SD3_DATA7__SD3_DATA7		0x59
346724ba675SRob Herring			MX7D_PAD_SD3_RESET_B__SD3_RESET_B	0x59
347724ba675SRob Herring		>;
348724ba675SRob Herring	};
349724ba675SRob Herring};
350724ba675SRob Herring
351724ba675SRob Herring&iomuxc_lpsr {
352724ba675SRob Herring	pinctrl_enet1_phy_interrupt: enet1phyinterruptgrp {
353*0e49cfe3SKrzysztof Kozlowski		fsl,pins = <
354724ba675SRob Herring			MX7D_PAD_LPSR_GPIO1_IO02__GPIO1_IO2	0x08
355724ba675SRob Herring		>;
356724ba675SRob Herring	};
357724ba675SRob Herring};
358