2 * Copyright (C) 2014 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 * Copyright (C) 2009 Simon Guinot <sguinot@lacie.com>
5 * This file is licensed under the terms of the GNU General Public
6 * License version 2. This program is licensed "as is" without any
7 * warranty of any kind, whether express or implied.
12 #include <dt-bindings/gpio/gpio.h>
13 #include <dt-bindings/input/input.h>
14 #include <dt-bindings/interrupt-controller/irq.h>
15 #include "orion5x-mv88f5182.dtsi"
18 model = "LaCie d2 Network";
19 compatible = "lacie,d2-network", "marvell,orion5x-88f5182", "marvell,orion5x";
22 reg = <0x00000000 0x4000000>; /* 64 MB */
26 bootargs = "console=ttyS0,115200n8 earlyprintk";
31 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000>,
32 <MBUS_ID(0x09, 0x00) 0 0xf2200000 0x800>,
33 <MBUS_ID(0x01, 0x0f) 0 0xfff80000 0x80000>;
37 compatible = "gpio-keys";
38 pinctrl-0 = <&pmx_buttons>;
39 pinctrl-names = "default";
43 label = "Front Push Button";
44 linux,code = <KEY_POWER>;
45 gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
49 label = "Power rocker switch (on|auto)";
50 linux,input-type = <5>; /* EV_SW */
51 linux,code = <1>; /* D2NET_SWITCH_POWER_ON */
52 gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
56 label = "Power rocker switch (auto|off)";
57 linux,input-type = <5>; /* EV_SW */
58 linux,code = <2>; /* D2NET_SWITCH_POWER_OFF */
59 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
64 compatible = "simple-bus";
67 pinctrl-0 = <&pmx_sata0_power &pmx_sata1_power>;
68 pinctrl-names = "default";
70 sata0_power: regulator@0 {
71 compatible = "regulator-fixed";
73 regulator-name = "SATA0 Power";
74 regulator-min-microvolt = <5000000>;
75 regulator-max-microvolt = <5000000>;
79 gpio = <&gpio0 3 GPIO_ACTIVE_HIGH>;
82 sata1_power: regulator@1 {
83 compatible = "regulator-fixed";
85 regulator-name = "SATA1 Power";
86 regulator-min-microvolt = <5000000>;
87 regulator-max-microvolt = <5000000>;
91 gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>;
102 * Currently the MTD code does not recognize the MX29LV400CBCT
103 * as a bottom-type device. This could cause risks of
104 * accidentally erasing critical flash sectors. We thus define
105 * a single, write-protected partition covering the whole
106 * flash. TODO: once the flash part TOP/BOTTOM detection
107 * issue is sorted out in the MTD code, break this into at
108 * least three partitions: 'u-boot code', 'u-boot environment'
109 * and 'whatever is left'.
112 compatible = "cfi-flash";
115 #address-cells = <1>;
129 ethphy: ethernet-phy {
142 phy-handle = <ðphy>;
148 clock-frequency = <100000>;
149 #address-cells = <1>;
152 compatible = "ricoh,rs5c372b";
157 compatible = "gmt,g762";
160 /* Not enough HW info */
165 compatible = "atmel,24c08";
171 pinctrl-0 = <&pmx_leds &pmx_board_id &pmx_fan_fail>;
172 pinctrl-names = "default";
174 pmx_board_id: pmx-board-id {
175 marvell,pins = "mpp0", "mpp1", "mpp2";
176 marvell,function = "gpio";
179 pmx_buttons: pmx-buttons {
180 marvell,pins = "mpp8", "mpp9", "mpp18";
181 marvell,function = "gpio";
184 pmx_fan_fail: pmx-fan-fail {
185 marvell,pins = "mpp5";
186 marvell,function = "gpio";
190 * MPP6: Red front LED
191 * MPP16: Blue front LED blink control
194 marvell,pins = "mpp6", "mpp16";
195 marvell,function = "gpio";
198 pmx_sata0_led_active: pmx-sata0-led-active {
199 marvell,pins = "mpp14";
200 marvell,function = "sata0";
203 pmx_sata0_power: pmx-sata0-power {
204 marvell,pins = "mpp3";
205 marvell,function = "gpio";
208 pmx_sata1_led_active: pmx-sata1-led-active {
209 marvell,pins = "mpp15";
210 marvell,function = "sata1";
213 pmx_sata1_power: pmx-sata1-power {
214 marvell,pins = "mpp12";
215 marvell,function = "gpio";
220 * GPIO 22: USB port 1 fuse (0 = Fail, 1 = Ok)
221 * GPIO 23: Blue front LED off
222 * GPIO 24: Inhibit board power off (0 = Disabled, 1 = Enabled)
227 pinctrl-0 = <&pmx_sata0_led_active
228 &pmx_sata1_led_active>;
229 pinctrl-names = "default";