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