[PATCH v5 1/3] power: reset: new driver regulator-poweroff

2020-12-11 Thread Michael Klein
This driver registers a pm_power_off function to turn off the board by force-disabling a devicetree-defined regulator. Signed-off-by: Michael Klein --- drivers/power/reset/Kconfig | 7 ++ drivers/power/reset/Makefile | 1 + drivers/power/reset/regulator-poweroff.c

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

2020-12-11 Thread Michael Klein
Changes in v5: - rename DT property 'power-supply' -> 'cpu-supply' 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 ..

[PATCH v5 3/3] ARM: dts: sun8i-h2-plus-bananapi-m2-zero: add poweroff node

2020-12-11 Thread Michael Klein
Add add devicetree information for the regulator-poweroff driver. Signed-off-by: Michael Klein --- arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts b/arch/arm/boot/dts/sun8i-h2

[PATCH v5 2/3] Documentation: DT: binding documentation for regulator-poweroff

2020-12-11 Thread Michael Klein
Add devicetree binding documentation for regulator-poweroff driver. Signed-off-by: Michael Klein --- .../power/reset/regulator-poweroff.yaml | 37 +++ 1 file changed, 37 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/reset/regulator

[PATCH v4 2/3] Documentation: DT: binding documentation for regulator-poweroff

2020-12-09 Thread Michael Klein
Add devicetree binding documentation for regulator-poweroff driver. Signed-off-by: Michael Klein --- .../power/reset/regulator-poweroff.yaml | 37 +++ 1 file changed, 37 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/reset/regulator

[PATCH v4 1/3] power: reset: new driver regulator-poweroff

2020-12-09 Thread Michael Klein
This driver registers a pm_power_off function to disable a set of regulators defined in the devicetree to turn off the board. Signed-off-by: Michael Klein --- drivers/power/reset/Kconfig | 7 ++ drivers/power/reset/Makefile | 1 + drivers/power/reset/regulator

[PATCH v4 3/3] ARM: dts: sun8i-h2-plus-bananapi-m2-zero: add poweroff node

2020-12-09 Thread Michael Klein
Add add devicetree information for the regulator-poweroff driver. Signed-off-by: Michael Klein --- This patch depends on the regulator names added in arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h2-plus

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

2020-12-09 Thread Michael Klein
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

Re: [PATCH v3 1/3] power: reset: new driver regulator-poweroff

2020-12-09 Thread Michael Klein
On Tue, Dec 08, 2020 at 11:10:52AM +0100, Maxime Ripard wrote: On Mon, Dec 07, 2020 at 03:27:54PM +0100, Michael Klein wrote: This driver registers a pm_power_off function to disable a set of regulators defined in the devicetree to turn off the board. Signed-off-by: Michael Klein --- drivers

Re: [PATCH v3 2/3] Documentation: DT: binding documentation for regulator-poweroff

2020-12-08 Thread Michael Klein
Thanks for reviewing! On Tue, Dec 08, 2020 at 11:13:58AM +0100, Maxime Ripard wrote: On Mon, Dec 07, 2020 at 03:27:55PM +0100, Michael Klein wrote: Add devicetree binding documentation for regulator-poweroff driver. Signed-off-by: Michael Klein --- .../power/reset/regulator-poweroff.yaml

[PATCH v3 1/3] power: reset: new driver regulator-poweroff

2020-12-07 Thread Michael Klein
This driver registers a pm_power_off function to disable a set of regulators defined in the devicetree to turn off the board. Signed-off-by: Michael Klein --- drivers/power/reset/Kconfig | 7 ++ drivers/power/reset/Makefile | 1 + drivers/power/reset/regulator

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

2020-12-07 Thread Michael Klein
Changes in v2: - rename DT node Changes in v3: - add regulator-poweroff driver - use regulator-poweroff driver instead of gpio-poweroff Michael Klein (3): power: reset: new driver regulator-poweroff Documentation: DT: binding documentation for regulator-poweroff ARM: dts: sun8i-h2

