ARM: BCM53573: Specify ports for USB LED for Tenda AC9
authorRafał Miłecki <rafal@milecki.pl>
Thu, 17 Aug 2017 09:05:14 +0000 (11:05 +0200)
committerFlorian Fainelli <f.fainelli@gmail.com>
Thu, 17 Aug 2017 17:18:07 +0000 (10:18 -0700)
This uses trigger-sources documented in commit 80dc6e1cd85fc ("dt-bindings:
leds: document new trigger-sources property") to specify USB ports. Such an
information can be used by operating system to setup LEDs behavior.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
arch/arm/boot/dts/bcm47189-tenda-ac9.dts
arch/arm/boot/dts/bcm53573.dtsi

index 34417da..19e61b5 100644 (file)
@@ -26,6 +26,8 @@
                usb {
                        label = "bcm53xx:blue:usb";
                        gpios = <&chipcommon 1 GPIO_ACTIVE_HIGH>;
+                       trigger-sources = <&ohci_port1>, <&ehci_port1>;
+                       linux,default-trigger = "usbport";
                };
 
                wps {
index eae623f..c698a56 100644 (file)
 
                                ehci_port1: port@1 {
                                        reg = <1>;
+                                       #trigger-source-cells = <0>;
                                };
 
                                ehci_port2: port@2 {
                                        reg = <2>;
+                                       #trigger-source-cells = <0>;
                                };
                        };
 
 
                                ohci_port1: port@1 {
                                        reg = <1>;
+                                       #trigger-source-cells = <0>;
                                };
 
                                ohci_port2: port@2 {
                                        reg = <2>;
+                                       #trigger-source-cells = <0>;
                                };
                        };
                };