1* QCOM SoC Temperature Sensor (TSENS)
2
3Required properties:
4- compatible:
5  Must be one of the following:
6    - "qcom,msm8916-tsens" (MSM8916)
7    - "qcom,msm8974-tsens" (MSM8974)
8    - "qcom,msm8996-tsens" (MSM8996)
9    - "qcom,qcs404-tsens", "qcom,tsens-v1" (QCS404)
10    - "qcom,msm8998-tsens", "qcom,tsens-v2" (MSM8998)
11    - "qcom,sdm845-tsens", "qcom,tsens-v2" (SDM845)
12  The generic "qcom,tsens-v2" property must be used as a fallback for any SoC
13  with version 2 of the TSENS IP. MSM8996 is the only exception because the
14  generic property did not exist when support was added.
15  Similarly, the generic "qcom,tsens-v1" property must be used as a fallback for
16  any SoC with version 1 of the TSENS IP.
17
18- reg: Address range of the thermal registers.
19  New platforms containing v2.x.y of the TSENS IP must specify the SROT and TM
20  register spaces separately, with order being TM before SROT.
21  See Example 2, below.
22
23- #thermal-sensor-cells : Should be 1. See ./thermal.txt for a description.
24- #qcom,sensors: Number of sensors in tsens block
25- Refer to Documentation/devicetree/bindings/nvmem/nvmem.txt to know how to specify
26nvmem cells
27
28Example 1 (legacy support before a fallback tsens-v2 property was introduced):
29tsens: thermal-sensor@900000 {
30		compatible = "qcom,msm8916-tsens";
31		reg = <0x4a8000 0x2000>;
32		nvmem-cells = <&tsens_caldata>, <&tsens_calsel>;
33		nvmem-cell-names = "caldata", "calsel";
34		#thermal-sensor-cells = <1>;
35	};
36
37Example 2 (for any platform containing v2 of the TSENS IP):
38tsens0: thermal-sensor@c263000 {
39		compatible = "qcom,sdm845-tsens", "qcom,tsens-v2";
40		reg = <0xc263000 0x1ff>, /* TM */
41			<0xc222000 0x1ff>; /* SROT */
42		#qcom,sensors = <13>;
43		#thermal-sensor-cells = <1>;
44	};
45
46Example 3 (for any platform containing v1 of the TSENS IP):
47tsens: thermal-sensor@4a9000 {
48		compatible = "qcom,qcs404-tsens", "qcom,tsens-v1";
49		reg = <0x004a9000 0x1000>, /* TM */
50		      <0x004a8000 0x1000>; /* SROT */
51		nvmem-cells = <&tsens_caldata>;
52		nvmem-cell-names = "calib";
53		#qcom,sensors = <10>;
54		#thermal-sensor-cells = <1>;
55	};
56