From: "Heiko Stübner" <heiko@sntech.de>
To: linux-pm@vger.kernel.org, Chris Morgan <macroalpha82@gmail.com>
Cc: linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org,
maccraft123mc@gmail.com, zhangqing@rock-chips.com,
zyw@rock-chips.com, sre@kernel.org, conor+dt@kernel.org,
krzk+dt@kernel.org, robh@kernel.org, lee@kernel.org,
Chris Morgan <macromorgan@hotmail.com>,
Zetarancio <zetarancio@users.noreply.github.com>
Subject: Re: [PATCH 4/5] dt-bindings: power: supply: rk817-charger: Add rockchip,gate-function-disable
Date: Mon, 26 Oct 2026 20:23:40 +0100 [thread overview]
Message-ID: <15875856.JCcGWNJJiE@diego> (raw)
In-Reply-To: <20261026174834.1652309-5-macroalpha82@gmail.com>
Hi Chris,
Am Montag, 26. Oktober 2026, 18:48:33 Mitteleuropäische Normalzeit schrieb Chris Morgan:
> From: Chris Morgan <macromorgan@hotmail.com>
>
> Add a boolean attribute for the rk817-charger to control whether or not
> the system power is shutdown in battery off mode. The BSP kernel sets
> this value unless a device-tree attribute is present, and this attribute
> is to replicate that behavior.
Devicetree is supposed to describe the hardware, so your description needs
to describe the per-board property this represents.
Just because it's in a vendor-BSP is generally not enough justification :-) .
This is especially true as you wrote in the cover-letter that no known
board actually needs this right now.
Heiko
> Fixes: a592aa3a2a8c ("dt-bindings: mfd: Add Rockchip rk817 battery charger support")
> Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
> Suggested-by: Zetarancio <zetarancio@users.noreply.github.com>
> ---
> Documentation/devicetree/bindings/mfd/rockchip,rk817.yaml | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/mfd/rockchip,rk817.yaml b/Documentation/devicetree/bindings/mfd/rockchip,rk817.yaml
> index 2cb6d176a84c..4cf987fe763b 100644
> --- a/Documentation/devicetree/bindings/mfd/rockchip,rk817.yaml
> +++ b/Documentation/devicetree/bindings/mfd/rockchip,rk817.yaml
> @@ -148,6 +148,12 @@ properties:
> Value in microamps of the sleep filter current for the charger.
> Value is used by the driver to derive the sleep sample current.
>
> + rockchip,gate-function-disable:
> + type: boolean
> + description:
> + Boolean value to prevent PMIC from turning off system voltage when
> + battery voltage is shut down.
> +
> required:
> - monitored-battery
> - rockchip,resistor-sense-micro-ohms
> @@ -381,6 +387,7 @@ examples:
>
> rk817_charger: charger {
> monitored-battery = <&battery>;
> + rockchip,gate-function-disable;
> rockchip,resistor-sense-micro-ohms = <10000>;
> rockchip,sleep-enter-current-microamp = <300000>;
> rockchip,sleep-filter-current-microamp = <100000>;
>
WARNING: multiple messages have this Message-ID (diff)
From: "Heiko Stübner" <heiko@sntech.de>
To: linux-pm@vger.kernel.org, Chris Morgan <macroalpha82@gmail.com>
Cc: linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org,
maccraft123mc@gmail.com, zhangqing@rock-chips.com,
zyw@rock-chips.com, sre@kernel.org, conor+dt@kernel.org,
krzk+dt@kernel.org, robh@kernel.org, lee@kernel.org,
Chris Morgan <macromorgan@hotmail.com>,
Zetarancio <zetarancio@users.noreply.github.com>
Subject: Re: [PATCH 4/5] dt-bindings: power: supply: rk817-charger: Add rockchip,gate-function-disable
Date: Mon, 26 Oct 2026 20:23:40 +0100 [thread overview]
Message-ID: <15875856.JCcGWNJJiE@diego> (raw)
In-Reply-To: <20261026174834.1652309-5-macroalpha82@gmail.com>
Hi Chris,
Am Montag, 26. Oktober 2026, 18:48:33 Mitteleuropäische Normalzeit schrieb Chris Morgan:
> From: Chris Morgan <macromorgan@hotmail.com>
>
> Add a boolean attribute for the rk817-charger to control whether or not
> the system power is shutdown in battery off mode. The BSP kernel sets
> this value unless a device-tree attribute is present, and this attribute
> is to replicate that behavior.
Devicetree is supposed to describe the hardware, so your description needs
to describe the per-board property this represents.
Just because it's in a vendor-BSP is generally not enough justification :-) .
This is especially true as you wrote in the cover-letter that no known
board actually needs this right now.
Heiko
> Fixes: a592aa3a2a8c ("dt-bindings: mfd: Add Rockchip rk817 battery charger support")
> Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
> Suggested-by: Zetarancio <zetarancio@users.noreply.github.com>
> ---
> Documentation/devicetree/bindings/mfd/rockchip,rk817.yaml | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/mfd/rockchip,rk817.yaml b/Documentation/devicetree/bindings/mfd/rockchip,rk817.yaml
> index 2cb6d176a84c..4cf987fe763b 100644
> --- a/Documentation/devicetree/bindings/mfd/rockchip,rk817.yaml
> +++ b/Documentation/devicetree/bindings/mfd/rockchip,rk817.yaml
> @@ -148,6 +148,12 @@ properties:
> Value in microamps of the sleep filter current for the charger.
> Value is used by the driver to derive the sleep sample current.
>
> + rockchip,gate-function-disable:
> + type: boolean
> + description:
> + Boolean value to prevent PMIC from turning off system voltage when
> + battery voltage is shut down.
> +
> required:
> - monitored-battery
> - rockchip,resistor-sense-micro-ohms
> @@ -381,6 +387,7 @@ examples:
>
> rk817_charger: charger {
> monitored-battery = <&battery>;
> + rockchip,gate-function-disable;
> rockchip,resistor-sense-micro-ohms = <10000>;
> rockchip,sleep-enter-current-microamp = <300000>;
> rockchip,sleep-filter-current-microamp = <100000>;
>
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
next prev parent reply other threads:[~2026-10-26 19:23 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-26 17:48 [PATCH 0/5] Fix Incorrect State of Charge for RK817 Chris Morgan
2026-10-26 17:48 ` Chris Morgan
2026-10-26 17:48 ` [PATCH 1/5] power: supply: rk817-charger: Fix NVRAM SoC Value Chris Morgan
2026-10-26 17:48 ` Chris Morgan
2026-10-26 17:48 ` [PATCH 2/5] power: supply: rk817-charger: Resolve boot state of charge from the coulomb counter Chris Morgan
2026-10-26 17:48 ` Chris Morgan
2026-10-26 18:01 ` sashiko-bot
2026-10-26 17:48 ` [PATCH 3/5] power: supply: rk817-charger: Correct the gauge across system sleep Chris Morgan
2026-10-26 17:48 ` Chris Morgan
2026-10-26 18:07 ` sashiko-bot
2026-10-29 9:37 ` Krzysztof Kozlowski
2026-10-29 9:37 ` Krzysztof Kozlowski
2026-10-26 17:48 ` [PATCH 4/5] dt-bindings: power: supply: rk817-charger: Add rockchip,gate-function-disable Chris Morgan
2026-10-26 17:48 ` Chris Morgan
2026-10-26 19:23 ` Heiko Stübner [this message]
2026-10-26 19:23 ` Heiko Stübner
2026-10-27 15:53 ` Chris Morgan
2026-10-27 15:53 ` Chris Morgan
2026-10-27 22:40 ` Heiko Stübner
2026-10-27 22:40 ` Heiko Stübner
2026-10-28 14:16 ` Chris Morgan
2026-10-28 14:16 ` Chris Morgan
2026-10-28 13:08 ` Krzysztof Kozlowski
2026-10-28 13:08 ` Krzysztof Kozlowski
2026-10-29 9:34 ` Krzysztof Kozlowski
2026-10-29 9:34 ` Krzysztof Kozlowski
2026-10-26 17:48 ` [PATCH 5/5] power: supply: rk817-charger: Clear SYS_CAN_SD register by default Chris Morgan
2026-10-26 17:48 ` Chris Morgan
2026-10-26 18:00 ` sashiko-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=15875856.JCcGWNJJiE@diego \
--to=heiko@sntech.de \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=lee@kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=maccraft123mc@gmail.com \
--cc=macroalpha82@gmail.com \
--cc=macromorgan@hotmail.com \
--cc=robh@kernel.org \
--cc=sre@kernel.org \
--cc=zetarancio@users.noreply.github.com \
--cc=zhangqing@rock-chips.com \
--cc=zyw@rock-chips.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.