1 // SPDX-License-Identifier: GPL-2.0-only
2 // Copyright (C) 2012 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
5 * TODO: add Orion USB device port init when kernel.org support is added.
6 * TODO: add flash write support: see below.
7 * TODO: add power-off support.
8 * TODO: add I2C EEPROM support.
13 #include <dt-bindings/gpio/gpio.h>
14 #include <dt-bindings/input/input.h>
15 #include <dt-bindings/interrupt-controller/irq.h>
16 #include "orion5x-mv88f5182.dtsi"
19 model = "LaCie Ethernet Disk mini V2";
20 compatible = "lacie,ethernet-disk-mini-v2", "marvell,orion5x-88f5182", "marvell,orion5x";
23 device_type = "memory";
24 reg = <0x00000000 0x4000000>; /* 64 MB */
28 bootargs = "console=ttyS0,115200n8 earlyprintk";
33 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000>,
34 <MBUS_ID(0x09, 0x00) 0 0xf2200000 0x800>,
35 <MBUS_ID(0x01, 0x0f) 0 0xfff80000 0x80000>;
39 compatible = "gpio-keys";
40 pinctrl-0 = <&pmx_power_button>;
41 pinctrl-names = "default";
45 label = "Power-on Switch";
46 linux,code = <KEY_POWER>;
47 gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
52 compatible = "gpio-leds";
53 pinctrl-0 = <&pmx_power_led>;
54 pinctrl-names = "default";
58 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
67 devbus,bus-width = <8>;
68 devbus,turn-off-ps = <90000>;
69 devbus,badr-skew-ps = <0>;
70 devbus,acc-first-ps = <186000>;
71 devbus,acc-next-ps = <186000>;
73 /* Write parameters */
74 devbus,wr-high-ps = <90000>;
75 devbus,wr-low-ps = <90000>;
76 devbus,ale-wr-ps = <90000>;
79 * Currently the MTD code does not recognize the MX29LV400CBCT
80 * as a bottom-type device. This could cause risks of
81 * accidentally erasing critical flash sectors. We thus define
82 * a single, write-protected partition covering the whole
83 * flash. TODO: once the flash part TOP/BOTTOM detection
84 * issue is sorted out in the MTD code, break this into at
85 * least three partitions: 'u-boot code', 'u-boot environment'
86 * and 'whatever is left'.
89 compatible = "cfi-flash";
111 phy-handle = <ðphy>;
117 clock-frequency = <100000>;
118 #address-cells = <1>;
121 compatible = "ricoh,rs5c372a";
123 interrupt-parent = <&gpio0>;
124 interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
131 ethphy: ethernet-phy {
137 pinctrl-0 = <&pmx_rtc &pmx_power_led_ctrl>;
138 pinctrl-names = "default";
140 pmx_power_button: pmx-power-button {
141 marvell,pins = "mpp18";
142 marvell,function = "gpio";
145 pmx_power_led: pmx-power-led {
146 marvell,pins = "mpp16";
147 marvell,function = "gpio";
150 pmx_power_led_ctrl: pmx-power-led-ctrl {
151 marvell,pins = "mpp17";
152 marvell,function = "gpio";
156 marvell,pins = "mpp3";
157 marvell,function = "gpio";
162 pinctrl-0 = <&pmx_sata0 &pmx_sata1>;
163 pinctrl-names = "default";