openwrt-redmi-ax3000/target/linux/ipq50xx/patches/384-arm64-dts-qcom-ipq5018-Add-APSS-mailbox-and-clock-no.patch
2024-07-14 23:50:59 +08:00

110 lines
2.7 KiB
Diff

From c22fb5533f31593bbc8ffa603c69ec002338ca5a Mon Sep 17 00:00:00 2001
From: hzy <hzyitc@outlook.com>
Date: Tue, 14 Mar 2023 17:25:13 +0000
Subject: [PATCH 4/4] arm64: dts: qcom: ipq5018: Add APSS mailbox and clock
node
Signed-off-by: hzy <hzyitc@outlook.com>
---
arch/arm64/boot/dts/qcom/ipq5018.dtsi | 54 +++++++++++++++++++++++++++
1 file changed, 54 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/ipq5018.dtsi b/arch/arm64/boot/dts/qcom/ipq5018.dtsi
index 668a931c892e..1114a1134202 100644
--- a/arch/arm64/boot/dts/qcom/ipq5018.dtsi
+++ b/arch/arm64/boot/dts/qcom/ipq5018.dtsi
@@ -8,6 +8,7 @@
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/qcom,gcc-ipq5018.h>
#include <dt-bindings/reset/qcom,gcc-ipq5018.h>
+#include <dt-bindings/clock/qcom,apss-ipq.h>
/ {
#address-cells = <2>;
@@ -37,7 +38,11 @@
compatible = "arm,cortex-a53";
reg = <0x0>;
enable-method = "psci";
+ qcom,acc = <&acc0>;
next-level-cache = <&L2_0>;
+ clocks = <&apcs_glb APCS_ALIAS0_CORE_CLK>;
+ clock-names = "cpu";
+ operating-points-v2 = <&cpu_opp_table>;
};
CPU1: cpu@1 {
@@ -45,7 +50,11 @@
compatible = "arm,cortex-a53";
enable-method = "psci";
reg = <0x1>;
+ qcom,acc = <&acc1>;
next-level-cache = <&L2_0>;
+ clocks = <&apcs_glb APCS_ALIAS0_CORE_CLK>;
+ clock-names = "cpu";
+ operating-points-v2 = <&cpu_opp_table>;
};
L2_0: l2-cache {
@@ -54,6 +63,23 @@
};
};
+ cpu_opp_table: opp-table {
+ compatible = "operating-points-v2";
+ opp-shared;
+
+ opp-800000000 {
+ opp-hz = /bits/ 64 <800000000>;
+ opp-microvolt = <1100>;
+ clock-latency-ns = <200000>;
+ };
+
+ opp-1008000000 {
+ opp-hz = /bits/ 64 <1008000000>;
+ opp-microvolt = <1100>;
+ clock-latency-ns = <200000>;
+ };
+ };
+
pmuv8: pmu {
compatible = "arm,cortex-a53-pmu";
interrupts = <GIC_PPI 7 (GIC_CPU_MASK_SIMPLE(4) |
@@ -143,6 +169,34 @@
interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
};
+ apcs_glb: mailbox@b111000 {
+ compatible = "qcom,ipq5018-apcs-apps-global";
+ reg = <0x0b111000 0x1000>;
+ clocks = <&xo>, <&a53pll>;
+ clock-names = "xo", "pll";
+
+ #clock-cells = <1>;
+ #mbox-cells = <1>;
+ };
+
+ a53pll: clock@b116000 {
+ compatible = "qcom,ipq5018-a53pll";
+ reg = <0x0b116000 0x40>;
+ #clock-cells = <0>;
+ clocks = <&xo>;
+ clock-names = "xo";
+ };
+
+ acc0:clock-controller@b188000 {
+ compatible = "qcom,arm-cortex-acc";
+ reg = <0x0b188000 0x1000>;
+ };
+
+ acc1:clock-controller@b198000 {
+ compatible = "qcom,arm-cortex-acc";
+ reg = <0x0b198000 0x1000>;
+ };
+
timer {
compatible = "arm,armv8-timer";
interrupts = <GIC_PPI 2 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
--
2.25.1