Skip to content

rtc: isl12022: battery backup voltage and clock support

Rasmus Villemoes linux-devicetree linux-rtc lkml llvm oe-kbuild-all 3 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest8 patches 8 repliesApplied
  2. v28 patches 20 repliesSuperseded
  3. v18 patches 19 repliesSuperseded

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/8rtc: isl12022: remove wrong warning for low battery leveldrivers/rtc/rtc-isl12022.c+0 -60 replies
2/8dt-bindings: rtc: Move isil,isl12022 from trivial-rtc.yaml into own schema fileDocumentation/devicetree/bindings/rtc/intersil,isl12022.yaml Documentation/devicetree/bindings/rtc/trivial-rtc.yaml+45 -20 replies
3/8dt-bindings: rtc: isl12022: add bindings for battery alarm trip levelsDocumentation/devicetree/bindings/rtc/intersil,isl12022.yaml+9 -01 reply
4/8rtc: isl12022: add support for trip level DT bindingdrivers/rtc/rtc-isl12022.c+39 -02 replies
5/8rtc: isl12022: implement RTC_VL_READ ioctldrivers/rtc/rtc-isl12022.c+27 -00 replies
6/8rtc: isl12022: trigger battery level detection during probedrivers/rtc/rtc-isl12022.c+10 -00 replies
7/8dt-bindings: rtc: isl12022: add #clock-cells propertyDocumentation/devicetree/bindings/rtc/intersil,isl12022.yaml+10 -01 reply
8/8rtc: isl12022: implement support for the #clock-cells DT propertydrivers/rtc/rtc-isl12022.c+44 -00 replies

Reviews trailers per patch

3 of 8 patches have a Reviewed-by or Acked-by.

PatchKrzysztof Kozlowski
1/8
2/8R-b
3/8R-b
4/8
5/8
6/8
7/8R-b
8/8

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

Read the v3 thread

Cover letter [PATCH v3 0/8] rtc: isl12022: battery backup voltage and clock support

The current handling of the low-battery bits in the status register is wrong. The first six patches fix that and implement proper support for RTC_VL_READ.

The last two patches allow describing the isl12022 as a clock provider, for now just as a fixed 32kHz clock. They are also tangentially related to the backup battery, in that when the isl12022 is not used as a clock source, one can save some power consumption in battery mode by setting the FOx bits to 0.

v3 changes:

Patch 2: move the allOf block further down, add R-b [Krzysztof]

Patch 3: change to a single property with two values [Krzysztof]

Patch 4: adjust implementation accordingly

Patch 5: move initialization of 'user' variable inside switch case, use 'if (ret)' instead of 'if (ret < 0)' for consistency within the driver [Andy]

Patch 7: semantically identical to v2, just context changes due to changes in 2/8 and 3/8

Patch 8: only do the clock registration when CONFIG_COMMON_CLK [kernel test robot]

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

Rasmus Villemoes (8):
rtc: isl12022: remove wrong warning for low battery level
dt-bindings: rtc: Move isil,isl12022 from trivial-rtc.yaml into own
schema file
dt-bindings: rtc: isl12022: add bindings for battery alarm trip levels
rtc: isl12022: add support for trip level DT binding
rtc: isl12022: implement RTC_VL_READ ioctl
rtc: isl12022: trigger battery level detection during probe
dt-bindings: rtc: isl12022: add #clock-cells property
rtc: isl12022: implement support for the #clock-cells DT property

 .../bindings/rtc/intersil,isl12022.yaml       |  64 +++++++++
 .../devicetree/bindings/rtc/trivial-rtc.yaml  |   2 -
 drivers/rtc/rtc-isl12022.c                    | 126 +++++++++++++++++-
 3 files changed, 184 insertions(+), 8 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/rtc/intersil,isl12022.yaml
Signature · 1 line
2.37.2