0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003 * Device Tree file for ESPRESSObin-Ultra board.
0004 * Copyright (C) 2019 Globalscale technologies, Inc.
0005 *
0006 * Jason Hung <jhung@globalscaletechnologies.com>
0007 */
0008
0009 /dts-v1/;
0010
0011 #include "armada-3720-espressobin.dtsi"
0012
0013 / {
0014 model = "Globalscale Marvell ESPRESSOBin Ultra Board";
0015 compatible = "globalscale,espressobin-ultra", "marvell,armada3720",
0016 "marvell,armada3710";
0017
0018 aliases {
0019 /* ethernet1 is WAN port */
0020 ethernet1 = &switch0port5;
0021 ethernet2 = &switch0port1;
0022 ethernet3 = &switch0port2;
0023 ethernet4 = &switch0port3;
0024 ethernet5 = &switch0port4;
0025 };
0026
0027 reg_usb3_vbus: usb3-vbus {
0028 compatible = "regulator-fixed";
0029 regulator-name = "usb3-vbus";
0030 regulator-min-microvolt = <5000000>;
0031 regulator-max-microvolt = <5000000>;
0032 enable-active-high;
0033 gpio = <&gpionb 19 GPIO_ACTIVE_HIGH>;
0034 };
0035
0036 usb3_phy: usb3-phy {
0037 compatible = "usb-nop-xceiv";
0038 vcc-supply = <®_usb3_vbus>;
0039 };
0040
0041 gpio-leds {
0042 pinctrl-names = "default";
0043 compatible = "gpio-leds";
0044 /* No assigned functions to the LEDs by default */
0045 led1 {
0046 label = "ebin-ultra:blue:led1";
0047 gpios = <&gpionb 11 GPIO_ACTIVE_LOW>;
0048 };
0049 led2 {
0050 label = "ebin-ultra:green:led2";
0051 gpios = <&gpionb 12 GPIO_ACTIVE_LOW>;
0052 };
0053 led3 {
0054 label = "ebin-ultra:red:led3";
0055 gpios = <&gpionb 13 GPIO_ACTIVE_LOW>;
0056 };
0057 led4 {
0058 label = "ebin-ultra:yellow:led4";
0059 gpios = <&gpionb 14 GPIO_ACTIVE_LOW>;
0060 };
0061 };
0062 };
0063
0064 &sdhci0 {
0065 status = "okay";
0066 };
0067
0068 &sdhci1 {
0069 status = "disabled";
0070 };
0071
0072 &spi0 {
0073 flash@0 {
0074 partitions {
0075 compatible = "fixed-partitions";
0076 #address-cells = <1>;
0077 #size-cells = <1>;
0078
0079 partition@0 {
0080 label = "firmware";
0081 reg = <0x0 0x3e0000>;
0082 };
0083 partition@3e0000 {
0084 label = "hw-info";
0085 reg = <0x3e0000 0x10000>;
0086 read-only;
0087 };
0088 partition@3f0000 {
0089 label = "u-boot-env";
0090 reg = <0x3f0000 0x10000>;
0091 };
0092 };
0093 };
0094 };
0095
0096 &i2c0 {
0097 status = "okay";
0098 pinctrl-names = "default";
0099 pinctrl-0 = <&i2c1_pins>;
0100
0101 clock-frequency = <100000>;
0102
0103 rtc@51 {
0104 compatible = "nxp,pcf8563";
0105 reg = <0x51>;
0106 };
0107 };
0108
0109 &usb3 {
0110 usb-phy = <&usb3_phy>;
0111 };
0112
0113 &mdio {
0114 extphy: ethernet-phy@1 {
0115 reg = <1>;
0116
0117 reset-gpios = <&gpionb 2 GPIO_ACTIVE_LOW>;
0118 };
0119 };
0120
0121 &switch0 {
0122 reg = <3>;
0123
0124 reset-gpios = <&gpiosb 23 GPIO_ACTIVE_LOW>;
0125
0126 ports {
0127 switch0port1: port@1 {
0128 reg = <1>;
0129 label = "lan0";
0130 phy-handle = <&switch0phy0>;
0131 };
0132
0133 switch0port2: port@2 {
0134 reg = <2>;
0135 label = "lan1";
0136 phy-handle = <&switch0phy1>;
0137 };
0138
0139 switch0port3: port@3 {
0140 reg = <3>;
0141 label = "lan2";
0142 phy-handle = <&switch0phy2>;
0143 };
0144
0145 switch0port4: port@4 {
0146 reg = <4>;
0147 label = "lan3";
0148 phy-handle = <&switch0phy3>;
0149 };
0150
0151 switch0port5: port@5 {
0152 reg = <5>;
0153 label = "wan";
0154 phy-handle = <&extphy>;
0155 phy-mode = "sgmii";
0156 };
0157 };
0158
0159 mdio {
0160 switch0phy3: switch0phy3@14 {
0161 reg = <0x14>;
0162 };
0163 };
0164 };