1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0-only 2724ba675SRob Herring// Copyright (C) 2012 Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 3724ba675SRob Herring 4724ba675SRob Herring/* 5724ba675SRob Herring * TODO: add Orion USB device port init when kernel.org support is added. 6724ba675SRob Herring * TODO: add flash write support: see below. 7724ba675SRob Herring * TODO: add power-off support. 8724ba675SRob Herring * TODO: add I2C EEPROM support. 9724ba675SRob Herring */ 10724ba675SRob Herring 11724ba675SRob Herring/dts-v1/; 12724ba675SRob Herring 13724ba675SRob Herring#include <dt-bindings/gpio/gpio.h> 14724ba675SRob Herring#include <dt-bindings/input/input.h> 15724ba675SRob Herring#include <dt-bindings/interrupt-controller/irq.h> 16724ba675SRob Herring#include "orion5x-mv88f5182.dtsi" 17724ba675SRob Herring 18724ba675SRob Herring/ { 19724ba675SRob Herring model = "LaCie Ethernet Disk mini V2"; 20724ba675SRob Herring compatible = "lacie,ethernet-disk-mini-v2", "marvell,orion5x-88f5182", "marvell,orion5x"; 21724ba675SRob Herring 22724ba675SRob Herring memory { 23724ba675SRob Herring device_type = "memory"; 24724ba675SRob Herring reg = <0x00000000 0x4000000>; /* 64 MB */ 25724ba675SRob Herring }; 26724ba675SRob Herring 27724ba675SRob Herring chosen { 28724ba675SRob Herring bootargs = "console=ttyS0,115200n8 earlyprintk"; 29724ba675SRob Herring stdout-path = &uart0; 30724ba675SRob Herring }; 31724ba675SRob Herring 32724ba675SRob Herring soc { 33724ba675SRob Herring ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000>, 34724ba675SRob Herring <MBUS_ID(0x09, 0x00) 0 0xf2200000 0x800>, 35724ba675SRob Herring <MBUS_ID(0x01, 0x0f) 0 0xfff80000 0x80000>; 36724ba675SRob Herring }; 37724ba675SRob Herring 38724ba675SRob Herring gpio-keys { 39724ba675SRob Herring compatible = "gpio-keys"; 40724ba675SRob Herring pinctrl-0 = <&pmx_power_button>; 41724ba675SRob Herring pinctrl-names = "default"; 427d751583SKrzysztof Kozlowski 437d751583SKrzysztof Kozlowski button-1 { 44724ba675SRob Herring label = "Power-on Switch"; 45724ba675SRob Herring linux,code = <KEY_POWER>; 46724ba675SRob Herring gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>; 47724ba675SRob Herring }; 48724ba675SRob Herring }; 49724ba675SRob Herring 50724ba675SRob Herring gpio-leds { 51724ba675SRob Herring compatible = "gpio-leds"; 52724ba675SRob Herring pinctrl-0 = <&pmx_power_led>; 53724ba675SRob Herring pinctrl-names = "default"; 54724ba675SRob Herring 55*5b3566a7SKrzysztof Kozlowski led-1 { 56724ba675SRob Herring label = "power:blue"; 57724ba675SRob Herring gpios = <&gpio0 16 GPIO_ACTIVE_LOW>; 58724ba675SRob Herring }; 59724ba675SRob Herring }; 60724ba675SRob Herring}; 61724ba675SRob Herring 62724ba675SRob Herring&devbus_bootcs { 63724ba675SRob Herring status = "okay"; 64724ba675SRob Herring 65724ba675SRob Herring /* Read parameters */ 66724ba675SRob Herring devbus,bus-width = <8>; 67724ba675SRob Herring devbus,turn-off-ps = <90000>; 68724ba675SRob Herring devbus,badr-skew-ps = <0>; 69724ba675SRob Herring devbus,acc-first-ps = <186000>; 70724ba675SRob Herring devbus,acc-next-ps = <186000>; 71724ba675SRob Herring 72724ba675SRob Herring /* Write parameters */ 73724ba675SRob Herring devbus,wr-high-ps = <90000>; 74724ba675SRob Herring devbus,wr-low-ps = <90000>; 75724ba675SRob Herring devbus,ale-wr-ps = <90000>; 76724ba675SRob Herring 77724ba675SRob Herring /* 78724ba675SRob Herring * Currently the MTD code does not recognize the MX29LV400CBCT 79724ba675SRob Herring * as a bottom-type device. This could cause risks of 80724ba675SRob Herring * accidentally erasing critical flash sectors. We thus define 81724ba675SRob Herring * a single, write-protected partition covering the whole 82724ba675SRob Herring * flash. TODO: once the flash part TOP/BOTTOM detection 83724ba675SRob Herring * issue is sorted out in the MTD code, break this into at 84724ba675SRob Herring * least three partitions: 'u-boot code', 'u-boot environment' 85724ba675SRob Herring * and 'whatever is left'. 86724ba675SRob Herring */ 87724ba675SRob Herring flash@0 { 88724ba675SRob Herring compatible = "cfi-flash"; 89724ba675SRob Herring reg = <0 0x80000>; 90724ba675SRob Herring bank-width = <1>; 91724ba675SRob Herring #address-cells = <1>; 92724ba675SRob Herring #size-cells = <1>; 93724ba675SRob Herring 94724ba675SRob Herring partition@0 { 95724ba675SRob Herring label = "Full512Kb"; 96724ba675SRob Herring reg = <0 0x80000>; 97724ba675SRob Herring read-only; 98724ba675SRob Herring }; 99724ba675SRob Herring }; 100724ba675SRob Herring}; 101724ba675SRob Herring 102724ba675SRob Herring&ehci0 { 103724ba675SRob Herring status = "okay"; 104724ba675SRob Herring}; 105724ba675SRob Herring 106724ba675SRob Herringð { 107724ba675SRob Herring status = "okay"; 108724ba675SRob Herring 109724ba675SRob Herring ethernet-port@0 { 110724ba675SRob Herring phy-handle = <ðphy>; 111724ba675SRob Herring }; 112724ba675SRob Herring}; 113724ba675SRob Herring 114724ba675SRob Herring&i2c { 115724ba675SRob Herring status = "okay"; 116724ba675SRob Herring clock-frequency = <100000>; 117724ba675SRob Herring #address-cells = <1>; 118724ba675SRob Herring 119724ba675SRob Herring rtc@32 { 120724ba675SRob Herring compatible = "ricoh,rs5c372a"; 121724ba675SRob Herring reg = <0x32>; 122724ba675SRob Herring interrupt-parent = <&gpio0>; 123724ba675SRob Herring interrupts = <3 IRQ_TYPE_LEVEL_LOW>; 124724ba675SRob Herring }; 125724ba675SRob Herring}; 126724ba675SRob Herring 127724ba675SRob Herring&mdio { 128724ba675SRob Herring status = "okay"; 129724ba675SRob Herring 130724ba675SRob Herring ethphy: ethernet-phy { 131724ba675SRob Herring reg = <8>; 132724ba675SRob Herring }; 133724ba675SRob Herring}; 134724ba675SRob Herring 135724ba675SRob Herring&pinctrl { 136724ba675SRob Herring pinctrl-0 = <&pmx_rtc &pmx_power_led_ctrl>; 137724ba675SRob Herring pinctrl-names = "default"; 138724ba675SRob Herring 139724ba675SRob Herring pmx_power_button: pmx-power-button { 140724ba675SRob Herring marvell,pins = "mpp18"; 141724ba675SRob Herring marvell,function = "gpio"; 142724ba675SRob Herring }; 143724ba675SRob Herring 144724ba675SRob Herring pmx_power_led: pmx-power-led { 145724ba675SRob Herring marvell,pins = "mpp16"; 146724ba675SRob Herring marvell,function = "gpio"; 147724ba675SRob Herring }; 148724ba675SRob Herring 149724ba675SRob Herring pmx_power_led_ctrl: pmx-power-led-ctrl { 150724ba675SRob Herring marvell,pins = "mpp17"; 151724ba675SRob Herring marvell,function = "gpio"; 152724ba675SRob Herring }; 153724ba675SRob Herring 154724ba675SRob Herring pmx_rtc: pmx-rtc { 155724ba675SRob Herring marvell,pins = "mpp3"; 156724ba675SRob Herring marvell,function = "gpio"; 157724ba675SRob Herring }; 158724ba675SRob Herring}; 159724ba675SRob Herring 160724ba675SRob Herring&sata { 161724ba675SRob Herring pinctrl-0 = <&pmx_sata0 &pmx_sata1>; 162724ba675SRob Herring pinctrl-names = "default"; 163724ba675SRob Herring status = "okay"; 164724ba675SRob Herring nr-ports = <2>; 165724ba675SRob Herring}; 166724ba675SRob Herring 167724ba675SRob Herring&uart0 { 168724ba675SRob Herring status = "okay"; 169724ba675SRob Herring}; 170