1 // SPDX-License-Identifier: GPL-2.0
3 * Device Tree common file for LaCie 2Big and 5Big Network v2
7 * Andrew Lunn <andrew@lunn.ch>
9 * Based on netxbig_v2-setup.c,
10 * Copyright (C) 2010 Simon Guinot <sguinot@lacie.com>
14 #include <dt-bindings/leds/leds-netxbig.h>
15 #include "kirkwood.dtsi"
16 #include "kirkwood-6281.dtsi"
20 bootargs = "console=ttyS0,115200n8";
35 compatible = "mxicy,mx25l4005a", "jedec,spi-nor";
37 spi-max-frequency = <20000000>;
55 compatible = "gpio-keys";
60 * esc and power represent a three position rocker
61 * switch. Thus the conventional KEY_POWER does not fit
64 label = "Back power switch (on|auto)";
65 linux,code = <KEY_ESC>;
66 linux,input-type = <5>;
67 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
70 label = "Back power switch (auto|off)";
72 linux,input-type = <5>;
73 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
76 label = "Function button";
77 linux,code = <KEY_OPTION>;
78 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
84 compatible = "gpio-poweroff";
85 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
88 regulators: regulators {
90 compatible = "simple-bus";
93 pinctrl-names = "default";
96 compatible = "regulator-fixed";
98 regulator-name = "hdd0power";
99 regulator-min-microvolt = <5000000>;
100 regulator-max-microvolt = <5000000>;
104 gpio = <&gpio0 16 GPIO_ACTIVE_HIGH>;
108 netxbig_gpio_ext: netxbig-gpio-ext {
109 compatible = "lacie,netxbig-gpio-ext";
111 addr-gpios = <&gpio1 15 GPIO_ACTIVE_HIGH
112 &gpio1 16 GPIO_ACTIVE_HIGH
113 &gpio1 17 GPIO_ACTIVE_HIGH>;
114 data-gpios = <&gpio1 12 GPIO_ACTIVE_HIGH
115 &gpio1 13 GPIO_ACTIVE_HIGH
116 &gpio1 14 GPIO_ACTIVE_HIGH>;
117 enable-gpio = <&gpio0 29 GPIO_ACTIVE_HIGH>;
121 compatible = "lacie,netxbig-leds";
123 gpio-ext = <&netxbig_gpio_ext>;
125 timers = <NETXBIG_LED_TIMER1 500 500
126 NETXBIG_LED_TIMER2 500 1000>;
129 label = "netxbig:blue:power";
131 mode-val = <NETXBIG_LED_OFF 0
134 NETXBIG_LED_TIMER2 7>;
136 max-brightness = <7>;
139 label = "netxbig:red:power";
141 mode-val = <NETXBIG_LED_OFF 0
143 NETXBIG_LED_TIMER1 4>;
145 max-brightness = <7>;
148 label = "netxbig:blue:sata0";
150 mode-val = <NETXBIG_LED_OFF 0
153 NETXBIG_LED_TIMER1 3>;
155 max-brightness = <7>;
158 label = "netxbig:red:sata0";
160 mode-val = <NETXBIG_LED_OFF 0
162 NETXBIG_LED_TIMER1 4>;
164 max-brightness = <7>;
167 label = "netxbig:blue:sata1";
169 mode-val = <NETXBIG_LED_OFF 0
172 NETXBIG_LED_TIMER1 3>;
174 max-brightness = <7>;
177 label = "netxbig:red:sata1";
179 mode-val = <NETXBIG_LED_OFF 0
181 NETXBIG_LED_TIMER1 4>;
183 max-brightness = <7>;
191 ethphy0: ethernet-phy@0 {
195 ethphy1: ethernet-phy@1 {
203 phy-handle = <ðphy0>;
208 pinctrl-names = "default";
210 pmx_button_function: pmx-button-function {
211 marvell,pins = "mpp34";
212 marvell,function = "gpio";
214 pmx_button_power_off: pmx-button-power-off {
215 marvell,pins = "mpp15";
216 marvell,function = "gpio";
218 pmx_button_power_on: pmx-button-power-on {
219 marvell,pins = "mpp13";
220 marvell,function = "gpio";
228 compatible = "atmel,24c04";