d0d6151957eb219218387639bad1e6410a85f84f
[openwrt/openwrt.git] /
1 From ea559c81b61603d4044df6f826f10a832c42c98c Mon Sep 17 00:00:00 2001
2 From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
3 Date: Wed, 15 Jun 2022 17:52:59 -0700
4 Subject: [PATCH] arm64: dts: broadcom: align gpio-key node names with dtschema
5
6 The node names should be generic and DT schema expects certain pattern
7 (e.g. with key/button/switch).
8
9 Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
10 Link: https://lore.kernel.org/r/20220616005333.18491-6-krzysztof.kozlowski@linaro.org
11 ---
12 .../broadcom/bcm4908/bcm4906-tplink-archer-c2300-v1.dts | 8 ++++----
13 .../boot/dts/broadcom/bcm4908/bcm4908-asus-gt-ac5300.dts | 8 ++++----
14 2 files changed, 8 insertions(+), 8 deletions(-)
15
16 --- a/arch/arm64/boot/dts/broadcom/bcm4908/bcm4906-tplink-archer-c2300-v1.dts
17 +++ b/arch/arm64/boot/dts/broadcom/bcm4908/bcm4906-tplink-archer-c2300-v1.dts
18 @@ -83,25 +83,25 @@
19 compatible = "gpio-keys-polled";
20 poll-interval = <100>;
21
22 - brightness {
23 + key-brightness {
24 label = "LEDs";
25 linux,code = <KEY_BRIGHTNESS_ZERO>;
26 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
27 };
28
29 - wps {
30 + key-wps {
31 label = "WPS";
32 linux,code = <KEY_WPS_BUTTON>;
33 gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
34 };
35
36 - wifi {
37 + key-wifi {
38 label = "WiFi";
39 linux,code = <KEY_RFKILL>;
40 gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
41 };
42
43 - restart {
44 + key-restart {
45 label = "Reset";
46 linux,code = <KEY_RESTART>;
47 gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
48 --- a/arch/arm64/boot/dts/broadcom/bcm4908/bcm4908-asus-gt-ac5300.dts
49 +++ b/arch/arm64/boot/dts/broadcom/bcm4908/bcm4908-asus-gt-ac5300.dts
50 @@ -18,25 +18,25 @@
51 compatible = "gpio-keys-polled";
52 poll-interval = <100>;
53
54 - wifi {
55 + key-wifi {
56 label = "WiFi";
57 linux,code = <KEY_RFKILL>;
58 gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
59 };
60
61 - wps {
62 + key-wps {
63 label = "WPS";
64 linux,code = <KEY_WPS_BUTTON>;
65 gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
66 };
67
68 - restart {
69 + key-restart {
70 label = "Reset";
71 linux,code = <KEY_RESTART>;
72 gpios = <&gpio0 30 GPIO_ACTIVE_LOW>;
73 };
74
75 - brightness {
76 + key-brightness {
77 label = "LEDs";
78 linux,code = <KEY_BRIGHTNESS_ZERO>;
79 gpios = <&gpio0 31 GPIO_ACTIVE_LOW>;