Skip to content

rtc: abx80x: add support for abx81x

Antoni Pokusinski linux-devicetree linux-rtc lkml sashiko-reviews 7 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. v7 Latest9 patches 3 repliesApplied
  2. v69 patches 2 repliesSuperseded
  3. v59 patches 2 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v49 patches0 repliesSuperseded
v38 patches5 repliesSuperseded
v28 patches5 repliesSuperseded
v16 patches7 repliesSuperseded

Changes in v7 from the cover letter

* PATCH 4 ("rtc: abx80x: properly handle shared IRQs")
- handle_irq: write status & ~status_flags_clear instead of ~status_flags_clear
- probe: setup watchdog right after register writes
* PATCH 6 ("rtc: abx80x: use regmap instead of I2C specific API")
- removed the return -EIO case
---

Patches in v7 Applied

#Subject and filesSizeRepliesApplied
1/9dt-bindings: rtc: abx80x: document ABX81X RTCsDocumentation/devicetree/bindings/rtc/abracon,abx80x.yaml+17 -10 replies
2/9rtc: abx80x: fix error check after i2c_smbus_read in read_alarm()drivers/rtc/rtc-abx80x.c+4 -20 replies
3/9rtc: abx80x: add mutex protection for register writesdrivers/rtc/rtc-abx80x.c+37 -80 replies
4/9rtc: abx80x: properly handle shared IRQsdrivers/rtc/rtc-abx80x.c+50 -21 reply
5/9rtc: abx80x: add irq to struct abx80x_privdrivers/rtc/rtc-abx80x.c+10 -70 replies
6/9rtc: abx80x: use regmap instead of I2C specific APIdrivers/rtc/Kconfig drivers/rtc/rtc-abx80x.c+213 -1830 replies
7/9rtc: abx80x: replace read-modify-write pattern with regmap helpersdrivers/rtc/rtc-abx80x.c+34 -1001 reply
8/9rtc: abx80x: create abx80x_i2c_probe()drivers/rtc/rtc-abx80x.c+106 -670 replies
9/9rtc: abx80x: add support for ABX81Xdrivers/rtc/Kconfig drivers/rtc/rtc-abx80x.c+115 -170 replies

Reviews trailers per patch

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

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

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

Read the v7 thread

Cover letter [PATCH v7 0/9] rtc: abx80x: add support for abx81x

Hello,
This patch series adds support for the ABX81X RTCs, which are essentially SPI versions of the ABX80X RTCs. The first patches (P2-P4) contain bug fixes (added after sashiko's review in v1-v5), then (P5-P8) we have some cleanup and reorganization changes (converting the driver to use the regmap API was needed for this), followed by the actual ABX81X support.

Kind regards,
Antoni Pokusinski

---
Changes since v6:
* PATCH 4 ("rtc: abx80x: properly handle shared IRQs")
- handle_irq: write status & ~status_flags_clear instead of ~status_flags_clear
- probe: setup watchdog right after register writes
* PATCH 6 ("rtc: abx80x: use regmap instead of I2C specific API")
- removed the return -EIO case
---
Changes since v5:
* PATCH 2 ("rtc: abx80x: fix error check after i2c_smbus_read in read_alarm()") Handle the case of 0<=err<7
* PATCH 4 ("rtc: abx80x: properly handle shared IRQs")
- probe: added missing configuration key unlock before writing REG_OSC
- handle_irq: fixed the value being written to REG_STATUS
* PATCH 6 ("rtc: abx80x: use regmap instead of I2C specific API") Changed the type of "flag" argument of "regmap_read()" from "int" to "unsigned int" in "set_time()"
Changes since v4:
None
Changes since v3:
* PATCH 2 ("rtc: abx80x: fix error check after i2c_smbus_read in read_alarm()") New patch
* PATCH 3 ("rtc: abx80x: add mutex protection for register writes") Replaced "guard()" with "scoped_guard()" in "abx80x_ioctl()"
* PATCH 4 ("rtc: abx80x: properly handle shared IRQs")
Disable all the unused interrupts in "probe()"
* PATCH 6 ("rtc: abx80x: use regmap instead of I2C specific API") Changed the type of "flag" arguments in "regmap_read()" from "int" to "unsigned int"
---
Changes since v2:
* dropped patch "rtc: abx80x: move part autodetection before RV1805 configuration"
* PATCH 2 ("rtc: abx80x: add mutex protection for register writes")
New patch
* PATCH 5 ("rtc: abx80x: use regmap instead of I2C specific API")
- return PTR_ERR(regmap) on I2C regmap init error
* PATCH 8 ("rtc: abx80x: add support for ABX81X")
- return PTR_ERR(regmap) on SPI regmap init error
---
Changes since v1:
* PATCH 1 ("dt-bindings: rtc: abx80x: document ABX81X RTCs")
- added missing "spi-peripherals-props" reference
- added abx815 compatible strings to the trickle charger enum list
* PATCH 2 ("rtc: abx80x: move part autodetection before RV1805 configuration") New patch
* PATCH 3 ("rtc: abx80x: properly handle shared IRQs")
New patch
* PATCH 5 ("rtc: abx80x: use regmap instead of I2C specific API")
- changed regmap_read() argument types from int to unsigned int
---

Antoni Pokusinski (9):
dt-bindings: rtc: abx80x: document ABX81X RTCs
rtc: abx80x: fix error check after i2c_smbus_read in read_alarm()
rtc: abx80x: add mutex protection for register writes
rtc: abx80x: properly handle shared IRQs
rtc: abx80x: add irq to struct abx80x_priv
rtc: abx80x: use regmap instead of I2C specific API
rtc: abx80x: replace read-modify-write pattern with regmap helpers
rtc: abx80x: create abx80x_i2c_probe()
rtc: abx80x: add support for ABX81X

 .../bindings/rtc/abracon,abx80x.yaml          |  18 +-
 drivers/rtc/Kconfig                           |  25 +-
 drivers/rtc/rtc-abx80x.c                      | 656 +++++++++++-------
 3 files changed, 449 insertions(+), 250 deletions(-)
Signature · 1 line
2.55.0