Skip to content

mfd: tps65219: Let a board run past the warm threshold

Chrispine Tinega linux-devicetree linux-omap lkml mfd 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 1 replyIn review
  2. v13 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- Patch 1: add the Fixes: tag. (Sashiko)
- Patch 2: the binding no longer says the operating system reacts to the warning, since nothing does today. Mark's Reviewed-by added.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mfd: tps65219: Correct the MASK_EFFECT field of MASK_CONFIGinclude/linux/mfd/tps65219.h+1 -10 replies
2/3regulator: dt-bindings: ti,tps65219: Add ti,no-warm-shutdownDocumentation/devicetree/bindings/regulator/ti,tps65219.yaml+10 -01 reply
3/3mfd: tps65219: Keep running past the warm threshold when askeddrivers/mfd/tps65219.c include/linux/mfd/tps65219.h+20 -10 replies

Reviews trailers per patch

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

PatchMark BrownKrzysztof Kozlowski
1/3
2/3R-b R-b
3/3

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

Read the v2 thread

Cover letter [PATCH v2 0/3] mfd: tps65219: Let a board run past the warm threshold

The TPS65219 has four die temperature sensors, each with a warm and a hot threshold. With a sensor's warm warning unmasked, the PMIC sequences all its outputs down at the warm threshold, 110 to 130 C. With all four masked, it only reports the warning and powers off at the hot threshold, 130 to 150 C. The masks come from NVM, so a board that wants the second behaviour has to set them on every boot.

The BLIIoT ARMxy BL350, an AM6254 industrial controller rated to 85 C ambient, ships a vendor kernel that does this from a devicetree flag. This series adds a binding for it and the driver code, and corrects the MASK_EFFECT macro on the way: it named bits 2:1 of MASK_CONFIG, which are warm masks, instead of bits 6:5. Nothing used it yet.

The property is limited to the TPS65219. I have not checked the MASK_CONFIG layout of the TPS65214 and TPS65215.

This series is build-tested for arm64 with W=1, and dt_binding_check passes. It has not run on a board in this form. On a BL350, the vendor's equivalent code sets the same four bits, and the PMIC reads MASK_CONFIG = 0xef.

A runtime override, for a user who wants the PMIC to shut down at the warm threshold anyway, is left for a follow-up once someone needs it.

Changes in v2:
- Patch 1: add the Fixes: tag. (Sashiko)
- Patch 2: the binding no longer says the operating system reacts to the warning, since nothing does today. Mark's Reviewed-by added.

v1: https://lore.kernel.org/all/[email protected]/

Chrispine Tinega (3):
mfd: tps65219: Correct the MASK_EFFECT field of MASK_CONFIG
regulator: dt-bindings: ti,tps65219: Add ti,no-warm-shutdown
mfd: tps65219: Keep running past the warm threshold when asked

 .../bindings/regulator/ti,tps65219.yaml           | 10 ++++++++++
 drivers/mfd/tps65219.c                            | 15 +++++++++++++++
 include/linux/mfd/tps65219.h                      |  8 ++++++--
 3 files changed, 31 insertions(+), 2 deletions(-)

base-commit: c92739a23a80f5f0a7c6f3c10aa792102d252ac4

Signature · 1 line
2.53.0