xref: /linux/arch/arm/boot/dts/nxp/vf/vf610-zii-spb4.dts (revision 724ba6751532055db75992fc6ae21c3e322e94a7)
1*724ba675SRob Herring// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2*724ba675SRob Herring
3*724ba675SRob Herring/*
4*724ba675SRob Herring * Device tree file for ZII's SPB4 board
5*724ba675SRob Herring *
6*724ba675SRob Herring * SPB - Seat Power Box
7*724ba675SRob Herring *
8*724ba675SRob Herring * Copyright (C) 2019 Zodiac Inflight Innovations
9*724ba675SRob Herring */
10*724ba675SRob Herring
11*724ba675SRob Herring/dts-v1/;
12*724ba675SRob Herring#include "vf610.dtsi"
13*724ba675SRob Herring
14*724ba675SRob Herring/ {
15*724ba675SRob Herring	model = "ZII VF610 SPB4 Board";
16*724ba675SRob Herring	compatible = "zii,vf610spb4", "zii,vf610dev", "fsl,vf610";
17*724ba675SRob Herring
18*724ba675SRob Herring	chosen {
19*724ba675SRob Herring		stdout-path = &uart0;
20*724ba675SRob Herring	};
21*724ba675SRob Herring
22*724ba675SRob Herring	memory@80000000 {
23*724ba675SRob Herring		device_type = "memory";
24*724ba675SRob Herring		reg = <0x80000000 0x20000000>;
25*724ba675SRob Herring	};
26*724ba675SRob Herring
27*724ba675SRob Herring	gpio-leds {
28*724ba675SRob Herring		compatible = "gpio-leds";
29*724ba675SRob Herring		pinctrl-0 = <&pinctrl_leds_debug>;
30*724ba675SRob Herring		pinctrl-names = "default";
31*724ba675SRob Herring
32*724ba675SRob Herring		led-debug {
33*724ba675SRob Herring			label = "zii:green:debug1";
34*724ba675SRob Herring			gpios = <&gpio2 18 GPIO_ACTIVE_HIGH>;
35*724ba675SRob Herring			linux,default-trigger = "heartbeat";
36*724ba675SRob Herring		};
37*724ba675SRob Herring	};
38*724ba675SRob Herring
39*724ba675SRob Herring	reg_vcc_3v3_mcu: regulator-vcc-3v3-mcu {
40*724ba675SRob Herring		compatible = "regulator-fixed";
41*724ba675SRob Herring		regulator-name = "vcc_3v3_mcu";
42*724ba675SRob Herring		regulator-min-microvolt = <3300000>;
43*724ba675SRob Herring		regulator-max-microvolt = <3300000>;
44*724ba675SRob Herring	};
45*724ba675SRob Herring
46*724ba675SRob Herring	supply-voltage-monitor {
47*724ba675SRob Herring		compatible = "iio-hwmon";
48*724ba675SRob Herring		io-channels = <&adc0 8>, /* 28V_SW   */
49*724ba675SRob Herring			      <&adc0 9>, /* +3.3V    */
50*724ba675SRob Herring			      <&adc1 8>, /* VCC_1V5  */
51*724ba675SRob Herring			      <&adc1 9>; /* VCC_1V2  */
52*724ba675SRob Herring	};
53*724ba675SRob Herring};
54*724ba675SRob Herring
55*724ba675SRob Herring&adc0 {
56*724ba675SRob Herring	vref-supply = <&reg_vcc_3v3_mcu>;
57*724ba675SRob Herring	status = "okay";
58*724ba675SRob Herring};
59*724ba675SRob Herring
60*724ba675SRob Herring&adc1 {
61*724ba675SRob Herring	vref-supply = <&reg_vcc_3v3_mcu>;
62*724ba675SRob Herring	status = "okay";
63*724ba675SRob Herring};
64*724ba675SRob Herring
65*724ba675SRob Herring&dspi1 {
66*724ba675SRob Herring	bus-num = <1>;
67*724ba675SRob Herring	pinctrl-names = "default";
68*724ba675SRob Herring	pinctrl-0 = <&pinctrl_dspi1>;
69*724ba675SRob Herring	status = "okay";
70*724ba675SRob Herring
71*724ba675SRob Herring	flash@0 {
72*724ba675SRob Herring		#address-cells = <1>;
73*724ba675SRob Herring		#size-cells = <1>;
74*724ba675SRob Herring		compatible = "m25p128", "jedec,spi-nor";
75*724ba675SRob Herring		reg = <0>;
76*724ba675SRob Herring		spi-max-frequency = <50000000>;
77*724ba675SRob Herring	};
78*724ba675SRob Herring};
79*724ba675SRob Herring
80*724ba675SRob Herring&edma0 {
81*724ba675SRob Herring	status = "okay";
82*724ba675SRob Herring};
83*724ba675SRob Herring
84*724ba675SRob Herring&edma1 {
85*724ba675SRob Herring	status = "okay";
86*724ba675SRob Herring};
87*724ba675SRob Herring
88*724ba675SRob Herring&esdhc0 {
89*724ba675SRob Herring	pinctrl-names = "default";
90*724ba675SRob Herring	pinctrl-0 = <&pinctrl_esdhc0>;
91*724ba675SRob Herring	bus-width = <8>;
92*724ba675SRob Herring	non-removable;
93*724ba675SRob Herring	no-1-8-v;
94*724ba675SRob Herring	keep-power-in-suspend;
95*724ba675SRob Herring	no-sdio;
96*724ba675SRob Herring	no-sd;
97*724ba675SRob Herring	status = "okay";
98*724ba675SRob Herring};
99*724ba675SRob Herring
100*724ba675SRob Herring&esdhc1 {
101*724ba675SRob Herring	pinctrl-names = "default";
102*724ba675SRob Herring	pinctrl-0 = <&pinctrl_esdhc1>;
103*724ba675SRob Herring	bus-width = <4>;
104*724ba675SRob Herring	no-sdio;
105*724ba675SRob Herring	status = "okay";
106*724ba675SRob Herring};
107*724ba675SRob Herring
108*724ba675SRob Herring&fec1 {
109*724ba675SRob Herring	phy-mode = "rmii";
110*724ba675SRob Herring	pinctrl-names = "default";
111*724ba675SRob Herring	pinctrl-0 = <&pinctrl_fec1>;
112*724ba675SRob Herring	status = "okay";
113*724ba675SRob Herring
114*724ba675SRob Herring	fixed-link {
115*724ba675SRob Herring		speed = <100>;
116*724ba675SRob Herring		full-duplex;
117*724ba675SRob Herring	};
118*724ba675SRob Herring
119*724ba675SRob Herring	mdio1: mdio {
120*724ba675SRob Herring		#address-cells = <1>;
121*724ba675SRob Herring		#size-cells = <0>;
122*724ba675SRob Herring		clock-frequency = <12500000>;
123*724ba675SRob Herring		suppress-preamble;
124*724ba675SRob Herring		status = "okay";
125*724ba675SRob Herring
126*724ba675SRob Herring		switch0: switch0@0 {
127*724ba675SRob Herring			compatible = "marvell,mv88e6190";
128*724ba675SRob Herring			pinctrl-0 = <&pinctrl_gpio_switch0>;
129*724ba675SRob Herring			pinctrl-names = "default";
130*724ba675SRob Herring			reg = <0>;
131*724ba675SRob Herring			eeprom-length = <65536>;
132*724ba675SRob Herring			interrupt-parent = <&gpio3>;
133*724ba675SRob Herring			interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
134*724ba675SRob Herring			interrupt-controller;
135*724ba675SRob Herring			#interrupt-cells = <2>;
136*724ba675SRob Herring
137*724ba675SRob Herring			ports {
138*724ba675SRob Herring				#address-cells = <1>;
139*724ba675SRob Herring				#size-cells = <0>;
140*724ba675SRob Herring
141*724ba675SRob Herring				port@0 {
142*724ba675SRob Herring					reg = <0>;
143*724ba675SRob Herring					phy-mode = "rmii";
144*724ba675SRob Herring					ethernet = <&fec1>;
145*724ba675SRob Herring
146*724ba675SRob Herring					fixed-link {
147*724ba675SRob Herring						speed = <100>;
148*724ba675SRob Herring						full-duplex;
149*724ba675SRob Herring					};
150*724ba675SRob Herring				};
151*724ba675SRob Herring
152*724ba675SRob Herring				port@1 {
153*724ba675SRob Herring					reg = <1>;
154*724ba675SRob Herring					label = "eth_cu_1000_1";
155*724ba675SRob Herring				};
156*724ba675SRob Herring
157*724ba675SRob Herring				port@2 {
158*724ba675SRob Herring					reg = <2>;
159*724ba675SRob Herring					label = "eth_cu_1000_2";
160*724ba675SRob Herring				};
161*724ba675SRob Herring
162*724ba675SRob Herring				port@3 {
163*724ba675SRob Herring					reg = <3>;
164*724ba675SRob Herring					label = "eth_cu_1000_3";
165*724ba675SRob Herring				};
166*724ba675SRob Herring
167*724ba675SRob Herring				port@4 {
168*724ba675SRob Herring					reg = <4>;
169*724ba675SRob Herring					label = "eth_cu_1000_4";
170*724ba675SRob Herring				};
171*724ba675SRob Herring
172*724ba675SRob Herring				port@5 {
173*724ba675SRob Herring					reg = <5>;
174*724ba675SRob Herring					label = "eth_cu_1000_5";
175*724ba675SRob Herring				};
176*724ba675SRob Herring
177*724ba675SRob Herring				port@6 {
178*724ba675SRob Herring					reg = <6>;
179*724ba675SRob Herring					label = "eth_cu_1000_6";
180*724ba675SRob Herring				};
181*724ba675SRob Herring			};
182*724ba675SRob Herring		};
183*724ba675SRob Herring	};
184*724ba675SRob Herring};
185*724ba675SRob Herring
186*724ba675SRob Herring&i2c0 {
187*724ba675SRob Herring	clock-frequency = <100000>;
188*724ba675SRob Herring	pinctrl-names = "default";
189*724ba675SRob Herring	pinctrl-0 = <&pinctrl_i2c0>;
190*724ba675SRob Herring	status = "okay";
191*724ba675SRob Herring
192*724ba675SRob Herring	io-expander@22 {
193*724ba675SRob Herring		compatible = "nxp,pca9554";
194*724ba675SRob Herring		reg = <0x22>;
195*724ba675SRob Herring		gpio-controller;
196*724ba675SRob Herring		#gpio-cells = <2>;
197*724ba675SRob Herring	};
198*724ba675SRob Herring
199*724ba675SRob Herring	eeprom@50 {
200*724ba675SRob Herring		compatible = "atmel,24c04";
201*724ba675SRob Herring		reg = <0x50>;
202*724ba675SRob Herring		label = "nameplate";
203*724ba675SRob Herring	};
204*724ba675SRob Herring
205*724ba675SRob Herring	eeprom@52 {
206*724ba675SRob Herring		compatible = "atmel,24c04";
207*724ba675SRob Herring		reg = <0x52>;
208*724ba675SRob Herring	};
209*724ba675SRob Herring};
210*724ba675SRob Herring
211*724ba675SRob Herring&i2c1 {
212*724ba675SRob Herring	clock-frequency = <100000>;
213*724ba675SRob Herring	pinctrl-names = "default";
214*724ba675SRob Herring	pinctrl-0 = <&pinctrl_i2c1>;
215*724ba675SRob Herring	status = "okay";
216*724ba675SRob Herring
217*724ba675SRob Herring	watchdog@38 {
218*724ba675SRob Herring		compatible = "zii,rave-wdt";
219*724ba675SRob Herring		reg = <0x38>;
220*724ba675SRob Herring	};
221*724ba675SRob Herring};
222*724ba675SRob Herring
223*724ba675SRob Herring&snvsrtc {
224*724ba675SRob Herring	status = "disabled";
225*724ba675SRob Herring};
226*724ba675SRob Herring
227*724ba675SRob Herring&uart0 {
228*724ba675SRob Herring	pinctrl-names = "default";
229*724ba675SRob Herring	pinctrl-0 = <&pinctrl_uart0>;
230*724ba675SRob Herring	status = "okay";
231*724ba675SRob Herring};
232*724ba675SRob Herring
233*724ba675SRob Herring&uart1 {
234*724ba675SRob Herring	pinctrl-names = "default";
235*724ba675SRob Herring	pinctrl-0 = <&pinctrl_uart1>;
236*724ba675SRob Herring	status = "okay";
237*724ba675SRob Herring};
238*724ba675SRob Herring
239*724ba675SRob Herring&uart2 {
240*724ba675SRob Herring	pinctrl-names = "default";
241*724ba675SRob Herring	pinctrl-0 = <&pinctrl_uart2>;
242*724ba675SRob Herring	status = "okay";
243*724ba675SRob Herring
244*724ba675SRob Herring	mcu {
245*724ba675SRob Herring		compatible = "zii,rave-sp-rdu2";
246*724ba675SRob Herring		current-speed = <1000000>;
247*724ba675SRob Herring		#address-cells = <1>;
248*724ba675SRob Herring		#size-cells = <1>;
249*724ba675SRob Herring
250*724ba675SRob Herring		watchdog {
251*724ba675SRob Herring			compatible = "zii,rave-sp-watchdog";
252*724ba675SRob Herring		};
253*724ba675SRob Herring
254*724ba675SRob Herring		eeprom@a3 {
255*724ba675SRob Herring			compatible = "zii,rave-sp-eeprom";
256*724ba675SRob Herring			reg = <0xa3 0x4000>;
257*724ba675SRob Herring			#address-cells = <1>;
258*724ba675SRob Herring			#size-cells = <1>;
259*724ba675SRob Herring			zii,eeprom-name = "main-eeprom";
260*724ba675SRob Herring		};
261*724ba675SRob Herring	};
262*724ba675SRob Herring};
263*724ba675SRob Herring
264*724ba675SRob Herring&uart3 {
265*724ba675SRob Herring	pinctrl-names = "default";
266*724ba675SRob Herring	pinctrl-0 = <&pinctrl_uart3>;
267*724ba675SRob Herring	status = "okay";
268*724ba675SRob Herring};
269*724ba675SRob Herring
270*724ba675SRob Herring&wdoga5 {
271*724ba675SRob Herring       status = "disabled";
272*724ba675SRob Herring};
273*724ba675SRob Herring
274*724ba675SRob Herring&iomuxc {
275*724ba675SRob Herring	pinctrl_dspi1: dspi1grp {
276*724ba675SRob Herring		fsl,pins = <
277*724ba675SRob Herring			VF610_PAD_PTD5__DSPI1_CS0		0x1182
278*724ba675SRob Herring			VF610_PAD_PTD4__DSPI1_CS1		0x1182
279*724ba675SRob Herring			VF610_PAD_PTC6__DSPI1_SIN		0x1181
280*724ba675SRob Herring			VF610_PAD_PTC7__DSPI1_SOUT		0x1182
281*724ba675SRob Herring			VF610_PAD_PTC8__DSPI1_SCK		0x1182
282*724ba675SRob Herring		>;
283*724ba675SRob Herring	};
284*724ba675SRob Herring
285*724ba675SRob Herring	pinctrl_esdhc0: esdhc0grp {
286*724ba675SRob Herring		fsl,pins = <
287*724ba675SRob Herring			VF610_PAD_PTC0__ESDHC0_CLK		0x31ef
288*724ba675SRob Herring			VF610_PAD_PTC1__ESDHC0_CMD		0x31ef
289*724ba675SRob Herring			VF610_PAD_PTC2__ESDHC0_DAT0		0x31ef
290*724ba675SRob Herring			VF610_PAD_PTC3__ESDHC0_DAT1		0x31ef
291*724ba675SRob Herring			VF610_PAD_PTC4__ESDHC0_DAT2		0x31ef
292*724ba675SRob Herring			VF610_PAD_PTC5__ESDHC0_DAT3		0x31ef
293*724ba675SRob Herring			VF610_PAD_PTD23__ESDHC0_DAT4		0x31ef
294*724ba675SRob Herring			VF610_PAD_PTD22__ESDHC0_DAT5		0x31ef
295*724ba675SRob Herring			VF610_PAD_PTD21__ESDHC0_DAT6		0x31ef
296*724ba675SRob Herring			VF610_PAD_PTD20__ESDHC0_DAT7		0x31ef
297*724ba675SRob Herring		>;
298*724ba675SRob Herring	};
299*724ba675SRob Herring
300*724ba675SRob Herring	pinctrl_esdhc1: esdhc1grp {
301*724ba675SRob Herring		fsl,pins = <
302*724ba675SRob Herring			VF610_PAD_PTA24__ESDHC1_CLK		0x31ef
303*724ba675SRob Herring			VF610_PAD_PTA25__ESDHC1_CMD		0x31ef
304*724ba675SRob Herring			VF610_PAD_PTA26__ESDHC1_DAT0		0x31ef
305*724ba675SRob Herring			VF610_PAD_PTA27__ESDHC1_DAT1		0x31ef
306*724ba675SRob Herring			VF610_PAD_PTA28__ESDHC1_DATA2		0x31ef
307*724ba675SRob Herring			VF610_PAD_PTA29__ESDHC1_DAT3		0x31ef
308*724ba675SRob Herring		>;
309*724ba675SRob Herring	};
310*724ba675SRob Herring
311*724ba675SRob Herring	pinctrl_fec1: fec1grp {
312*724ba675SRob Herring		fsl,pins = <
313*724ba675SRob Herring			VF610_PAD_PTA6__RMII_CLKIN		0x30d1
314*724ba675SRob Herring			VF610_PAD_PTC9__ENET_RMII1_MDC		0x30d2
315*724ba675SRob Herring			VF610_PAD_PTC10__ENET_RMII1_MDIO	0x30d3
316*724ba675SRob Herring			VF610_PAD_PTC11__ENET_RMII1_CRS		0x30d1
317*724ba675SRob Herring			VF610_PAD_PTC12__ENET_RMII1_RXD1	0x30d1
318*724ba675SRob Herring			VF610_PAD_PTC13__ENET_RMII1_RXD0	0x30d1
319*724ba675SRob Herring			VF610_PAD_PTC14__ENET_RMII1_RXER	0x30d1
320*724ba675SRob Herring			VF610_PAD_PTC15__ENET_RMII1_TXD1	0x30d2
321*724ba675SRob Herring			VF610_PAD_PTC16__ENET_RMII1_TXD0	0x30d2
322*724ba675SRob Herring			VF610_PAD_PTC17__ENET_RMII1_TXEN	0x30d2
323*724ba675SRob Herring		>;
324*724ba675SRob Herring	};
325*724ba675SRob Herring
326*724ba675SRob Herring	pinctrl_gpio_switch0: pinctrl-gpio-switch0 {
327*724ba675SRob Herring		fsl,pins = <
328*724ba675SRob Herring			VF610_PAD_PTB28__GPIO_98		0x219d
329*724ba675SRob Herring		>;
330*724ba675SRob Herring	};
331*724ba675SRob Herring
332*724ba675SRob Herring	pinctrl_i2c0: i2c0grp {
333*724ba675SRob Herring		fsl,pins = <
334*724ba675SRob Herring			VF610_PAD_PTB14__I2C0_SCL		0x37ff
335*724ba675SRob Herring			VF610_PAD_PTB15__I2C0_SDA		0x37ff
336*724ba675SRob Herring		>;
337*724ba675SRob Herring	};
338*724ba675SRob Herring
339*724ba675SRob Herring	pinctrl_i2c1: i2c1grp {
340*724ba675SRob Herring		fsl,pins = <
341*724ba675SRob Herring			VF610_PAD_PTB16__I2C1_SCL		0x37ff
342*724ba675SRob Herring			VF610_PAD_PTB17__I2C1_SDA		0x37ff
343*724ba675SRob Herring		>;
344*724ba675SRob Herring	};
345*724ba675SRob Herring
346*724ba675SRob Herring	pinctrl_leds_debug: pinctrl-leds-debug {
347*724ba675SRob Herring		fsl,pins = <
348*724ba675SRob Herring			VF610_PAD_PTD3__GPIO_82			0x31c2
349*724ba675SRob Herring		>;
350*724ba675SRob Herring	};
351*724ba675SRob Herring
352*724ba675SRob Herring	pinctrl_uart0: uart0grp {
353*724ba675SRob Herring		fsl,pins = <
354*724ba675SRob Herring			VF610_PAD_PTB10__UART0_TX		0x21a2
355*724ba675SRob Herring			VF610_PAD_PTB11__UART0_RX		0x21a1
356*724ba675SRob Herring		>;
357*724ba675SRob Herring	};
358*724ba675SRob Herring
359*724ba675SRob Herring	pinctrl_uart1: uart1grp {
360*724ba675SRob Herring		fsl,pins = <
361*724ba675SRob Herring			VF610_PAD_PTB23__UART1_TX		0x21a2
362*724ba675SRob Herring			VF610_PAD_PTB24__UART1_RX		0x21a1
363*724ba675SRob Herring		>;
364*724ba675SRob Herring	};
365*724ba675SRob Herring
366*724ba675SRob Herring	pinctrl_uart2: uart2grp {
367*724ba675SRob Herring		fsl,pins = <
368*724ba675SRob Herring			VF610_PAD_PTD0__UART2_TX		0x21a2
369*724ba675SRob Herring			VF610_PAD_PTD1__UART2_RX		0x21a1
370*724ba675SRob Herring		>;
371*724ba675SRob Herring	};
372*724ba675SRob Herring
373*724ba675SRob Herring	pinctrl_uart3: uart3grp {
374*724ba675SRob Herring		fsl,pins = <
375*724ba675SRob Herring			VF610_PAD_PTA30__UART3_TX		0x21a2
376*724ba675SRob Herring			VF610_PAD_PTA31__UART3_RX		0x21a1
377*724ba675SRob Herring		>;
378*724ba675SRob Herring	};
379*724ba675SRob Herring};
380