]> www.infradead.org Git - linux.git/commitdiff
arm64: dts: qcom: x1e80100: Add BWMONs
authorSibi Sankar <quic_sibis@quicinc.com>
Mon, 24 Jun 2024 09:22:14 +0000 (14:52 +0530)
committerBjorn Andersson <andersson@kernel.org>
Wed, 26 Jun 2024 04:22:51 +0000 (23:22 -0500)
Add the CPU and LLCC BWMONs on X1E80100 SoCs.

Tested-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Sibi Sankar <quic_sibis@quicinc.com>
Link: https://lore.kernel.org/r/20240624092214.146935-5-quic_sibis@quicinc.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/x1e80100.dtsi

index 09fd6c8e53bbfb8c204a0678d3c44122c77b1583..8b3c35136153bb56d10a2ad5646cf35827e79038 100644 (file)
                        };
                };
 
+               pmu@24091000 {
+                       compatible = "qcom,x1e80100-llcc-bwmon", "qcom,sc7280-llcc-bwmon";
+                       reg = <0 0x24091000 0 0x1000>;
+
+                       interrupts = <GIC_SPI 81 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 = <800000>;
+                               };
+
+                               opp-1 {
+                                       opp-peak-kBps = <2188000>;
+                               };
+
+                               opp-2 {
+                                       opp-peak-kBps = <3072000>;
+                               };
+
+                               opp-3 {
+                                       opp-peak-kBps = <6220800>;
+                               };
+
+                               opp-4 {
+                                       opp-peak-kBps = <6835200>;
+                               };
+
+                               opp-5 {
+                                       opp-peak-kBps = <8371200>;
+                               };
+
+                               opp-6 {
+                                       opp-peak-kBps = <10944000>;
+                               };
+
+                               opp-7 {
+                                       opp-peak-kBps = <12748800>;
+                               };
+
+                               opp-8 {
+                                       opp-peak-kBps = <14745600>;
+                               };
+
+                               opp-9 {
+                                       opp-peak-kBps = <16896000>;
+                               };
+                       };
+               };
+
+               /* cluster0 */
+               pmu@240b3400 {
+                       compatible = "qcom,x1e80100-cpu-bwmon", "qcom,sdm845-bwmon";
+                       reg = <0 0x240b3400 0 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 = <4800000>;
+                               };
+
+                               opp-1 {
+                                       opp-peak-kBps = <7464000>;
+                               };
+
+                               opp-2 {
+                                       opp-peak-kBps = <9600000>;
+                               };
+
+                               opp-3 {
+                                       opp-peak-kBps = <12896000>;
+                               };
+
+                               opp-4 {
+                                       opp-peak-kBps = <14928000>;
+                               };
+
+                               opp-5 {
+                                       opp-peak-kBps = <17064000>;
+                               };
+                       };
+               };
+
+               /* cluster2 */
+               pmu@240b5400 {
+                       compatible = "qcom,x1e80100-cpu-bwmon", "qcom,sdm845-bwmon";
+                       reg = <0 0x240b5400 0 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>;
+               };
+
+               /* cluster1 */
+               pmu@240b6400 {
+                       compatible = "qcom,x1e80100-cpu-bwmon", "qcom,sdm845-bwmon";
+                       reg = <0 0x240b6400 0 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>;
+               };
+
                system-cache-controller@25000000 {
                        compatible = "qcom,x1e80100-llcc";
                        reg = <0 0x25000000 0 0x200000>,