]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
airoha: enable NPU for Nokia device and fix ADC shunt-resistor
authorChristian Marangi <ansuelsmth@gmail.com>
Fri, 10 Jul 2026 06:55:45 +0000 (08:55 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Fri, 10 Jul 2026 06:55:45 +0000 (08:55 +0200)
Enable NPU and USB support for Nokia device and apply the correct value for
the shunt-resistor for the i2c ADC chip to correctly read voltage.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
target/linux/airoha/dts/an7581-nokia-valyrian.dts
target/linux/airoha/image/an7581.mk

index 7e5facbcdac10fb9e1f65c929eff77f7245382a3..26d5e1788e8aa2f4e4392867c37945a71639d492 100644 (file)
@@ -5,6 +5,7 @@
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 #include "an7581.dtsi"
+#include "an7581-npu-mt7996.dtsi"
 
 / {
        model = "Nokia Valyrian";
                        compatible = "richtek,rtq6059";
                        reg = <0x40>;
 
+                       shunt-resistor-micro-ohms = <5000>;
+
                        #io-channel-cells = <1>;
                };
        };
        status = "okay";
 };
 
+&npu {
+       status = "okay";
+};
+
 &eth {
        status = "okay";
 };
index 87ed0e816442daf9e3ad2238add0ff3394945593..2aa3ecd6220213cf04117c4f8f7ad8a6268a9c7a 100644 (file)
@@ -128,7 +128,8 @@ define Device/nokia_valyrian
   DEVICE_PACKAGES := kmod-spi-gpio kmod-gpio-nxp-74hc164 kmod-leds-gpio \
     kmod-i2c-an7581 kmod-i2c-gpio kmod-iio-richtek-rtq6056 \
     kmod-sfp kmod-phy-aeonsemi-as21xxx \
-    kmod-mt7996-firmware
+    kmod-mt7996-firmware airoha-en7581-mt7996-npu-firmware \
+    kmod-usb3
   ARTIFACT/preloader.bin := an7581-preloader nokia_valyrian
   ARTIFACT/bl31-uboot.fip := an7581-bl31-uboot nokia_valyrian
   ARTIFACTS := preloader.bin bl31-uboot.fip