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