From: Matthias Kaehlcke <mka@chromium.org>
To: Stephen Boyd <swboyd@chromium.org>
Cc: Andy Gross <agross@kernel.org>,
Bjorn Andersson <bjorn.andersson@linaro.org>,
linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org,
Douglas Anderson <dianders@chromium.org>
Subject: Re: [PATCH] arm64: dts: sc7180: Add board regulators for MIPI camera trogdor boards
Date: Thu, 16 Dec 2021 07:14:55 -0800 [thread overview]
Message-ID: <YbtX7/fd61OCnv8r@google.com> (raw)
In-Reply-To: <CAE-0n53z=CVMx=zmh6Up57E-yVG7iU3oMiM7cLPfsQwriM=+=w@mail.gmail.com>
On Wed, Dec 15, 2021 at 08:43:21PM -0800, Stephen Boyd wrote:
> Quoting Matthias Kaehlcke (2021-12-15 18:31:41)
> > On Tue, Dec 14, 2021 at 04:36:38PM -0800, Stephen Boyd wrote:
> > > diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi b/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi
> > > index d4f4441179fc..1dd8e35093a8 100644
> > > --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi
> > > +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi
> > > @@ -113,6 +113,40 @@ src_vph_pwr: src-vph-pwr-regulator {
> > > vin-supply = <&ppvar_sys>;
> > > };
> > >
> > > + pp1800_uf_cam: pp1800-uf-cam-regulator {
> > > + compatible = "regulator-fixed";
> > > + regulator-name = "pp1800_uf_cam";
> > > + status = "disabled";
> > > +
> > > + regulator-min-microvolt = <1800000>;
> > > + regulator-max-microvolt = <1800000>;
> > > +
> > > + gpio = <&tlmm 6 GPIO_ACTIVE_HIGH>;
> > > + enable-active-high;
> > > + pinctrl-names = "default";
> > > + pinctrl-0 = <&uf_cam_en>;
> > > +
> > > + vin-supply = <&pp1800_ldo>;
> > > + regulator-enable-ramp-delay = <1000>;
> > > + };
> > > +
> > > + pp1800_wf_cam: pp1800-wf-cam-regulator {
> > > + compatible = "regulator-fixed";
> > > + regulator-name = "pp1800_wf_cam";
> > > + status = "disabled";
> > > +
> > > + regulator-min-microvolt = <1800000>;
> > > + regulator-max-microvolt = <1800000>;
> > > +
> > > + gpio = <&tlmm 7 GPIO_ACTIVE_HIGH>;
> > > + enable-active-high;
> > > + pinctrl-names = "default";
> > > + pinctrl-0 = <&wf_cam_en>;
> > > +
> > > + vin-supply = <&pp1800_ldo>;
> > > + regulator-enable-ramp-delay = <1000>;
> > > + };
> > > +
> >
> > Shouldn't 'pp1800_ldo' be defined before these ("FIXED REGULATORS
> > - parents above children")?
>
> Good catch! Fixed it.
>
> >
> > I suggest to move these two below the top level regulators, i.e.
> > somwhere after pp3300_a (probably pp3300_a and pp5000_a should be
> > swapped, but that's beyond the scope of this patch).
> >
> > > pp5000_a: pp5000-a-regulator {
> > > compatible = "regulator-fixed";
> > > regulator-name = "pp5000_a";
> > > @@ -1517,4 +1611,32 @@ pinconf-sd-cd {
> > > drive-strength = <2>;
> > > };
> > > };
> > > +
> > > + uf_cam_en: uf-cam-en {
> > > + pinmux {
> > > + pins = "gpio6";
> > > + function = "gpio";
> > > + };
> > > +
> > > + pinconf {
> > > + pins = "gpio6";
> > > + drive-strength = <2>;
> > > + /* External pull down */
> >
> > Is there actually an external pull down?
>
> My understanding is that there's an internal pull down in the LDO so
> while it isn't exactly "external" in the sense there's a pull down on
> the net via a resistor, there's still a pull down that you can't see in
> the schematic in the IC.
Thanks for the clarification!
prev parent reply other threads:[~2021-12-16 15:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-15 0:36 [PATCH] arm64: dts: sc7180: Add board regulators for MIPI camera trogdor boards Stephen Boyd
2021-12-16 2:31 ` Matthias Kaehlcke
2021-12-16 4:43 ` Stephen Boyd
2021-12-16 15:14 ` Matthias Kaehlcke [this message]
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=YbtX7/fd61OCnv8r@google.com \
--to=mka@chromium.org \
--cc=agross@kernel.org \
--cc=bjorn.andersson@linaro.org \
--cc=dianders@chromium.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=swboyd@chromium.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