Commit 89551fdd authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Palmer Dabbelt

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: default avatarKrzysztof 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: default avatarPalmer Dabbelt <palmer@rivosinc.com>
parent 3a66a087
...@@ -35,7 +35,7 @@ led1 { ...@@ -35,7 +35,7 @@ led1 {
gpio-keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
key0 { key {
label = "KEY0"; label = "KEY0";
linux,code = <BTN_0>; linux,code = <BTN_0>;
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
......
...@@ -47,7 +47,7 @@ led2 { ...@@ -47,7 +47,7 @@ led2 {
gpio-keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
boot { key-boot {
label = "BOOT"; label = "BOOT";
linux,code = <BTN_0>; linux,code = <BTN_0>;
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
......
...@@ -52,7 +52,7 @@ led2 { ...@@ -52,7 +52,7 @@ led2 {
gpio-keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
boot { key-boot {
label = "BOOT"; label = "BOOT";
linux,code = <BTN_0>; linux,code = <BTN_0>;
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
......
...@@ -46,19 +46,19 @@ led2 { ...@@ -46,19 +46,19 @@ led2 {
gpio-keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
up { key-up {
label = "UP"; label = "UP";
linux,code = <BTN_1>; linux,code = <BTN_1>;
gpios = <&gpio1_0 7 GPIO_ACTIVE_LOW>; gpios = <&gpio1_0 7 GPIO_ACTIVE_LOW>;
}; };
press { key-press {
label = "PRESS"; label = "PRESS";
linux,code = <BTN_0>; linux,code = <BTN_0>;
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
}; };
down { key-down {
label = "DOWN"; label = "DOWN";
linux,code = <BTN_2>; linux,code = <BTN_2>;
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
......
...@@ -23,7 +23,7 @@ chosen { ...@@ -23,7 +23,7 @@ chosen {
gpio-keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
boot { key-boot {
label = "BOOT"; label = "BOOT";
linux,code = <BTN_0>; linux,code = <BTN_0>;
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment