033-v6.0-0007-arm64-dts-broadcom-align-gpio-key-node-names-with-dt.patchgit 2.1 KB

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