[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20200118152732.0c9e7426074f4141dd09b586@bidouilliste.com>
Date: Sat, 18 Jan 2020 15:27:32 +0100
From: Emmanuel Vadot <manu@...ouilliste.com>
To: Chen-Yu Tsai <wens@...e.org>
Cc: Emmanuel Vadot <manu@...ebsd.org>,
Mark Rutland <mark.rutland@....com>,
devicetree <devicetree@...r.kernel.org>,
linux-kernel <linux-kernel@...r.kernel.org>,
Maxime Ripard <mripard@...nel.org>,
Rob Herring <robh+dt@...nel.org>,
linux-arm-kernel <linux-arm-kernel@...ts.infradead.org>
Subject: Re: [PATCH] arm64: dts: allwinner: a64: Add gpio bank supply for
A64-Olinuxino
On Fri, 17 Jan 2020 11:20:21 +0800
Chen-Yu Tsai <wens@...e.org> wrote:
> On Fri, Jan 17, 2020 at 3:47 AM Emmanuel Vadot <manu@...ebsd.org> wrote:
> >
> > Add the regulators for each bank on this boards.
> >
> > Signed-off-by: Emmanuel Vadot <manu@...ebsd.org>
> > ---
> > .../boot/dts/allwinner/sun50i-a64-olinuxino.dts | 15 +++++++++++++++
> > 1 file changed, 15 insertions(+)
> >
> > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts
> > index 01a9a52edae4..1a25abf6065c 100644
> > --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts
> > +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts
> > @@ -163,6 +163,17 @@ &ohci1 {
> > status = "okay";
> > };
> >
> > +&pio {
> > + vcc-pa-supply = <®_dcdc1>;
> > + vcc-pb-supply = <®_dcdc1>;
> > + vcc-pc-supply = <®_dcdc1>;
> > + vcc-pd-supply = <®_dcdc1>;
> > + vcc-pe-supply = <®_aldo1>;
> > + vcc-pf-supply = <®_dcdc1>;
> > + vcc-pg-supply = <®_dldo4>;
> > + vcc-ph-supply = <®_dcdc1>;
> > +};
> > +
> > &r_rsb {
> > status = "okay";
> >
> > @@ -175,6 +186,10 @@ axp803: pmic@3a3 {
> > };
> > };
> >
> > +&r_pio {
> > + vcc-pl-supply = <®_aldo2>;
>
> This is likely going to cause a circular dependency, because the RSB
> interface that is used to talk to the PMIC is also on the PL pins.
Indeed that cause a Linux kernel to not boot at all.
> (How does FreeBSD deal with this?)
We don't deal with vcc-X-supply until later in the boot, this is not
ideal but better than not dealing with them.
> Instead, just add a comment describing what is really used, and set
> the regulator to always-on, which should already be the case.
Ok will do,
Thanks.
> ChenYu
>
> > +};
> > +
> > #include "axp803.dtsi"
> >
> > &ac_power_supply {
> > --
> > 2.24.1
> >
> >
> > _______________________________________________
> > linux-arm-kernel mailing list
> > linux-arm-kernel@...ts.infradead.org
> > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@...ts.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
--
Emmanuel Vadot <manu@...ouilliste.com> <manu@...ebsd.org>
Powered by blists - more mailing lists