[PATCH v4 0/3] BPi M2 Zero poweroff support via new regulator-poweroff driver

From: Michael Klein
Date: Wed Dec 09 2020 - 16:06:51 EST


Changes in v2:
- rename DT node

Changes in v3:
- add regulator-poweroff driver
- use regulator-poweroff driver instead of gpio-poweroff

Changes in v4:
- hardcode poweroff timeout to 3000ms, not configurable any more
- remove support for multiple regulators
- fix Documentation issues

Michael Klein (3):
power: reset: new driver regulator-poweroff
Documentation: DT: binding documentation for regulator-poweroff
ARM: dts: sun8i-h2-plus-bananapi-m2-zero: add poweroff node

.../power/reset/regulator-poweroff.yaml | 37 ++++++++
.../dts/sun8i-h2-plus-bananapi-m2-zero.dts | 5 ++
drivers/power/reset/Kconfig | 7 ++
drivers/power/reset/Makefile | 1 +
drivers/power/reset/regulator-poweroff.c | 86 +++++++++++++++++++
5 files changed, 136 insertions(+)
create mode 100644 Documentation/devicetree/bindings/power/reset/regulator-poweroff.yaml
create mode 100644 drivers/power/reset/regulator-poweroff.c

--
2.29.2