049-v4.14-0002-ARM-dts-BCM5301X-Specify-USB-ports-for-USB-LEDs-of-f.patch 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
  2. Date: Wed, 2 Aug 2017 06:40:41 +0200
  3. Subject: [PATCH] ARM: dts: BCM5301X: Specify USB ports for USB LEDs of few
  4. devices
  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. I updated dts files for 7 devices I own and I was able to test.
  12. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
  13. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
  14. ---
  15. arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts | 4 ++++
  16. arch/arm/boot/dts/bcm4708-netgear-r6250.dts | 3 +++
  17. arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts | 6 ++++++
  18. arch/arm/boot/dts/bcm47081-tplink-archer-c5-v2.dts | 4 ++++
  19. arch/arm/boot/dts/bcm4709-tplink-archer-c9-v1.dts | 5 +++++
  20. arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts | 3 +++
  21. arch/arm/boot/dts/bcm47094-luxul-xwr-3100.dts | 3 +++
  22. 7 files changed, 28 insertions(+)
  23. --- a/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
  24. +++ b/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
  25. @@ -52,6 +52,10 @@
  26. usb {
  27. label = "bcm53xx:blue:usb";
  28. gpios = <&hc595 0 GPIO_ACTIVE_HIGH>;
  29. + trigger-sources = <&ohci_port1>, <&ehci_port1>,
  30. + <&xhci_port1>, <&ohci_port2>,
  31. + <&ehci_port2>;
  32. + linux,default-trigger = "usbport";
  33. };
  34. power0 {
  35. --- a/arch/arm/boot/dts/bcm4708-netgear-r6250.dts
  36. +++ b/arch/arm/boot/dts/bcm4708-netgear-r6250.dts
  37. @@ -48,6 +48,9 @@
  38. usb {
  39. label = "bcm53xx:blue:usb";
  40. gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>;
  41. + trigger-sources = <&ohci_port1>, <&ehci_port1>,
  42. + <&xhci_port1>;
  43. + linux,default-trigger = "usbport";
  44. };
  45. wireless {
  46. --- a/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts
  47. +++ b/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts
  48. @@ -42,16 +42,22 @@
  49. usb2 {
  50. label = "bcm53xx:white:usb2";
  51. gpios = <&chipcommon 3 GPIO_ACTIVE_HIGH>;
  52. + trigger-sources = <&ohci_port2>, <&ehci_port2>;
  53. + linux,default-trigger = "usbport";
  54. };
  55. usb3-white {
  56. label = "bcm53xx:white:usb3";
  57. gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
  58. + trigger-sources = <&xhci_port1>;
  59. + linux,default-trigger = "usbport";
  60. };
  61. usb3-green {
  62. label = "bcm53xx:green:usb3";
  63. gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
  64. + trigger-sources = <&ohci_port1>, <&ehci_port1>;
  65. + linux,default-trigger = "usbport";
  66. };
  67. wps {
  68. --- a/arch/arm/boot/dts/bcm47081-tplink-archer-c5-v2.dts
  69. +++ b/arch/arm/boot/dts/bcm47081-tplink-archer-c5-v2.dts
  70. @@ -36,6 +36,8 @@
  71. usb2-port1 {
  72. label = "bcm53xx:green:usb2-port1";
  73. gpios = <&chipcommon 2 GPIO_ACTIVE_HIGH>;
  74. + trigger-sources = <&ohci_port1>, <&ehci_port1>;
  75. + linux,default-trigger = "usbport";
  76. };
  77. power {
  78. @@ -67,6 +69,8 @@
  79. usb2-port2 {
  80. label = "bcm53xx:green:usb2-port2";
  81. gpios = <&chipcommon 13 GPIO_ACTIVE_HIGH>;
  82. + trigger-sources = <&ohci_port2>, <&ehci_port2>;
  83. + linux,default-trigger = "usbport";
  84. };
  85. };
  86. --- a/arch/arm/boot/dts/bcm4709-tplink-archer-c9-v1.dts
  87. +++ b/arch/arm/boot/dts/bcm4709-tplink-archer-c9-v1.dts
  88. @@ -46,11 +46,16 @@
  89. usb3 {
  90. label = "bcm53xx:blue:usb3";
  91. gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>;
  92. + trigger-sources = <&ohci_port1>, <&ehci_port1>,
  93. + <&xhci_port1>;
  94. + linux,default-trigger = "usbport";
  95. };
  96. usb2 {
  97. label = "bcm53xx:blue:usb2";
  98. gpios = <&chipcommon 7 GPIO_ACTIVE_HIGH>;
  99. + trigger-sources = <&ohci_port2>, <&ehci_port2>;
  100. + linux,default-trigger = "usbport";
  101. };
  102. wan-blue {
  103. --- a/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts
  104. +++ b/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts
  105. @@ -71,6 +71,9 @@
  106. usb3-white {
  107. label = "bcm53xx:white:usb3";
  108. gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>;
  109. + trigger-sources = <&ohci_port1>, <&ehci_port1>,
  110. + <&xhci_port1>;
  111. + linux,default-trigger = "usbport";
  112. };
  113. 2ghz {
  114. --- a/arch/arm/boot/dts/bcm47094-luxul-xwr-3100.dts
  115. +++ b/arch/arm/boot/dts/bcm47094-luxul-xwr-3100.dts
  116. @@ -59,6 +59,9 @@
  117. usb3 {
  118. label = "bcm53xx:green:usb3";
  119. gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>;
  120. + trigger-sources = <&ohci_port1>, <&ehci_port1>,
  121. + <&xhci_port1>;
  122. + linux,default-trigger = "usbport";
  123. };
  124. status {