Skip to content

Commit

Permalink
MIPS: dts: align gpio-key node names with dtschema
Browse files Browse the repository at this point in the history
The node names should be generic and DT schema expects certain pattern
(e.g. with key/button/switch).

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Arınç ÜNAL <arinc.unal@arinc9.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
  • Loading branch information
Krzysztof Kozlowski authored and Thomas Bogendoerfer committed Jul 14, 2022
1 parent 5ee46bf commit 62fb295
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion arch/mips/boot/dts/ingenic/ci20.dts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
gpio-keys {
compatible = "gpio-keys";

sw1 {
switch {
label = "ci20:sw1";
linux,code = <KEY_F13>;
gpios = <&gpd 17 GPIO_ACTIVE_HIGH>;
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/boot/dts/ralink/gardena_smart_gateway_mt7688.dts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
pinctrl-names = "default";
pinctrl-0 = <&pinmux_gpio_gpio>; /* GPIO11 */

user_btn1 {
button {
label = "USER_BTN1";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
linux,code =<KEY_PROG1> ;
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
gpio-keys {
compatible = "gpio-keys";

reset {
key-reset {
label = "reset";
gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
linux,code = <KEY_RESTART>;
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
gpio-keys {
compatible = "gpio-keys";

reset {
key-reset {
label = "reset";
gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
linux,code = <KEY_RESTART>;
Expand Down

0 comments on commit 62fb295

Please sign in to comment.