Skip to content

Commit 89551fd

Browse files
krzkpalmer-dabbelt
authored andcommitted
riscv: dts: align gpio-key node names with dtschema
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>
1 parent 3a66a08 commit 89551fd

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

arch/riscv/boot/dts/canaan/canaan_kd233.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
gpio-keys {
3636
compatible = "gpio-keys";
3737

38-
key0 {
38+
key {
3939
label = "KEY0";
4040
linux,code = <BTN_0>;
4141
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;

arch/riscv/boot/dts/canaan/sipeed_maix_bit.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
gpio-keys {
4848
compatible = "gpio-keys";
4949

50-
boot {
50+
key-boot {
5151
label = "BOOT";
5252
linux,code = <BTN_0>;
5353
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;

arch/riscv/boot/dts/canaan/sipeed_maix_dock.dts

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

55-
boot {
55+
key-boot {
5656
label = "BOOT";
5757
linux,code = <BTN_0>;
5858
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;

arch/riscv/boot/dts/canaan/sipeed_maix_go.dts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,19 @@
4646
gpio-keys {
4747
compatible = "gpio-keys";
4848

49-
up {
49+
key-up {
5050
label = "UP";
5151
linux,code = <BTN_1>;
5252
gpios = <&gpio1_0 7 GPIO_ACTIVE_LOW>;
5353
};
5454

55-
press {
55+
key-press {
5656
label = "PRESS";
5757
linux,code = <BTN_0>;
5858
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
5959
};
6060

61-
down {
61+
key-down {
6262
label = "DOWN";
6363
linux,code = <BTN_2>;
6464
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;

arch/riscv/boot/dts/canaan/sipeed_maixduino.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
gpio-keys {
2424
compatible = "gpio-keys";
2525

26-
boot {
26+
key-boot {
2727
label = "BOOT";
2828
linux,code = <BTN_0>;
2929
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;

0 commit comments

Comments
 (0)