From 8758b58f25dac29a9cbf60e153143bdc124e582c Mon Sep 17 00:00:00 2001 From: Christian Marangi Date: Thu, 23 Oct 2025 16:23:42 +0200 Subject: [PATCH] airoha: an7583: add NPU nodes and enable kernel config Add relevant nodes for NPU support for Airoha AN7583 and enable the kernel config to enable support in the Airoha Ethernet driver. NPU firmware is scheduled to be upstreamed to linux-firmware and will be added once present upstream. Signed-off-by: Christian Marangi --- target/linux/airoha/an7583/config-6.12 | 1 + target/linux/airoha/dts/an7583-evb-emmc.dts | 4 ++++ target/linux/airoha/dts/an7583-evb.dts | 4 ++++ target/linux/airoha/dts/an7583.dtsi | 26 +++++++++++++++++++++ 4 files changed, 35 insertions(+) diff --git a/target/linux/airoha/an7583/config-6.12 b/target/linux/airoha/an7583/config-6.12 index 8c9a5f436e0..2457704df49 100644 --- a/target/linux/airoha/an7583/config-6.12 +++ b/target/linux/airoha/an7583/config-6.12 @@ -242,6 +242,7 @@ CONFIG_NEED_DMA_MAP_STATE=y CONFIG_NEED_SG_DMA_LENGTH=y CONFIG_NET_AIROHA=y CONFIG_NET_AIROHA_FLOW_STATS=y +CONFIG_NET_AIROHA_NPU=y CONFIG_NET_DEVLINK=y CONFIG_NET_DSA=y CONFIG_NET_DSA_MT7530=y diff --git a/target/linux/airoha/dts/an7583-evb-emmc.dts b/target/linux/airoha/dts/an7583-evb-emmc.dts index df5ee5bde01..6477832a20a 100644 --- a/target/linux/airoha/dts/an7583-evb-emmc.dts +++ b/target/linux/airoha/dts/an7583-evb-emmc.dts @@ -227,6 +227,10 @@ }; }; +&npu { + status = "okay"; +}; + ð { status = "okay"; nvmem-cells = <&mac_factory_2c0000>; diff --git a/target/linux/airoha/dts/an7583-evb.dts b/target/linux/airoha/dts/an7583-evb.dts index 30f1cf0800f..95ac20e7279 100644 --- a/target/linux/airoha/dts/an7583-evb.dts +++ b/target/linux/airoha/dts/an7583-evb.dts @@ -84,6 +84,10 @@ status = "okay"; }; +&npu { + status = "okay"; +}; + ð { status = "okay"; }; diff --git a/target/linux/airoha/dts/an7583.dtsi b/target/linux/airoha/dts/an7583.dtsi index 43e60ebf667..49a0616a397 100644 --- a/target/linux/airoha/dts/an7583.dtsi +++ b/target/linux/airoha/dts/an7583.dtsi @@ -546,6 +546,30 @@ interrupts = ; }; + npu: npu@1e900000 { + compatible = "airoha,an7583-npu"; + reg = <0x0 0x1e900000 0x0 0x313000>; + interrupts = , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + memory-region = <&npu_binary>; + memory-region-names = "binary"; + + status = "disabled"; + }; + pon_pcs: pcs@1fa08000 { compatible = "airoha,an7583-pcs-pon"; reg = <0x0 0x1fa08000 0x0 0x1000>, @@ -620,6 +644,8 @@ memory-region = <&qdma0_buf>, <&qdma1_buf>; memory-region-names = "qdma0-buf", "qdma1-buf"; + airoha,npu = <&npu>; + status = "disabled"; #address-cells = <1>; -- 2.47.3