Skip to content

Commit

Permalink
riscv: 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>
Link: https://lore.kernel.org/r/20220624170811.66395-1-krzysztof.kozlowski@linaro.org
Link: https://lore.kernel.org/all/20220616005224.18391-1-krzysztof.kozlowski@linaro.org/
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
  • Loading branch information
Krzysztof Kozlowski authored and Palmer Dabbelt committed Jul 14, 2022
1 parent 3a66a08 commit 89551fd
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion arch/riscv/boot/dts/canaan/canaan_kd233.dts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
gpio-keys {
compatible = "gpio-keys";

key0 {
key {
label = "KEY0";
linux,code = <BTN_0>;
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
Expand Down
2 changes: 1 addition & 1 deletion arch/riscv/boot/dts/canaan/sipeed_maix_bit.dts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
gpio-keys {
compatible = "gpio-keys";

boot {
key-boot {
label = "BOOT";
linux,code = <BTN_0>;
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
Expand Down
2 changes: 1 addition & 1 deletion arch/riscv/boot/dts/canaan/sipeed_maix_dock.dts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
gpio-keys {
compatible = "gpio-keys";

boot {
key-boot {
label = "BOOT";
linux,code = <BTN_0>;
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
Expand Down
6 changes: 3 additions & 3 deletions arch/riscv/boot/dts/canaan/sipeed_maix_go.dts
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,19 @@
gpio-keys {
compatible = "gpio-keys";

up {
key-up {
label = "UP";
linux,code = <BTN_1>;
gpios = <&gpio1_0 7 GPIO_ACTIVE_LOW>;
};

press {
key-press {
label = "PRESS";
linux,code = <BTN_0>;
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
};

down {
key-down {
label = "DOWN";
linux,code = <BTN_2>;
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
Expand Down
2 changes: 1 addition & 1 deletion arch/riscv/boot/dts/canaan/sipeed_maixduino.dts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
gpio-keys {
compatible = "gpio-keys";

boot {
key-boot {
label = "BOOT";
linux,code = <BTN_0>;
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
Expand Down

0 comments on commit 89551fd

Please sign in to comment.