15def4c47SEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
25def4c47SEmmanuel Vadot/*
35def4c47SEmmanuel Vadot * Device Tree file for ESPRESSObin-Ultra board.
45def4c47SEmmanuel Vadot * Copyright (C) 2019 Globalscale technologies, Inc.
55def4c47SEmmanuel Vadot *
65def4c47SEmmanuel Vadot * Jason Hung <jhung@globalscaletechnologies.com>
75def4c47SEmmanuel Vadot */
85def4c47SEmmanuel Vadot
95def4c47SEmmanuel Vadot/dts-v1/;
105def4c47SEmmanuel Vadot
115def4c47SEmmanuel Vadot#include "armada-3720-espressobin.dtsi"
125def4c47SEmmanuel Vadot
135def4c47SEmmanuel Vadot/ {
145def4c47SEmmanuel Vadot	model = "Globalscale Marvell ESPRESSOBin Ultra Board";
157ef62cebSEmmanuel Vadot	compatible = "globalscale,espressobin-ultra", "globalscale,espressobin",
16cb7aa33aSEmmanuel Vadot		     "marvell,armada3720", "marvell,armada3700";
175def4c47SEmmanuel Vadot
185def4c47SEmmanuel Vadot	aliases {
195def4c47SEmmanuel Vadot		/* ethernet1 is WAN port */
205def4c47SEmmanuel Vadot		ethernet1 = &switch0port5;
215def4c47SEmmanuel Vadot		ethernet2 = &switch0port1;
225def4c47SEmmanuel Vadot		ethernet3 = &switch0port2;
235def4c47SEmmanuel Vadot		ethernet4 = &switch0port3;
245def4c47SEmmanuel Vadot		ethernet5 = &switch0port4;
255def4c47SEmmanuel Vadot	};
265def4c47SEmmanuel Vadot
27f126890aSEmmanuel Vadot	/delete-node/ regulator;
28f126890aSEmmanuel Vadot
295def4c47SEmmanuel Vadot	reg_usb3_vbus: usb3-vbus {
305def4c47SEmmanuel Vadot		compatible = "regulator-fixed";
315def4c47SEmmanuel Vadot		regulator-name = "usb3-vbus";
325def4c47SEmmanuel Vadot		regulator-min-microvolt = <5000000>;
335def4c47SEmmanuel Vadot		regulator-max-microvolt = <5000000>;
345def4c47SEmmanuel Vadot		enable-active-high;
355def4c47SEmmanuel Vadot		gpio = <&gpionb 19 GPIO_ACTIVE_HIGH>;
365def4c47SEmmanuel Vadot	};
375def4c47SEmmanuel Vadot
385def4c47SEmmanuel Vadot	usb3_phy: usb3-phy {
395def4c47SEmmanuel Vadot		compatible = "usb-nop-xceiv";
405def4c47SEmmanuel Vadot		vcc-supply = <&reg_usb3_vbus>;
415def4c47SEmmanuel Vadot	};
425def4c47SEmmanuel Vadot
435def4c47SEmmanuel Vadot	gpio-leds {
445def4c47SEmmanuel Vadot		pinctrl-names = "default";
455def4c47SEmmanuel Vadot		compatible = "gpio-leds";
465def4c47SEmmanuel Vadot		/* No assigned functions to the LEDs by default */
475def4c47SEmmanuel Vadot		led1 {
485def4c47SEmmanuel Vadot			label = "ebin-ultra:blue:led1";
495def4c47SEmmanuel Vadot			gpios = <&gpionb 11 GPIO_ACTIVE_LOW>;
505def4c47SEmmanuel Vadot		};
515def4c47SEmmanuel Vadot		led2 {
525def4c47SEmmanuel Vadot			label = "ebin-ultra:green:led2";
535def4c47SEmmanuel Vadot			gpios = <&gpionb 12 GPIO_ACTIVE_LOW>;
545def4c47SEmmanuel Vadot		};
555def4c47SEmmanuel Vadot		led3 {
565def4c47SEmmanuel Vadot			label = "ebin-ultra:red:led3";
575def4c47SEmmanuel Vadot			gpios = <&gpionb 13 GPIO_ACTIVE_LOW>;
585def4c47SEmmanuel Vadot		};
595def4c47SEmmanuel Vadot		led4 {
605def4c47SEmmanuel Vadot			label = "ebin-ultra:yellow:led4";
615def4c47SEmmanuel Vadot			gpios = <&gpionb 14 GPIO_ACTIVE_LOW>;
625def4c47SEmmanuel Vadot		};
635def4c47SEmmanuel Vadot	};
645def4c47SEmmanuel Vadot};
655def4c47SEmmanuel Vadot
665def4c47SEmmanuel Vadot&sdhci0 {
675def4c47SEmmanuel Vadot	status = "okay";
685def4c47SEmmanuel Vadot};
695def4c47SEmmanuel Vadot
705def4c47SEmmanuel Vadot&sdhci1 {
71f126890aSEmmanuel Vadot	/delete-property/ vqmmc-supply;
725def4c47SEmmanuel Vadot	status = "disabled";
735def4c47SEmmanuel Vadot};
745def4c47SEmmanuel Vadot
755def4c47SEmmanuel Vadot&spi0 {
765def4c47SEmmanuel Vadot	flash@0 {
775def4c47SEmmanuel Vadot		partitions {
785def4c47SEmmanuel Vadot			compatible = "fixed-partitions";
795def4c47SEmmanuel Vadot			#address-cells = <1>;
805def4c47SEmmanuel Vadot			#size-cells = <1>;
815def4c47SEmmanuel Vadot
825def4c47SEmmanuel Vadot			partition@0 {
835def4c47SEmmanuel Vadot				label = "firmware";
845def4c47SEmmanuel Vadot				reg = <0x0 0x3e0000>;
855def4c47SEmmanuel Vadot			};
865def4c47SEmmanuel Vadot			partition@3e0000 {
875def4c47SEmmanuel Vadot				label = "hw-info";
885def4c47SEmmanuel Vadot				reg = <0x3e0000 0x10000>;
895def4c47SEmmanuel Vadot				read-only;
905def4c47SEmmanuel Vadot			};
915def4c47SEmmanuel Vadot			partition@3f0000 {
925def4c47SEmmanuel Vadot				label = "u-boot-env";
935def4c47SEmmanuel Vadot				reg = <0x3f0000 0x10000>;
945def4c47SEmmanuel Vadot			};
955def4c47SEmmanuel Vadot		};
965def4c47SEmmanuel Vadot	};
975def4c47SEmmanuel Vadot};
985def4c47SEmmanuel Vadot
995def4c47SEmmanuel Vadot&i2c0 {
1005def4c47SEmmanuel Vadot	status = "okay";
1015def4c47SEmmanuel Vadot	pinctrl-names = "default";
1025def4c47SEmmanuel Vadot	pinctrl-0 = <&i2c1_pins>;
1035def4c47SEmmanuel Vadot
1045def4c47SEmmanuel Vadot	clock-frequency = <100000>;
1055def4c47SEmmanuel Vadot
1065def4c47SEmmanuel Vadot	rtc@51 {
1075def4c47SEmmanuel Vadot		compatible = "nxp,pcf8563";
1085def4c47SEmmanuel Vadot		reg = <0x51>;
1095def4c47SEmmanuel Vadot	};
1105def4c47SEmmanuel Vadot};
1115def4c47SEmmanuel Vadot
1125def4c47SEmmanuel Vadot&usb3 {
1135def4c47SEmmanuel Vadot	usb-phy = <&usb3_phy>;
1145def4c47SEmmanuel Vadot};
1155def4c47SEmmanuel Vadot
1165def4c47SEmmanuel Vadot&mdio {
1175def4c47SEmmanuel Vadot	extphy: ethernet-phy@1 {
1185def4c47SEmmanuel Vadot		reg = <1>;
119d5b0e70fSEmmanuel Vadot
120d5b0e70fSEmmanuel Vadot		reset-gpios = <&gpionb 2 GPIO_ACTIVE_LOW>;
1215def4c47SEmmanuel Vadot	};
1225def4c47SEmmanuel Vadot};
1235def4c47SEmmanuel Vadot
1245def4c47SEmmanuel Vadot&switch0 {
1255def4c47SEmmanuel Vadot	reg = <3>;
1265def4c47SEmmanuel Vadot
127d5b0e70fSEmmanuel Vadot	reset-gpios = <&gpiosb 23 GPIO_ACTIVE_LOW>;
128d5b0e70fSEmmanuel Vadot
129*8d13bc63SEmmanuel Vadot	ethernet-ports {
130*8d13bc63SEmmanuel Vadot		switch0port1: ethernet-port@1 {
1315def4c47SEmmanuel Vadot			reg = <1>;
1325def4c47SEmmanuel Vadot			label = "lan0";
1335def4c47SEmmanuel Vadot			phy-handle = <&switch0phy0>;
1345def4c47SEmmanuel Vadot		};
1355def4c47SEmmanuel Vadot
136*8d13bc63SEmmanuel Vadot		switch0port2: ethernet-port@2 {
1375def4c47SEmmanuel Vadot			reg = <2>;
1385def4c47SEmmanuel Vadot			label = "lan1";
1395def4c47SEmmanuel Vadot			phy-handle = <&switch0phy1>;
1405def4c47SEmmanuel Vadot		};
1415def4c47SEmmanuel Vadot
142*8d13bc63SEmmanuel Vadot		switch0port3: ethernet-port@3 {
1435def4c47SEmmanuel Vadot			reg = <3>;
1445def4c47SEmmanuel Vadot			label = "lan2";
1455def4c47SEmmanuel Vadot			phy-handle = <&switch0phy2>;
1465def4c47SEmmanuel Vadot		};
1475def4c47SEmmanuel Vadot
148*8d13bc63SEmmanuel Vadot		switch0port4: ethernet-port@4 {
1495def4c47SEmmanuel Vadot			reg = <4>;
1505def4c47SEmmanuel Vadot			label = "lan3";
1515def4c47SEmmanuel Vadot			phy-handle = <&switch0phy3>;
1525def4c47SEmmanuel Vadot		};
1535def4c47SEmmanuel Vadot
154*8d13bc63SEmmanuel Vadot		switch0port5: ethernet-port@5 {
1555def4c47SEmmanuel Vadot			reg = <5>;
1565def4c47SEmmanuel Vadot			label = "wan";
1575def4c47SEmmanuel Vadot			phy-handle = <&extphy>;
1585def4c47SEmmanuel Vadot			phy-mode = "sgmii";
1595def4c47SEmmanuel Vadot		};
1605def4c47SEmmanuel Vadot	};
1615def4c47SEmmanuel Vadot
1625def4c47SEmmanuel Vadot	mdio {
163*8d13bc63SEmmanuel Vadot		switch0phy3: ethernet-phy@14 {
1645def4c47SEmmanuel Vadot			reg = <0x14>;
1655def4c47SEmmanuel Vadot		};
1665def4c47SEmmanuel Vadot	};
1675def4c47SEmmanuel Vadot};
168