lede/target/linux/ipq807x/patches-5.15/0135-arm64-dts-ipq8074-add-CPU-clock-and-regulator.patch
2022-09-13 10:45:32 +08:00

67 lines
1.7 KiB
Diff

From c8cda381dfd1fd083d6d2f56f71d33144c042a43 Mon Sep 17 00:00:00 2001
From: Robert Marko <robimarko@gmail.com>
Date: Fri, 31 Dec 2021 17:56:14 +0100
Subject: [PATCH] arm64: dts: ipq8074: add CPU clock and regulator
Now that we have drivers for both the CPU voltage regulator and clock
controller, add the required DT properties to CPU cores.
OPP tables are not added as they are different for the IPQ8072/4/6/8 and
IPQ8070/1 SoC-s
Signed-off-by: Robert Marko <robimarko@gmail.com>
---
arch/arm64/boot/dts/qcom/ipq8074.dtsi | 13 +++++++++++++
1 file changed, 13 insertions(+)
--- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi
+++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi
@@ -4,6 +4,7 @@
*/
#include <dt-bindings/interrupt-controller/arm-gic.h>
+#include <dt-bindings/clock/qcom,apss-ipq8074.h>
#include <dt-bindings/clock/qcom,gcc-ipq8074.h>
#include <dt-bindings/spmi/spmi.h>
@@ -35,6 +36,9 @@
reg = <0x0>;
next-level-cache = <&L2_0>;
enable-method = "psci";
+ clocks = <&apcs_glb APCS_ALIAS0_CORE_CLK>;
+ clock-names = "cpu";
+ cpu-supply = <&s3>;
};
CPU1: cpu@1 {
@@ -43,6 +47,9 @@
enable-method = "psci";
reg = <0x1>;
next-level-cache = <&L2_0>;
+ clocks = <&apcs_glb APCS_ALIAS0_CORE_CLK>;
+ clock-names = "cpu";
+ cpu-supply = <&s3>;
};
CPU2: cpu@2 {
@@ -51,6 +58,9 @@
enable-method = "psci";
reg = <0x2>;
next-level-cache = <&L2_0>;
+ clocks = <&apcs_glb APCS_ALIAS0_CORE_CLK>;
+ clock-names = "cpu";
+ cpu-supply = <&s3>;
};
CPU3: cpu@3 {
@@ -59,6 +69,9 @@
enable-method = "psci";
reg = <0x3>;
next-level-cache = <&L2_0>;
+ clocks = <&apcs_glb APCS_ALIAS0_CORE_CLK>;
+ clock-names = "cpu";
+ cpu-supply = <&s3>;
};
L2_0: l2-cache {