]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
airoha: disable afe by default for an7581 22660/head
authorChukun Pan <amadeus@jmu.edu.cn>
Sat, 28 Mar 2026 08:19:20 +0000 (16:19 +0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 26 Apr 2026 08:17:09 +0000 (10:17 +0200)
The audio should only be enabled when the sound
node is enabled. This fixes the following error:

an7581-audio 1fbe2200.afe: probe with driver an7581-audio failed with error -2

Fixes: 7b55651 ("airoha: enable I2S sound driver and add nodes for eMMC RFB board")
Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
Link: https://github.com/openwrt/openwrt/pull/22660
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/airoha/dts/an7581-evb-emmc.dtsi
target/linux/airoha/dts/an7581.dtsi

index d7ce37df2d5c74d67657524eb568921b1857534a..82014425663b35674a3de5b6c6273a2eced01358 100644 (file)
@@ -5,6 +5,10 @@
 #include <dt-bindings/gpio/gpio.h>
 #include "an7581.dtsi"
 
+&afe {
+       status = "okay";
+};
+
 &sound {
        audio-routing = "Headphone", "HP_L",
                        "Headphone", "HP_R",
index 056e593f39aad55bcde416f55de9d1147acbc75f..acddd89cf0f2be19e6c30a21290da3bc7d78a5f3 100644 (file)
                        reg = <0x0 0x1fbe2200 0x0 0x9000>;
 
                        interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
+                       status = "disabled";
                };
 
                uart4: serial@1fbf0600 {