summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Marangi2025-09-01 16:30:27 +0000
committerChristian Marangi2025-09-02 22:58:51 +0000
commit3dca527e6d1e19aa97ece32c27af5a59ecbe646d (patch)
tree7992b2a352dff2ced6f57e3b17894f7bc23e22d6
parent9d3009f426d5b5ca4eb120989d7d5776175a97d3 (diff)
downloadopenwrt-3dca527e6d1e19aa97ece32c27af5a59ecbe646d.tar.gz
airoha: add NPU and reserved memory node for AN7581
Add the NPU and reserved memory node for AN7581 dtsi since it's not supported. Link: https://github.com/openwrt/openwrt/pull/19816 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
-rw-r--r--target/linux/airoha/dts/an7581.dtsi58
1 files changed, 49 insertions, 9 deletions
diff --git a/target/linux/airoha/dts/an7581.dtsi b/target/linux/airoha/dts/an7581.dtsi
index 086cae977f..6d18d19926 100644
--- a/target/linux/airoha/dts/an7581.dtsi
+++ b/target/linux/airoha/dts/an7581.dtsi
@@ -17,29 +17,39 @@
#size-cells = <2>;
ranges;
- npu-binary@84000000 {
+ atf@80000000 {
+ no-map;
+ reg = <0x0 0x80000000 0x0 0x200000>;
+ };
+
+ npu_binary: npu-binary@84000000 {
no-map;
reg = <0x0 0x84000000 0x0 0xa00000>;
};
- npu-flag@84b0000 {
+ qdma0_buf: qdma0-buf@87000000 {
+ no-map;
+ reg = <0x0 0x87000000 0x0 0x2000000>;
+ };
+
+ qdma1_buf: qdma1-buf@89000000 {
no-map;
- reg = <0x0 0x84b00000 0x0 0x100000>;
+ reg = <0x0 0x89000000 0x0 0x1000000>;
};
- npu-pkt@85000000 {
+ npu_pkt: npu-pkt@8a000000 {
no-map;
- reg = <0x0 0x85000000 0x0 0x1a00000>;
+ reg = <0x0 0x8a000000 0x0 0x2c00000>;
};
- npu-phyaddr@86b00000 {
+ npu_txpkt: npu-txpkt@8cc00000 {
no-map;
- reg = <0x0 0x86b00000 0x0 0x100000>;
+ reg = <0x0 0x8cc00000 0x0 0x4000000>;
};
- npu-rxdesc@86d00000 {
+ npu_txbufid: npu-txbufid@90c00000 {
no-map;
- reg = <0x0 0x86d00000 0x0 0x100000>;
+ reg = <0x0 0x90c00000 0x0 0x6800>;
};
};
@@ -666,6 +676,31 @@
};
};
+ npu: npu@1e900000 {
+ compatible = "airoha,en7581-npu";
+ reg = <0x0 0x1e900000 0x0 0x313000>;
+ interrupts = <GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 134 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>;
+ memory-region = <&npu_binary>, <&npu_pkt>, <&npu_txpkt>,
+ <&npu_txbufid>;
+ memory-region-names = "binary", "pkt", "tx-pkt",
+ "tx-bufid";
+ status = "disabled";
+ };
+
eth: ethernet@1fb50000 {
compatible = "airoha,en7581-eth";
reg = <0 0x1fb50000 0 0x2600>,
@@ -696,6 +731,11 @@
<GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
+ memory-region = <&qdma0_buf>, <&qdma1_buf>;
+ memory-region-names = "qdma0-buf", "qdma1-buf";
+
+ airoha,npu = <&npu>;
+
status = "disabled";
#address-cells = <1>;