1*724ba675SRob Herring// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2*724ba675SRob Herring/* 3*724ba675SRob Herring * Device Tree file for Marvell Armada 370 Reference Design board 4*724ba675SRob Herring * (RD-88F6710-A1) 5*724ba675SRob Herring * 6*724ba675SRob Herring * Copied from arch/arm/boot/dts/armada-370-db.dts 7*724ba675SRob Herring * 8*724ba675SRob Herring * Copyright (C) 2013 Florian Fainelli <florian@openwrt.org> 9*724ba675SRob Herring * 10*724ba675SRob Herring * Note: this Device Tree assumes that the bootloader has remapped the 11*724ba675SRob Herring * internal registers to 0xf1000000 (instead of the default 12*724ba675SRob Herring * 0xd0000000). The 0xf1000000 is the default used by the recent, 13*724ba675SRob Herring * DT-capable, U-Boot bootloaders provided by Marvell. Some earlier 14*724ba675SRob Herring * boards were delivered with an older version of the bootloader that 15*724ba675SRob Herring * left internal registers mapped at 0xd0000000. If you are in this 16*724ba675SRob Herring * situation, you should either update your bootloader (preferred 17*724ba675SRob Herring * solution) or the below Device Tree should be adjusted. 18*724ba675SRob Herring */ 19*724ba675SRob Herring 20*724ba675SRob Herring/dts-v1/; 21*724ba675SRob Herring#include <dt-bindings/input/input.h> 22*724ba675SRob Herring#include <dt-bindings/interrupt-controller/irq.h> 23*724ba675SRob Herring#include <dt-bindings/leds/common.h> 24*724ba675SRob Herring#include <dt-bindings/gpio/gpio.h> 25*724ba675SRob Herring#include "armada-370.dtsi" 26*724ba675SRob Herring 27*724ba675SRob Herring/ { 28*724ba675SRob Herring model = "Marvell Armada 370 Reference Design"; 29*724ba675SRob Herring compatible = "marvell,a370-rd", "marvell,armada370", "marvell,armada-370-xp"; 30*724ba675SRob Herring 31*724ba675SRob Herring chosen { 32*724ba675SRob Herring stdout-path = "serial0:115200n8"; 33*724ba675SRob Herring }; 34*724ba675SRob Herring 35*724ba675SRob Herring memory@0 { 36*724ba675SRob Herring device_type = "memory"; 37*724ba675SRob Herring reg = <0x00000000 0x20000000>; /* 512 MB */ 38*724ba675SRob Herring }; 39*724ba675SRob Herring 40*724ba675SRob Herring soc { 41*724ba675SRob Herring ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000 42*724ba675SRob Herring MBUS_ID(0x01, 0xe0) 0 0xfff00000 0x100000 43*724ba675SRob Herring MBUS_ID(0x09, 0x01) 0 0xf1100000 0x10000>; 44*724ba675SRob Herring 45*724ba675SRob Herring internal-regs { 46*724ba675SRob Herring serial@12000 { 47*724ba675SRob Herring status = "okay"; 48*724ba675SRob Herring }; 49*724ba675SRob Herring sata@a0000 { 50*724ba675SRob Herring nr-ports = <2>; 51*724ba675SRob Herring status = "okay"; 52*724ba675SRob Herring }; 53*724ba675SRob Herring 54*724ba675SRob Herring ethernet@70000 { 55*724ba675SRob Herring status = "okay"; 56*724ba675SRob Herring phy = <&phy0>; 57*724ba675SRob Herring phy-mode = "sgmii"; 58*724ba675SRob Herring }; 59*724ba675SRob Herring ethernet@74000 { 60*724ba675SRob Herring pinctrl-0 = <&ge1_rgmii_pins>; 61*724ba675SRob Herring pinctrl-names = "default"; 62*724ba675SRob Herring status = "okay"; 63*724ba675SRob Herring phy-mode = "rgmii-id"; 64*724ba675SRob Herring fixed-link { 65*724ba675SRob Herring speed = <1000>; 66*724ba675SRob Herring full-duplex; 67*724ba675SRob Herring }; 68*724ba675SRob Herring }; 69*724ba675SRob Herring 70*724ba675SRob Herring mvsdio@d4000 { 71*724ba675SRob Herring pinctrl-0 = <&sdio_pins1>; 72*724ba675SRob Herring pinctrl-names = "default"; 73*724ba675SRob Herring status = "okay"; 74*724ba675SRob Herring /* No CD or WP GPIOs */ 75*724ba675SRob Herring broken-cd; 76*724ba675SRob Herring }; 77*724ba675SRob Herring 78*724ba675SRob Herring usb@50000 { 79*724ba675SRob Herring status = "okay"; 80*724ba675SRob Herring }; 81*724ba675SRob Herring 82*724ba675SRob Herring usb@51000 { 83*724ba675SRob Herring status = "okay"; 84*724ba675SRob Herring }; 85*724ba675SRob Herring 86*724ba675SRob Herring gpio-keys { 87*724ba675SRob Herring compatible = "gpio-keys"; 88*724ba675SRob Herring button { 89*724ba675SRob Herring label = "Software Button"; 90*724ba675SRob Herring linux,code = <KEY_POWER>; 91*724ba675SRob Herring gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; 92*724ba675SRob Herring }; 93*724ba675SRob Herring }; 94*724ba675SRob Herring 95*724ba675SRob Herring gpio-fan { 96*724ba675SRob Herring compatible = "gpio-fan"; 97*724ba675SRob Herring gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; 98*724ba675SRob Herring gpio-fan,speed-map = <0 0 3000 1>; 99*724ba675SRob Herring pinctrl-0 = <&fan_pins>; 100*724ba675SRob Herring pinctrl-names = "default"; 101*724ba675SRob Herring }; 102*724ba675SRob Herring 103*724ba675SRob Herring gpio_leds { 104*724ba675SRob Herring compatible = "gpio-leds"; 105*724ba675SRob Herring pinctrl-names = "default"; 106*724ba675SRob Herring pinctrl-0 = <&led_pins>; 107*724ba675SRob Herring 108*724ba675SRob Herring sw_led { 109*724ba675SRob Herring label = "370rd:green:sw"; 110*724ba675SRob Herring gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; 111*724ba675SRob Herring default-state = "keep"; 112*724ba675SRob Herring }; 113*724ba675SRob Herring }; 114*724ba675SRob Herring }; 115*724ba675SRob Herring }; 116*724ba675SRob Herring}; 117*724ba675SRob Herring 118*724ba675SRob Herring&pciec { 119*724ba675SRob Herring status = "okay"; 120*724ba675SRob Herring 121*724ba675SRob Herring /* Internal mini-PCIe connector */ 122*724ba675SRob Herring pcie@1,0 { 123*724ba675SRob Herring /* Port 0, Lane 0 */ 124*724ba675SRob Herring status = "okay"; 125*724ba675SRob Herring }; 126*724ba675SRob Herring 127*724ba675SRob Herring /* Internal mini-PCIe connector */ 128*724ba675SRob Herring pcie@2,0 { 129*724ba675SRob Herring /* Port 1, Lane 0 */ 130*724ba675SRob Herring status = "okay"; 131*724ba675SRob Herring }; 132*724ba675SRob Herring}; 133*724ba675SRob Herring 134*724ba675SRob Herring&mdio { 135*724ba675SRob Herring pinctrl-0 = <&mdio_pins>; 136*724ba675SRob Herring pinctrl-names = "default"; 137*724ba675SRob Herring phy0: ethernet-phy@0 { 138*724ba675SRob Herring reg = <0>; 139*724ba675SRob Herring leds { 140*724ba675SRob Herring #address-cells = <1>; 141*724ba675SRob Herring #size-cells = <0>; 142*724ba675SRob Herring 143*724ba675SRob Herring led@0 { 144*724ba675SRob Herring reg = <0>; 145*724ba675SRob Herring color = <LED_COLOR_ID_WHITE>; 146*724ba675SRob Herring function = LED_FUNCTION_WAN; 147*724ba675SRob Herring default-state = "keep"; 148*724ba675SRob Herring }; 149*724ba675SRob Herring }; 150*724ba675SRob Herring }; 151*724ba675SRob Herring 152*724ba675SRob Herring switch: switch@10 { 153*724ba675SRob Herring compatible = "marvell,mv88e6085"; 154*724ba675SRob Herring #address-cells = <1>; 155*724ba675SRob Herring #size-cells = <0>; 156*724ba675SRob Herring reg = <0x10>; 157*724ba675SRob Herring interrupt-controller; 158*724ba675SRob Herring #interrupt-cells = <2>; 159*724ba675SRob Herring 160*724ba675SRob Herring ports { 161*724ba675SRob Herring #address-cells = <1>; 162*724ba675SRob Herring #size-cells = <0>; 163*724ba675SRob Herring 164*724ba675SRob Herring port@0 { 165*724ba675SRob Herring reg = <0>; 166*724ba675SRob Herring label = "lan0"; 167*724ba675SRob Herring }; 168*724ba675SRob Herring 169*724ba675SRob Herring port@1 { 170*724ba675SRob Herring reg = <1>; 171*724ba675SRob Herring label = "lan1"; 172*724ba675SRob Herring }; 173*724ba675SRob Herring 174*724ba675SRob Herring port@2 { 175*724ba675SRob Herring reg = <2>; 176*724ba675SRob Herring label = "lan2"; 177*724ba675SRob Herring }; 178*724ba675SRob Herring 179*724ba675SRob Herring port@3 { 180*724ba675SRob Herring reg = <3>; 181*724ba675SRob Herring label = "lan3"; 182*724ba675SRob Herring }; 183*724ba675SRob Herring 184*724ba675SRob Herring port@5 { 185*724ba675SRob Herring reg = <5>; 186*724ba675SRob Herring ethernet = <ð1>; 187*724ba675SRob Herring phy-mode = "rgmii-id"; 188*724ba675SRob Herring fixed-link { 189*724ba675SRob Herring speed = <1000>; 190*724ba675SRob Herring full-duplex; 191*724ba675SRob Herring }; 192*724ba675SRob Herring }; 193*724ba675SRob Herring }; 194*724ba675SRob Herring 195*724ba675SRob Herring mdio { 196*724ba675SRob Herring #address-cells = <1>; 197*724ba675SRob Herring #size-cells = <0>; 198*724ba675SRob Herring 199*724ba675SRob Herring switchphy0: switchphy@0 { 200*724ba675SRob Herring reg = <0>; 201*724ba675SRob Herring interrupt-parent = <&switch>; 202*724ba675SRob Herring interrupts = <0 IRQ_TYPE_LEVEL_HIGH>; 203*724ba675SRob Herring }; 204*724ba675SRob Herring 205*724ba675SRob Herring switchphy1: switchphy@1 { 206*724ba675SRob Herring reg = <1>; 207*724ba675SRob Herring interrupt-parent = <&switch>; 208*724ba675SRob Herring interrupts = <1 IRQ_TYPE_LEVEL_HIGH>; 209*724ba675SRob Herring }; 210*724ba675SRob Herring 211*724ba675SRob Herring switchphy2: switchphy@2 { 212*724ba675SRob Herring reg = <2>; 213*724ba675SRob Herring interrupt-parent = <&switch>; 214*724ba675SRob Herring interrupts = <2 IRQ_TYPE_LEVEL_HIGH>; 215*724ba675SRob Herring }; 216*724ba675SRob Herring 217*724ba675SRob Herring switchphy3: switchphy@3 { 218*724ba675SRob Herring reg = <3>; 219*724ba675SRob Herring interrupt-parent = <&switch>; 220*724ba675SRob Herring interrupts = <3 IRQ_TYPE_LEVEL_HIGH>; 221*724ba675SRob Herring }; 222*724ba675SRob Herring }; 223*724ba675SRob Herring }; 224*724ba675SRob Herring}; 225*724ba675SRob Herring 226*724ba675SRob Herring 227*724ba675SRob Herring&pinctrl { 228*724ba675SRob Herring fan_pins: fan-pins { 229*724ba675SRob Herring marvell,pins = "mpp8"; 230*724ba675SRob Herring marvell,function = "gpio"; 231*724ba675SRob Herring }; 232*724ba675SRob Herring 233*724ba675SRob Herring led_pins: led-pins { 234*724ba675SRob Herring marvell,pins = "mpp32"; 235*724ba675SRob Herring marvell,function = "gpio"; 236*724ba675SRob Herring }; 237*724ba675SRob Herring}; 238*724ba675SRob Herring 239*724ba675SRob Herring&nand_controller { 240*724ba675SRob Herring status = "okay"; 241*724ba675SRob Herring 242*724ba675SRob Herring nand@0 { 243*724ba675SRob Herring reg = <0>; 244*724ba675SRob Herring label = "pxa3xx_nand-0"; 245*724ba675SRob Herring nand-rb = <0>; 246*724ba675SRob Herring marvell,nand-keep-config; 247*724ba675SRob Herring nand-on-flash-bbt; 248*724ba675SRob Herring 249*724ba675SRob Herring partitions { 250*724ba675SRob Herring compatible = "fixed-partitions"; 251*724ba675SRob Herring #address-cells = <1>; 252*724ba675SRob Herring #size-cells = <1>; 253*724ba675SRob Herring 254*724ba675SRob Herring partition@0 { 255*724ba675SRob Herring label = "U-Boot"; 256*724ba675SRob Herring reg = <0 0x800000>; 257*724ba675SRob Herring }; 258*724ba675SRob Herring partition@800000 { 259*724ba675SRob Herring label = "Linux"; 260*724ba675SRob Herring reg = <0x800000 0x800000>; 261*724ba675SRob Herring }; 262*724ba675SRob Herring partition@1000000 { 263*724ba675SRob Herring label = "Filesystem"; 264*724ba675SRob Herring reg = <0x1000000 0x3f000000>; 265*724ba675SRob Herring }; 266*724ba675SRob Herring }; 267*724ba675SRob Herring }; 268*724ba675SRob Herring}; 269