1*724ba675SRob Herring// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2*724ba675SRob Herring/* 3*724ba675SRob Herring * Device Tree file for OpenBlocks AX3-4 board 4*724ba675SRob Herring * 5*724ba675SRob Herring * Copyright (C) 2012 Marvell 6*724ba675SRob Herring * 7*724ba675SRob Herring * Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 8*724ba675SRob Herring */ 9*724ba675SRob Herring 10*724ba675SRob Herring/dts-v1/; 11*724ba675SRob Herring#include <dt-bindings/gpio/gpio.h> 12*724ba675SRob Herring#include <dt-bindings/input/input.h> 13*724ba675SRob Herring#include "armada-xp-mv78260.dtsi" 14*724ba675SRob Herring 15*724ba675SRob Herring/ { 16*724ba675SRob Herring model = "PlatHome OpenBlocks AX3-4 board"; 17*724ba675SRob Herring compatible = "plathome,openblocks-ax3-4", "marvell,armadaxp-mv78260", "marvell,armadaxp", "marvell,armada-370-xp"; 18*724ba675SRob Herring 19*724ba675SRob Herring chosen { 20*724ba675SRob Herring stdout-path = "serial0:115200n8"; 21*724ba675SRob Herring }; 22*724ba675SRob Herring 23*724ba675SRob Herring memory@0 { 24*724ba675SRob Herring device_type = "memory"; 25*724ba675SRob Herring reg = <0 0x00000000 0 0x40000000>; /* 1 GB soldered on */ 26*724ba675SRob Herring }; 27*724ba675SRob Herring 28*724ba675SRob Herring soc { 29*724ba675SRob Herring ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xd0000000 0x100000 30*724ba675SRob Herring MBUS_ID(0x01, 0x1d) 0 0 0xfff00000 0x100000 31*724ba675SRob Herring MBUS_ID(0x01, 0x2f) 0 0 0xe8000000 0x8000000 32*724ba675SRob Herring MBUS_ID(0x09, 0x09) 0 0 0xf1100000 0x10000 33*724ba675SRob Herring MBUS_ID(0x09, 0x05) 0 0 0xf1110000 0x10000 34*724ba675SRob Herring MBUS_ID(0x0c, 0x04) 0 0 0xd1200000 0x100000>; 35*724ba675SRob Herring 36*724ba675SRob Herring devbus-bootcs { 37*724ba675SRob Herring status = "okay"; 38*724ba675SRob Herring 39*724ba675SRob Herring /* Device Bus parameters are required */ 40*724ba675SRob Herring 41*724ba675SRob Herring /* Read parameters */ 42*724ba675SRob Herring devbus,bus-width = <16>; 43*724ba675SRob Herring devbus,turn-off-ps = <60000>; 44*724ba675SRob Herring devbus,badr-skew-ps = <0>; 45*724ba675SRob Herring devbus,acc-first-ps = <124000>; 46*724ba675SRob Herring devbus,acc-next-ps = <248000>; 47*724ba675SRob Herring devbus,rd-setup-ps = <0>; 48*724ba675SRob Herring devbus,rd-hold-ps = <0>; 49*724ba675SRob Herring 50*724ba675SRob Herring /* Write parameters */ 51*724ba675SRob Herring devbus,sync-enable = <0>; 52*724ba675SRob Herring devbus,wr-high-ps = <60000>; 53*724ba675SRob Herring devbus,wr-low-ps = <60000>; 54*724ba675SRob Herring devbus,ale-wr-ps = <60000>; 55*724ba675SRob Herring 56*724ba675SRob Herring /* NOR 128 MiB */ 57*724ba675SRob Herring nor@0 { 58*724ba675SRob Herring compatible = "cfi-flash"; 59*724ba675SRob Herring reg = <0 0x8000000>; 60*724ba675SRob Herring bank-width = <2>; 61*724ba675SRob Herring }; 62*724ba675SRob Herring }; 63*724ba675SRob Herring 64*724ba675SRob Herring internal-regs { 65*724ba675SRob Herring rtc@10300 { 66*724ba675SRob Herring /* No crystal connected to the internal RTC */ 67*724ba675SRob Herring status = "disabled"; 68*724ba675SRob Herring }; 69*724ba675SRob Herring serial@12000 { 70*724ba675SRob Herring status = "okay"; 71*724ba675SRob Herring }; 72*724ba675SRob Herring serial@12100 { 73*724ba675SRob Herring status = "okay"; 74*724ba675SRob Herring }; 75*724ba675SRob Herring 76*724ba675SRob Herring leds { 77*724ba675SRob Herring compatible = "gpio-leds"; 78*724ba675SRob Herring pinctrl-names = "default"; 79*724ba675SRob Herring pinctrl-0 = <&led_pins>; 80*724ba675SRob Herring 81*724ba675SRob Herring red_led { 82*724ba675SRob Herring label = "red_led"; 83*724ba675SRob Herring gpios = <&gpio1 17 GPIO_ACTIVE_LOW>; 84*724ba675SRob Herring default-state = "off"; 85*724ba675SRob Herring }; 86*724ba675SRob Herring 87*724ba675SRob Herring yellow_led { 88*724ba675SRob Herring label = "yellow_led"; 89*724ba675SRob Herring gpios = <&gpio1 19 GPIO_ACTIVE_LOW>; 90*724ba675SRob Herring default-state = "off"; 91*724ba675SRob Herring }; 92*724ba675SRob Herring 93*724ba675SRob Herring green_led { 94*724ba675SRob Herring label = "green_led"; 95*724ba675SRob Herring gpios = <&gpio1 21 GPIO_ACTIVE_LOW>; 96*724ba675SRob Herring default-state = "keep"; 97*724ba675SRob Herring }; 98*724ba675SRob Herring }; 99*724ba675SRob Herring 100*724ba675SRob Herring gpio-keys { 101*724ba675SRob Herring compatible = "gpio-keys"; 102*724ba675SRob Herring 103*724ba675SRob Herring button-init { 104*724ba675SRob Herring label = "Init Button"; 105*724ba675SRob Herring linux,code = <KEY_POWER>; 106*724ba675SRob Herring gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>; 107*724ba675SRob Herring }; 108*724ba675SRob Herring }; 109*724ba675SRob Herring 110*724ba675SRob Herring ethernet@70000 { 111*724ba675SRob Herring status = "okay"; 112*724ba675SRob Herring phy = <&phy0>; 113*724ba675SRob Herring phy-mode = "sgmii"; 114*724ba675SRob Herring buffer-manager = <&bm>; 115*724ba675SRob Herring bm,pool-long = <0>; 116*724ba675SRob Herring }; 117*724ba675SRob Herring ethernet@74000 { 118*724ba675SRob Herring status = "okay"; 119*724ba675SRob Herring phy = <&phy1>; 120*724ba675SRob Herring phy-mode = "sgmii"; 121*724ba675SRob Herring buffer-manager = <&bm>; 122*724ba675SRob Herring bm,pool-long = <1>; 123*724ba675SRob Herring }; 124*724ba675SRob Herring ethernet@30000 { 125*724ba675SRob Herring status = "okay"; 126*724ba675SRob Herring phy = <&phy2>; 127*724ba675SRob Herring phy-mode = "sgmii"; 128*724ba675SRob Herring buffer-manager = <&bm>; 129*724ba675SRob Herring bm,pool-long = <2>; 130*724ba675SRob Herring }; 131*724ba675SRob Herring ethernet@34000 { 132*724ba675SRob Herring status = "okay"; 133*724ba675SRob Herring phy = <&phy3>; 134*724ba675SRob Herring phy-mode = "sgmii"; 135*724ba675SRob Herring buffer-manager = <&bm>; 136*724ba675SRob Herring bm,pool-long = <3>; 137*724ba675SRob Herring }; 138*724ba675SRob Herring i2c@11000 { 139*724ba675SRob Herring status = "okay"; 140*724ba675SRob Herring clock-frequency = <400000>; 141*724ba675SRob Herring }; 142*724ba675SRob Herring i2c@11100 { 143*724ba675SRob Herring status = "okay"; 144*724ba675SRob Herring clock-frequency = <400000>; 145*724ba675SRob Herring 146*724ba675SRob Herring s35390a: s35390a@30 { 147*724ba675SRob Herring compatible = "s35390a"; 148*724ba675SRob Herring reg = <0x30>; 149*724ba675SRob Herring }; 150*724ba675SRob Herring }; 151*724ba675SRob Herring sata@a0000 { 152*724ba675SRob Herring nr-ports = <2>; 153*724ba675SRob Herring status = "okay"; 154*724ba675SRob Herring }; 155*724ba675SRob Herring 156*724ba675SRob Herring /* Front side USB 0 */ 157*724ba675SRob Herring usb@50000 { 158*724ba675SRob Herring status = "okay"; 159*724ba675SRob Herring }; 160*724ba675SRob Herring 161*724ba675SRob Herring /* Front side USB 1 */ 162*724ba675SRob Herring usb@51000 { 163*724ba675SRob Herring status = "okay"; 164*724ba675SRob Herring }; 165*724ba675SRob Herring 166*724ba675SRob Herring bm@c0000 { 167*724ba675SRob Herring status = "okay"; 168*724ba675SRob Herring }; 169*724ba675SRob Herring }; 170*724ba675SRob Herring 171*724ba675SRob Herring bm-bppi { 172*724ba675SRob Herring status = "okay"; 173*724ba675SRob Herring }; 174*724ba675SRob Herring }; 175*724ba675SRob Herring}; 176*724ba675SRob Herring 177*724ba675SRob Herring&pciec { 178*724ba675SRob Herring status = "okay"; 179*724ba675SRob Herring /* Internal mini-PCIe connector */ 180*724ba675SRob Herring pcie@1,0 { 181*724ba675SRob Herring /* Port 0, Lane 0 */ 182*724ba675SRob Herring status = "okay"; 183*724ba675SRob Herring }; 184*724ba675SRob Herring}; 185*724ba675SRob Herring 186*724ba675SRob Herring&mdio { 187*724ba675SRob Herring phy0: ethernet-phy@0 { 188*724ba675SRob Herring reg = <0>; 189*724ba675SRob Herring }; 190*724ba675SRob Herring 191*724ba675SRob Herring phy1: ethernet-phy@1 { 192*724ba675SRob Herring reg = <1>; 193*724ba675SRob Herring }; 194*724ba675SRob Herring 195*724ba675SRob Herring phy2: ethernet-phy@2 { 196*724ba675SRob Herring reg = <2>; 197*724ba675SRob Herring }; 198*724ba675SRob Herring 199*724ba675SRob Herring phy3: ethernet-phy@3 { 200*724ba675SRob Herring reg = <3>; 201*724ba675SRob Herring }; 202*724ba675SRob Herring}; 203*724ba675SRob Herring 204*724ba675SRob Herring&pinctrl { 205*724ba675SRob Herring led_pins: led-pins-0 { 206*724ba675SRob Herring marvell,pins = "mpp49", "mpp51", "mpp53"; 207*724ba675SRob Herring marvell,function = "gpio"; 208*724ba675SRob Herring }; 209*724ba675SRob Herring}; 210