Merge branch 'parisc-4.10-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller...
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / orion5x-lschl.dts
1 /*
2  * Device Tree file for Buffalo Linkstation LS-CHLv3
3  *
4  * Copyright (C) 2016 Ash Hughes <ashley.hughes@blueyonder.co.uk>
5  * Copyright (C) 2015, 2016
6  * Roger Shimizu <rogershimizu@gmail.com>
7  *
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
11  * whole.
12  *
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.
17  *
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.
22  *
23  * Or, alternatively
24  *
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
32  *     conditions:
33  *
34  *     The above copyright notice and this permission notice shall be
35  *     included in all copies or substantial portions of the Software.
36  *
37  *     THE SOFTWARE IS PROVIDED , 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.
45  */
46
47 /dts-v1/;
48
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>
53
54 / {
55         model = "Buffalo Linkstation Live v3 (LS-CHL)";
56         compatible = "buffalo,lschl", "marvell,orion5x-88f5182", "marvell,orion5x";
57
58         memory { /* 128 MB */
59                 device_type = "memory";
60                 reg = <0x00000000 0x8000000>;
61         };
62
63         gpio_keys {
64                 func {
65                         label = "Function Button";
66                         linux,code = <KEY_OPTION>;
67                         gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
68                 };
69
70                 power-on-switch {
71                         gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
72                 };
73
74                 power-auto-switch {
75                         gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
76                 };
77         };
78
79         gpio_leds {
80                 pinctrl-0 = <&pmx_led_power &pmx_led_alarm &pmx_led_info &pmx_led_func>;
81                 blue-power-led {
82                         gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
83                 };
84
85                 red-alarm-led {
86                         gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
87                 };
88
89                 amber-info-led {
90                         gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
91                 };
92
93                 func {
94                         label = "lschl:func:blue:top";
95                         gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
96                 };
97         };
98
99         gpio_fan {
100                 gpios = <&gpio0 14 GPIO_ACTIVE_LOW
101                          &gpio0 16 GPIO_ACTIVE_LOW>;
102
103                 alarm-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
104         };
105 };
106
107 &pinctrl {
108         pmx_led_power: pmx-leds {
109                 marvell,pins = "mpp0";
110                 marvell,function = "gpio";
111         };
112
113         pmx_power_hdd: pmx-power-hdd {
114                 marvell,pins = "mpp1";
115                 marvell,function = "gpio";
116         };
117
118         pmx_led_alarm: pmx-leds {
119                 marvell,pins = "mpp2";
120                 marvell,function = "gpio";
121         };
122
123         pmx_led_info: pmx-leds {
124                 marvell,pins = "mpp3";
125                 marvell,function = "gpio";
126         };
127
128         pmx_fan_lock: pmx-fan-lock {
129                 marvell,pins = "mpp6";
130                 marvell,function = "gpio";
131         };
132
133         pmx_power_switch: pmx-power-switch {
134                 marvell,pins = "mpp8", "mpp10", "mpp15";
135                 marvell,function = "gpio";
136         };
137
138         pmx_power_usb: pmx-power-usb {
139                 marvell,pins = "mpp9";
140                 marvell,function = "gpio";
141         };
142
143         pmx_fan_high: pmx-fan-high {
144                 marvell,pins = "mpp14";
145                 marvell,function = "gpio";
146         };
147
148         pmx_fan_low: pmx-fan-low {
149                 marvell,pins = "mpp16";
150                 marvell,function = "gpio";
151         };
152
153         pmx_led_func: pmx-leds {
154                 marvell,pins = "mpp17";
155                 marvell,function = "gpio";
156         };
157
158         pmx_sw_init: pmx-sw-init {
159                 marvell,pins = "mpp7";
160                 marvell,function = "gpio";
161         };
162 };
163
164 &hdd_power {
165         gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
166 };
167
168 &usb_power {
169         gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
170 };
171