Skip to content

Add Nuvoton MA35D1 thermal sensor support

Zi-Yu Chen linux-arm-kernel linux-devicetree linux-pm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4dt-bindings: reset: nuvoton,ma35d1-reset: Add #thermal-sensor-cellsDocumentation/devicetree/bindings/reset/nuvoton,ma35d1-reset.yaml+10 -31 reply
2/4reset: ma35d1: Register auxiliary device for the temperature sensordrivers/reset/Kconfig drivers/reset/reset-ma35d1.c+11 -10 replies
3/4thermal/drivers/ma35d1: Add Nuvoton MA35D1 thermal sensor driverdrivers/thermal/Kconfig drivers/thermal/Makefile drivers/thermal/ma35d1_thermal.c+161 -02 replies
4/4arm64: dts: nuvoton: ma35d1: Add thermal zonearch/arm64/boot/dts/nuvoton/ma35d1.dtsi+16 -00 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchKrzysztof Kozlowski
1/4R-b
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] Add Nuvoton MA35D1 thermal sensor support

This series adds support for the on-chip temperature sensor of the Nuvoton MA35D1 SoC.

The sensor has no register region of its own; it is controlled through a single register in the system management (SYS) block, which is already described in DT and bound to the MA35D1 reset driver. Rather than adding a child node that would only exist to instantiate a driver, the SYS node is made the thermal sensor provider, and the reset driver creates an auxiliary device that the thermal driver binds to.

Patch 1 documents #thermal-sensor-cells for the SYS node, patch 2 makes the reset driver create the auxiliary device, patch 3 adds the thermal driver and patch 4 adds the thermal zone to the SoC dtsi.

Tested on the MA35D1-SOM board.

Zi-Yu Chen (4):
dt-bindings: reset: nuvoton,ma35d1-reset: Add #thermal-sensor-cells
reset: ma35d1: Register auxiliary device for the temperature sensor thermal/drivers/ma35d1: Add Nuvoton MA35D1 thermal sensor driver
arm64: dts: nuvoton: ma35d1: Add thermal zone

 .../bindings/reset/nuvoton,ma35d1-reset.yaml  |  13 +-
 arch/arm64/boot/dts/nuvoton/ma35d1.dtsi       |  16 ++
 drivers/reset/Kconfig                         |   1 +
 drivers/reset/reset-ma35d1.c                  |  11 +-
 drivers/thermal/Kconfig                       |  11 ++
 drivers/thermal/Makefile                      |   1 +
 drivers/thermal/ma35d1_thermal.c              | 149 ++++++++++++++++++
 7 files changed, 198 insertions(+), 4 deletions(-)
 create mode 100644 drivers/thermal/ma35d1_thermal.c
Signature · 1 line
2.34.1