From: "Heiko Stübner" <heiko@sntech.de>
To: Jonas Karlman <jonas@kwiboo.se>
Cc: linux-rockchip@lists.infradead.org,
linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
Furkan Kardame <f.kardame@manjaro.org>
Subject: Re: [PATCH 3/8] arm64: dts: rockchip: Drop regulator-init-microvolt from rk3568-roc-pc
Date: Tue, 08 Oct 2024 22:27:43 +0200 [thread overview]
Message-ID: <1812768.VLH7GnMWUR@diego> (raw)
In-Reply-To: <605c8024-ada7-4f2e-b18e-8d5c3f1bf612@kwiboo.se>
Hi Jonas,
Am Dienstag, 1. Oktober 2024, 00:55:42 CEST schrieb Jonas Karlman:
> Hi Heiko,
>
> On 2024-09-30 23:01, Heiko Stuebner wrote:
> > regulator-init-microvolt is not part of any regulator binding and is
> > only used in the Rockchip vendor kernel. So drop it.
>
> Mainline U-Boot is also a user of the regulator-init-microvolt prop,
> and use it to help configure an initial voltage on regulators during
> boot.
>
> Mostly useful for regulators that has different min / max voltage and
> is not enabled by default or set to an unexpected voltage on boot, e.g.
> the typical npu regulator on rk356x defaults to 0.5v, yet needs to be
> around 0.9v during npu probe.
>
> Maybe a better option would be to try add the init property to the Linux
> dt-bindning?
Looks like that topic comes up regularly, last time in
https://lore.kernel.org/linux-arm-kernel/4519023.cEBGB3zze1@phil/
and that still is true. DT is not a configuration-space, and if needed those
properties should be in the -uboot.dtsi
Heiko
> https://source.denx.de/u-boot/u-boot/-/blob/master/doc/device-tree-bindings/regulator/regulator.txt#L40
>
> Regards,
> Jonas
>
> >
> > Fixes: 007b4bb47f44 ("arm64: dts: rockchip: add dts for Firefly Station P2 aka rk3568-roc-pc")
> > Cc: Furkan Kardame <f.kardame@manjaro.org>
> > Signed-off-by: Heiko Stuebner <heiko@sntech.de>
> > ---
> > arch/arm64/boot/dts/rockchip/rk3568-roc-pc.dts | 3 ---
> > 1 file changed, 3 deletions(-)
> >
> > diff --git a/arch/arm64/boot/dts/rockchip/rk3568-roc-pc.dts b/arch/arm64/boot/dts/rockchip/rk3568-roc-pc.dts
> > index e333449ead04..2fa89a0eeafc 100644
> > --- a/arch/arm64/boot/dts/rockchip/rk3568-roc-pc.dts
> > +++ b/arch/arm64/boot/dts/rockchip/rk3568-roc-pc.dts
> > @@ -272,7 +272,6 @@ vdd_logic: DCDC_REG1 {
> > regulator-name = "vdd_logic";
> > regulator-always-on;
> > regulator-boot-on;
> > - regulator-init-microvolt = <900000>;
> > regulator-initial-mode = <0x2>;
> > regulator-min-microvolt = <500000>;
> > regulator-max-microvolt = <1350000>;
> > @@ -285,7 +284,6 @@ regulator-state-mem {
> >
> > vdd_gpu: DCDC_REG2 {
> > regulator-name = "vdd_gpu";
> > - regulator-init-microvolt = <900000>;
> > regulator-initial-mode = <0x2>;
> > regulator-min-microvolt = <500000>;
> > regulator-max-microvolt = <1350000>;
> > @@ -309,7 +307,6 @@ regulator-state-mem {
> >
> > vdd_npu: DCDC_REG4 {
> > regulator-name = "vdd_npu";
> > - regulator-init-microvolt = <900000>;
> > regulator-initial-mode = <0x2>;
> > regulator-min-microvolt = <500000>;
> > regulator-max-microvolt = <1350000>;
>
>
next prev parent reply other threads:[~2024-10-08 20:30 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-30 21:01 [PATCH 0/8] Fixing some dtbscheck warnings Heiko Stuebner
2024-09-30 21:01 ` [PATCH 1/8] arm64: dts: rockchip: fix i2c2 pinctrl-names property on anbernic-rg353p Heiko Stuebner
2024-09-30 22:08 ` Chris Morgan
2024-09-30 21:01 ` [PATCH 2/8] arm64: dts: rockchip: fix i2c2 pinctrl-names property on anbernic-rg353v Heiko Stuebner
2024-09-30 22:09 ` Chris Morgan
2024-09-30 21:01 ` [PATCH 3/8] arm64: dts: rockchip: Drop regulator-init-microvolt from rk3568-roc-pc Heiko Stuebner
2024-09-30 22:55 ` Jonas Karlman
2024-10-08 20:27 ` Heiko Stübner [this message]
2024-09-30 21:01 ` [PATCH 4/8] arm64: dts: rockchip: Drop regulator-init-microvolt from rk3588-toybrick-x0 Heiko Stuebner
2024-09-30 21:01 ` [PATCH 5/8] arm64: dts: rockchip: Fix bluetooth properties on rk3566 box demo Heiko Stuebner
2024-10-07 15:27 ` Diederik de Haas
2024-10-07 16:04 ` Heiko Stübner
2024-10-07 19:33 ` Diederik de Haas
2024-10-08 20:20 ` Heiko Stübner
2024-10-08 20:26 ` Diederik de Haas
2024-09-30 21:01 ` [PATCH 6/8] arm64: dts: rockchip: Fix bluetooth properties on Rock960 boards Heiko Stuebner
2024-09-30 21:01 ` [PATCH 7/8] arm64: dts: rockchip: Remove undocumented emmc property from PX30-Ringneck Heiko Stuebner
2024-10-01 10:04 ` Quentin Schulz
2024-10-08 20:29 ` Heiko Stübner
2024-09-30 21:01 ` [PATCH 8/8] arm64: dts: rockchip: Remove #cooling-cells from fan on Theobroma boards Heiko Stuebner
2024-10-01 9:55 ` Quentin Schulz
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=1812768.VLH7GnMWUR@diego \
--to=heiko@sntech.de \
--cc=devicetree@vger.kernel.org \
--cc=f.kardame@manjaro.org \
--cc=jonas@kwiboo.se \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-rockchip@lists.infradead.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox