049-v4.14-0004-ARM-BCM53573-Specify-ports-for-USB-LED-for-Tenda-AC9.patch 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. From 0173b2cd6948b5b96ac4e8dbc3bcb4dd0b45c296 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
  3. Date: Thu, 17 Aug 2017 11:05:14 +0200
  4. Subject: [PATCH] ARM: BCM53573: Specify ports for USB LED for Tenda AC9
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. This uses trigger-sources documented in commit 80dc6e1cd85fc ("dt-bindings:
  9. leds: document new trigger-sources property") to specify USB ports. Such an
  10. information can be used by operating system to setup LEDs behavior.
  11. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
  12. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
  13. ---
  14. arch/arm/boot/dts/bcm47189-tenda-ac9.dts | 2 ++
  15. arch/arm/boot/dts/bcm53573.dtsi | 4 ++++
  16. 2 files changed, 6 insertions(+)
  17. --- a/arch/arm/boot/dts/bcm47189-tenda-ac9.dts
  18. +++ b/arch/arm/boot/dts/bcm47189-tenda-ac9.dts
  19. @@ -26,6 +26,8 @@
  20. usb {
  21. label = "bcm53xx:blue:usb";
  22. gpios = <&chipcommon 1 GPIO_ACTIVE_HIGH>;
  23. + trigger-sources = <&ohci_port1>, <&ehci_port1>;
  24. + linux,default-trigger = "usbport";
  25. };
  26. wps {
  27. --- a/arch/arm/boot/dts/bcm53573.dtsi
  28. +++ b/arch/arm/boot/dts/bcm53573.dtsi
  29. @@ -138,10 +138,12 @@
  30. ehci_port1: port@1 {
  31. reg = <1>;
  32. + #trigger-source-cells = <0>;
  33. };
  34. ehci_port2: port@2 {
  35. reg = <2>;
  36. + #trigger-source-cells = <0>;
  37. };
  38. };
  39. @@ -158,10 +160,12 @@
  40. ohci_port1: port@1 {
  41. reg = <1>;
  42. + #trigger-source-cells = <0>;
  43. };
  44. ohci_port2: port@2 {
  45. reg = <2>;
  46. + #trigger-source-cells = <0>;
  47. };
  48. };
  49. };