]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: qcom: sa8775p: Add CPU and LLCC BWMON
authorTengfei Fan <quic_tengfan@quicinc.com>
Tue, 30 Jul 2024 07:16:11 +0000 (15:16 +0800)
committerBjorn Andersson <andersson@kernel.org>
Thu, 15 Aug 2024 02:44:52 +0000 (21:44 -0500)
Add CPU and LLCC BWMON nodes and their corresponding opp tables for
SA8775p SoC.
SA8775p has two cpu clusters, with each cluster having a set of
CPU-to-LLCC BWMON registers. Consequently, there are two sets of
CPU-to-LLCC registers.

Signed-off-by: Tengfei Fan <quic_tengfan@quicinc.com>
Link: https://lore.kernel.org/r/20240730-add_sa8775p_bwmon-v1-2-f4f878da29ae@quicinc.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/sa8775p.dtsi

index 602e20d5f1f787e010771ca96d5781ff34f1b761..85e9dd68fcf85e23be72a4ca961cd65fce13cd21 100644 (file)
                        status = "disabled";
                };
 
+               pmu@9091000 {
+                       compatible = "qcom,sa8775p-llcc-bwmon", "qcom,sc7280-llcc-bwmon";
+                       reg = <0x0 0x9091000 0x0 0x1000>;
+                       interrupts = <GIC_SPI 620 IRQ_TYPE_LEVEL_HIGH>;
+                       interconnects = <&mc_virt MASTER_LLCC QCOM_ICC_TAG_ACTIVE_ONLY
+                                        &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ACTIVE_ONLY>;
+
+                       operating-points-v2 = <&llcc_bwmon_opp_table>;
+
+                       llcc_bwmon_opp_table: opp-table {
+                               compatible = "operating-points-v2";
+
+                               opp-0 {
+                                       opp-peak-kBps = <762000>;
+                               };
+
+                               opp-1 {
+                                       opp-peak-kBps = <1720000>;
+                               };
+
+                               opp-2 {
+                                       opp-peak-kBps = <2086000>;
+                               };
+
+                               opp-3 {
+                                       opp-peak-kBps = <2601000>;
+                               };
+
+                               opp-4 {
+                                       opp-peak-kBps = <2929000>;
+                               };
+
+                               opp-5 {
+                                       opp-peak-kBps = <5931000>;
+                               };
+
+                               opp-6 {
+                                       opp-peak-kBps = <6515000>;
+                               };
+
+                               opp-7 {
+                                       opp-peak-kBps = <7984000>;
+                               };
+
+                               opp-8 {
+                                       opp-peak-kBps = <10437000>;
+                               };
+
+                               opp-9 {
+                                       opp-peak-kBps = <12195000>;
+                               };
+                       };
+               };
+
+               pmu@90b5400 {
+                       compatible = "qcom,sa8775p-cpu-bwmon", "qcom,sdm845-bwmon";
+                       reg = <0x0 0x90b5400 0x0 0x600>;
+                       interrupts = <GIC_SPI 581 IRQ_TYPE_LEVEL_HIGH>;
+                       interconnects = <&gem_noc MASTER_APPSS_PROC QCOM_ICC_TAG_ACTIVE_ONLY
+                                        &gem_noc SLAVE_LLCC QCOM_ICC_TAG_ACTIVE_ONLY>;
+
+                       operating-points-v2 = <&cpu_bwmon_opp_table>;
+
+                       cpu_bwmon_opp_table: opp-table {
+                               compatible = "operating-points-v2";
+
+                               opp-0 {
+                                       opp-peak-kBps = <9155000>;
+                               };
+
+                               opp-1 {
+                                       opp-peak-kBps = <12298000>;
+                               };
+
+                               opp-2 {
+                                       opp-peak-kBps = <14236000>;
+                               };
+
+                               opp-3 {
+                                       opp-peak-kBps = <16265000>;
+                               };
+                       };
+
+               };
+
+               pmu@90b6400 {
+                       compatible = "qcom,sa8775p-cpu-bwmon", "qcom,sdm845-bwmon";
+                       reg = <0x0 0x90b6400 0x0 0x600>;
+                       interrupts = <GIC_SPI 581 IRQ_TYPE_LEVEL_HIGH>;
+                       interconnects = <&gem_noc MASTER_APPSS_PROC QCOM_ICC_TAG_ACTIVE_ONLY
+                                        &gem_noc SLAVE_LLCC QCOM_ICC_TAG_ACTIVE_ONLY>;
+
+                       operating-points-v2 = <&cpu_bwmon_opp_table>;
+               };
+
                llcc: system-cache-controller@9200000 {
                        compatible = "qcom,sa8775p-llcc";
                        reg = <0x0 0x09200000 0x0 0x80000>,