OSDN Git Service

arm64: dts: msm8916: thermal: Add "qcom,sensors" property
authorAmit Kucheria <amit.kucheria@linaro.org>
Thu, 6 Sep 2018 10:14:34 +0000 (15:44 +0530)
committerAndy Gross <andy.gross@linaro.org>
Wed, 14 Nov 2018 17:32:26 +0000 (09:32 -0800)
This new property allows the number of sensors to be configured from DT
instead of being hardcoded in platform data. Use it.

Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Acked-by: Andy Gross <andy.gross@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
arch/arm64/boot/dts/qcom/msm8916.dtsi

index 1bf19a2..2288826 100644 (file)
                              <0x4a8000 0x1000>; /* SROT */
                        nvmem-cells = <&tsens_caldata>, <&tsens_calsel>;
                        nvmem-cell-names = "calib", "calib_sel";
+                       #qcom,sensors = <5>;
                        #thermal-sensor-cells = <1>;
                };