lantiq: fix usb leds/trigger
authorMathias Kresin <dev@kresin.me>
Wed, 5 Oct 2016 06:16:08 +0000 (08:16 +0200)
committerMathias Kresin <dev@kresin.me>
Wed, 5 Oct 2016 17:23:23 +0000 (19:23 +0200)
Add USB led aliases to boards having an led which is meant to be used
as USB led according to the manuals.

Remove the kmod-ledtrig-usbdev from the default package selection for
boards not having an USB led. Add the kmod-ledtrig-usbdev to boards
where it is missing.

Signed-off-by: Mathias Kresin <dev@kresin.me>
target/linux/lantiq/dts/ARV7510PW22.dts
target/linux/lantiq/dts/ARV752DPW.dts
target/linux/lantiq/dts/ARV752DPW22.dts
target/linux/lantiq/image/Makefile

index ac974091ddbb20da316ac23ae2423d42d7c969f2..90a55fe448fbbb6302b2308c75fb4c9bd3b6d63b 100644 (file)
@@ -15,6 +15,7 @@
                led-running = &power;
 
                led-internet = &internet;
+               led-usb = &umts;
                led-wifi = &wlan;
        };
 
                        label = "wlan";
                        gpios = <&gpio 10 1>;
                };
-               3g {
+               umts: 3g {
                        label = "3g";
                        gpios = <&gpio 15 1>;
                };
index e37c795197e2b1731fe66ff421ff971f834e41a9..913f831832449ed18cf2eac198817ccfca374bfe 100644 (file)
@@ -15,6 +15,7 @@
                led-running = &power_red;
 
                led-internet = &internet_red;
+               led-usb = &umts;
                led-wifi = &wifi;
        };
 
                        label = "arv752dpw:red:voice";
                        gpios = <&gpio 8 1>;
                };
-               microphone {
+               umts: umts {
                        label = "arv752dpw:red:umts";
                        gpios = <&gpiomm 3 1>;
                };
index db4a639b413f083a96a1c26abf8512a95c1e6b7b..2ec634f61bcadb87f7b2ccdd4587934f7ae09a5b 100644 (file)
@@ -15,6 +15,7 @@
                led-running = &power_red;
 
                led-internet = &internet_red;
+               led-usb = &umts;
                led-wifi = &wifi;
        };
 
                        label = "arv752dpw22:red:voice";
                        gpios = <&gpio 8 1>;
                };
-               microphone {
+               umts: umts {
                        label = "arv752dpw22:red:umts";
                        gpios = <&gpiomm 3 1>;
                };
index 8e06a99c227ecae6ba4b88cbaf80827799fdf73d..54a6caf23e4a6bf0139f59706ea3ff1c18189192 100644 (file)
@@ -249,7 +249,7 @@ TARGET_DEVICES += ARV4525PW
 define Device/ARV452CQW
   IMAGE_SIZE := 3776k
   DEVICE_TITLE := Easybox 801 - ARV452CQW
-  DEVICE_PACKAGES := kmod-ltq-hcd-danube \
+  DEVICE_PACKAGES := kmod-ltq-hcd-danube kmod-ledtrig-usbdev \
        kmod-ath5k wpad-mini \
        kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
        kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \
@@ -291,7 +291,7 @@ ifeq ($(SUBTARGET),xway)
 define Device/BTHOMEHUBV2B
   $(Device/NAND)
   DEVICE_TITLE := BT Home Hub 2B
-  DEVICE_PACKAGES :=  kmod-ltq-hcd-danube kmod-ledtrig-usbdev \
+  DEVICE_PACKAGES :=  kmod-ltq-hcd-danube \
        kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
        kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \
        kmod-ltq-deu-danube \
@@ -391,7 +391,7 @@ TARGET_DEVICES += ARV7518PW
 define Device/ARV7519PW
   IMAGE_SIZE := 15488k
   DEVICE_TITLE := Astoria - ARV7519PW
-  DEVICE_PACKAGES := kmod-ltq-hcd-danube kmod-ledtrig-usbdev \
+  DEVICE_PACKAGES := kmod-ltq-hcd-danube \
        kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
        kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \
        ltq-adsl-app ppp-mod-pppoa \
@@ -441,7 +441,7 @@ TARGET_DEVICES += ARV8539PW22
 define Device/GIGASX76X
   IMAGE_SIZE := 7680k
   DEVICE_TITLE := Gigaset sx76x
-  DEVICE_PACKAGES := kmod-ltq-hcd-danube kmod-ledtrig-usbdev \
+  DEVICE_PACKAGES := kmod-ltq-hcd-danube \
        kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
        kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \
        ltq-adsl-app ppp-mod-pppoe \
@@ -456,7 +456,7 @@ TARGET_DEVICES += GIGASX76X
 define Device/BTHOMEHUBV3A
   $(Device/NAND)
   DEVICE_TITLE := BT Home Hub 3A
-  DEVICE_PACKAGES := kmod-usb-dwc2 kmod-ledtrig-usbdev \
+  DEVICE_PACKAGES := kmod-usb-dwc2 \
        kmod-ltq-adsl-ar9-mei kmod-ltq-adsl-ar9 \
        kmod-ltq-adsl-ar9-fw-a kmod-ltq-atm-ar9 \
        kmod-ltq-deu-ar9 \