Skip to content

Commit b98a919

Browse files
krzkgclement
authored andcommitted
ARM: dts: marvell: kirkwood: align GPIO keys node name with bindings
Bindings expect the GPIO key node names to follow certain pattern, see dtbs_check warnings: kirkwood-laplug.dtb: gpio_keys: 'power' does not match any of the regexes: '^(button|event|key|switch|(button|event|key|switch)... Signed-off-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Gregory CLEMENT <[email protected]>
1 parent e62f7f6 commit b98a919

23 files changed

+47
-47
lines changed

arch/arm/boot/dts/marvell/kirkwood-blackarmor-nas220.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@
3535
gpio_keys {
3636
compatible = "gpio-keys";
3737

38-
reset {
38+
button-reset {
3939
label = "Reset";
4040
linux,code = <KEY_POWER>;
4141
gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
4242
};
4343

44-
button {
44+
button-power {
4545
label = "Power";
4646
linux,code = <KEY_SLEEP>;
4747
gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;

arch/arm/boot/dts/marvell/kirkwood-c200-v1.dts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,25 +29,25 @@
2929
pinctrl-0 = <&pmx_buttons>;
3030
pinctrl-names = "default";
3131

32-
power {
32+
button-power {
3333
label = "Power Button";
3434
linux,code = <KEY_POWER>;
3535
gpios = <&gpio1 16 GPIO_ACTIVE_HIGH>;
3636
};
3737

38-
reset {
38+
button-reset {
3939
label = "Reset Button";
4040
linux,code = <KEY_RESTART>;
4141
gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
4242
};
4343

44-
usb1 {
44+
button-usb1 {
4545
label = "USB1 Button";
4646
linux,code = <BTN_0>;
4747
gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
4848
};
4949

50-
usb2 {
50+
button-usb2 {
5151
label = "USB2 Button";
5252
linux,code = <BTN_1>;
5353
gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;

arch/arm/boot/dts/marvell/kirkwood-cloudbox.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
#address-cells = <1>;
6262
#size-cells = <0>;
6363

64-
power {
64+
key-power {
6565
label = "Power push button";
6666
linux,code = <KEY_POWER>;
6767
gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;

arch/arm/boot/dts/marvell/kirkwood-dir665.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,12 +179,12 @@
179179
#address-cells = <1>;
180180
#size-cells = <0>;
181181

182-
reset {
182+
button-reset {
183183
label = "reset";
184184
linux,code = <KEY_RESTART>;
185185
gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
186186
};
187-
wps {
187+
button-wps {
188188
label = "wps";
189189
linux,code = <KEY_WPS_BUTTON>;
190190
gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;

arch/arm/boot/dts/marvell/kirkwood-dnskw.dtsi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@
1414
&pmx_button_reset>;
1515
pinctrl-names = "default";
1616

17-
power {
17+
button-power {
1818
label = "Power button";
1919
linux,code = <KEY_POWER>;
2020
gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
2121
};
22-
eject {
22+
button-eject {
2323
label = "USB unmount button";
2424
linux,code = <KEY_EJECTCD>;
2525
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
2626
};
27-
reset {
27+
button-reset {
2828
label = "Reset button";
2929
linux,code = <KEY_RESTART>;
3030
gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;

arch/arm/boot/dts/marvell/kirkwood-ib62x0.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@
6363
pinctrl-0 = <&pmx_button_reset &pmx_button_usb_copy>;
6464
pinctrl-names = "default";
6565

66-
copy {
66+
button-copy {
6767
label = "USB Copy";
6868
linux,code = <KEY_COPY>;
6969
gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
7070
};
71-
reset {
71+
button-reset {
7272
label = "Reset";
7373
linux,code = <KEY_RESTART>;
7474
gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;

arch/arm/boot/dts/marvell/kirkwood-iconnect.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,13 @@
127127
pinctrl-0 = < &pmx_button_reset &pmx_button_otb >;
128128
pinctrl-names = "default";
129129

130-
otb {
130+
button-otb {
131131
label = "OTB Button";
132132
linux,code = <KEY_COPY>;
133133
gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
134134
debounce-interval = <100>;
135135
};
136-
reset {
136+
button-reset {
137137
label = "Reset";
138138
linux,code = <KEY_RESTART>;
139139
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;

arch/arm/boot/dts/marvell/kirkwood-iomega_ix2_200.dts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,17 +154,17 @@
154154
pinctrl-names = "default";
155155

156156

157-
Power {
157+
button-power {
158158
label = "Power Button";
159159
linux,code = <KEY_POWER>;
160160
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
161161
};
162-
Reset {
162+
button-reset {
163163
label = "Reset Button";
164164
linux,code = <KEY_RESTART>;
165165
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
166166
};
167-
OTB {
167+
button-otb {
168168
label = "OTB Button";
169169
linux,code = <KEY_COPY>;
170170
gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;

arch/arm/boot/dts/marvell/kirkwood-l-50.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@
193193
keys {
194194
compatible = "gpio-keys";
195195

196-
factory_defaults {
196+
button-factory-defaults {
197197
label = "factory_defaults";
198198
gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
199199
linux,code = <KEY_RESTART>;

arch/arm/boot/dts/marvell/kirkwood-laplug.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
gpio_keys {
5252
compatible = "gpio-keys";
5353

54-
power {
54+
button-power {
5555
label = "Power push button";
5656
linux,code = <KEY_POWER>;
5757
gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;

0 commit comments

Comments
 (0)