2 * Device Tree file for Buffalo Linkstation LS-WXL/WSXL
4 * Copyright (C) 2015, 2016
5 * Roger Shimizu <rogershimizu@gmail.com>
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version
10 * 2 of the License, or (at your option) any later version.
15 #include "kirkwood.dtsi"
16 #include "kirkwood-6281.dtsi"
19 model = "Buffalo Linkstation LS-WXL/WSXL";
20 compatible = "buffalo,lswxl", "marvell,kirkwood-88f6281", "marvell,kirkwood";
23 device_type = "memory";
24 reg = <0x00000000 0x8000000>;
28 bootargs = "console=ttyS0,115200n8 earlyprintk";
42 pinctrl: pin-controller@10000 {
43 pmx_power_hdd0: pmx-power-hdd0 {
44 marvell,pins = "mpp28";
45 marvell,function = "gpio";
47 pmx_power_hdd1: pmx-power-hdd1 {
48 marvell,pins = "mpp29";
49 marvell,function = "gpio";
51 pmx_usb_vbus: pmx-usb-vbus {
52 marvell,pins = "mpp37";
53 marvell,function = "gpio";
55 pmx_fan_high: pmx-fan-high {
56 marvell,pins = "mpp47";
57 marvell,function = "gpio";
59 pmx_fan_low: pmx-fan-low {
60 marvell,pins = "mpp48";
61 marvell,function = "gpio";
63 pmx_led_hdderr0: pmx-led-hdderr0 {
64 marvell,pins = "mpp8";
65 marvell,function = "gpio";
67 pmx_led_hdderr1: pmx-led-hdderr1 {
68 marvell,pins = "mpp46";
69 marvell,function = "gpio";
71 pmx_led_alarm: pmx-led-alarm {
72 marvell,pins = "mpp49";
73 marvell,function = "gpio";
75 pmx_led_function_red: pmx-led-function-red {
76 marvell,pins = "mpp34";
77 marvell,function = "gpio";
79 pmx_led_function_blue: pmx-led-function-blue {
80 marvell,pins = "mpp36";
81 marvell,function = "gpio";
83 pmx_led_info: pmx-led-info {
84 marvell,pins = "mpp38";
85 marvell,function = "gpio";
87 pmx_led_power: pmx-led-power {
88 marvell,pins = "mpp39";
89 marvell,function = "gpio";
91 pmx_fan_lock: pmx-fan-lock {
92 marvell,pins = "mpp40";
93 marvell,function = "gpio";
95 pmx_button_function: pmx-button-function {
96 marvell,pins = "mpp41";
97 marvell,function = "gpio";
99 pmx_power_switch: pmx-power-switch {
100 marvell,pins = "mpp42";
101 marvell,function = "gpio";
103 pmx_power_auto_switch: pmx-power-auto-switch {
104 marvell,pins = "mpp43";
105 marvell,function = "gpio";
122 #address-cells = <1>;
124 compatible = "st,m25p40", "jedec,spi-nor";
126 spi-max-frequency = <25000000>;
136 reg = <0x60000 0x10000>;
142 reg = <0x70000 0x10000>;
150 compatible = "gpio-keys";
151 #address-cells = <1>;
153 pinctrl-0 = <&pmx_button_function &pmx_power_switch
154 &pmx_power_auto_switch>;
155 pinctrl-names = "default";
158 label = "Function Button";
159 linux,code = <KEY_OPTION>;
160 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
164 label = "Power-on Switch";
165 linux,code = <KEY_RESERVED>;
166 linux,input-type = <5>;
167 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
171 label = "Power-auto Switch";
172 linux,code = <KEY_ESC>;
173 linux,input-type = <5>;
174 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
179 compatible = "gpio-leds";
180 pinctrl-0 = <&pmx_led_function_red &pmx_led_alarm
181 &pmx_led_info &pmx_led_power
182 &pmx_led_function_blue
185 pinctrl-names = "default";
188 label = "lswxl:blue:func";
189 gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
193 label = "lswxl:red:alarm";
194 gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
198 label = "lswxl:amber:info";
199 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
203 label = "lswxl:blue:power";
204 gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
205 default-state = "keep";
209 label = "lswxl:red:func";
210 gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
214 label = "lswxl:red:hdderr0";
215 gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
219 label = "lswxl:red:hdderr1";
220 gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
225 compatible = "gpio-fan";
226 pinctrl-0 = <&pmx_fan_low &pmx_fan_high &pmx_fan_lock>;
227 pinctrl-names = "default";
229 gpios = <&gpio1 16 GPIO_ACTIVE_LOW
230 &gpio1 15 GPIO_ACTIVE_LOW>;
232 gpio-fan,speed-map = <0 3
237 alarm-gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
241 compatible = "restart-poweroff";
245 compatible = "simple-bus";
246 #address-cells = <1>;
248 pinctrl-0 = <&pmx_power_hdd0 &pmx_power_hdd1 &pmx_usb_vbus>;
249 pinctrl-names = "default";
251 usb_power: regulator@1 {
252 compatible = "regulator-fixed";
254 regulator-name = "USB Power";
255 regulator-min-microvolt = <5000000>;
256 regulator-max-microvolt = <5000000>;
260 gpio = <&gpio1 5 GPIO_ACTIVE_HIGH>;
262 hdd_power0: regulator@2 {
263 compatible = "regulator-fixed";
265 regulator-name = "HDD0 Power";
266 regulator-min-microvolt = <5000000>;
267 regulator-max-microvolt = <5000000>;
271 gpio = <&gpio0 28 GPIO_ACTIVE_HIGH>;
273 hdd_power1: regulator@3 {
274 compatible = "regulator-fixed";
276 regulator-name = "HDD1 Power";
277 regulator-min-microvolt = <5000000>;
278 regulator-max-microvolt = <5000000>;
282 gpio = <&gpio0 29 GPIO_ACTIVE_HIGH>;
290 ethphy1: ethernet-phy@8 {
291 device_type = "ethernet-phy";
300 phy-handle = <ðphy1>;