From 5dbe94d972314ee26826c142822efd901e75dbf9 Mon Sep 17 00:00:00 2001 From: Chukun Pan Date: Sat, 28 Mar 2026 16:19:20 +0800 Subject: [PATCH] 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 --- target/linux/airoha/dts/an7581-evb-emmc.dtsi | 4 ++++ target/linux/airoha/dts/an7581.dtsi | 1 + 2 files changed, 5 insertions(+) diff --git a/target/linux/airoha/dts/an7581-evb-emmc.dtsi b/target/linux/airoha/dts/an7581-evb-emmc.dtsi index d7ce37df2d..8201442566 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 056e593f39..acddd89cf0 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 {