mbox series

[v4,0/5] Add IPQ5332 TSENS support

Message ID 20230719104041.126718-1-quic_ipkumar@quicinc.com
Headers show
Series Add IPQ5332 TSENS support | expand

Message

Praveenkumar I July 19, 2023, 10:40 a.m. UTC
IPQ5332 uses tsens v2.3.3 IP with combined interrupt for
upper/lower and critical. IPQ5332 does not have RPM and
kernel has to take care of TSENS enablement and calibration.
This patch series adds the sensor enablement and calibration
support. On top, adds IPQ5332 TSENS support.

[v4]:
	Updated the [v3 1/5], named values used inside the init function
	and used FIELD_PREP() to update Sn_COVERSION data
[v3]:
	Renamed init function in [v2 1/5] and reordered device nodes
	according to the address in [v2 3/5]
[v2]:
	Dropped [v1 1/6] dt-bindings change and added nvmem-cell-names
	as part of [v2 2/5] ipq5332 dt-bindings

Praveenkumar I (5):
  thermal/drivers/tsens: Add TSENS enable and calibration support for V2
  dt-bindings: thermal: tsens: Add ipq5332 compatible
  arm64: dts: qcom: ipq5332: Add tsens node
  arm64: dts: qcom: ipq5332: Add thermal zone nodes
  thermal/drivers/tsens: Add IPQ5332 support

 .../bindings/thermal/qcom-tsens.yaml          |  12 ++
 arch/arm64/boot/dts/qcom/ipq5332.dtsi         | 144 +++++++++++++++
 drivers/thermal/qcom/tsens-v2.c               | 173 ++++++++++++++++++
 drivers/thermal/qcom/tsens.c                  |   5 +-
 drivers/thermal/qcom/tsens.h                  |   5 +-
 5 files changed, 337 insertions(+), 2 deletions(-)