From: Chukun Pan Date: Sat, 28 Mar 2026 08:19:20 +0000 (+0800) Subject: airoha: disable afe by default for an7581 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F22660%2Fhead;p=thirdparty%2Fopenwrt.git airoha: disable afe by default for an7581 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 Link: https://github.com/openwrt/openwrt/pull/22660 Signed-off-by: Hauke Mehrtens --- diff --git a/target/linux/airoha/dts/an7581-evb-emmc.dtsi b/target/linux/airoha/dts/an7581-evb-emmc.dtsi index d7ce37df2d5..82014425663 100644 --- a/target/linux/airoha/dts/an7581-evb-emmc.dtsi +++ b/target/linux/airoha/dts/an7581-evb-emmc.dtsi @@ -5,6 +5,10 @@ #include #include "an7581.dtsi" +&afe { + status = "okay"; +}; + &sound { audio-routing = "Headphone", "HP_L", "Headphone", "HP_R", diff --git a/target/linux/airoha/dts/an7581.dtsi b/target/linux/airoha/dts/an7581.dtsi index 056e593f39a..acddd89cf0f 100644 --- a/target/linux/airoha/dts/an7581.dtsi +++ b/target/linux/airoha/dts/an7581.dtsi @@ -439,6 +439,7 @@ reg = <0x0 0x1fbe2200 0x0 0x9000>; interrupts = ; + status = "disabled"; }; uart4: serial@1fbf0600 {