034-v6.1-0003-arm64-dts-broadcom-bcm4908-add-Asus-GT-AC5300-LEDs.patch 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. From 3bcae3396e986b4ab97a69e8de517e32f9691a4b Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <[email protected]>
  3. Date: Mon, 18 Jul 2022 15:21:00 +0200
  4. Subject: [PATCH] arm64: dts: broadcom: bcm4908: add Asus GT-AC5300 LEDs
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. There are 5 software-controllable LEDs on PCB.
  9. Signed-off-by: Rafał Miłecki <[email protected]>
  10. Link: https://lore.kernel.org/r/[email protected]
  11. Signed-off-by: Florian Fainelli <[email protected]>
  12. ---
  13. .../bcmbca/bcm4908-asus-gt-ac5300.dts | 48 +++++++++++++++++++
  14. 1 file changed, 48 insertions(+)
  15. --- a/arch/arm64/boot/dts/broadcom/bcmbca/bcm4908-asus-gt-ac5300.dts
  16. +++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm4908-asus-gt-ac5300.dts
  17. @@ -2,6 +2,7 @@
  18. #include <dt-bindings/gpio/gpio.h>
  19. #include <dt-bindings/input/input.h>
  20. +#include <dt-bindings/leds/common.h>
  21. #include "bcm4908.dtsi"
  22. @@ -118,6 +119,53 @@
  23. };
  24. };
  25. +&leds {
  26. + led-power@11 {
  27. + reg = <0x11>;
  28. + function = LED_FUNCTION_POWER;
  29. + color = <LED_COLOR_ID_WHITE>;
  30. + default-state = "on";
  31. + active-low;
  32. + pinctrl-names = "default";
  33. + pinctrl-0 = <&pins_led_17_a>;
  34. + };
  35. +
  36. + led-wan-red@12 {
  37. + reg = <0x12>;
  38. + function = LED_FUNCTION_WAN;
  39. + color = <LED_COLOR_ID_RED>;
  40. + active-low;
  41. + pinctrl-names = "default";
  42. + pinctrl-0 = <&pins_led_18_a>;
  43. + };
  44. +
  45. + led-wps@14 {
  46. + reg = <0x14>;
  47. + function = LED_FUNCTION_WPS;
  48. + color = <LED_COLOR_ID_WHITE>;
  49. + active-low;
  50. + pinctrl-names = "default";
  51. + pinctrl-0 = <&pins_led_20_a>;
  52. + };
  53. +
  54. + led-wan-white@15 {
  55. + reg = <0x15>;
  56. + function = LED_FUNCTION_WAN;
  57. + color = <LED_COLOR_ID_WHITE>;
  58. + active-low;
  59. + pinctrl-names = "default";
  60. + pinctrl-0 = <&pins_led_21_a>;
  61. + };
  62. +
  63. + led-lan@19 {
  64. + reg = <0x19>;
  65. + function = LED_FUNCTION_LAN;
  66. + color = <LED_COLOR_ID_WHITE>;
  67. + pinctrl-names = "default";
  68. + pinctrl-0 = <&pins_led_25_a>;
  69. + };
  70. +};
  71. +
  72. &nandcs {
  73. nand-ecc-strength = <4>;
  74. nand-ecc-step-size = <512>;