[PATCH v8 0/6] Support ROHM BD9576MUF and BD9573MUF PMICs

From: Matti Vaittinen
Date: Thu Feb 11 2021 - 04:51:46 EST


Initial support for ROHM BD9576MUF and BD9573MUF PMICs.

These PMICs are primarily intended to be used to power the R-Car family
processors. BD9576MUF includes some additional safety features the
BD9573MUF does not have. This initial version of drivers provides
temperature, over voltage and under voltage warnings is IRQ information
is passed via DT.

This patch series includes MFD and watchdog drivers. Regulator part was
already applied.

This series brings in the IRQ support which will be utilized by the
regulator driver(s). The regulator part was splitted in own series as it
contains some changes to drivers which are not yet in other trees.

WDG supports
- Enabling and pinging the watchdog
- configuring watchog timeout / window from device-tree

Please note that not all of the boards are expected to be utilizing the
warning IRQs. Thus populating the IRQ information from DT is optional.

Changelog v8:
- Drop regulator driver changes which are covered by the separate RFC series.
- Renamed regulator driver cell. Regulator driver change will be
brought in in the RFC series to avoid conflicts.
- Add patch introducing register definitions required by the regulator RFC
series.
- Cleaned comments at MFD as was suggested by Lee
- Do not abort MFD probe if IRQ information for BD9573 is populated
- MFD driver/header styling

Changelog v7:
- Added interrupt handling
- Added notifications and error_flag getter to regulators

Changelog v6:
- Fixed watchdog timeout

Changelog v5:
- rebased on top of v5.10-rc2
- few styling fixes in MFD as suggested by Lee

Changelog v4:
- rebased on top of 5.10-rc1
- Fix typo (repeated word maximum) from the DT binding doc

Changelog v3:
- use only one binding to specify watchdog time-out window.

Changelog v2:
- dropped already applied regulator part
- dt_bindings: Fix case for regulator-names in the example
- watchdod: unify probe error check and revise includes

---


Matti Vaittinen (6):
dt_bindings: mfd: Add ROHM BD9576MUF and BD9573MUF PMICs
mfd: Support ROHM BD9576MUF and BD9573MUF
mfd: bd9576: Add IRQ support
wdt: Support wdt on ROHM BD9576MUF and BD9573MUF
MAINTAINERS: Add ROHM BD9576MUF and BD9573MUF drivers
mfd: bd9576: Add safety limit/monitoring registers

.../bindings/mfd/rohm,bd9576-pmic.yaml | 123 ++++++++
MAINTAINERS | 4 +
drivers/mfd/Kconfig | 11 +
drivers/mfd/Makefile | 1 +
drivers/mfd/rohm-bd9576.c | 187 +++++++++++
drivers/watchdog/Kconfig | 13 +
drivers/watchdog/Makefile | 1 +
drivers/watchdog/bd9576_wdt.c | 291 ++++++++++++++++++
include/linux/mfd/rohm-bd957x.h | 140 +++++++++
include/linux/mfd/rohm-generic.h | 2 +
10 files changed, 773 insertions(+)
create mode 100644 Documentation/devicetree/bindings/mfd/rohm,bd9576-pmic.yaml
create mode 100644 drivers/mfd/rohm-bd9576.c
create mode 100644 drivers/watchdog/bd9576_wdt.c
create mode 100644 include/linux/mfd/rohm-bd957x.h

--
2.25.4


--
Matti Vaittinen, Linux device drivers
ROHM Semiconductors, Finland SWDC
Kiviharjunlenkki 1E
90220 OULU
FINLAND

~~~ "I don't think so," said Rene Descartes. Just then he vanished ~~~
Simon says - in Latin please.
~~~ "non cogito me" dixit Rene Descarte, deinde evanescavit ~~~
Thanks to Simon Glass for the translation =]