2012-11-16 19:39:46 +04:00
/*
* Copyright (C) 2012 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
*
* This file is licensed under the terms of the GNU General Public
* License version 2. This program is licensed "as is" without any
* warranty of any kind, whether express or implied.
*/
2014-04-23 01:26:36 +04:00
/*
* TODO: add Orion USB device port init when kernel.org support is added.
* TODO: add flash write support: see below.
* TODO: add power-off support.
* TODO: add I2C EEPROM support.
*/
2012-11-16 19:39:46 +04:00
/dts-v1/;
2014-04-23 01:26:15 +04:00
2014-04-23 01:26:16 +04:00
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
2014-04-23 01:26:33 +04:00
#include <dt-bindings/interrupt-controller/irq.h>
2014-04-23 01:26:17 +04:00
#include "orion5x-mv88f5182.dtsi"
2012-11-16 19:39:46 +04:00
/ {
model = "LaCie Ethernet Disk mini V2";
2013-03-06 14:23:36 +04:00
compatible = "lacie,ethernet-disk-mini-v2", "marvell,orion5x-88f5182", "marvell,orion5x";
2012-11-16 19:39:46 +04:00
memory {
reg = <0x00000000 0x4000000>; /* 64 MB */
};
chosen {
bootargs = "console=ttyS0,115200n8 earlyprintk";
2014-04-23 01:26:20 +04:00
linux,stdout-path = &uart0;
2012-11-16 19:39:46 +04:00
};
2014-04-23 01:26:17 +04:00
soc {
ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000>,
2014-04-23 01:26:35 +04:00
<MBUS_ID(0x09, 0x00) 0 0xf2200000 0x800>,
<MBUS_ID(0x01, 0x0f) 0 0xfff80000 0x80000>;
2012-11-16 19:39:46 +04:00
};
2014-04-23 01:26:19 +04:00
gpio-keys {
2012-11-16 19:39:46 +04:00
compatible = "gpio-keys";
2014-04-23 01:26:32 +04:00
pinctrl-0 = <&pmx_power_button>;
pinctrl-names = "default";
2012-11-16 19:39:46 +04:00
#address-cells = <1>;
#size-cells = <0>;
button@1 {
label = "Power-on Switch";
2014-04-23 01:26:16 +04:00
linux,code = <KEY_POWER>;
gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
2012-11-16 19:39:46 +04:00
};
};
2014-04-23 01:26:19 +04:00
gpio-leds {
2012-11-16 19:39:46 +04:00
compatible = "gpio-leds";
2014-04-23 01:26:32 +04:00
pinctrl-0 = <&pmx_power_led>;
pinctrl-names = "default";
2012-11-16 19:39:46 +04:00
led@1 {
label = "power:blue";
2014-04-23 01:26:16 +04:00
gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
2012-11-16 19:39:46 +04:00
};
};
};
2013-07-02 15:00:20 +04:00
2014-04-23 01:26:35 +04:00
&devbus_bootcs {
status = "okay";
/* Read parameters */
devbus,bus-width = <8>;
devbus,turn-off-ps = <90000>;
devbus,badr-skew-ps = <0>;
devbus,acc-first-ps = <186000>;
devbus,acc-next-ps = <186000>;
/* Write parameters */
devbus,wr-high-ps = <90000>;
devbus,wr-low-ps = <90000>;
devbus,ale-wr-ps = <90000>;
/*
* Currently the MTD code does not recognize the MX29LV400CBCT
* as a bottom-type device. This could cause risks of
* accidentally erasing critical flash sectors. We thus define
* a single, write-protected partition covering the whole
* flash. TODO: once the flash part TOP/BOTTOM detection
* issue is sorted out in the MTD code, break this into at
* least three partitions: 'u-boot code', 'u-boot environment'
* and 'whatever is left'.
*/
flash@0 {
compatible = "cfi-flash";
reg = <0 0x80000>;
bank-width = <1>;
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "Full512Kb";
reg = <0 0x80000>;
read-only;
};
};
};
2014-04-23 01:26:34 +04:00
&ehci0 {
status = "okay";
};
2014-04-23 01:26:21 +04:00
ð {
status = "okay";
ethernet-port@0 {
phy-handle = <ðphy>;
};
};
2014-04-23 01:26:33 +04:00
&i2c {
status = "okay";
clock-frequency = <100000>;
#address-cells = <1>;
rtc@32 {
compatible = "ricoh,rs5c372a";
reg = <0x32>;
interrupt-parent = <&gpio0>;
interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
};
};
2013-07-02 15:00:20 +04:00
&mdio {
status = "okay";
ethphy: ethernet-phy {
reg = <8>;
};
};
2014-04-23 01:26:32 +04:00
&pinctrl {
pinctrl-0 = <&pmx_rtc &pmx_power_led_ctrl>;
pinctrl-names = "default";
pmx_power_button: pmx-power-button {
marvell,pins = "mpp18";
marvell,function = "gpio";
};
pmx_power_led: pmx-power-led {
marvell,pins = "mpp16";
marvell,function = "gpio";
};
pmx_power_led_ctrl: pmx-power-led-ctrl {
marvell,pins = "mpp17";
marvell,function = "gpio";
};
pmx_rtc: pmx-rtc {
marvell,pins = "mpp3";
marvell,function = "gpio";
};
};
2014-04-23 01:26:21 +04:00
&sata {
2014-04-23 01:26:32 +04:00
pinctrl-0 = <&pmx_sata0 &pmx_sata1>;
pinctrl-names = "default";
2013-07-02 15:00:20 +04:00
status = "okay";
2014-04-23 01:26:21 +04:00
nr-ports = <2>;
};
2013-07-02 15:00:20 +04:00
2014-04-23 01:26:21 +04:00
&uart0 {
status = "okay";
2013-07-02 15:00:20 +04:00
};