1*724ba675SRob Herring// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2*724ba675SRob Herring/* 3*724ba675SRob Herring * Device Tree file for Marvell Armada XP development board 4*724ba675SRob Herring * (DB-MV784MP-GP) 5*724ba675SRob Herring * 6*724ba675SRob Herring * Copyright (C) 2013-2014 Marvell 7*724ba675SRob Herring * 8*724ba675SRob Herring * Lior Amsalem <alior@marvell.com> 9*724ba675SRob Herring * Gregory CLEMENT <gregory.clement@free-electrons.com> 10*724ba675SRob Herring * Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 11*724ba675SRob Herring * 12*724ba675SRob Herring * Note: this Device Tree assumes that the bootloader has remapped the 13*724ba675SRob Herring * internal registers to 0xf1000000 (instead of the default 14*724ba675SRob Herring * 0xd0000000). The 0xf1000000 is the default used by the recent, 15*724ba675SRob Herring * DT-capable, U-Boot bootloaders provided by Marvell. Some earlier 16*724ba675SRob Herring * boards were delivered with an older version of the bootloader that 17*724ba675SRob Herring * left internal registers mapped at 0xd0000000. If you are in this 18*724ba675SRob Herring * situation, you should either update your bootloader (preferred 19*724ba675SRob Herring * solution) or the below Device Tree should be adjusted. 20*724ba675SRob Herring */ 21*724ba675SRob Herring 22*724ba675SRob Herring/dts-v1/; 23*724ba675SRob Herring#include <dt-bindings/gpio/gpio.h> 24*724ba675SRob Herring#include "armada-xp-mv78460.dtsi" 25*724ba675SRob Herring 26*724ba675SRob Herring/ { 27*724ba675SRob Herring model = "Marvell Armada XP Development Board DB-MV784MP-GP"; 28*724ba675SRob Herring compatible = "marvell,axp-gp", "marvell,armadaxp-mv78460", "marvell,armadaxp", "marvell,armada-370-xp"; 29*724ba675SRob Herring 30*724ba675SRob Herring chosen { 31*724ba675SRob Herring stdout-path = "serial0:115200n8"; 32*724ba675SRob Herring }; 33*724ba675SRob Herring 34*724ba675SRob Herring memory@0 { 35*724ba675SRob Herring device_type = "memory"; 36*724ba675SRob Herring /* 37*724ba675SRob Herring * 8 GB of plug-in RAM modules by default.The amount 38*724ba675SRob Herring * of memory available can be changed by the 39*724ba675SRob Herring * bootloader according the size of the module 40*724ba675SRob Herring * actually plugged. However, memory between 41*724ba675SRob Herring * 0xF0000000 to 0xFFFFFFFF cannot be used, as it is 42*724ba675SRob Herring * the address range used for I/O (internal registers, 43*724ba675SRob Herring * MBus windows). 44*724ba675SRob Herring */ 45*724ba675SRob Herring reg = <0x00000000 0x00000000 0x00000000 0xf0000000>, 46*724ba675SRob Herring <0x00000001 0x00000000 0x00000001 0x00000000>; 47*724ba675SRob Herring }; 48*724ba675SRob Herring 49*724ba675SRob Herring cpus { 50*724ba675SRob Herring pm_pic { 51*724ba675SRob Herring ctrl-gpios = <&gpio0 16 GPIO_ACTIVE_LOW>, 52*724ba675SRob Herring <&gpio0 17 GPIO_ACTIVE_LOW>, 53*724ba675SRob Herring <&gpio0 18 GPIO_ACTIVE_LOW>; 54*724ba675SRob Herring }; 55*724ba675SRob Herring }; 56*724ba675SRob Herring 57*724ba675SRob Herring soc { 58*724ba675SRob Herring ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xf1000000 0x100000 59*724ba675SRob Herring MBUS_ID(0x01, 0x1d) 0 0 0xfff00000 0x100000 60*724ba675SRob Herring MBUS_ID(0x01, 0x2f) 0 0 0xf0000000 0x1000000 61*724ba675SRob Herring MBUS_ID(0x09, 0x09) 0 0 0xf1100000 0x10000 62*724ba675SRob Herring MBUS_ID(0x09, 0x05) 0 0 0xf1110000 0x10000 63*724ba675SRob Herring MBUS_ID(0x0c, 0x04) 0 0 0xf1200000 0x100000>; 64*724ba675SRob Herring 65*724ba675SRob Herring devbus-bootcs { 66*724ba675SRob Herring status = "okay"; 67*724ba675SRob Herring 68*724ba675SRob Herring /* Device Bus parameters are required */ 69*724ba675SRob Herring 70*724ba675SRob Herring /* Read parameters */ 71*724ba675SRob Herring devbus,bus-width = <16>; 72*724ba675SRob Herring devbus,turn-off-ps = <60000>; 73*724ba675SRob Herring devbus,badr-skew-ps = <0>; 74*724ba675SRob Herring devbus,acc-first-ps = <124000>; 75*724ba675SRob Herring devbus,acc-next-ps = <248000>; 76*724ba675SRob Herring devbus,rd-setup-ps = <0>; 77*724ba675SRob Herring devbus,rd-hold-ps = <0>; 78*724ba675SRob Herring 79*724ba675SRob Herring /* Write parameters */ 80*724ba675SRob Herring devbus,sync-enable = <0>; 81*724ba675SRob Herring devbus,wr-high-ps = <60000>; 82*724ba675SRob Herring devbus,wr-low-ps = <60000>; 83*724ba675SRob Herring devbus,ale-wr-ps = <60000>; 84*724ba675SRob Herring 85*724ba675SRob Herring /* NOR 16 MiB */ 86*724ba675SRob Herring nor@0 { 87*724ba675SRob Herring compatible = "cfi-flash"; 88*724ba675SRob Herring reg = <0 0x1000000>; 89*724ba675SRob Herring bank-width = <2>; 90*724ba675SRob Herring }; 91*724ba675SRob Herring }; 92*724ba675SRob Herring 93*724ba675SRob Herring internal-regs { 94*724ba675SRob Herring serial@12000 { 95*724ba675SRob Herring status = "okay"; 96*724ba675SRob Herring }; 97*724ba675SRob Herring serial@12100 { 98*724ba675SRob Herring status = "okay"; 99*724ba675SRob Herring }; 100*724ba675SRob Herring serial@12200 { 101*724ba675SRob Herring status = "okay"; 102*724ba675SRob Herring }; 103*724ba675SRob Herring serial@12300 { 104*724ba675SRob Herring status = "okay"; 105*724ba675SRob Herring }; 106*724ba675SRob Herring pinctrl { 107*724ba675SRob Herring pinctrl-0 = <&pic_pins>; 108*724ba675SRob Herring pinctrl-names = "default"; 109*724ba675SRob Herring pic_pins: pic-pins-0 { 110*724ba675SRob Herring marvell,pins = "mpp16", "mpp17", 111*724ba675SRob Herring "mpp18"; 112*724ba675SRob Herring marvell,function = "gpio"; 113*724ba675SRob Herring }; 114*724ba675SRob Herring }; 115*724ba675SRob Herring sata@a0000 { 116*724ba675SRob Herring nr-ports = <2>; 117*724ba675SRob Herring status = "okay"; 118*724ba675SRob Herring }; 119*724ba675SRob Herring 120*724ba675SRob Herring ethernet@70000 { 121*724ba675SRob Herring status = "okay"; 122*724ba675SRob Herring phy = <&phy0>; 123*724ba675SRob Herring phy-mode = "qsgmii"; 124*724ba675SRob Herring buffer-manager = <&bm>; 125*724ba675SRob Herring bm,pool-long = <0>; 126*724ba675SRob Herring }; 127*724ba675SRob Herring ethernet@74000 { 128*724ba675SRob Herring status = "okay"; 129*724ba675SRob Herring phy = <&phy1>; 130*724ba675SRob Herring phy-mode = "qsgmii"; 131*724ba675SRob Herring buffer-manager = <&bm>; 132*724ba675SRob Herring bm,pool-long = <1>; 133*724ba675SRob Herring }; 134*724ba675SRob Herring ethernet@30000 { 135*724ba675SRob Herring status = "okay"; 136*724ba675SRob Herring phy = <&phy2>; 137*724ba675SRob Herring phy-mode = "qsgmii"; 138*724ba675SRob Herring buffer-manager = <&bm>; 139*724ba675SRob Herring bm,pool-long = <2>; 140*724ba675SRob Herring }; 141*724ba675SRob Herring ethernet@34000 { 142*724ba675SRob Herring status = "okay"; 143*724ba675SRob Herring phy = <&phy3>; 144*724ba675SRob Herring phy-mode = "qsgmii"; 145*724ba675SRob Herring buffer-manager = <&bm>; 146*724ba675SRob Herring bm,pool-long = <3>; 147*724ba675SRob Herring }; 148*724ba675SRob Herring 149*724ba675SRob Herring /* Front-side USB slot */ 150*724ba675SRob Herring usb@50000 { 151*724ba675SRob Herring status = "okay"; 152*724ba675SRob Herring }; 153*724ba675SRob Herring 154*724ba675SRob Herring /* Back-side USB slot */ 155*724ba675SRob Herring usb@51000 { 156*724ba675SRob Herring status = "okay"; 157*724ba675SRob Herring }; 158*724ba675SRob Herring 159*724ba675SRob Herring bm@c0000 { 160*724ba675SRob Herring status = "okay"; 161*724ba675SRob Herring }; 162*724ba675SRob Herring 163*724ba675SRob Herring nand-controller@d0000 { 164*724ba675SRob Herring status = "okay"; 165*724ba675SRob Herring 166*724ba675SRob Herring nand@0 { 167*724ba675SRob Herring reg = <0>; 168*724ba675SRob Herring label = "pxa3xx_nand-0"; 169*724ba675SRob Herring nand-rb = <0>; 170*724ba675SRob Herring nand-on-flash-bbt; 171*724ba675SRob Herring }; 172*724ba675SRob Herring }; 173*724ba675SRob Herring }; 174*724ba675SRob Herring 175*724ba675SRob Herring bm-bppi { 176*724ba675SRob Herring status = "okay"; 177*724ba675SRob Herring }; 178*724ba675SRob Herring }; 179*724ba675SRob Herring}; 180*724ba675SRob Herring 181*724ba675SRob Herring&pciec { 182*724ba675SRob Herring status = "okay"; 183*724ba675SRob Herring 184*724ba675SRob Herring /* 185*724ba675SRob Herring * The 3 slots are physically present as 186*724ba675SRob Herring * standard PCIe slots on the board. 187*724ba675SRob Herring */ 188*724ba675SRob Herring pcie@1,0 { 189*724ba675SRob Herring /* Port 0, Lane 0 */ 190*724ba675SRob Herring status = "okay"; 191*724ba675SRob Herring }; 192*724ba675SRob Herring pcie@9,0 { 193*724ba675SRob Herring /* Port 2, Lane 0 */ 194*724ba675SRob Herring status = "okay"; 195*724ba675SRob Herring }; 196*724ba675SRob Herring pcie@a,0 { 197*724ba675SRob Herring /* Port 3, Lane 0 */ 198*724ba675SRob Herring status = "okay"; 199*724ba675SRob Herring }; 200*724ba675SRob Herring}; 201*724ba675SRob Herring 202*724ba675SRob Herring&mdio { 203*724ba675SRob Herring phy0: ethernet-phy@0 { 204*724ba675SRob Herring reg = <16>; 205*724ba675SRob Herring }; 206*724ba675SRob Herring 207*724ba675SRob Herring phy1: ethernet-phy@1 { 208*724ba675SRob Herring reg = <17>; 209*724ba675SRob Herring }; 210*724ba675SRob Herring 211*724ba675SRob Herring phy2: ethernet-phy@2 { 212*724ba675SRob Herring reg = <18>; 213*724ba675SRob Herring }; 214*724ba675SRob Herring 215*724ba675SRob Herring phy3: ethernet-phy@3 { 216*724ba675SRob Herring reg = <19>; 217*724ba675SRob Herring }; 218*724ba675SRob Herring}; 219*724ba675SRob Herring 220*724ba675SRob Herring&spi0 { 221*724ba675SRob Herring status = "okay"; 222*724ba675SRob Herring 223*724ba675SRob Herring flash@0 { 224*724ba675SRob Herring #address-cells = <1>; 225*724ba675SRob Herring #size-cells = <1>; 226*724ba675SRob Herring compatible = "n25q128a13", "jedec,spi-nor"; 227*724ba675SRob Herring reg = <0>; /* Chip select 0 */ 228*724ba675SRob Herring spi-max-frequency = <108000000>; 229*724ba675SRob Herring }; 230*724ba675SRob Herring}; 231