]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
arm64: dts: qcom: qcm2290: Add LMH node
authorLoic Poulain <loic.poulain@linaro.org>
Sat, 9 Mar 2024 13:15:04 +0000 (14:15 +0100)
committerBjorn Andersson <andersson@kernel.org>
Mon, 18 Mar 2024 01:28:06 +0000 (20:28 -0500)
Add a node for the Limits Management Hardware to ensure it can be
configured by the operating system.

Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
[Konrad: add commit msg, rebase]
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20240308-topic-rb1_lmh-v2-3-bac3914b0fe3@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/qcm2290.dtsi

index 89beac833d43552197b88ac5b9d57c239a6bbb39..1aacad50e7fc9789ba6ae6906264431a9201f13c 100644 (file)
                        compatible = "qcom,qcm2290-cpufreq-hw", "qcom,cpufreq-hw";
                        reg = <0x0 0x0f521000 0x0 0x1000>;
                        reg-names = "freq-domain0";
-                       interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
+                       interrupts-extended = <&lmh_cluster 0>;
                        interrupt-names = "dcvsh-irq-0";
                        clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>, <&gcc GPLL0>;
                        clock-names = "xo", "alternate";
                        #freq-domain-cells = <1>;
                        #clock-cells = <1>;
                };
+
+               lmh_cluster: lmh@f550800 {
+                       compatible = "qcom,qcm2290-lmh", "qcom,sm8150-lmh";
+                       reg = <0x0 0x0f550800 0x0 0x400>;
+                       interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
+                       cpus = <&CPU0>;
+                       qcom,lmh-temp-arm-millicelsius = <65000>;
+                       qcom,lmh-temp-low-millicelsius = <94500>;
+                       qcom,lmh-temp-high-millicelsius = <95000>;
+                       interrupt-controller;
+                       #interrupt-cells = <1>;
+               };
        };
 
        thermal-zones {