arm64: dts: qcom: sa8775p: add cpufreq node
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 21 Feb 2023 15:05:43 +0000 (16:05 +0100)
committerBjorn Andersson <andersson@kernel.org>
Wed, 15 Mar 2023 02:30:48 +0000 (19:30 -0700)
Add a node for the cpufreq engine and specify the frequency domains for
all CPUs.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230221150543.283487-3-brgl@bgdev.pl
arch/arm64/boot/dts/qcom/sa8775p.dtsi

index 565c1376073efeac37294b6192b9f42b0a6e891e..dc21e8450058551816ac68b430bd6a3ceb7b85ce 100644 (file)
@@ -37,6 +37,7 @@
                        compatible = "qcom,kryo";
                        reg = <0x0 0x0>;
                        enable-method = "psci";
+                       qcom,freq-domain = <&cpufreq_hw 0>;
                        next-level-cache = <&L2_0>;
                        L2_0: l2-cache {
                                compatible = "cache";
@@ -52,6 +53,7 @@
                        compatible = "qcom,kryo";
                        reg = <0x0 0x100>;
                        enable-method = "psci";
+                       qcom,freq-domain = <&cpufreq_hw 0>;
                        next-level-cache = <&L2_1>;
                        L2_1: l2-cache {
                                compatible = "cache";
@@ -64,6 +66,7 @@
                        compatible = "qcom,kryo";
                        reg = <0x0 0x200>;
                        enable-method = "psci";
+                       qcom,freq-domain = <&cpufreq_hw 0>;
                        next-level-cache = <&L2_2>;
                        L2_2: l2-cache {
                                compatible = "cache";
@@ -76,6 +79,7 @@
                        compatible = "qcom,kryo";
                        reg = <0x0 0x300>;
                        enable-method = "psci";
+                       qcom,freq-domain = <&cpufreq_hw 0>;
                        next-level-cache = <&L2_3>;
                        L2_3: l2-cache {
                                compatible = "cache";
@@ -88,6 +92,7 @@
                        compatible = "qcom,kryo";
                        reg = <0x0 0x10000>;
                        enable-method = "psci";
+                       qcom,freq-domain = <&cpufreq_hw 1>;
                        next-level-cache = <&L2_4>;
                        L2_4: l2-cache {
                                compatible = "cache";
                        compatible = "qcom,kryo";
                        reg = <0x0 0x10100>;
                        enable-method = "psci";
+                       qcom,freq-domain = <&cpufreq_hw 1>;
                        next-level-cache = <&L2_5>;
                        L2_5: l2-cache {
                                compatible = "cache";
                        compatible = "qcom,kryo";
                        reg = <0x0 0x10200>;
                        enable-method = "psci";
+                       qcom,freq-domain = <&cpufreq_hw 1>;
                        next-level-cache = <&L2_6>;
                        L2_6: l2-cache {
                                compatible = "cache";
                        compatible = "qcom,kryo";
                        reg = <0x0 0x10300>;
                        enable-method = "psci";
+                       qcom,freq-domain = <&cpufreq_hw 1>;
                        next-level-cache = <&L2_7>;
                        L2_7: l2-cache {
                                compatible = "cache";
                        #hwlock-cells = <1>;
                };
 
+               cpufreq_hw: cpufreq@18591000 {
+                       compatible = "qcom,sa8775p-cpufreq-epss",
+                                    "qcom,cpufreq-epss";
+                       reg = <0x0 0x18591000 0x0 0x1000>,
+                             <0x0 0x18593000 0x0 0x1000>;
+                       reg-names = "freq-domain0", "freq-domain1";
+
+                       clocks = <&rpmhcc RPMH_CXO_CLK>, <&gcc GCC_GPLL0>;
+                       clock-names = "xo", "alternate";
+
+                       #freq-domain-cells = <1>;
+               };
+
                tlmm: pinctrl@f000000 {
                        compatible = "qcom,sa8775p-tlmm";
                        reg = <0x0 0xf000000 0x0 0x1000000>;