Skip to content

Commit 6f86e9a

Browse files
rogers0gclement
authored andcommitted
ARM: dts: kirkwood: gpio pin fixes for linkstation ls-wvl/vl
For kirkwood, gpio pins starts from 32 are in the 2nd bank, so it should be converted to "gpio1 <pin minus 32>" in dts file. e.g. gpio 40 should be "gpio1 8" The pin/bank issue was found when discussing Debian Bug #810894 [https://bugs.debian.org/810894#47] Fixes: c43379e ("ARM: dts: add buffalo linkstation ls-wvl/vl") Reported-by: Arnaud Patard (Rtp) <arnaud.patard@rtp-net.org> Signed-off-by: Roger Shimizu <rogershimizu@gmail.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
1 parent 144e08a commit 6f86e9a

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

arch/arm/boot/dts/kirkwood-lswvl.dts

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/*
22
* Device Tree file for Buffalo Linkstation LS-WVL/VL
33
*
4-
* Copyright (C) 2015, rogershimizu@gmail.com
4+
* Copyright (C) 2015, 2016
5+
* Roger Shimizu <rogershimizu@gmail.com>
56
*
67
* This program is free software; you can redistribute it and/or
78
* modify it under the terms of the GNU General Public License
@@ -156,21 +157,21 @@
156157
button@1 {
157158
label = "Function Button";
158159
linux,code = <KEY_OPTION>;
159-
gpios = <&gpio0 45 GPIO_ACTIVE_LOW>;
160+
gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
160161
};
161162

162163
button@2 {
163164
label = "Power-on Switch";
164165
linux,code = <KEY_RESERVED>;
165166
linux,input-type = <5>;
166-
gpios = <&gpio0 46 GPIO_ACTIVE_LOW>;
167+
gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
167168
};
168169

169170
button@3 {
170171
label = "Power-auto Switch";
171172
linux,code = <KEY_ESC>;
172173
linux,input-type = <5>;
173-
gpios = <&gpio0 47 GPIO_ACTIVE_LOW>;
174+
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
174175
};
175176
};
176177

@@ -185,38 +186,38 @@
185186

186187
led@1 {
187188
label = "lswvl:red:alarm";
188-
gpios = <&gpio0 36 GPIO_ACTIVE_LOW>;
189+
gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
189190
};
190191

191192
led@2 {
192193
label = "lswvl:red:func";
193-
gpios = <&gpio0 37 GPIO_ACTIVE_LOW>;
194+
gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
194195
};
195196

196197
led@3 {
197198
label = "lswvl:amber:info";
198-
gpios = <&gpio0 38 GPIO_ACTIVE_LOW>;
199+
gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
199200
};
200201

201202
led@4 {
202203
label = "lswvl:blue:func";
203-
gpios = <&gpio0 39 GPIO_ACTIVE_LOW>;
204+
gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
204205
};
205206

206207
led@5 {
207208
label = "lswvl:blue:power";
208-
gpios = <&gpio0 40 GPIO_ACTIVE_LOW>;
209+
gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
209210
default-state = "keep";
210211
};
211212

212213
led@6 {
213214
label = "lswvl:red:hdderr0";
214-
gpios = <&gpio0 34 GPIO_ACTIVE_LOW>;
215+
gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
215216
};
216217

217218
led@7 {
218219
label = "lswvl:red:hdderr1";
219-
gpios = <&gpio0 35 GPIO_ACTIVE_LOW>;
220+
gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
220221
};
221222
};
222223

@@ -233,7 +234,7 @@
233234
3250 1
234235
5000 0>;
235236

236-
alarm-gpios = <&gpio0 43 GPIO_ACTIVE_HIGH>;
237+
alarm-gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>;
237238
};
238239

239240
restart_poweroff {

0 commit comments

Comments
 (0)