xref: /linux/arch/arm64/boot/dts/marvell/armada-3720-espressobin-ultra.dts (revision a4eb44a6435d6d8f9e642407a4a06f65eb90ca04)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Device Tree file for ESPRESSObin-Ultra board.
4 * Copyright (C) 2019 Globalscale technologies, Inc.
5 *
6 * Jason Hung <jhung@globalscaletechnologies.com>
7 */
8
9/dts-v1/;
10
11#include "armada-3720-espressobin.dtsi"
12
13/ {
14	model = "Globalscale Marvell ESPRESSOBin Ultra Board";
15	compatible = "globalscale,espressobin-ultra", "marvell,armada3720",
16		     "marvell,armada3710";
17
18	aliases {
19		/* ethernet1 is WAN port */
20		ethernet1 = &switch0port5;
21		ethernet2 = &switch0port1;
22		ethernet3 = &switch0port2;
23		ethernet4 = &switch0port3;
24		ethernet5 = &switch0port4;
25	};
26
27	reg_usb3_vbus: usb3-vbus {
28		compatible = "regulator-fixed";
29		regulator-name = "usb3-vbus";
30		regulator-min-microvolt = <5000000>;
31		regulator-max-microvolt = <5000000>;
32		enable-active-high;
33		gpio = <&gpionb 19 GPIO_ACTIVE_HIGH>;
34	};
35
36	usb3_phy: usb3-phy {
37		compatible = "usb-nop-xceiv";
38		vcc-supply = <&reg_usb3_vbus>;
39	};
40
41	gpio-leds {
42		pinctrl-names = "default";
43		compatible = "gpio-leds";
44		/* No assigned functions to the LEDs by default */
45		led1 {
46			label = "ebin-ultra:blue:led1";
47			gpios = <&gpionb 11 GPIO_ACTIVE_LOW>;
48		};
49		led2 {
50			label = "ebin-ultra:green:led2";
51			gpios = <&gpionb 12 GPIO_ACTIVE_LOW>;
52		};
53		led3 {
54			label = "ebin-ultra:red:led3";
55			gpios = <&gpionb 13 GPIO_ACTIVE_LOW>;
56		};
57		led4 {
58			label = "ebin-ultra:yellow:led4";
59			gpios = <&gpionb 14 GPIO_ACTIVE_LOW>;
60		};
61	};
62};
63
64&sdhci0 {
65	status = "okay";
66};
67
68&sdhci1 {
69	status = "disabled";
70};
71
72&spi0 {
73	flash@0 {
74		spi-max-frequency = <108000000>;
75		spi-rx-bus-width = <4>;
76		spi-tx-bus-width = <4>;
77
78		partitions {
79			compatible = "fixed-partitions";
80			#address-cells = <1>;
81			#size-cells = <1>;
82
83			partition@0 {
84				label = "firmware";
85				reg = <0x0 0x3e0000>;
86			};
87			partition@3e0000 {
88				label = "hw-info";
89				reg = <0x3e0000 0x10000>;
90				read-only;
91			};
92			partition@3f0000 {
93				label = "u-boot-env";
94				reg = <0x3f0000 0x10000>;
95			};
96		};
97	};
98};
99
100&i2c0 {
101	status = "okay";
102	pinctrl-names = "default";
103	pinctrl-0 = <&i2c1_pins>;
104
105	clock-frequency = <100000>;
106
107	rtc@51 {
108		compatible = "nxp,pcf8563";
109		reg = <0x51>;
110	};
111};
112
113&usb3 {
114	usb-phy = <&usb3_phy>;
115	status = "disabled";
116};
117
118&mdio {
119	extphy: ethernet-phy@1 {
120		reg = <1>;
121	};
122};
123
124&switch0 {
125	reg = <3>;
126
127	ports {
128		switch0port1: port@1 {
129			reg = <1>;
130			label = "lan0";
131			phy-handle = <&switch0phy0>;
132		};
133
134		switch0port2: port@2 {
135			reg = <2>;
136			label = "lan1";
137			phy-handle = <&switch0phy1>;
138		};
139
140		switch0port3: port@3 {
141			reg = <3>;
142			label = "lan2";
143			phy-handle = <&switch0phy2>;
144		};
145
146		switch0port4: port@4 {
147			reg = <4>;
148			label = "lan3";
149			phy-handle = <&switch0phy3>;
150		};
151
152		switch0port5: port@5 {
153			reg = <5>;
154			label = "wan";
155			phy-handle = <&extphy>;
156			phy-mode = "sgmii";
157		};
158	};
159
160	mdio {
161		switch0phy3: switch0phy3@14 {
162			reg = <0x14>;
163		};
164	};
165};
166