[openwrt/openwrt] ath79: mikrotik: enable USB module on RouterBoard wAPR-2nD

LEDE Commits lede-commits at lists.infradead.org
Sat Nov 20 12:08:52 PST 2021


hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/c29f71ece753d55ddf19a1b87d228499e5165190

commit c29f71ece753d55ddf19a1b87d228499e5165190
Author: Roger Pueyo Centelles <roger.pueyo at guifi.net>
AuthorDate: Fri Oct 22 12:19:40 2021 +0200

    ath79: mikrotik: enable USB module on RouterBoard wAPR-2nD
    
    The MikroTik RouterBOARD wAPR-2nD (wAP R) router features a miniPCI-e
    slot with USB lines connected, which are used by some USB cards with
    miniPCI-e form factor, like the R11e-LR8. Enabling USB support is
    required for such cards to work.
    
    Tested on a MikroTik wAP LR8 kit (RB wAPR-2nD + R11e-LR8).
    
    Signed-off-by: Roger Pueyo Centelles <roger.pueyo at guifi.net>
---
 target/linux/ath79/dts/qca9533_mikrotik_routerboard-wapr-2nd.dts | 8 ++++++++
 target/linux/ath79/image/mikrotik.mk                             | 2 +-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/target/linux/ath79/dts/qca9533_mikrotik_routerboard-wapr-2nd.dts b/target/linux/ath79/dts/qca9533_mikrotik_routerboard-wapr-2nd.dts
index 459fc04e6c..49756f3336 100644
--- a/target/linux/ath79/dts/qca9533_mikrotik_routerboard-wapr-2nd.dts
+++ b/target/linux/ath79/dts/qca9533_mikrotik_routerboard-wapr-2nd.dts
@@ -68,3 +68,11 @@
 &pcie0 {
 	status = "okay";
 };
+
+&usb0 {
+	status = "okay";
+};
+
+&usb_phy {
+	status = "okay";
+};
diff --git a/target/linux/ath79/image/mikrotik.mk b/target/linux/ath79/image/mikrotik.mk
index 2324ecc195..095a1cbc84 100644
--- a/target/linux/ath79/image/mikrotik.mk
+++ b/target/linux/ath79/image/mikrotik.mk
@@ -69,7 +69,7 @@ define Device/mikrotik_routerboard-wapr-2nd
   $(Device/mikrotik_nor)
   SOC := qca9533
   DEVICE_MODEL := RouterBOARD wAPR-2nD (wAP R)
-  DEVICE_PACKAGES += rssileds
+  DEVICE_PACKAGES += kmod-usb2 rssileds
   IMAGE_SIZE := 16256k
 endef
 TARGET_DEVICES += mikrotik_routerboard-wapr-2nd



More information about the lede-commits mailing list