[PATCH v3 2/3] Documentation: DT: binding documentation for regulator-poweroff

2020-12-07 Thread Michael Klein
Add devicetree binding documentation for regulator-poweroff driver. Signed-off-by: Michael Klein --- .../power/reset/regulator-poweroff.yaml | 53 +++ 1 file changed, 53 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/reset/regulator

[PATCH v3 3/3] ARM: dts: sun8i-h2-plus-bananapi-m2-zero: add poweroff node

2020-12-07 Thread Michael Klein
Add add devicetree information for the regulator-poweroff driver. Signed-off-by: Michael Klein --- This patch depends on the regulator names added in https://lore.kernel.org/linux-arm-kernel/20201130183841.136708-1-mich...@fossekall.de/ arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts | 7

[PATCH] ARM: dts: sun6i-a31s-sinovoip-bpi-m2: add gpio-line-names

2020-12-02 Thread Michael Klein
Add gpio-line-names as documented on gitbooks [1] and in the schematics [2]. [1]: https://bananapi.gitbook.io/bpi-m2/en/bpi-m2_gpio_pin_define [2]: https://drive.google.com/file/d/0B4PAo2nW2KfnRERWNnJGSGxJbmM/view Signed-off-by: Michael Klein --- .../boot/dts/sun6i-a31s-sinovoip-bpi-m2.dts

[PATCH] ARM: dts: sun8i-h2-plus-bananapi-m2-zero: add regulator nodes vcc-dram and vcc1v2

2020-11-30 Thread Michael Klein
Add regulator nodes vcc-dram and vcc1v2 to the devicetree. These regulators correspond to U4 and U5 in the schematics: http://forum.banana-pi.org/t/bpi-m2-zero-schematic-diagram-public/4111 Signed-off-by: Michael Klein --- .../dts/sun8i-h2-plus-bananapi-m2-zero.dts| 24

[PATCH v2 2/3] mfd: si476x-core.h: fix "regulator" spelling in comment

2020-11-27 Thread Michael Klein
"regualtor" -> "regulator" Signed-off-by: Michael Klein --- Changes in v2: - split patch - make subject line more forthcoming include/linux/mfd/si476x-core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/mfd/si476x-core.h b/i

[PATCH v2 3/3] mfd: da9055: fix "REGULATOR" spelling in register content macro

2020-11-27 Thread Michael Klein
"REGUALTOR" -> "REGULATOR" Signed-off-by: Michael Klein --- Changes in v2: - split patch - make subject line more forthcoming drivers/regulator/da9055-regulator.c | 4 ++-- include/linux/mfd/da9055/reg.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-

[PATCH v2 1/3] Documentation: mcp16502-regulator: fix spelling mistake

2020-11-27 Thread Michael Klein
Signed-off-by: Michael Klein --- No changes in v2 .../devicetree/bindings/regulator/mcp16502-regulator.txt| 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/regulator/mcp16502-regulator.txt b/Documentation/devicetree/bindings

Re: [PATCH v2] ARM: dts: sun8i-h2-plus-bananapi-m2-zero: add poweroff node to DT

2020-11-24 Thread Michael Klein
On Tue, Nov 24, 2020 at 03:26:56PM +0100, Maxime Ripard wrote: On Tue, Nov 24, 2020 at 02:36:33PM +0100, Michael Klein wrote: Add poweroff node to allow the board to power itself off after shutdown by disabling the SYSTEM and CPUX regulators (U5 resp. U6). The RST button can be used to restart

[PATCH 0/2] Fix spelling of "regulator"

2020-11-24 Thread Michael Klein
Michael Klein (2): Documentation: mcp16502-regulator: fix spelling mistake mfd: fix spelling mistakes .../devicetree/bindings/regulator/mcp16502-regulator.txt | 2 +- drivers/regulator/da9055-regulator.c | 4 ++-- include/linux/mfd/da9055/reg.h

