2 * Device Tree common file for LaCie 2Big and 5Big Network v2
6 * Andrew Lunn <andrew@lunn.ch>
8 * Based on netxbig_v2-setup.c,
9 * Copyright (C) 2010 Simon Guinot <sguinot@lacie.com>
11 * This file is licensed under the terms of the GNU General Public
12 * License version 2. This program is licensed "as is" without any
13 * warranty of any kind, whether express or implied.
16 #include <dt-bindings/leds/leds-netxbig.h>
17 #include "kirkwood.dtsi"
18 #include "kirkwood-6281.dtsi"
22 bootargs = "console=ttyS0,115200n8";
37 compatible = "mxicy,mx25l4005a", "jedec,spi-nor";
39 spi-max-frequency = <20000000>;
57 compatible = "gpio-keys";
62 * button@1 and button@2 represent a three position rocker
63 * switch. Thus the conventional KEY_POWER does not fit
66 label = "Back power switch (on|auto)";
67 linux,code = <KEY_ESC>;
68 linux,input-type = <5>;
69 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
72 label = "Back power switch (auto|off)";
74 linux,input-type = <5>;
75 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
78 label = "Function button";
79 linux,code = <KEY_OPTION>;
80 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
86 compatible = "gpio-poweroff";
87 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
90 regulators: regulators {
92 compatible = "simple-bus";
95 pinctrl-names = "default";
98 compatible = "regulator-fixed";
100 regulator-name = "hdd0power";
101 regulator-min-microvolt = <5000000>;
102 regulator-max-microvolt = <5000000>;
106 gpio = <&gpio0 16 GPIO_ACTIVE_HIGH>;
110 netxbig_gpio_ext: netxbig-gpio-ext {
111 compatible = "lacie,netxbig-gpio-ext";
113 addr-gpios = <&gpio1 15 GPIO_ACTIVE_HIGH
114 &gpio1 16 GPIO_ACTIVE_HIGH
115 &gpio1 17 GPIO_ACTIVE_HIGH>;
116 data-gpios = <&gpio1 12 GPIO_ACTIVE_HIGH
117 &gpio1 13 GPIO_ACTIVE_HIGH
118 &gpio1 14 GPIO_ACTIVE_HIGH>;
119 enable-gpio = <&gpio0 29 GPIO_ACTIVE_HIGH>;
123 compatible = "lacie,netxbig-leds";
125 gpio-ext = <&netxbig_gpio_ext>;
127 timers = <NETXBIG_LED_TIMER1 500 500
128 NETXBIG_LED_TIMER2 500 1000>;
131 label = "netxbig:blue:power";
133 mode-val = <NETXBIG_LED_OFF 0
136 NETXBIG_LED_TIMER2 7>;
138 max-brightness = <7>;
141 label = "netxbig:red:power";
143 mode-val = <NETXBIG_LED_OFF 0
145 NETXBIG_LED_TIMER1 4>;
147 max-brightness = <7>;
150 label = "netxbig:blue:sata0";
152 mode-val = <NETXBIG_LED_OFF 0
155 NETXBIG_LED_TIMER1 3>;
157 max-brightness = <7>;
160 label = "netxbig:red:sata0";
162 mode-val = <NETXBIG_LED_OFF 0
164 NETXBIG_LED_TIMER1 4>;
166 max-brightness = <7>;
169 label = "netxbig:blue:sata1";
171 mode-val = <NETXBIG_LED_OFF 0
174 NETXBIG_LED_TIMER1 3>;
176 max-brightness = <7>;
179 label = "netxbig:red:sata1";
181 mode-val = <NETXBIG_LED_OFF 0
183 NETXBIG_LED_TIMER1 4>;
185 max-brightness = <7>;
193 ethphy0: ethernet-phy@0 {
197 ethphy1: ethernet-phy@1 {
205 phy-handle = <ðphy0>;
210 pinctrl-names = "default";
212 pmx_button_function: pmx-button-function {
213 marvell,pins = "mpp34";
214 marvell,function = "gpio";
216 pmx_button_power_off: pmx-button-power-off {
217 marvell,pins = "mpp15";
218 marvell,function = "gpio";
220 pmx_button_power_on: pmx-button-power-on {
221 marvell,pins = "mpp13";
222 marvell,function = "gpio";
230 compatible = "atmel,24c04";