2 * Device Tree file for Buffalo Linkstation LS-WTGL
4 * Copyright (C) 2015, Roger Shimizu <rogershimizu@gmail.com>
6 * This file is dual-licensed: you can use it either under the terms
7 * of the GPL or the X11 license, at your option. Note that this dual
8 * licensing only applies to this file, and not this project as a
11 * a) This file is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License as
13 * published by the Free Software Foundation; either version 2 of the
14 * License, or (at your option) any later version.
16 * This file is distributed in the hope that it will be useful
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
23 * b) Permission is hereby granted, free of charge, to any person
24 * obtaining a copy of this software and associated documentation
25 * files (the "Software"), to deal in the Software without
26 * restriction, including without limitation the rights to use
27 * copy, modify, merge, publish, distribute, sublicense, and/or
28 * sell copies of the Software, and to permit persons to whom the
29 * Software is furnished to do so, subject to the following
32 * The above copyright notice and this permission notice shall be
33 * included in all copies or substantial portions of the Software.
35 * THE SOFTWARE IS PROVIDED , WITHOUT WARRANTY OF ANY KIND
36 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
37 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
38 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
39 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY
40 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
41 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
42 * OTHER DEALINGS IN THE SOFTWARE.
47 #include <dt-bindings/gpio/gpio.h>
48 #include <dt-bindings/input/input.h>
49 #include "orion5x-mv88f5182.dtsi"
52 model = "Buffalo Linkstation LS-WTGL";
53 compatible = "buffalo,lswtgl", "marvell,orion5x-88f5182", "marvell,orion5x";
56 device_type = "memory";
57 reg = <0x00000000 0x4000000>;
61 bootargs = "console=ttyS0,115200n8 earlyprintk";
62 linux,stdout-path = &uart0;
66 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000>,
67 <MBUS_ID(0x09, 0x00) 0 0xf2200000 0x800>,
68 <MBUS_ID(0x01, 0x0f) 0 0xf4000000 0x40000>;
71 pinctrl: pinctrl@10000 {
72 pinctrl-0 = <&pmx_usb_power &pmx_power_hdd
73 &pmx_fan_low &pmx_fan_high &pmx_fan_lock>;
74 pinctrl-names = "default";
76 pmx_led_power: pmx-leds {
77 marvell,pins = "mpp0";
78 marvell,function = "gpio";
81 pmx_led_alarm: pmx-leds {
82 marvell,pins = "mpp2";
83 marvell,function = "gpio";
86 pmx_led_info: pmx-leds {
87 marvell,pins = "mpp3";
88 marvell,function = "gpio";
91 pmx_power_hdd: pmx-power-hdd {
92 marvell,pins = "mpp1";
93 marvell,function = "gpio";
96 pmx_usb_power: pmx-usb-power {
97 marvell,pins = "mpp9";
98 marvell,function = "gpio";
101 pmx_sata0: pmx-sata0 {
102 marvell,pins = "mpp12";
103 marvell,function = "sata0";
106 pmx_sata1: pmx-sata1 {
107 marvell,pins = "mpp13";
108 marvell,function = "sata1";
111 pmx_fan_high: pmx-fan-high {
112 marvell,pins = "mpp14";
113 marvell,function = "gpio";
116 pmx_fan_low: pmx-fan-low {
117 marvell,pins = "mpp17";
118 marvell,function = "gpio";
121 pmx_fan_lock: pmx-fan-lock {
122 marvell,pins = "mpp6";
123 marvell,function = "gpio";
126 pmx_power_switch: pmx-power-switch {
127 marvell,pins = "mpp8", "mpp10";
128 marvell,function = "gpio";
135 compatible = "gpio-keys";
136 #address-cells = <1>;
138 pinctrl-0 = <&pmx_power_switch>;
139 pinctrl-names = "default";
142 label = "Power-on Switch";
143 linux,code = <KEY_RESERVED>;
144 linux,input-type = <5>;
145 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
149 label = "Power-auto Switch";
150 linux,code = <KEY_ESC>;
151 linux,input-type = <5>;
152 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
157 compatible = "gpio-leds";
158 pinctrl-0 = <&pmx_led_power &pmx_led_alarm
160 pinctrl-names = "default";
163 label = "lswtgl:blue:power";
164 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
168 label = "lswtgl:red:alarm";
169 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
173 label = "lswtgl:amber:info";
174 gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
179 compatible = "gpio-fan";
180 pinctrl-0 = <&pmx_fan_low &pmx_fan_high &pmx_fan_lock>;
181 pinctrl-names = "default";
183 gpios = <&gpio0 14 GPIO_ACTIVE_LOW
184 &gpio0 17 GPIO_ACTIVE_LOW>;
186 gpio-fan,speed-map = <0 3
191 alarm-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
195 compatible = "restart-poweroff";
199 compatible = "simple-bus";
200 #address-cells = <1>;
202 pinctrl-0 = <&pmx_power_hdd &pmx_usb_power>;
203 pinctrl-names = "default";
205 usb_power: regulator@1 {
206 compatible = "regulator-fixed";
208 regulator-name = "USB Power";
209 regulator-min-microvolt = <5000000>;
210 regulator-max-microvolt = <5000000>;
214 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
217 hdd_power: regulator@2 {
218 compatible = "regulator-fixed";
220 regulator-name = "HDD Power";
221 regulator-min-microvolt = <5000000>;
222 regulator-max-microvolt = <5000000>;
226 gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
234 ethphy: ethernet-phy {
243 phy-handle = <ðphy>;
255 compatible = "ricoh,rs5c372a";
265 pinctrl-0 = <&pmx_sata0 &pmx_sata1>;
266 pinctrl-names = "default";