1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0-only 2*724ba675SRob Herring// Copyright (C) 2012 Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 3*724ba675SRob Herring 4*724ba675SRob Herring/* 5*724ba675SRob Herring * TODO: add Orion USB device port init when kernel.org support is added. 6*724ba675SRob Herring * TODO: add flash write support: see below. 7*724ba675SRob Herring * TODO: add power-off support. 8*724ba675SRob Herring * TODO: add I2C EEPROM support. 9*724ba675SRob Herring */ 10*724ba675SRob Herring 11*724ba675SRob Herring/dts-v1/; 12*724ba675SRob Herring 13*724ba675SRob Herring#include <dt-bindings/gpio/gpio.h> 14*724ba675SRob Herring#include <dt-bindings/input/input.h> 15*724ba675SRob Herring#include <dt-bindings/interrupt-controller/irq.h> 16*724ba675SRob Herring#include "orion5x-mv88f5182.dtsi" 17*724ba675SRob Herring 18*724ba675SRob Herring/ { 19*724ba675SRob Herring model = "LaCie Ethernet Disk mini V2"; 20*724ba675SRob Herring compatible = "lacie,ethernet-disk-mini-v2", "marvell,orion5x-88f5182", "marvell,orion5x"; 21*724ba675SRob Herring 22*724ba675SRob Herring memory { 23*724ba675SRob Herring device_type = "memory"; 24*724ba675SRob Herring reg = <0x00000000 0x4000000>; /* 64 MB */ 25*724ba675SRob Herring }; 26*724ba675SRob Herring 27*724ba675SRob Herring chosen { 28*724ba675SRob Herring bootargs = "console=ttyS0,115200n8 earlyprintk"; 29*724ba675SRob Herring stdout-path = &uart0; 30*724ba675SRob Herring }; 31*724ba675SRob Herring 32*724ba675SRob Herring soc { 33*724ba675SRob Herring ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000>, 34*724ba675SRob Herring <MBUS_ID(0x09, 0x00) 0 0xf2200000 0x800>, 35*724ba675SRob Herring <MBUS_ID(0x01, 0x0f) 0 0xfff80000 0x80000>; 36*724ba675SRob Herring }; 37*724ba675SRob Herring 38*724ba675SRob Herring gpio-keys { 39*724ba675SRob Herring compatible = "gpio-keys"; 40*724ba675SRob Herring pinctrl-0 = <&pmx_power_button>; 41*724ba675SRob Herring pinctrl-names = "default"; 42*724ba675SRob Herring #address-cells = <1>; 43*724ba675SRob Herring #size-cells = <0>; 44*724ba675SRob Herring button@1 { 45*724ba675SRob Herring label = "Power-on Switch"; 46*724ba675SRob Herring linux,code = <KEY_POWER>; 47*724ba675SRob Herring gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>; 48*724ba675SRob Herring }; 49*724ba675SRob Herring }; 50*724ba675SRob Herring 51*724ba675SRob Herring gpio-leds { 52*724ba675SRob Herring compatible = "gpio-leds"; 53*724ba675SRob Herring pinctrl-0 = <&pmx_power_led>; 54*724ba675SRob Herring pinctrl-names = "default"; 55*724ba675SRob Herring 56*724ba675SRob Herring led@1 { 57*724ba675SRob Herring label = "power:blue"; 58*724ba675SRob Herring gpios = <&gpio0 16 GPIO_ACTIVE_LOW>; 59*724ba675SRob Herring }; 60*724ba675SRob Herring }; 61*724ba675SRob Herring}; 62*724ba675SRob Herring 63*724ba675SRob Herring&devbus_bootcs { 64*724ba675SRob Herring status = "okay"; 65*724ba675SRob Herring 66*724ba675SRob Herring /* Read parameters */ 67*724ba675SRob Herring devbus,bus-width = <8>; 68*724ba675SRob Herring devbus,turn-off-ps = <90000>; 69*724ba675SRob Herring devbus,badr-skew-ps = <0>; 70*724ba675SRob Herring devbus,acc-first-ps = <186000>; 71*724ba675SRob Herring devbus,acc-next-ps = <186000>; 72*724ba675SRob Herring 73*724ba675SRob Herring /* Write parameters */ 74*724ba675SRob Herring devbus,wr-high-ps = <90000>; 75*724ba675SRob Herring devbus,wr-low-ps = <90000>; 76*724ba675SRob Herring devbus,ale-wr-ps = <90000>; 77*724ba675SRob Herring 78*724ba675SRob Herring /* 79*724ba675SRob Herring * Currently the MTD code does not recognize the MX29LV400CBCT 80*724ba675SRob Herring * as a bottom-type device. This could cause risks of 81*724ba675SRob Herring * accidentally erasing critical flash sectors. We thus define 82*724ba675SRob Herring * a single, write-protected partition covering the whole 83*724ba675SRob Herring * flash. TODO: once the flash part TOP/BOTTOM detection 84*724ba675SRob Herring * issue is sorted out in the MTD code, break this into at 85*724ba675SRob Herring * least three partitions: 'u-boot code', 'u-boot environment' 86*724ba675SRob Herring * and 'whatever is left'. 87*724ba675SRob Herring */ 88*724ba675SRob Herring flash@0 { 89*724ba675SRob Herring compatible = "cfi-flash"; 90*724ba675SRob Herring reg = <0 0x80000>; 91*724ba675SRob Herring bank-width = <1>; 92*724ba675SRob Herring #address-cells = <1>; 93*724ba675SRob Herring #size-cells = <1>; 94*724ba675SRob Herring 95*724ba675SRob Herring partition@0 { 96*724ba675SRob Herring label = "Full512Kb"; 97*724ba675SRob Herring reg = <0 0x80000>; 98*724ba675SRob Herring read-only; 99*724ba675SRob Herring }; 100*724ba675SRob Herring }; 101*724ba675SRob Herring}; 102*724ba675SRob Herring 103*724ba675SRob Herring&ehci0 { 104*724ba675SRob Herring status = "okay"; 105*724ba675SRob Herring}; 106*724ba675SRob Herring 107*724ba675SRob Herringð { 108*724ba675SRob Herring status = "okay"; 109*724ba675SRob Herring 110*724ba675SRob Herring ethernet-port@0 { 111*724ba675SRob Herring phy-handle = <ðphy>; 112*724ba675SRob Herring }; 113*724ba675SRob Herring}; 114*724ba675SRob Herring 115*724ba675SRob Herring&i2c { 116*724ba675SRob Herring status = "okay"; 117*724ba675SRob Herring clock-frequency = <100000>; 118*724ba675SRob Herring #address-cells = <1>; 119*724ba675SRob Herring 120*724ba675SRob Herring rtc@32 { 121*724ba675SRob Herring compatible = "ricoh,rs5c372a"; 122*724ba675SRob Herring reg = <0x32>; 123*724ba675SRob Herring interrupt-parent = <&gpio0>; 124*724ba675SRob Herring interrupts = <3 IRQ_TYPE_LEVEL_LOW>; 125*724ba675SRob Herring }; 126*724ba675SRob Herring}; 127*724ba675SRob Herring 128*724ba675SRob Herring&mdio { 129*724ba675SRob Herring status = "okay"; 130*724ba675SRob Herring 131*724ba675SRob Herring ethphy: ethernet-phy { 132*724ba675SRob Herring reg = <8>; 133*724ba675SRob Herring }; 134*724ba675SRob Herring}; 135*724ba675SRob Herring 136*724ba675SRob Herring&pinctrl { 137*724ba675SRob Herring pinctrl-0 = <&pmx_rtc &pmx_power_led_ctrl>; 138*724ba675SRob Herring pinctrl-names = "default"; 139*724ba675SRob Herring 140*724ba675SRob Herring pmx_power_button: pmx-power-button { 141*724ba675SRob Herring marvell,pins = "mpp18"; 142*724ba675SRob Herring marvell,function = "gpio"; 143*724ba675SRob Herring }; 144*724ba675SRob Herring 145*724ba675SRob Herring pmx_power_led: pmx-power-led { 146*724ba675SRob Herring marvell,pins = "mpp16"; 147*724ba675SRob Herring marvell,function = "gpio"; 148*724ba675SRob Herring }; 149*724ba675SRob Herring 150*724ba675SRob Herring pmx_power_led_ctrl: pmx-power-led-ctrl { 151*724ba675SRob Herring marvell,pins = "mpp17"; 152*724ba675SRob Herring marvell,function = "gpio"; 153*724ba675SRob Herring }; 154*724ba675SRob Herring 155*724ba675SRob Herring pmx_rtc: pmx-rtc { 156*724ba675SRob Herring marvell,pins = "mpp3"; 157*724ba675SRob Herring marvell,function = "gpio"; 158*724ba675SRob Herring }; 159*724ba675SRob Herring}; 160*724ba675SRob Herring 161*724ba675SRob Herring&sata { 162*724ba675SRob Herring pinctrl-0 = <&pmx_sata0 &pmx_sata1>; 163*724ba675SRob Herring pinctrl-names = "default"; 164*724ba675SRob Herring status = "okay"; 165*724ba675SRob Herring nr-ports = <2>; 166*724ba675SRob Herring}; 167*724ba675SRob Herring 168*724ba675SRob Herring&uart0 { 169*724ba675SRob Herring status = "okay"; 170*724ba675SRob Herring}; 171