[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAGb2v67Uv3SVQSqox85qt_05aVvX0oCynNRoaN9BA1Nha3eo8w@mail.gmail.com>
Date: Thu, 5 Dec 2024 12:16:00 +0800
From: Chen-Yu Tsai <wens@...e.org>
To: Philippe Simons <simons.philippe@...il.com>
Cc: Rob Herring <robh@...nel.org>, Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>, Jernej Skrabec <jernej.skrabec@...il.com>,
Samuel Holland <samuel@...lland.org>,
"open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" <devicetree@...r.kernel.org>,
"moderated list:ARM/Allwinner sunXi SoC support" <linux-arm-kernel@...ts.infradead.org>,
"open list:ARM/Allwinner sunXi SoC support" <linux-sunxi@...ts.linux.dev>, open list <linux-kernel@...r.kernel.org>,
Mark Brown <broonie@...nel.org>
Subject: Re: [PATCH] arm64: dts: allwinner: h616: rg35xx add missing regulator-ramp-delay
On Wed, Dec 4, 2024 at 4:38 AM Philippe Simons
<simons.philippe@...il.com> wrote:
>
> AXP datasheet says that ramp delay is 15.625 us/step,
> which is 10mV in our case.
(CC-ing Mark for knowledge on regulators)
If this is the property of the PMIC, it probably belongs in the driver,
in "regulator_desc.ramp_delay".
The "regulator-ramp-delay" in the DT can be used to override this
if the board has excessive ramp delay due to other design reasons.
ChenYu
> add missing regulator-ramp-delay to dcdc regulators accordingly
>
> Signed-off-by: Philippe Simons <simons.philippe@...il.com>
> ---
> .../boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-2024.dts | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-2024.dts b/arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-2024.dts
> index 80ccab7b5..b6e76a804 100644
> --- a/arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-2024.dts
> +++ b/arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-2024.dts
> @@ -238,6 +238,7 @@ reg_dcdc1: dcdc1 {
> regulator-always-on;
> regulator-min-microvolt = <900000>;
> regulator-max-microvolt = <1160000>;
> + regulator-ramp-delay = <640>;
> regulator-name = "vdd-cpu";
> };
>
> @@ -245,6 +246,7 @@ reg_dcdc2: dcdc2 {
> regulator-always-on;
> regulator-min-microvolt = <940000>;
> regulator-max-microvolt = <940000>;
> + regulator-ramp-delay = <640>;
> regulator-name = "vdd-gpu-sys";
> };
>
> @@ -252,6 +254,7 @@ reg_dcdc3: dcdc3 {
> regulator-always-on;
> regulator-min-microvolt = <1100000>;
> regulator-max-microvolt = <1100000>;
> + regulator-ramp-delay = <640>;
> regulator-name = "vdd-dram";
> };
>
> --
> 2.47.1
>
Powered by blists - more mailing lists