jh71x0: add new target for StarFive JH7100/7110 SoC
[openwrt/staging/wigyori.git] / target / linux / jh71x0 / patches-6.1 / 0063-riscv-dts-starfive-jh7110-add-pmu-controller-node.patch
diff --git a/target/linux/jh71x0/patches-6.1/0063-riscv-dts-starfive-jh7110-add-pmu-controller-node.patch b/target/linux/jh71x0/patches-6.1/0063-riscv-dts-starfive-jh7110-add-pmu-controller-node.patch
new file mode 100644 (file)
index 0000000..8c62b97
--- /dev/null
@@ -0,0 +1,33 @@
+From 98ce972b8459457a1a113ca96184f381552e99d1 Mon Sep 17 00:00:00 2001
+From: Walker Chen <walker.chen@starfivetech.com>
+Date: Thu, 18 May 2023 18:12:32 +0800
+Subject: [PATCH 63/95] riscv: dts: starfive: jh7110: add pmu controller node
+
+Add the pmu controller node for the Starfive JH7110 SoC. The PMU needs
+to be used by other modules such as VPU, ISP, etc.
+
+Signed-off-by: Walker Chen <walker.chen@starfivetech.com>
+---
+ arch/riscv/boot/dts/starfive/jh7110.dtsi | 7 +++++++
+ 1 file changed, 7 insertions(+)
+
+diff --git a/arch/riscv/boot/dts/starfive/jh7110.dtsi b/arch/riscv/boot/dts/starfive/jh7110.dtsi
+index 7961c90b293f..f3080e0f7c47 100644
+--- a/arch/riscv/boot/dts/starfive/jh7110.dtsi
++++ b/arch/riscv/boot/dts/starfive/jh7110.dtsi
+@@ -543,5 +543,12 @@
+                       starfive,sysreg = <&sysreg 0x9c 0x1 0x3e>;
+                       status = "disabled";
+               };
++
++              pwrc: power-controller@17030000 {
++                      compatible = "starfive,jh7110-pmu";
++                      reg = <0x0 0x17030000 0x0 0x10000>;
++                      interrupts = <111>;
++                      #power-domain-cells = <1>;
++              };
+       };
+ };
+-- 
+2.20.1
+