1*724ba675SRob Herring// SPDX-License-Identifier: (GPL-2.0 OR MIT) 2*724ba675SRob Herring/* 3*724ba675SRob Herring * Device Tree file for Marvell Armada 385 development board 4*724ba675SRob Herring * (RD-88F6820-GP) 5*724ba675SRob Herring * 6*724ba675SRob Herring * Copyright (C) 2014 Marvell 7*724ba675SRob Herring * 8*724ba675SRob Herring * Gregory CLEMENT <gregory.clement@free-electrons.com> 9*724ba675SRob Herring */ 10*724ba675SRob Herring 11*724ba675SRob Herring/dts-v1/; 12*724ba675SRob Herring#include "armada-388.dtsi" 13*724ba675SRob Herring#include <dt-bindings/gpio/gpio.h> 14*724ba675SRob Herring 15*724ba675SRob Herring/ { 16*724ba675SRob Herring model = "Marvell Armada 388 DB-88F6820-GP"; 17*724ba675SRob Herring compatible = "marvell,a388-gp", "marvell,armada388", "marvell,armada380"; 18*724ba675SRob Herring 19*724ba675SRob Herring chosen { 20*724ba675SRob Herring stdout-path = "serial0:115200n8"; 21*724ba675SRob Herring }; 22*724ba675SRob Herring 23*724ba675SRob Herring memory { 24*724ba675SRob Herring device_type = "memory"; 25*724ba675SRob Herring reg = <0x00000000 0x80000000>; /* 2 GB */ 26*724ba675SRob Herring }; 27*724ba675SRob Herring 28*724ba675SRob Herring soc { 29*724ba675SRob Herring ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000 30*724ba675SRob Herring MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000 31*724ba675SRob Herring MBUS_ID(0x09, 0x19) 0 0xf1100000 0x10000 32*724ba675SRob Herring MBUS_ID(0x09, 0x15) 0 0xf1110000 0x10000 33*724ba675SRob Herring MBUS_ID(0x0c, 0x04) 0 0xf1200000 0x100000>; 34*724ba675SRob Herring 35*724ba675SRob Herring internal-regs { 36*724ba675SRob Herring i2c@11000 { 37*724ba675SRob Herring pinctrl-names = "default"; 38*724ba675SRob Herring pinctrl-0 = <&i2c0_pins>; 39*724ba675SRob Herring status = "okay"; 40*724ba675SRob Herring clock-frequency = <100000>; 41*724ba675SRob Herring 42*724ba675SRob Herring expander0: pca9555@20 { 43*724ba675SRob Herring compatible = "nxp,pca9555"; 44*724ba675SRob Herring pinctrl-names = "default"; 45*724ba675SRob Herring pinctrl-0 = <&pca0_pins>; 46*724ba675SRob Herring interrupt-parent = <&gpio0>; 47*724ba675SRob Herring interrupts = <18 IRQ_TYPE_LEVEL_LOW>; 48*724ba675SRob Herring gpio-controller; 49*724ba675SRob Herring #gpio-cells = <2>; 50*724ba675SRob Herring interrupt-controller; 51*724ba675SRob Herring #interrupt-cells = <2>; 52*724ba675SRob Herring reg = <0x20>; 53*724ba675SRob Herring }; 54*724ba675SRob Herring 55*724ba675SRob Herring expander1: pca9555@21 { 56*724ba675SRob Herring compatible = "nxp,pca9555"; 57*724ba675SRob Herring pinctrl-names = "default"; 58*724ba675SRob Herring interrupt-parent = <&gpio0>; 59*724ba675SRob Herring interrupts = <18 IRQ_TYPE_LEVEL_LOW>; 60*724ba675SRob Herring gpio-controller; 61*724ba675SRob Herring #gpio-cells = <2>; 62*724ba675SRob Herring interrupt-controller; 63*724ba675SRob Herring #interrupt-cells = <2>; 64*724ba675SRob Herring reg = <0x21>; 65*724ba675SRob Herring }; 66*724ba675SRob Herring 67*724ba675SRob Herring eeprom@57 { 68*724ba675SRob Herring compatible = "atmel,24c64"; 69*724ba675SRob Herring reg = <0x57>; 70*724ba675SRob Herring }; 71*724ba675SRob Herring }; 72*724ba675SRob Herring 73*724ba675SRob Herring serial@12000 { 74*724ba675SRob Herring /* 75*724ba675SRob Herring * Exported on the micro USB connector CON16 76*724ba675SRob Herring * through an FTDI 77*724ba675SRob Herring */ 78*724ba675SRob Herring 79*724ba675SRob Herring pinctrl-names = "default"; 80*724ba675SRob Herring pinctrl-0 = <&uart0_pins>; 81*724ba675SRob Herring status = "okay"; 82*724ba675SRob Herring }; 83*724ba675SRob Herring 84*724ba675SRob Herring /* GE1 CON15 */ 85*724ba675SRob Herring ethernet@30000 { 86*724ba675SRob Herring pinctrl-names = "default"; 87*724ba675SRob Herring pinctrl-0 = <&ge1_rgmii_pins>; 88*724ba675SRob Herring status = "okay"; 89*724ba675SRob Herring phy = <&phy1>; 90*724ba675SRob Herring phy-mode = "rgmii-id"; 91*724ba675SRob Herring buffer-manager = <&bm>; 92*724ba675SRob Herring bm,pool-long = <2>; 93*724ba675SRob Herring bm,pool-short = <3>; 94*724ba675SRob Herring }; 95*724ba675SRob Herring 96*724ba675SRob Herring /* CON4 */ 97*724ba675SRob Herring usb@58000 { 98*724ba675SRob Herring vcc-supply = <®_usb2_0_vbus>; 99*724ba675SRob Herring status = "okay"; 100*724ba675SRob Herring }; 101*724ba675SRob Herring 102*724ba675SRob Herring /* GE0 CON1 */ 103*724ba675SRob Herring ethernet@70000 { 104*724ba675SRob Herring pinctrl-names = "default"; 105*724ba675SRob Herring /* 106*724ba675SRob Herring * The Reference Clock 0 is used to provide a 107*724ba675SRob Herring * clock to the PHY 108*724ba675SRob Herring */ 109*724ba675SRob Herring pinctrl-0 = <&ge0_rgmii_pins>, <&ref_clk0_pins>; 110*724ba675SRob Herring status = "okay"; 111*724ba675SRob Herring phy = <&phy0>; 112*724ba675SRob Herring phy-mode = "rgmii-id"; 113*724ba675SRob Herring buffer-manager = <&bm>; 114*724ba675SRob Herring bm,pool-long = <0>; 115*724ba675SRob Herring bm,pool-short = <1>; 116*724ba675SRob Herring }; 117*724ba675SRob Herring 118*724ba675SRob Herring 119*724ba675SRob Herring mdio@72004 { 120*724ba675SRob Herring pinctrl-names = "default"; 121*724ba675SRob Herring pinctrl-0 = <&mdio_pins>; 122*724ba675SRob Herring 123*724ba675SRob Herring phy0: ethernet-phy@1 { 124*724ba675SRob Herring reg = <1>; 125*724ba675SRob Herring }; 126*724ba675SRob Herring 127*724ba675SRob Herring phy1: ethernet-phy@0 { 128*724ba675SRob Herring reg = <0>; 129*724ba675SRob Herring }; 130*724ba675SRob Herring }; 131*724ba675SRob Herring 132*724ba675SRob Herring sata@a8000 { 133*724ba675SRob Herring pinctrl-names = "default"; 134*724ba675SRob Herring pinctrl-0 = <&sata0_pins>, <&sata1_pins>; 135*724ba675SRob Herring status = "okay"; 136*724ba675SRob Herring #address-cells = <1>; 137*724ba675SRob Herring #size-cells = <0>; 138*724ba675SRob Herring 139*724ba675SRob Herring sata0: sata-port@0 { 140*724ba675SRob Herring reg = <0>; 141*724ba675SRob Herring target-supply = <®_5v_sata0>; 142*724ba675SRob Herring }; 143*724ba675SRob Herring 144*724ba675SRob Herring sata1: sata-port@1 { 145*724ba675SRob Herring reg = <1>; 146*724ba675SRob Herring target-supply = <®_5v_sata1>; 147*724ba675SRob Herring }; 148*724ba675SRob Herring }; 149*724ba675SRob Herring 150*724ba675SRob Herring bm@c8000 { 151*724ba675SRob Herring status = "okay"; 152*724ba675SRob Herring }; 153*724ba675SRob Herring 154*724ba675SRob Herring sata@e0000 { 155*724ba675SRob Herring pinctrl-names = "default"; 156*724ba675SRob Herring pinctrl-0 = <&sata2_pins>, <&sata3_pins>; 157*724ba675SRob Herring status = "okay"; 158*724ba675SRob Herring #address-cells = <1>; 159*724ba675SRob Herring #size-cells = <0>; 160*724ba675SRob Herring 161*724ba675SRob Herring sata2: sata-port@0 { 162*724ba675SRob Herring reg = <0>; 163*724ba675SRob Herring target-supply = <®_5v_sata2>; 164*724ba675SRob Herring }; 165*724ba675SRob Herring 166*724ba675SRob Herring sata3: sata-port@1 { 167*724ba675SRob Herring reg = <1>; 168*724ba675SRob Herring target-supply = <®_5v_sata3>; 169*724ba675SRob Herring }; 170*724ba675SRob Herring }; 171*724ba675SRob Herring 172*724ba675SRob Herring sdhci@d8000 { 173*724ba675SRob Herring pinctrl-names = "default"; 174*724ba675SRob Herring pinctrl-0 = <&sdhci_pins>; 175*724ba675SRob Herring no-1-8-v; 176*724ba675SRob Herring /* 177*724ba675SRob Herring * A388-GP board v1.5 and higher replace 178*724ba675SRob Herring * hitherto card detection method based on GPIO 179*724ba675SRob Herring * with the one using DAT3 pin. As they are 180*724ba675SRob Herring * incompatible, software-based polling is 181*724ba675SRob Herring * enabled with 'broken-cd' property. For boards 182*724ba675SRob Herring * older than v1.5 it can be replaced with: 183*724ba675SRob Herring * 'cd-gpios = <&expander0 5 GPIO_ACTIVE_LOW>;', 184*724ba675SRob Herring * whereas for the newer ones following can be 185*724ba675SRob Herring * used instead: 186*724ba675SRob Herring * 'dat3-cd;' 187*724ba675SRob Herring * 'cd-inverted;' 188*724ba675SRob Herring */ 189*724ba675SRob Herring broken-cd; 190*724ba675SRob Herring wp-inverted; 191*724ba675SRob Herring bus-width = <8>; 192*724ba675SRob Herring status = "okay"; 193*724ba675SRob Herring }; 194*724ba675SRob Herring 195*724ba675SRob Herring /* CON5 */ 196*724ba675SRob Herring usb3@f0000 { 197*724ba675SRob Herring usb-phy = <&usb2_1_phy>; 198*724ba675SRob Herring status = "okay"; 199*724ba675SRob Herring }; 200*724ba675SRob Herring 201*724ba675SRob Herring /* CON7 */ 202*724ba675SRob Herring usb3@f8000 { 203*724ba675SRob Herring usb-phy = <&usb3_phy>; 204*724ba675SRob Herring status = "okay"; 205*724ba675SRob Herring }; 206*724ba675SRob Herring }; 207*724ba675SRob Herring 208*724ba675SRob Herring bm-bppi { 209*724ba675SRob Herring status = "okay"; 210*724ba675SRob Herring }; 211*724ba675SRob Herring 212*724ba675SRob Herring pcie { 213*724ba675SRob Herring status = "okay"; 214*724ba675SRob Herring /* 215*724ba675SRob Herring * One PCIe units is accessible through 216*724ba675SRob Herring * standard PCIe slot on the board. 217*724ba675SRob Herring */ 218*724ba675SRob Herring pcie@1,0 { 219*724ba675SRob Herring /* Port 0, Lane 0 */ 220*724ba675SRob Herring status = "okay"; 221*724ba675SRob Herring }; 222*724ba675SRob Herring 223*724ba675SRob Herring /* 224*724ba675SRob Herring * The two other PCIe units are accessible 225*724ba675SRob Herring * through mini PCIe slot on the board. 226*724ba675SRob Herring */ 227*724ba675SRob Herring pcie@2,0 { 228*724ba675SRob Herring /* Port 1, Lane 0 */ 229*724ba675SRob Herring status = "okay"; 230*724ba675SRob Herring }; 231*724ba675SRob Herring pcie@3,0 { 232*724ba675SRob Herring /* Port 2, Lane 0 */ 233*724ba675SRob Herring status = "okay"; 234*724ba675SRob Herring }; 235*724ba675SRob Herring }; 236*724ba675SRob Herring 237*724ba675SRob Herring gpio-fan { 238*724ba675SRob Herring compatible = "gpio-fan"; 239*724ba675SRob Herring gpios = <&expander1 3 GPIO_ACTIVE_HIGH>; 240*724ba675SRob Herring gpio-fan,speed-map = < 0 0 241*724ba675SRob Herring 3000 1>; 242*724ba675SRob Herring }; 243*724ba675SRob Herring }; 244*724ba675SRob Herring 245*724ba675SRob Herring usb2_1_phy: usb2_1_phy { 246*724ba675SRob Herring compatible = "usb-nop-xceiv"; 247*724ba675SRob Herring vcc-supply = <®_usb2_1_vbus>; 248*724ba675SRob Herring #phy-cells = <0>; 249*724ba675SRob Herring }; 250*724ba675SRob Herring 251*724ba675SRob Herring usb3_phy: usb3_phy { 252*724ba675SRob Herring compatible = "usb-nop-xceiv"; 253*724ba675SRob Herring vcc-supply = <®_usb3_vbus>; 254*724ba675SRob Herring #phy-cells = <0>; 255*724ba675SRob Herring }; 256*724ba675SRob Herring 257*724ba675SRob Herring reg_usb3_vbus: usb3-vbus { 258*724ba675SRob Herring compatible = "regulator-fixed"; 259*724ba675SRob Herring regulator-name = "usb3-vbus"; 260*724ba675SRob Herring regulator-min-microvolt = <5000000>; 261*724ba675SRob Herring regulator-max-microvolt = <5000000>; 262*724ba675SRob Herring enable-active-high; 263*724ba675SRob Herring gpio = <&expander1 15 GPIO_ACTIVE_HIGH>; 264*724ba675SRob Herring }; 265*724ba675SRob Herring 266*724ba675SRob Herring reg_usb2_0_vbus: v5-vbus0 { 267*724ba675SRob Herring compatible = "regulator-fixed"; 268*724ba675SRob Herring regulator-name = "v5.0-vbus0"; 269*724ba675SRob Herring regulator-min-microvolt = <5000000>; 270*724ba675SRob Herring regulator-max-microvolt = <5000000>; 271*724ba675SRob Herring enable-active-high; 272*724ba675SRob Herring regulator-always-on; 273*724ba675SRob Herring gpio = <&expander1 14 GPIO_ACTIVE_HIGH>; 274*724ba675SRob Herring }; 275*724ba675SRob Herring 276*724ba675SRob Herring reg_usb2_1_vbus: v5-vbus1 { 277*724ba675SRob Herring compatible = "regulator-fixed"; 278*724ba675SRob Herring regulator-name = "v5.0-vbus1"; 279*724ba675SRob Herring regulator-min-microvolt = <5000000>; 280*724ba675SRob Herring regulator-max-microvolt = <5000000>; 281*724ba675SRob Herring enable-active-high; 282*724ba675SRob Herring gpio = <&expander0 4 GPIO_ACTIVE_HIGH>; 283*724ba675SRob Herring }; 284*724ba675SRob Herring 285*724ba675SRob Herring reg_sata0: pwr-sata0 { 286*724ba675SRob Herring compatible = "regulator-fixed"; 287*724ba675SRob Herring regulator-name = "pwr_en_sata0"; 288*724ba675SRob Herring regulator-min-microvolt = <12000000>; 289*724ba675SRob Herring regulator-max-microvolt = <12000000>; 290*724ba675SRob Herring enable-active-high; 291*724ba675SRob Herring regulator-boot-on; 292*724ba675SRob Herring gpio = <&expander0 2 GPIO_ACTIVE_HIGH>; 293*724ba675SRob Herring }; 294*724ba675SRob Herring 295*724ba675SRob Herring reg_5v_sata0: v5-sata0 { 296*724ba675SRob Herring compatible = "regulator-fixed"; 297*724ba675SRob Herring regulator-name = "v5.0-sata0"; 298*724ba675SRob Herring regulator-min-microvolt = <5000000>; 299*724ba675SRob Herring regulator-max-microvolt = <5000000>; 300*724ba675SRob Herring vin-supply = <®_sata0>; 301*724ba675SRob Herring }; 302*724ba675SRob Herring 303*724ba675SRob Herring reg_12v_sata0: v12-sata0 { 304*724ba675SRob Herring compatible = "regulator-fixed"; 305*724ba675SRob Herring regulator-name = "v12.0-sata0"; 306*724ba675SRob Herring regulator-min-microvolt = <12000000>; 307*724ba675SRob Herring regulator-max-microvolt = <12000000>; 308*724ba675SRob Herring vin-supply = <®_sata0>; 309*724ba675SRob Herring }; 310*724ba675SRob Herring 311*724ba675SRob Herring reg_sata1: pwr-sata1 { 312*724ba675SRob Herring regulator-name = "pwr_en_sata1"; 313*724ba675SRob Herring compatible = "regulator-fixed"; 314*724ba675SRob Herring regulator-min-microvolt = <12000000>; 315*724ba675SRob Herring regulator-max-microvolt = <12000000>; 316*724ba675SRob Herring enable-active-high; 317*724ba675SRob Herring regulator-boot-on; 318*724ba675SRob Herring gpio = <&expander0 3 GPIO_ACTIVE_HIGH>; 319*724ba675SRob Herring }; 320*724ba675SRob Herring 321*724ba675SRob Herring reg_5v_sata1: v5-sata1 { 322*724ba675SRob Herring compatible = "regulator-fixed"; 323*724ba675SRob Herring regulator-name = "v5.0-sata1"; 324*724ba675SRob Herring regulator-min-microvolt = <5000000>; 325*724ba675SRob Herring regulator-max-microvolt = <5000000>; 326*724ba675SRob Herring vin-supply = <®_sata1>; 327*724ba675SRob Herring }; 328*724ba675SRob Herring 329*724ba675SRob Herring reg_12v_sata1: v12-sata1 { 330*724ba675SRob Herring compatible = "regulator-fixed"; 331*724ba675SRob Herring regulator-name = "v12.0-sata1"; 332*724ba675SRob Herring regulator-min-microvolt = <12000000>; 333*724ba675SRob Herring regulator-max-microvolt = <12000000>; 334*724ba675SRob Herring vin-supply = <®_sata1>; 335*724ba675SRob Herring }; 336*724ba675SRob Herring 337*724ba675SRob Herring reg_sata2: pwr-sata2 { 338*724ba675SRob Herring compatible = "regulator-fixed"; 339*724ba675SRob Herring regulator-name = "pwr_en_sata2"; 340*724ba675SRob Herring enable-active-high; 341*724ba675SRob Herring regulator-boot-on; 342*724ba675SRob Herring gpio = <&expander0 11 GPIO_ACTIVE_HIGH>; 343*724ba675SRob Herring }; 344*724ba675SRob Herring 345*724ba675SRob Herring reg_5v_sata2: v5-sata2 { 346*724ba675SRob Herring compatible = "regulator-fixed"; 347*724ba675SRob Herring regulator-name = "v5.0-sata2"; 348*724ba675SRob Herring regulator-min-microvolt = <5000000>; 349*724ba675SRob Herring regulator-max-microvolt = <5000000>; 350*724ba675SRob Herring vin-supply = <®_sata2>; 351*724ba675SRob Herring }; 352*724ba675SRob Herring 353*724ba675SRob Herring reg_12v_sata2: v12-sata2 { 354*724ba675SRob Herring compatible = "regulator-fixed"; 355*724ba675SRob Herring regulator-name = "v12.0-sata2"; 356*724ba675SRob Herring regulator-min-microvolt = <12000000>; 357*724ba675SRob Herring regulator-max-microvolt = <12000000>; 358*724ba675SRob Herring vin-supply = <®_sata2>; 359*724ba675SRob Herring }; 360*724ba675SRob Herring 361*724ba675SRob Herring reg_sata3: pwr-sata3 { 362*724ba675SRob Herring compatible = "regulator-fixed"; 363*724ba675SRob Herring regulator-name = "pwr_en_sata3"; 364*724ba675SRob Herring enable-active-high; 365*724ba675SRob Herring regulator-boot-on; 366*724ba675SRob Herring gpio = <&expander0 12 GPIO_ACTIVE_HIGH>; 367*724ba675SRob Herring }; 368*724ba675SRob Herring 369*724ba675SRob Herring reg_5v_sata3: v5-sata3 { 370*724ba675SRob Herring compatible = "regulator-fixed"; 371*724ba675SRob Herring regulator-name = "v5.0-sata3"; 372*724ba675SRob Herring regulator-min-microvolt = <5000000>; 373*724ba675SRob Herring regulator-max-microvolt = <5000000>; 374*724ba675SRob Herring vin-supply = <®_sata3>; 375*724ba675SRob Herring }; 376*724ba675SRob Herring 377*724ba675SRob Herring reg_12v_sata3: v12-sata3 { 378*724ba675SRob Herring compatible = "regulator-fixed"; 379*724ba675SRob Herring regulator-name = "v12.0-sata3"; 380*724ba675SRob Herring regulator-min-microvolt = <12000000>; 381*724ba675SRob Herring regulator-max-microvolt = <12000000>; 382*724ba675SRob Herring vin-supply = <®_sata3>; 383*724ba675SRob Herring }; 384*724ba675SRob Herring}; 385*724ba675SRob Herring 386*724ba675SRob Herring&pinctrl { 387*724ba675SRob Herring pca0_pins: pca0_pins { 388*724ba675SRob Herring marvell,pins = "mpp18"; 389*724ba675SRob Herring marvell,function = "gpio"; 390*724ba675SRob Herring }; 391*724ba675SRob Herring}; 392*724ba675SRob Herring 393*724ba675SRob Herring&spi0 { 394*724ba675SRob Herring pinctrl-names = "default"; 395*724ba675SRob Herring pinctrl-0 = <&spi0_pins>; 396*724ba675SRob Herring status = "okay"; 397*724ba675SRob Herring 398*724ba675SRob Herring flash@0 { 399*724ba675SRob Herring #address-cells = <1>; 400*724ba675SRob Herring #size-cells = <1>; 401*724ba675SRob Herring compatible = "st,m25p128", "jedec,spi-nor"; 402*724ba675SRob Herring reg = <0>; /* Chip select 0 */ 403*724ba675SRob Herring spi-max-frequency = <50000000>; 404*724ba675SRob Herring m25p,fast-read; 405*724ba675SRob Herring }; 406*724ba675SRob Herring}; 407