ipq40xx: convert to device-tree based USB LED trigger
[openwrt/staging/dedeckeh.git] / target / linux / ipq40xx / files-4.14 / arch / arm / boot / dts / qcom-ipq4018-nbg6617.dts
index 08ae27d682d82fe359f960cdb0b54b042402c4b7..8df3796dae81d65a29facbd45b81de720ae56ae2 100644 (file)
 
                usb2@60f8800 {
                        status = "okay";
+
+                       dwc3@6000000 {
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+
+                               usb2_port1: port@1 {
+                                       reg = <1>;
+                                       #trigger-source-cells = <0>;
+                               };
+                       };
                };
 
                usb3@8af8800 {
                        status = "okay";
+
+                       dwc3@8a00000 {
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+
+                               usb3_port1: port@1 {
+                                       reg = <1>;
+                                       #trigger-source-cells = <0>;
+                               };
+
+                               usb3_port2: port@2 {
+                                       reg = <2>;
+                                       #trigger-source-cells = <0>;
+                               };
+                       };
                };
 
                crypto@8e3a000 {
                usb {
                        label = "nbg6617:green:usb";
                        gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
+                       trigger-sources = <&usb2_port1>, <&usb3_port1>, <&usb3_port2>;
+                       linux,default-trigger = "usbport";
                };
 
                wlan2G {