Re: [PATCH 8/8] arm64: dts: qcom: sa8155p-adp: Add base dts file
From: Bhupesh Sharma
Date: Tue Jun 15 2021 - 00:41:47 EST
On Fri, 11 Jun 2021 at 07:55, Bjorn Andersson
<bjorn.andersson@xxxxxxxxxx> wrote:
>
> On Mon 07 Jun 06:38 CDT 2021, Bhupesh Sharma wrote:
>
> > Add base DTS file for sa8155p-adp and enable boot to console,
>
> Please spell out "sa8155-adp", i.e. "Add base DTS for SA8155p Automotive
> Development Platform."
>
> > tlmm reserved range and also include pmic file(s).
> >
> > SA8155p-adp board is based on sm8150 Qualcomm Snapdragon SoC.
> >
>
> It's not based on sm8150, it's based on sa8155p, so let's express this
> as "The SA8155p platform is similar to the SM8150, so use this as base
> for now", to document why we decided to do this.
>
> > Cc: Linus Walleij <linus.walleij@xxxxxxxxxx>
> > Cc: Liam Girdwood <lgirdwood@xxxxxxxxx>
> > Cc: Mark Brown <broonie@xxxxxxxxxx>
> > Cc: Bjorn Andersson <bjorn.andersson@xxxxxxxxxx>
> > Cc: Vinod Koul <vkoul@xxxxxxxxxx>
> > Cc: Rob Herring <robh+dt@xxxxxxxxxx>
> > Cc: Andy Gross <agross@xxxxxxxxxx>
> > Cc: devicetree@xxxxxxxxxxxxxxx
> > Cc: linux-kernel@xxxxxxxxxxxxxxx
> > Cc: linux-gpio@xxxxxxxxxxxxxxx
> > Cc: bhupesh.linux@xxxxxxxxx
<..snip..>
> > +&apps_rsc {
> > + pmm8155au-1-rpmh-regulators {
> > + compatible = "qcom,pmm8155au-1-rpmh-regulators";
> > + qcom,pmic-id = "a";
> > +
> > + vdd-s1-supply = <&vreg_3p3>;
> > + vdd-s2-supply = <&vreg_3p3>;
> > + vdd-s3-supply = <&vreg_3p3>;
> > + vdd-s4-supply = <&vreg_3p3>;
> > + vdd-s5-supply = <&vreg_3p3>;
> > + vdd-s6-supply = <&vreg_3p3>;
> > + vdd-s7-supply = <&vreg_3p3>;
> > + vdd-s8-supply = <&vreg_3p3>;
> > + vdd-s9-supply = <&vreg_3p3>;
> > + vdd-s10-supply = <&vreg_3p3>;
> > +
> > + vdd-l1-l8-l11-supply = <&vreg_s6a_0p92>;
> > + vdd-l2-l10-supply = <&vreg_3p3>;
> > + vdd-l3-l4-l5-l18-supply = <&vreg_s6a_0p92>;
> > + vdd-l6-l9-supply = <&vreg_s6a_0p92>;
> > + vdd-l7-l12-l14-l15-supply = <&vreg_s5a_2p04>;
> > + vdd-l13-l16-l17-supply = <&vreg_3p3>;
> > +
> > + vreg_s5a_2p04: smps5 {
> > + regulator-min-microvolt = <1904000>;
> > + regulator-max-microvolt = <2000000>;
> > + };
> > +
> > + vreg_s6a_0p92: smps6 {
> > + regulator-min-microvolt = <920000>;
> > + regulator-max-microvolt = <1128000>;
> > + };
> > +
> > + vdda_wcss_pll:
>
> This is the "label" of the pad which the regulator typically is
> connected to (rather than a denotion of which regulator it is). So even
> though we have these in some of the other boards, I would prefer if you
> skip them and only use the vreg_xyz_abc variant.
Lets keep the 'vdd_xx_abc labels' though which are used as input
supply pads for peripherals, for e.g.:
&usb_1_hsphy {
status = "okay";
vdda-pll-supply = <&vdd_usb_hs_core>;
vdda33-supply = <&vdda_usb_hs_3p1>;
vdda18-supply = <&vdda_usb_hs_1p8>;
};
IMO, here it makes sense to retain labels 'vdda_usb_hs_3p1' and
'vdda_usb_hs_1p8' in the dts (also making it easier to trace the same
in schematics).
I will send the v2 with the other suggested changes shortly.
Regards,
Bhupesh
<..snip..>