1724ba675SRob Herring// SPDX-License-Identifier: (GPL-2.0 OR MIT) 2724ba675SRob Herring/* 3724ba675SRob Herring * Device Tree file for Marvell Armada 385 development board 4724ba675SRob Herring * (RD-88F6820-GP) 5724ba675SRob Herring * 6724ba675SRob Herring * Copyright (C) 2014 Marvell 7724ba675SRob Herring * 8724ba675SRob Herring * Gregory CLEMENT <gregory.clement@free-electrons.com> 9724ba675SRob Herring */ 10724ba675SRob Herring 11724ba675SRob Herring/dts-v1/; 12724ba675SRob Herring#include "armada-388.dtsi" 13724ba675SRob Herring#include <dt-bindings/gpio/gpio.h> 14724ba675SRob Herring 15724ba675SRob Herring/ { 16724ba675SRob Herring model = "Marvell Armada 388 DB-88F6820-GP"; 17724ba675SRob Herring compatible = "marvell,a388-gp", "marvell,armada388", "marvell,armada380"; 18724ba675SRob Herring 19724ba675SRob Herring chosen { 20724ba675SRob Herring stdout-path = "serial0:115200n8"; 21724ba675SRob Herring }; 22724ba675SRob Herring 23724ba675SRob Herring memory { 24724ba675SRob Herring device_type = "memory"; 25724ba675SRob Herring reg = <0x00000000 0x80000000>; /* 2 GB */ 26724ba675SRob Herring }; 27724ba675SRob Herring 28724ba675SRob Herring soc { 29724ba675SRob Herring ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000 30724ba675SRob Herring MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000 31724ba675SRob Herring MBUS_ID(0x09, 0x19) 0 0xf1100000 0x10000 32724ba675SRob Herring MBUS_ID(0x09, 0x15) 0 0xf1110000 0x10000 33724ba675SRob Herring MBUS_ID(0x0c, 0x04) 0 0xf1200000 0x100000>; 34724ba675SRob Herring 35724ba675SRob Herring internal-regs { 36724ba675SRob Herring i2c@11000 { 37724ba675SRob Herring pinctrl-names = "default"; 38724ba675SRob Herring pinctrl-0 = <&i2c0_pins>; 39724ba675SRob Herring status = "okay"; 40724ba675SRob Herring clock-frequency = <100000>; 41724ba675SRob Herring 42724ba675SRob Herring expander0: pca9555@20 { 43724ba675SRob Herring compatible = "nxp,pca9555"; 44724ba675SRob Herring pinctrl-names = "default"; 45724ba675SRob Herring pinctrl-0 = <&pca0_pins>; 46724ba675SRob Herring interrupt-parent = <&gpio0>; 47724ba675SRob Herring interrupts = <18 IRQ_TYPE_LEVEL_LOW>; 48724ba675SRob Herring gpio-controller; 49724ba675SRob Herring #gpio-cells = <2>; 50724ba675SRob Herring interrupt-controller; 51724ba675SRob Herring #interrupt-cells = <2>; 52724ba675SRob Herring reg = <0x20>; 53724ba675SRob Herring }; 54724ba675SRob Herring 55724ba675SRob Herring expander1: pca9555@21 { 56724ba675SRob Herring compatible = "nxp,pca9555"; 57724ba675SRob Herring pinctrl-names = "default"; 58724ba675SRob Herring interrupt-parent = <&gpio0>; 59724ba675SRob Herring interrupts = <18 IRQ_TYPE_LEVEL_LOW>; 60724ba675SRob Herring gpio-controller; 61724ba675SRob Herring #gpio-cells = <2>; 62724ba675SRob Herring interrupt-controller; 63724ba675SRob Herring #interrupt-cells = <2>; 64724ba675SRob Herring reg = <0x21>; 65724ba675SRob Herring }; 66724ba675SRob Herring 67724ba675SRob Herring eeprom@57 { 68724ba675SRob Herring compatible = "atmel,24c64"; 69724ba675SRob Herring reg = <0x57>; 70724ba675SRob Herring }; 71724ba675SRob Herring }; 72724ba675SRob Herring 73724ba675SRob Herring serial@12000 { 74724ba675SRob Herring /* 75724ba675SRob Herring * Exported on the micro USB connector CON16 76724ba675SRob Herring * through an FTDI 77724ba675SRob Herring */ 78724ba675SRob Herring 79724ba675SRob Herring pinctrl-names = "default"; 80724ba675SRob Herring pinctrl-0 = <&uart0_pins>; 81724ba675SRob Herring status = "okay"; 82724ba675SRob Herring }; 83724ba675SRob Herring 84724ba675SRob Herring /* GE1 CON15 */ 85724ba675SRob Herring ethernet@30000 { 86724ba675SRob Herring pinctrl-names = "default"; 87724ba675SRob Herring pinctrl-0 = <&ge1_rgmii_pins>; 88724ba675SRob Herring status = "okay"; 89724ba675SRob Herring phy = <&phy1>; 90724ba675SRob Herring phy-mode = "rgmii-id"; 91724ba675SRob Herring buffer-manager = <&bm>; 92724ba675SRob Herring bm,pool-long = <2>; 93724ba675SRob Herring bm,pool-short = <3>; 94724ba675SRob Herring }; 95724ba675SRob Herring 96724ba675SRob Herring /* CON4 */ 97724ba675SRob Herring usb@58000 { 98724ba675SRob Herring vcc-supply = <®_usb2_0_vbus>; 99724ba675SRob Herring status = "okay"; 100724ba675SRob Herring }; 101724ba675SRob Herring 102724ba675SRob Herring /* GE0 CON1 */ 103724ba675SRob Herring ethernet@70000 { 104724ba675SRob Herring pinctrl-names = "default"; 105724ba675SRob Herring /* 106724ba675SRob Herring * The Reference Clock 0 is used to provide a 107724ba675SRob Herring * clock to the PHY 108724ba675SRob Herring */ 109724ba675SRob Herring pinctrl-0 = <&ge0_rgmii_pins>, <&ref_clk0_pins>; 110724ba675SRob Herring status = "okay"; 111724ba675SRob Herring phy = <&phy0>; 112724ba675SRob Herring phy-mode = "rgmii-id"; 113724ba675SRob Herring buffer-manager = <&bm>; 114724ba675SRob Herring bm,pool-long = <0>; 115724ba675SRob Herring bm,pool-short = <1>; 116724ba675SRob Herring }; 117724ba675SRob Herring 118724ba675SRob Herring 119724ba675SRob Herring mdio@72004 { 120724ba675SRob Herring pinctrl-names = "default"; 121724ba675SRob Herring pinctrl-0 = <&mdio_pins>; 122724ba675SRob Herring 123724ba675SRob Herring phy0: ethernet-phy@1 { 124724ba675SRob Herring reg = <1>; 125724ba675SRob Herring }; 126724ba675SRob Herring 127724ba675SRob Herring phy1: ethernet-phy@0 { 128724ba675SRob Herring reg = <0>; 129724ba675SRob Herring }; 130724ba675SRob Herring }; 131724ba675SRob Herring 132724ba675SRob Herring sata@a8000 { 133724ba675SRob Herring pinctrl-names = "default"; 134724ba675SRob Herring pinctrl-0 = <&sata0_pins>, <&sata1_pins>; 135724ba675SRob Herring status = "okay"; 136724ba675SRob Herring #address-cells = <1>; 137724ba675SRob Herring #size-cells = <0>; 138724ba675SRob Herring 139724ba675SRob Herring sata0: sata-port@0 { 140724ba675SRob Herring reg = <0>; 141724ba675SRob Herring target-supply = <®_5v_sata0>; 142724ba675SRob Herring }; 143724ba675SRob Herring 144724ba675SRob Herring sata1: sata-port@1 { 145724ba675SRob Herring reg = <1>; 146724ba675SRob Herring target-supply = <®_5v_sata1>; 147724ba675SRob Herring }; 148724ba675SRob Herring }; 149724ba675SRob Herring 150724ba675SRob Herring bm@c8000 { 151724ba675SRob Herring status = "okay"; 152724ba675SRob Herring }; 153724ba675SRob Herring 154724ba675SRob Herring sata@e0000 { 155724ba675SRob Herring pinctrl-names = "default"; 156724ba675SRob Herring pinctrl-0 = <&sata2_pins>, <&sata3_pins>; 157724ba675SRob Herring status = "okay"; 158724ba675SRob Herring #address-cells = <1>; 159724ba675SRob Herring #size-cells = <0>; 160724ba675SRob Herring 161724ba675SRob Herring sata2: sata-port@0 { 162724ba675SRob Herring reg = <0>; 163724ba675SRob Herring target-supply = <®_5v_sata2>; 164724ba675SRob Herring }; 165724ba675SRob Herring 166724ba675SRob Herring sata3: sata-port@1 { 167724ba675SRob Herring reg = <1>; 168724ba675SRob Herring target-supply = <®_5v_sata3>; 169724ba675SRob Herring }; 170724ba675SRob Herring }; 171724ba675SRob Herring 172724ba675SRob Herring sdhci@d8000 { 173724ba675SRob Herring pinctrl-names = "default"; 174724ba675SRob Herring pinctrl-0 = <&sdhci_pins>; 175724ba675SRob Herring no-1-8-v; 176724ba675SRob Herring /* 177724ba675SRob Herring * A388-GP board v1.5 and higher replace 178724ba675SRob Herring * hitherto card detection method based on GPIO 179724ba675SRob Herring * with the one using DAT3 pin. As they are 180724ba675SRob Herring * incompatible, software-based polling is 181724ba675SRob Herring * enabled with 'broken-cd' property. For boards 182724ba675SRob Herring * older than v1.5 it can be replaced with: 183724ba675SRob Herring * 'cd-gpios = <&expander0 5 GPIO_ACTIVE_LOW>;', 184724ba675SRob Herring * whereas for the newer ones following can be 185724ba675SRob Herring * used instead: 186724ba675SRob Herring * 'dat3-cd;' 187724ba675SRob Herring * 'cd-inverted;' 188724ba675SRob Herring */ 189724ba675SRob Herring broken-cd; 190724ba675SRob Herring wp-inverted; 191724ba675SRob Herring bus-width = <8>; 192724ba675SRob Herring status = "okay"; 193724ba675SRob Herring }; 194724ba675SRob Herring 195724ba675SRob Herring /* CON5 */ 196724ba675SRob Herring usb3@f0000 { 197724ba675SRob Herring usb-phy = <&usb2_1_phy>; 198724ba675SRob Herring status = "okay"; 199724ba675SRob Herring }; 200724ba675SRob Herring 201724ba675SRob Herring /* CON7 */ 202724ba675SRob Herring usb3@f8000 { 203724ba675SRob Herring usb-phy = <&usb3_phy>; 204724ba675SRob Herring status = "okay"; 205724ba675SRob Herring }; 206724ba675SRob Herring }; 207724ba675SRob Herring 208724ba675SRob Herring bm-bppi { 209724ba675SRob Herring status = "okay"; 210724ba675SRob Herring }; 211724ba675SRob Herring 212724ba675SRob Herring pcie { 213724ba675SRob Herring status = "okay"; 214724ba675SRob Herring /* 215724ba675SRob Herring * One PCIe units is accessible through 216724ba675SRob Herring * standard PCIe slot on the board. 217724ba675SRob Herring */ 218724ba675SRob Herring pcie@1,0 { 219724ba675SRob Herring /* Port 0, Lane 0 */ 220724ba675SRob Herring status = "okay"; 221724ba675SRob Herring }; 222724ba675SRob Herring 223724ba675SRob Herring /* 224724ba675SRob Herring * The two other PCIe units are accessible 225724ba675SRob Herring * through mini PCIe slot on the board. 226724ba675SRob Herring */ 227724ba675SRob Herring pcie@2,0 { 228724ba675SRob Herring /* Port 1, Lane 0 */ 229724ba675SRob Herring status = "okay"; 230724ba675SRob Herring }; 231724ba675SRob Herring pcie@3,0 { 232724ba675SRob Herring /* Port 2, Lane 0 */ 233724ba675SRob Herring status = "okay"; 234724ba675SRob Herring }; 235724ba675SRob Herring }; 236724ba675SRob Herring 237724ba675SRob Herring gpio-fan { 238724ba675SRob Herring compatible = "gpio-fan"; 239724ba675SRob Herring gpios = <&expander1 3 GPIO_ACTIVE_HIGH>; 240*62f34e3eSDavid Heidelberg gpio-fan,speed-map = < 0 0>, 241*62f34e3eSDavid Heidelberg <3000 1>; 242724ba675SRob Herring }; 243724ba675SRob Herring }; 244724ba675SRob Herring 245724ba675SRob Herring usb2_1_phy: usb2_1_phy { 246724ba675SRob Herring compatible = "usb-nop-xceiv"; 247724ba675SRob Herring vcc-supply = <®_usb2_1_vbus>; 248724ba675SRob Herring #phy-cells = <0>; 249724ba675SRob Herring }; 250724ba675SRob Herring 251724ba675SRob Herring usb3_phy: usb3_phy { 252724ba675SRob Herring compatible = "usb-nop-xceiv"; 253724ba675SRob Herring vcc-supply = <®_usb3_vbus>; 254724ba675SRob Herring #phy-cells = <0>; 255724ba675SRob Herring }; 256724ba675SRob Herring 257724ba675SRob Herring reg_usb3_vbus: usb3-vbus { 258724ba675SRob Herring compatible = "regulator-fixed"; 259724ba675SRob Herring regulator-name = "usb3-vbus"; 260724ba675SRob Herring regulator-min-microvolt = <5000000>; 261724ba675SRob Herring regulator-max-microvolt = <5000000>; 262724ba675SRob Herring enable-active-high; 263724ba675SRob Herring gpio = <&expander1 15 GPIO_ACTIVE_HIGH>; 264724ba675SRob Herring }; 265724ba675SRob Herring 266724ba675SRob Herring reg_usb2_0_vbus: v5-vbus0 { 267724ba675SRob Herring compatible = "regulator-fixed"; 268724ba675SRob Herring regulator-name = "v5.0-vbus0"; 269724ba675SRob Herring regulator-min-microvolt = <5000000>; 270724ba675SRob Herring regulator-max-microvolt = <5000000>; 271724ba675SRob Herring enable-active-high; 272724ba675SRob Herring regulator-always-on; 273724ba675SRob Herring gpio = <&expander1 14 GPIO_ACTIVE_HIGH>; 274724ba675SRob Herring }; 275724ba675SRob Herring 276724ba675SRob Herring reg_usb2_1_vbus: v5-vbus1 { 277724ba675SRob Herring compatible = "regulator-fixed"; 278724ba675SRob Herring regulator-name = "v5.0-vbus1"; 279724ba675SRob Herring regulator-min-microvolt = <5000000>; 280724ba675SRob Herring regulator-max-microvolt = <5000000>; 281724ba675SRob Herring enable-active-high; 282724ba675SRob Herring gpio = <&expander0 4 GPIO_ACTIVE_HIGH>; 283724ba675SRob Herring }; 284724ba675SRob Herring 285724ba675SRob Herring reg_sata0: pwr-sata0 { 286724ba675SRob Herring compatible = "regulator-fixed"; 287724ba675SRob Herring regulator-name = "pwr_en_sata0"; 288724ba675SRob Herring regulator-min-microvolt = <12000000>; 289724ba675SRob Herring regulator-max-microvolt = <12000000>; 290724ba675SRob Herring enable-active-high; 291724ba675SRob Herring regulator-boot-on; 292724ba675SRob Herring gpio = <&expander0 2 GPIO_ACTIVE_HIGH>; 293724ba675SRob Herring }; 294724ba675SRob Herring 295724ba675SRob Herring reg_5v_sata0: v5-sata0 { 296724ba675SRob Herring compatible = "regulator-fixed"; 297724ba675SRob Herring regulator-name = "v5.0-sata0"; 298724ba675SRob Herring regulator-min-microvolt = <5000000>; 299724ba675SRob Herring regulator-max-microvolt = <5000000>; 300724ba675SRob Herring vin-supply = <®_sata0>; 301724ba675SRob Herring }; 302724ba675SRob Herring 303724ba675SRob Herring reg_12v_sata0: v12-sata0 { 304724ba675SRob Herring compatible = "regulator-fixed"; 305724ba675SRob Herring regulator-name = "v12.0-sata0"; 306724ba675SRob Herring regulator-min-microvolt = <12000000>; 307724ba675SRob Herring regulator-max-microvolt = <12000000>; 308724ba675SRob Herring vin-supply = <®_sata0>; 309724ba675SRob Herring }; 310724ba675SRob Herring 311724ba675SRob Herring reg_sata1: pwr-sata1 { 312724ba675SRob Herring regulator-name = "pwr_en_sata1"; 313724ba675SRob Herring compatible = "regulator-fixed"; 314724ba675SRob Herring regulator-min-microvolt = <12000000>; 315724ba675SRob Herring regulator-max-microvolt = <12000000>; 316724ba675SRob Herring enable-active-high; 317724ba675SRob Herring regulator-boot-on; 318724ba675SRob Herring gpio = <&expander0 3 GPIO_ACTIVE_HIGH>; 319724ba675SRob Herring }; 320724ba675SRob Herring 321724ba675SRob Herring reg_5v_sata1: v5-sata1 { 322724ba675SRob Herring compatible = "regulator-fixed"; 323724ba675SRob Herring regulator-name = "v5.0-sata1"; 324724ba675SRob Herring regulator-min-microvolt = <5000000>; 325724ba675SRob Herring regulator-max-microvolt = <5000000>; 326724ba675SRob Herring vin-supply = <®_sata1>; 327724ba675SRob Herring }; 328724ba675SRob Herring 329724ba675SRob Herring reg_12v_sata1: v12-sata1 { 330724ba675SRob Herring compatible = "regulator-fixed"; 331724ba675SRob Herring regulator-name = "v12.0-sata1"; 332724ba675SRob Herring regulator-min-microvolt = <12000000>; 333724ba675SRob Herring regulator-max-microvolt = <12000000>; 334724ba675SRob Herring vin-supply = <®_sata1>; 335724ba675SRob Herring }; 336724ba675SRob Herring 337724ba675SRob Herring reg_sata2: pwr-sata2 { 338724ba675SRob Herring compatible = "regulator-fixed"; 339724ba675SRob Herring regulator-name = "pwr_en_sata2"; 340724ba675SRob Herring enable-active-high; 341724ba675SRob Herring regulator-boot-on; 342724ba675SRob Herring gpio = <&expander0 11 GPIO_ACTIVE_HIGH>; 343724ba675SRob Herring }; 344724ba675SRob Herring 345724ba675SRob Herring reg_5v_sata2: v5-sata2 { 346724ba675SRob Herring compatible = "regulator-fixed"; 347724ba675SRob Herring regulator-name = "v5.0-sata2"; 348724ba675SRob Herring regulator-min-microvolt = <5000000>; 349724ba675SRob Herring regulator-max-microvolt = <5000000>; 350724ba675SRob Herring vin-supply = <®_sata2>; 351724ba675SRob Herring }; 352724ba675SRob Herring 353724ba675SRob Herring reg_12v_sata2: v12-sata2 { 354724ba675SRob Herring compatible = "regulator-fixed"; 355724ba675SRob Herring regulator-name = "v12.0-sata2"; 356724ba675SRob Herring regulator-min-microvolt = <12000000>; 357724ba675SRob Herring regulator-max-microvolt = <12000000>; 358724ba675SRob Herring vin-supply = <®_sata2>; 359724ba675SRob Herring }; 360724ba675SRob Herring 361724ba675SRob Herring reg_sata3: pwr-sata3 { 362724ba675SRob Herring compatible = "regulator-fixed"; 363724ba675SRob Herring regulator-name = "pwr_en_sata3"; 364724ba675SRob Herring enable-active-high; 365724ba675SRob Herring regulator-boot-on; 366724ba675SRob Herring gpio = <&expander0 12 GPIO_ACTIVE_HIGH>; 367724ba675SRob Herring }; 368724ba675SRob Herring 369724ba675SRob Herring reg_5v_sata3: v5-sata3 { 370724ba675SRob Herring compatible = "regulator-fixed"; 371724ba675SRob Herring regulator-name = "v5.0-sata3"; 372724ba675SRob Herring regulator-min-microvolt = <5000000>; 373724ba675SRob Herring regulator-max-microvolt = <5000000>; 374724ba675SRob Herring vin-supply = <®_sata3>; 375724ba675SRob Herring }; 376724ba675SRob Herring 377724ba675SRob Herring reg_12v_sata3: v12-sata3 { 378724ba675SRob Herring compatible = "regulator-fixed"; 379724ba675SRob Herring regulator-name = "v12.0-sata3"; 380724ba675SRob Herring regulator-min-microvolt = <12000000>; 381724ba675SRob Herring regulator-max-microvolt = <12000000>; 382724ba675SRob Herring vin-supply = <®_sata3>; 383724ba675SRob Herring }; 384724ba675SRob Herring}; 385724ba675SRob Herring 386724ba675SRob Herring&pinctrl { 387724ba675SRob Herring pca0_pins: pca0_pins { 388724ba675SRob Herring marvell,pins = "mpp18"; 389724ba675SRob Herring marvell,function = "gpio"; 390724ba675SRob Herring }; 391724ba675SRob Herring}; 392724ba675SRob Herring 393724ba675SRob Herring&spi0 { 394724ba675SRob Herring pinctrl-names = "default"; 395724ba675SRob Herring pinctrl-0 = <&spi0_pins>; 396724ba675SRob Herring status = "okay"; 397724ba675SRob Herring 398724ba675SRob Herring flash@0 { 399724ba675SRob Herring #address-cells = <1>; 400724ba675SRob Herring #size-cells = <1>; 401724ba675SRob Herring compatible = "st,m25p128", "jedec,spi-nor"; 402724ba675SRob Herring reg = <0>; /* Chip select 0 */ 403724ba675SRob Herring spi-max-frequency = <50000000>; 404724ba675SRob Herring m25p,fast-read; 405724ba675SRob Herring }; 406724ba675SRob Herring}; 407