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
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
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.
13 I updated dts files for 7 devices I own and I was able to test.
15 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
16 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
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(+)
27 --- a/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
28 +++ b/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
31 label = "bcm53xx:blue:usb";
32 gpios = <&hc595 0 GPIO_ACTIVE_HIGH>;
33 + trigger-sources = <&ohci_port1>, <&ehci_port1>,
34 + <&xhci_port1>, <&ohci_port2>,
36 + linux,default-trigger = "usbport";
40 --- a/arch/arm/boot/dts/bcm4708-netgear-r6250.dts
41 +++ b/arch/arm/boot/dts/bcm4708-netgear-r6250.dts
44 label = "bcm53xx:blue:usb";
45 gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>;
46 + trigger-sources = <&ohci_port1>, <&ehci_port1>,
48 + linux,default-trigger = "usbport";
52 --- a/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts
53 +++ b/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts
56 label = "bcm53xx:white:usb2";
57 gpios = <&chipcommon 3 GPIO_ACTIVE_HIGH>;
58 + trigger-sources = <&ohci_port2>, <&ehci_port2>;
59 + linux,default-trigger = "usbport";
63 label = "bcm53xx:white:usb3";
64 gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
65 + trigger-sources = <&xhci_port1>;
66 + linux,default-trigger = "usbport";
70 label = "bcm53xx:green:usb3";
71 gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
72 + trigger-sources = <&ohci_port1>, <&ehci_port1>;
73 + linux,default-trigger = "usbport";
77 --- a/arch/arm/boot/dts/bcm47081-tplink-archer-c5-v2.dts
78 +++ b/arch/arm/boot/dts/bcm47081-tplink-archer-c5-v2.dts
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";
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";
97 --- a/arch/arm/boot/dts/bcm4709-tplink-archer-c9-v1.dts
98 +++ b/arch/arm/boot/dts/bcm4709-tplink-archer-c9-v1.dts
101 label = "bcm53xx:blue:usb3";
102 gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>;
103 + trigger-sources = <&ohci_port1>, <&ehci_port1>,
105 + linux,default-trigger = "usbport";
109 label = "bcm53xx:blue:usb2";
110 gpios = <&chipcommon 7 GPIO_ACTIVE_HIGH>;
111 + trigger-sources = <&ohci_port2>, <&ehci_port2>;
112 + linux,default-trigger = "usbport";
116 --- a/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts
117 +++ b/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts
120 label = "bcm53xx:white:usb3";
121 gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>;
122 + trigger-sources = <&ohci_port1>, <&ehci_port1>,
124 + linux,default-trigger = "usbport";
128 --- a/arch/arm/boot/dts/bcm47094-luxul-xwr-3100.dts
129 +++ b/arch/arm/boot/dts/bcm47094-luxul-xwr-3100.dts
132 label = "bcm53xx:green:usb3";
133 gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>;
134 + trigger-sources = <&ohci_port1>, <&ehci_port1>,
136 + linux,default-trigger = "usbport";