1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2/* 3 * Device Tree file for Globalscale Marvell ESPRESSOBin Board 4 * Copyright (C) 2016 Marvell 5 * 6 * Romain Perier <romain.perier@free-electrons.com> 7 * 8 */ 9/* 10 * Schematic available at http://espressobin.net/wp-content/uploads/2017/08/ESPRESSObin_V5_Schematics.pdf 11 */ 12 13/dts-v1/; 14 15#include <dt-bindings/gpio/gpio.h> 16#include "armada-372x.dtsi" 17 18/ { 19 model = "Globalscale Marvell ESPRESSOBin Board"; 20 compatible = "globalscale,espressobin", "marvell,armada3720", "marvell,armada3710"; 21 22 aliases { 23 ethernet0 = ð0; 24 serial0 = &uart0; 25 serial1 = &uart1; 26 }; 27 28 chosen { 29 stdout-path = "serial0:115200n8"; 30 }; 31 32 memory@0 { 33 device_type = "memory"; 34 reg = <0x00000000 0x00000000 0x00000000 0x20000000>; 35 }; 36 37 vcc_sd_reg1: regulator { 38 compatible = "regulator-gpio"; 39 regulator-name = "vcc_sd1"; 40 regulator-min-microvolt = <1800000>; 41 regulator-max-microvolt = <3300000>; 42 regulator-boot-on; 43 44 gpios = <&gpionb 4 GPIO_ACTIVE_HIGH>; 45 gpios-states = <0>; 46 states = <1800000 0x1 47 3300000 0x0>; 48 enable-active-high; 49 }; 50}; 51 52/* J9 */ 53&pcie0 { 54 status = "okay"; 55}; 56 57/* J6 */ 58&sata { 59 status = "okay"; 60}; 61 62/* J1 */ 63&sdhci1 { 64 wp-inverted; 65 bus-width = <4>; 66 cd-gpios = <&gpionb 3 GPIO_ACTIVE_LOW>; 67 marvell,pad-type = "sd"; 68 vqmmc-supply = <&vcc_sd_reg1>; 69 status = "okay"; 70}; 71 72&spi0 { 73 status = "okay"; 74 75 flash@0 { 76 reg = <0>; 77 compatible = "winbond,w25q32dw", "jedec,spi-flash"; 78 spi-max-frequency = <104000000>; 79 m25p,fast-read; 80 81 partitions { 82 compatible = "fixed-partitions"; 83 #address-cells = <1>; 84 #size-cells = <1>; 85 86 partition@0 { 87 label = "uboot"; 88 reg = <0 0x180000>; 89 }; 90 91 partition@180000 { 92 label = "ubootenv"; 93 reg = <0x180000 0x10000>; 94 }; 95 }; 96 }; 97}; 98 99/* Exported on the micro USB connector J5 through an FTDI */ 100&uart0 { 101 pinctrl-names = "default"; 102 pinctrl-0 = <&uart1_pins>; 103 status = "okay"; 104}; 105 106/* 107 * Connector J17 and J18 expose a number of different features. Some pins are 108 * multiplexed. This is the case for instance for the following features: 109 * - UART1 (pin 24 = RX, pin 26 = TX). See armada-3720-db.dts for an example of 110 * how to enable it. Beware that the signals are 1.8V TTL. 111 * - I2C 112 * - SPI 113 * - MMC 114 */ 115 116/* J7 */ 117&usb3 { 118 status = "okay"; 119}; 120 121/* J8 */ 122&usb2 { 123 status = "okay"; 124}; 125 126&mdio { 127 switch0: switch0@1 { 128 compatible = "marvell,mv88e6085"; 129 #address-cells = <1>; 130 #size-cells = <0>; 131 reg = <1>; 132 133 dsa,member = <0 0>; 134 135 ports { 136 #address-cells = <1>; 137 #size-cells = <0>; 138 139 port@0 { 140 reg = <0>; 141 label = "cpu"; 142 ethernet = <ð0>; 143 }; 144 145 port@1 { 146 reg = <1>; 147 label = "wan"; 148 phy-handle = <&switch0phy0>; 149 }; 150 151 port@2 { 152 reg = <2>; 153 label = "lan0"; 154 phy-handle = <&switch0phy1>; 155 }; 156 157 port@3 { 158 reg = <3>; 159 label = "lan1"; 160 phy-handle = <&switch0phy2>; 161 }; 162 163 }; 164 165 mdio { 166 #address-cells = <1>; 167 #size-cells = <0>; 168 169 switch0phy0: switch0phy0@11 { 170 reg = <0x11>; 171 }; 172 switch0phy1: switch0phy1@12 { 173 reg = <0x12>; 174 }; 175 switch0phy2: switch0phy2@13 { 176 reg = <0x13>; 177 }; 178 }; 179 }; 180}; 181 182ð0 { 183 phy-mode = "rgmii-id"; 184 status = "okay"; 185 186 fixed-link { 187 speed = <1000>; 188 full-duplex; 189 }; 190}; 191