2 * Device Tree file for Buffalo Linkstation LS-CHLv3
4 * Copyright (C) 2016 Ash Hughes <ashley.hughes@blueyonder.co.uk>
5 * Copyright (C) 2015-2017
6 * Roger Shimizu <rogershimizu@gmail.com>
8 * This file is dual-licensed: you can use it either under the terms
9 * of the GPL or the X11 license, at your option. Note that this dual
10 * licensing only applies to this file, and not this project as a
13 * a) This file is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU General Public License as
15 * published by the Free Software Foundation; either version 2 of the
16 * License, or (at your option) any later version.
18 * This file is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
25 * b) Permission is hereby granted, free of charge, to any person
26 * obtaining a copy of this software and associated documentation
27 * files (the "Software"), to deal in the Software without
28 * restriction, including without limitation the rights to use,
29 * copy, modify, merge, publish, distribute, sublicense, and/or
30 * sell copies of the Software, and to permit persons to whom the
31 * Software is furnished to do so, subject to the following
34 * The above copyright notice and this permission notice shall be
35 * included in all copies or substantial portions of the Software.
37 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
38 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
39 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
40 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
41 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
42 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
43 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
44 * OTHER DEALINGS IN THE SOFTWARE.
49 #include "orion5x-linkstation.dtsi"
50 #include "mvebu-linkstation-gpio-simple.dtsi"
51 #include "mvebu-linkstation-fan.dtsi"
52 #include <dt-bindings/gpio/gpio.h>
55 model = "Buffalo Linkstation LiveV3 (LS-CHL)";
56 compatible = "buffalo,lschl", "marvell,orion5x-88f5182", "marvell,orion5x";
59 device_type = "memory";
60 reg = <0x00000000 0x8000000>;
65 label = "Function Button";
66 linux,code = <KEY_OPTION>;
67 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
71 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
75 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
80 pinctrl-0 = <&pmx_led_power &pmx_led_alarm &pmx_led_info &pmx_led_func>;
82 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
86 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
90 gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
94 label = "lschl:func:blue:top";
95 gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
100 gpios = <&gpio0 14 GPIO_ACTIVE_LOW
101 &gpio0 16 GPIO_ACTIVE_LOW>;
103 alarm-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
108 pmx_led_power: pmx-leds {
109 marvell,pins = "mpp0";
110 marvell,function = "gpio";
113 pmx_power_hdd: pmx-power-hdd {
114 marvell,pins = "mpp1";
115 marvell,function = "gpio";
118 pmx_led_alarm: pmx-leds {
119 marvell,pins = "mpp2";
120 marvell,function = "gpio";
123 pmx_led_info: pmx-leds {
124 marvell,pins = "mpp3";
125 marvell,function = "gpio";
128 pmx_fan_lock: pmx-fan-lock {
129 marvell,pins = "mpp6";
130 marvell,function = "gpio";
133 pmx_power_switch: pmx-power-switch {
134 marvell,pins = "mpp8", "mpp10", "mpp15";
135 marvell,function = "gpio";
138 pmx_power_usb: pmx-power-usb {
139 marvell,pins = "mpp9";
140 marvell,function = "gpio";
143 pmx_fan_high: pmx-fan-high {
144 marvell,pins = "mpp14";
145 marvell,function = "gpio";
148 pmx_fan_low: pmx-fan-low {
149 marvell,pins = "mpp16";
150 marvell,function = "gpio";
153 pmx_led_func: pmx-leds {
154 marvell,pins = "mpp17";
155 marvell,function = "gpio";
158 pmx_sw_init: pmx-sw-init {
159 marvell,pins = "mpp7";
160 marvell,function = "gpio";
165 gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
169 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;