From: Ondrej Jirman <[email protected]>
The PMIC supports powering off by twiddling some bits in a register. Add support
for it via pre-existing rockchip,system-power-controller DT property.
The series was tested against Linux 6.6-rc4.
Please take a look.
Thank you,
Ondřej Jirman
v2:
- add a missing driver patch
Ondrej Jirman (2):
dt-bindings: mfd: rk806: Allow rockchip,system-power-controller
property
mfd: rk8xx: Add support for RK806 power off
Documentation/devicetree/bindings/mfd/rockchip,rk806.yaml | 5 +++++
drivers/mfd/rk8xx-core.c | 4 ++++
2 files changed, 9 insertions(+)
--
2.42.0
From: Ondrej Jirman <[email protected]>
Declare support for this property.
Signed-off-by: Ondrej Jirman <[email protected]>
---
Documentation/devicetree/bindings/mfd/rockchip,rk806.yaml | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/Documentation/devicetree/bindings/mfd/rockchip,rk806.yaml b/Documentation/devicetree/bindings/mfd/rockchip,rk806.yaml
index cf2500f2e9a0..e8c9f17f6ea8 100644
--- a/Documentation/devicetree/bindings/mfd/rockchip,rk806.yaml
+++ b/Documentation/devicetree/bindings/mfd/rockchip,rk806.yaml
@@ -29,6 +29,11 @@ properties:
'#gpio-cells':
const: 2
+ rockchip,system-power-controller:
+ type: boolean
+ description:
+ Telling whether or not this PMIC is controlling the system power.
+
vcc1-supply:
description:
The input supply for dcdc-reg1.
--
2.42.0
On Tue, Oct 10, 2023 at 09:48:20AM +0200, Ondřej Jirman wrote:
> From: Ondrej Jirman <[email protected]>
>
> Declare support for this property.
>
> Signed-off-by: Ondrej Jirman <[email protected]>
> ---
> Documentation/devicetree/bindings/mfd/rockchip,rk806.yaml | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/mfd/rockchip,rk806.yaml b/Documentation/devicetree/bindings/mfd/rockchip,rk806.yaml
> index cf2500f2e9a0..e8c9f17f6ea8 100644
> --- a/Documentation/devicetree/bindings/mfd/rockchip,rk806.yaml
> +++ b/Documentation/devicetree/bindings/mfd/rockchip,rk806.yaml
> @@ -29,6 +29,11 @@ properties:
> '#gpio-cells':
> const: 2
>
> + rockchip,system-power-controller:
> + type: boolean
> + description:
> + Telling whether or not this PMIC is controlling the system power.
New users should use the common 'system-power-controller'.
Feel free to mark rockchip,system-power-controller deprecated and add
'system-power-controller' on the existing Rockchip PMIC bindings.
> +
> vcc1-supply:
> description:
> The input supply for dcdc-reg1.
> --
> 2.42.0
>