* [PATCH] arm64: dts: meson: vim3: add NNA node
@ 2021-06-05 3:10 xieqinick
0 siblings, 0 replies; only message in thread
From: xieqinick @ 2021-06-05 3:10 UTC (permalink / raw)
To: robh+dt, narmstrong, khilman, jbrunet, martin.blumenstingl,
devicetree, linux-arm-kernel, linux-amlogic, linux-kernel
Cc: nick, artem
From: Nick Xie <nick@khadas.com>
Add Neural Network Accelerator device tree node
for Khadas VIM3.
Signed-off-by: Nick Xie <nick@khadas.com>
---
.../amlogic/meson-g12b-a311d-khadas-vim3.dts | 35 +++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-a311d-khadas-vim3.dts b/arch/arm64/boot/dts/amlogic/meson-g12b-a311d-khadas-vim3.dts
index 124a80901084..4aa2b20bfbf2 100644
--- a/arch/arm64/boot/dts/amlogic/meson-g12b-a311d-khadas-vim3.dts
+++ b/arch/arm64/boot/dts/amlogic/meson-g12b-a311d-khadas-vim3.dts
@@ -13,6 +13,41 @@
/ {
compatible = "khadas,vim3", "amlogic,a311d", "amlogic,g12b";
+
+ reserved-memory {
+ galcore_reserved:linux,galcore {
+ compatible = "shared-dma-pool";
+ reusable;
+ size = <0x0 0x1000000>;
+ alignment = <0x0 0x400000>;
+ linux,contiguous-region;
+ };
+ };
+
+ galcore {
+ compatible = "amlogic, galcore";
+ dev_name = "galcore";
+ status = "okay";
+ clocks = <&clkc CLKID_NNA_AXI_CLK>,
+ <&clkc CLKID_NNA_CORE_CLK>;
+ clock-names = "cts_vipnanoq_axi_clk_composite",
+ "cts_vipnanoq_core_clk_composite";
+ interrupts = <0 147 4>;
+ interrupt-names = "galcore";
+ reg = <0x0 0xff100000 0x0 0x800
+ 0x0 0xff000000 0x0 0x400000
+ 0x0 0xff63c10c 0x0 0x4
+ 0x0 0xff63c110 0x0 0x4
+ 0x0 0xffd01088 0x0 0x4
+ 0X0 0xff63c1c8 0X0 0x4
+ >;
+ reg-names = "NN_REG","NN_SRAM","NN_MEM0",
+ "NN_MEM1","NN_RESET","NN_CLK";
+ nn_power_version = <2>;
+ nn_efuse = <0xff63003c 0x20>;
+
+ memory-region = <&galcore_reserved>;
+ };
};
/*
--
2.25.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-06-05 3:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-05 3:10 [PATCH] arm64: dts: meson: vim3: add NNA node xieqinick
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).