qcom-tsens.txt 1.5 KB

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