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
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
..
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
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
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
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
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
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
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
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
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
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
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
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
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
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
"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
"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(-
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
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
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
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
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
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
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
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
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:
>
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
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
29 matches
Mail list logo