[PATCH 1/2] Documentation: mcp16502-regulator: fix spelling mistake

2020-11-24 Thread Michael Klein
Signed-off-by: Michael Klein --- .../devicetree/bindings/regulator/mcp16502-regulator.txt| 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/regulator/mcp16502-regulator.txt b/Documentation/devicetree/bindings/regulator/mcp16502

[PATCH 2/2] mfd: fix spelling mistakes

2020-11-24 Thread Michael Klein
Signed-off-by: Michael Klein --- drivers/regulator/da9055-regulator.c | 4 ++-- include/linux/mfd/da9055/reg.h | 4 ++-- include/linux/mfd/si476x-core.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/regulator/da9055-regulator.c b/drivers/regulator

[PATCH v2] ARM: dts: sun8i-h2-plus-bananapi-m2-zero: add poweroff node to DT

2020-11-24 Thread Michael Klein
Add poweroff node to allow the board to power itself off after shutdown by disabling the SYSTEM and CPUX regulators (U5 resp. U6). The RST button can be used to restart the board. Signed-off-by: Michael Klein --- arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts | 5 + 1 file changed, 5

[PATCH] ARM: dts: sun8i-h2-plus-bananapi-m2-zero: add gpio-poweroff to DT

2020-11-23 Thread Michael Klein
Add gpio-poweroff node to allow the board to power itself off after shutdown by disabling the SYSTEM and CPUX regulators (U5 resp. U6). The RST button can be used to restart the board. Signed-off-by: Michael Klein --- arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts | 5 + 1 file

[PATCH v2] ARM: dts: sun8i-h2-plus-bananapi-m2-zero: add gpio-line-names

2020-11-23 Thread Michael Klein
Add gpio-line-names as documented in the Banana Pi wiki [1] and in the schematics [2]. [1]: http://wiki.banana-pi.org/Banana_Pi_BPI-M2_ZERO#GPIO_PIN_define [2]: https://drive.google.com/file/d/0B4PAo2nW2KfnMW5sVkxWSW9qa28/view Signed-off-by: Michael Klein --- .../dts/sun8i-h2-plus-bananapi-m2

Re: [PATCH] ARM: dts: sun8i-h2-plus-bananapi-m2-zero: add gpio-line-names

2020-11-23 Thread Michael Klein
On Mon, Nov 23, 2020 at 12:39:07PM +0800, Chen-Yu Tsai wrote: On Sat, Nov 21, 2020 at 2:28 AM Michael Klein wrote: Thank you for having a look at the patch! On Fri, Nov 20, 2020 at 04:52:52PM +0100, Maxime Ripard wrote: >On Sun, Nov 15, 2020 at 11:24:25PM +0100, Michael Klein wrote: >

Re: [PATCH] ARM: dts: sun8i-h2-plus-bananapi-m2-zero: add gpio-line-names

2020-11-20 Thread Michael Klein
Thank you for having a look at the patch! On Fri, Nov 20, 2020 at 04:52:52PM +0100, Maxime Ripard wrote: On Sun, Nov 15, 2020 at 11:24:25PM +0100, Michael Klein wrote: Add gpio-line-names as documented in the Banana Pi wiki [1] and in the schematics [2]. [1]: http://wiki.banana-pi.org

[PATCH] ARM: dts: sun8i-h2-plus-bananapi-m2-zero: add gpio-line-names

2020-11-15 Thread Michael Klein
Add gpio-line-names as documented in the Banana Pi wiki [1] and in the schematics [2]. [1]: http://wiki.banana-pi.org/Banana_Pi_BPI-M2_ZERO#GPIO_PIN_define [2]: https://drive.google.com/file/d/0B4PAo2nW2KfnMW5sVkxWSW9qa28/view Signed-off-by: Michael Klein --- .../dts/sun8i-h2-plus-bananapi-m2