1*724ba675SRob Herring// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2*724ba675SRob Herring/* 3*724ba675SRob Herring * Device Tree file for Globalscale Mirabox 4*724ba675SRob Herring * 5*724ba675SRob Herring * Gregory CLEMENT <gregory.clement@free-electrons.com> 6*724ba675SRob Herring */ 7*724ba675SRob Herring 8*724ba675SRob Herring/dts-v1/; 9*724ba675SRob Herring#include <dt-bindings/gpio/gpio.h> 10*724ba675SRob Herring#include "armada-370.dtsi" 11*724ba675SRob Herring 12*724ba675SRob Herring/ { 13*724ba675SRob Herring model = "Globalscale Mirabox"; 14*724ba675SRob Herring compatible = "globalscale,mirabox", "marvell,armada370", "marvell,armada-370-xp"; 15*724ba675SRob Herring 16*724ba675SRob Herring chosen { 17*724ba675SRob Herring stdout-path = "serial0:115200n8"; 18*724ba675SRob Herring }; 19*724ba675SRob Herring 20*724ba675SRob Herring memory@0 { 21*724ba675SRob Herring device_type = "memory"; 22*724ba675SRob Herring reg = <0x00000000 0x20000000>; /* 512 MB */ 23*724ba675SRob Herring }; 24*724ba675SRob Herring 25*724ba675SRob Herring soc { 26*724ba675SRob Herring ranges = <MBUS_ID(0xf0, 0x01) 0 0xd0000000 0x100000 27*724ba675SRob Herring MBUS_ID(0x01, 0xe0) 0 0xfff00000 0x100000 28*724ba675SRob Herring MBUS_ID(0x09, 0x01) 0 0xf1100000 0x10000>; 29*724ba675SRob Herring 30*724ba675SRob Herring internal-regs { 31*724ba675SRob Herring serial@12000 { 32*724ba675SRob Herring status = "okay"; 33*724ba675SRob Herring }; 34*724ba675SRob Herring timer@20300 { 35*724ba675SRob Herring clock-frequency = <600000000>; 36*724ba675SRob Herring status = "okay"; 37*724ba675SRob Herring }; 38*724ba675SRob Herring 39*724ba675SRob Herring gpio_leds { 40*724ba675SRob Herring compatible = "gpio-leds"; 41*724ba675SRob Herring pinctrl-names = "default"; 42*724ba675SRob Herring pinctrl-0 = <&pwr_led_pin &stat_led_pins>; 43*724ba675SRob Herring 44*724ba675SRob Herring green_pwr_led { 45*724ba675SRob Herring label = "mirabox:green:pwr"; 46*724ba675SRob Herring gpios = <&gpio1 31 GPIO_ACTIVE_LOW>; 47*724ba675SRob Herring default-state = "keep"; 48*724ba675SRob Herring }; 49*724ba675SRob Herring 50*724ba675SRob Herring blue_stat_led { 51*724ba675SRob Herring label = "mirabox:blue:stat"; 52*724ba675SRob Herring gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; 53*724ba675SRob Herring default-state = "off"; 54*724ba675SRob Herring }; 55*724ba675SRob Herring 56*724ba675SRob Herring green_stat_led { 57*724ba675SRob Herring label = "mirabox:green:stat"; 58*724ba675SRob Herring gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; 59*724ba675SRob Herring default-state = "off"; 60*724ba675SRob Herring }; 61*724ba675SRob Herring }; 62*724ba675SRob Herring 63*724ba675SRob Herring ethernet@70000 { 64*724ba675SRob Herring pinctrl-0 = <&ge0_rgmii_pins>; 65*724ba675SRob Herring pinctrl-names = "default"; 66*724ba675SRob Herring status = "okay"; 67*724ba675SRob Herring phy = <&phy0>; 68*724ba675SRob Herring phy-mode = "rgmii-id"; 69*724ba675SRob Herring }; 70*724ba675SRob Herring ethernet@74000 { 71*724ba675SRob Herring pinctrl-0 = <&ge1_rgmii_pins>; 72*724ba675SRob Herring pinctrl-names = "default"; 73*724ba675SRob Herring status = "okay"; 74*724ba675SRob Herring phy = <&phy1>; 75*724ba675SRob Herring phy-mode = "rgmii-id"; 76*724ba675SRob Herring }; 77*724ba675SRob Herring 78*724ba675SRob Herring crypto@90000 { 79*724ba675SRob Herring status = "okay"; 80*724ba675SRob Herring }; 81*724ba675SRob Herring 82*724ba675SRob Herring mvsdio@d4000 { 83*724ba675SRob Herring pinctrl-0 = <&sdio_pins3>; 84*724ba675SRob Herring pinctrl-names = "default"; 85*724ba675SRob Herring status = "okay"; 86*724ba675SRob Herring /* 87*724ba675SRob Herring * No CD or WP GPIOs: SDIO interface used for 88*724ba675SRob Herring * Wifi/Bluetooth chip 89*724ba675SRob Herring */ 90*724ba675SRob Herring broken-cd; 91*724ba675SRob Herring }; 92*724ba675SRob Herring 93*724ba675SRob Herring usb@50000 { 94*724ba675SRob Herring status = "okay"; 95*724ba675SRob Herring }; 96*724ba675SRob Herring 97*724ba675SRob Herring usb@51000 { 98*724ba675SRob Herring status = "okay"; 99*724ba675SRob Herring }; 100*724ba675SRob Herring 101*724ba675SRob Herring i2c@11000 { 102*724ba675SRob Herring status = "okay"; 103*724ba675SRob Herring clock-frequency = <100000>; 104*724ba675SRob Herring pca9505: pca9505@25 { 105*724ba675SRob Herring compatible = "nxp,pca9505"; 106*724ba675SRob Herring gpio-controller; 107*724ba675SRob Herring #gpio-cells = <2>; 108*724ba675SRob Herring reg = <0x25>; 109*724ba675SRob Herring }; 110*724ba675SRob Herring }; 111*724ba675SRob Herring }; 112*724ba675SRob Herring }; 113*724ba675SRob Herring}; 114*724ba675SRob Herring 115*724ba675SRob Herring&pciec { 116*724ba675SRob Herring status = "okay"; 117*724ba675SRob Herring 118*724ba675SRob Herring /* Internal mini-PCIe connector */ 119*724ba675SRob Herring pcie@1,0 { 120*724ba675SRob Herring /* Port 0, Lane 0 */ 121*724ba675SRob Herring status = "okay"; 122*724ba675SRob Herring }; 123*724ba675SRob Herring 124*724ba675SRob Herring /* Connected on the PCB to a USB 3.0 XHCI controller */ 125*724ba675SRob Herring pcie@2,0 { 126*724ba675SRob Herring /* Port 1, Lane 0 */ 127*724ba675SRob Herring status = "okay"; 128*724ba675SRob Herring }; 129*724ba675SRob Herring}; 130*724ba675SRob Herring 131*724ba675SRob Herring&mdio { 132*724ba675SRob Herring pinctrl-0 = <&mdio_pins>; 133*724ba675SRob Herring pinctrl-names = "default"; 134*724ba675SRob Herring phy0: ethernet-phy@0 { 135*724ba675SRob Herring reg = <0>; 136*724ba675SRob Herring }; 137*724ba675SRob Herring 138*724ba675SRob Herring phy1: ethernet-phy@1 { 139*724ba675SRob Herring reg = <1>; 140*724ba675SRob Herring }; 141*724ba675SRob Herring}; 142*724ba675SRob Herring 143*724ba675SRob Herring&pinctrl { 144*724ba675SRob Herring pwr_led_pin: pwr-led-pin { 145*724ba675SRob Herring marvell,pins = "mpp63"; 146*724ba675SRob Herring marvell,function = "gpio"; 147*724ba675SRob Herring }; 148*724ba675SRob Herring 149*724ba675SRob Herring stat_led_pins: stat-led-pins { 150*724ba675SRob Herring marvell,pins = "mpp64", "mpp65"; 151*724ba675SRob Herring marvell,function = "gpio"; 152*724ba675SRob Herring }; 153*724ba675SRob Herring}; 154*724ba675SRob Herring 155*724ba675SRob Herring&nand_controller { 156*724ba675SRob Herring status = "okay"; 157*724ba675SRob Herring 158*724ba675SRob Herring nand@0 { 159*724ba675SRob Herring reg = <0>; 160*724ba675SRob Herring label = "pxa3xx_nand-0"; 161*724ba675SRob Herring nand-rb = <0>; 162*724ba675SRob Herring marvell,nand-keep-config; 163*724ba675SRob Herring nand-on-flash-bbt; 164*724ba675SRob Herring 165*724ba675SRob Herring partitions { 166*724ba675SRob Herring compatible = "fixed-partitions"; 167*724ba675SRob Herring #address-cells = <1>; 168*724ba675SRob Herring #size-cells = <1>; 169*724ba675SRob Herring 170*724ba675SRob Herring partition@0 { 171*724ba675SRob Herring label = "U-Boot"; 172*724ba675SRob Herring reg = <0 0x400000>; 173*724ba675SRob Herring }; 174*724ba675SRob Herring partition@400000 { 175*724ba675SRob Herring label = "Linux"; 176*724ba675SRob Herring reg = <0x400000 0x400000>; 177*724ba675SRob Herring }; 178*724ba675SRob Herring partition@800000 { 179*724ba675SRob Herring label = "Filesystem"; 180*724ba675SRob Herring reg = <0x800000 0x3f800000>; 181*724ba675SRob Herring }; 182*724ba675SRob Herring }; 183*724ba675SRob Herring }; 184*724ba675SRob Herring}; 185