kernel: bump 4.9 to 4.9.57
[oweals/openwrt.git] / target / linux / bcm53xx / patches-4.9 / 035-v4.14-0002-ARM-dts-BCM5301X-Specify-USB-ports-for-USB-LEDs-of-f.patch
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
9 This uses trigger-sources documented in commit 80dc6e1cd85fc ("dt-bindings:
10 leds: document new trigger-sources property") to specify USB ports. Such an
11 information can be used by operating system to setup LEDs behavior.
12
13 I updated dts files for 7 devices I own and I was able to test.
14
15 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
16 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
17 ---
18  arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts  | 4 ++++
19  arch/arm/boot/dts/bcm4708-netgear-r6250.dts        | 3 +++
20  arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts      | 6 ++++++
21  arch/arm/boot/dts/bcm47081-tplink-archer-c5-v2.dts | 4 ++++
22  arch/arm/boot/dts/bcm4709-tplink-archer-c9-v1.dts  | 5 +++++
23  arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts      | 3 +++
24  arch/arm/boot/dts/bcm47094-luxul-xwr-3100.dts      | 3 +++
25  7 files changed, 28 insertions(+)
26
27 --- a/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
28 +++ b/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
29 @@ -52,6 +52,10 @@
30                 usb {
31                         label = "bcm53xx:blue:usb";
32                         gpios = <&hc595 0 GPIO_ACTIVE_HIGH>;
33 +                       trigger-sources = <&ohci_port1>, <&ehci_port1>,
34 +                                         <&xhci_port1>, <&ohci_port2>,
35 +                                         <&ehci_port2>;
36 +                       linux,default-trigger = "usbport";
37                 };
38  
39                 power0 {
40 --- a/arch/arm/boot/dts/bcm4708-netgear-r6250.dts
41 +++ b/arch/arm/boot/dts/bcm4708-netgear-r6250.dts
42 @@ -48,6 +48,9 @@
43                 usb {
44                         label = "bcm53xx:blue:usb";
45                         gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>;
46 +                       trigger-sources = <&ohci_port1>, <&ehci_port1>,
47 +                                         <&xhci_port1>;
48 +                       linux,default-trigger = "usbport";
49                 };
50  
51                 wireless {
52 --- a/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts
53 +++ b/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts
54 @@ -42,16 +42,22 @@
55                 usb2 {
56                         label = "bcm53xx:white:usb2";
57                         gpios = <&chipcommon 3 GPIO_ACTIVE_HIGH>;
58 +                       trigger-sources = <&ohci_port2>, <&ehci_port2>;
59 +                       linux,default-trigger = "usbport";
60                 };
61  
62                 usb3-white {
63                         label = "bcm53xx:white:usb3";
64                         gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
65 +                       trigger-sources = <&xhci_port1>;
66 +                       linux,default-trigger = "usbport";
67                 };
68  
69                 usb3-green {
70                         label = "bcm53xx:green:usb3";
71                         gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
72 +                       trigger-sources = <&ohci_port1>, <&ehci_port1>;
73 +                       linux,default-trigger = "usbport";
74                 };
75  
76                 wps {
77 --- a/arch/arm/boot/dts/bcm47081-tplink-archer-c5-v2.dts
78 +++ b/arch/arm/boot/dts/bcm47081-tplink-archer-c5-v2.dts
79 @@ -36,6 +36,8 @@
80                 usb2-port1 {
81                         label = "bcm53xx:green:usb2-port1";
82                         gpios = <&chipcommon 2 GPIO_ACTIVE_HIGH>;
83 +                       trigger-sources = <&ohci_port1>, <&ehci_port1>;
84 +                       linux,default-trigger = "usbport";
85                 };
86  
87                 power {
88 @@ -67,6 +69,8 @@
89                 usb2-port2 {
90                         label = "bcm53xx:green:usb2-port2";
91                         gpios = <&chipcommon 13 GPIO_ACTIVE_HIGH>;
92 +                       trigger-sources = <&ohci_port2>, <&ehci_port2>;
93 +                       linux,default-trigger = "usbport";
94                 };
95         };
96  
97 --- a/arch/arm/boot/dts/bcm4709-tplink-archer-c9-v1.dts
98 +++ b/arch/arm/boot/dts/bcm4709-tplink-archer-c9-v1.dts
99 @@ -46,11 +46,16 @@
100                 usb3 {
101                         label = "bcm53xx:blue:usb3";
102                         gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>;
103 +                       trigger-sources = <&ohci_port1>, <&ehci_port1>,
104 +                                         <&xhci_port1>;
105 +                       linux,default-trigger = "usbport";
106                 };
107  
108                 usb2 {
109                         label = "bcm53xx:blue:usb2";
110                         gpios = <&chipcommon 7 GPIO_ACTIVE_HIGH>;
111 +                       trigger-sources = <&ohci_port2>, <&ehci_port2>;
112 +                       linux,default-trigger = "usbport";
113                 };
114  
115                 wan-blue {
116 --- a/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts
117 +++ b/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts
118 @@ -71,6 +71,9 @@
119                 usb3-white {
120                         label = "bcm53xx:white:usb3";
121                         gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>;
122 +                       trigger-sources = <&ohci_port1>, <&ehci_port1>,
123 +                                         <&xhci_port1>;
124 +                       linux,default-trigger = "usbport";
125                 };
126  
127                 2ghz {
128 --- a/arch/arm/boot/dts/bcm47094-luxul-xwr-3100.dts
129 +++ b/arch/arm/boot/dts/bcm47094-luxul-xwr-3100.dts
130 @@ -59,6 +59,9 @@
131                 usb3    {
132                         label = "bcm53xx:green:usb3";
133                         gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>;
134 +                       trigger-sources = <&ohci_port1>, <&ehci_port1>,
135 +                                         <&xhci_port1>;
136 +                       linux,default-trigger = "usbport";
137                 };
138  
139                 status  {