devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Peter Griffin <peter.griffin@linaro.org>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: mturquette@baylibre.com, sboyd@kernel.org, robh@kernel.org,
	 krzk+dt@kernel.org, conor+dt@kernel.org, vkoul@kernel.org,
	kishon@kernel.org,  alim.akhtar@samsung.com, avri.altman@wdc.com,
	bvanassche@acm.org,  s.nawrocki@samsung.com,
	cw00.choi@samsung.com, jejb@linux.ibm.com,
	 martin.petersen@oracle.com, chanho61.park@samsung.com,
	ebiggers@kernel.org,  linux-scsi@vger.kernel.org,
	linux-phy@lists.infradead.org,  devicetree@vger.kernel.org,
	linux-clk@vger.kernel.org,  linux-samsung-soc@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	 linux-arm-kernel@lists.infradead.org, tudor.ambarus@linaro.org,
	 andre.draszik@linaro.org, saravanak@google.com,
	willmcvicker@google.com
Subject: Re: [PATCH 07/17] arm64: dts: exynos: gs101: Add ufs, ufs-phy and ufs regulator dt nodes
Date: Thu, 18 Apr 2024 14:20:15 +0100	[thread overview]
Message-ID: <CADrjBPpaR86R6FMwMqos7ojVfDpGxS=ygW50UBCy1DTsoXHJgQ@mail.gmail.com> (raw)
In-Reply-To: <4ed72378-672e-46d6-9f29-fa118f598739@kernel.org>

Hi Krzysztof,

Thanks for your review feedback.

On Fri, 5 Apr 2024 at 08:53, Krzysztof Kozlowski <krzk@kernel.org> wrote:
>
> On 04/04/2024 14:25, Peter Griffin wrote:
> > Enable the ufs controller, ufs phy and ufs regulator in device tree.
> >
> > Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
> > ---
> >  .../boot/dts/exynos/google/gs101-oriole.dts   | 17 +++++++++
> >  arch/arm64/boot/dts/exynos/google/gs101.dtsi  | 35 +++++++++++++++++++
>
> If you wish you can split DTSI and DTS into separate patches. Up to you.

Thanks for the heads up
>
> >  2 files changed, 52 insertions(+)
> >
> > diff --git a/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts b/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts
> > index 6be15e990b65..986eb5c9898a 100644
> > --- a/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts
> > +++ b/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts
> > @@ -53,6 +53,14 @@ button-power {
> >                       wakeup-source;
> >               };
> >       };
> > +
> > +     ufs_0_fixed_vcc_reg: regulator-0 {
> > +             compatible = "regulator-fixed";
> > +             regulator-name = "ufs-vcc";
> > +             gpio = <&gpp0 1 0>;
>
> Use defines for GPIO flags,

Will fix in v2

> but more important: are you sure this is not
> coming from a PMIC? What's the voltage? It looks like a stub for missing
> PMIC, because UFS voltages are usually provided by PMIC.

UFS vcc is 1.2v. The gpio signal from gs101 SoC is called BOOTLD0, and
it is connected to slave pmic (S2MPG11) UFS_EN signal which is a gpio
enabled voltage rail for UFS (LDO8S).

The downstream driver code declares the UFS supply as regulator-fixed
even though it has a fully featured regulator driver for the pmic,
with the LDO8S regulator exposed. Checking the DT for the pmic the min
and max volt are different, so using regulator-fixed seems wrong for
downstream.

s_ldo8_reg: LDO8S {
    regulator-name = "S2MPG11_LDO8";
    regulator-min-microvolt = <1127800>;
    regulator-max-microvolt = <1278600>;
    regulator-always-on;
    regulator-initial-mode = <SEC_OPMODE_SUSPEND>;
    channel-mux-selection = <0x28>;
    schematic-name = "L8S_UFS_VCCQ";
    subsys-name = "UFS";
 };

So I think you're correct this is a stub pending full pmic support. I
propose in v2 to add a comment similar to what we have in
exynos850-e850-96.dts today above the regulator-fixed node like /*
TODO: Remove this once PMIC is implemented  */?

regards,

Peter.




>
> > +             regulator-boot-on;
> > +             enable-active-high;
> > +     };
> >  };
> >
> >  &ext_24_5m {
> > @@ -106,6 +114,15 @@ &serial_0 {
> >       status = "okay";
> >  };
> >
> > +&ufs_0 {
> > +     status = "okay";
> > +     vcc-supply = <&ufs_0_fixed_vcc_reg>;
> > +};
> > +
> > +&ufs_0_phy {
> > +     status = "okay";
> > +};
> > +
> >  &usi_uart {
> >       samsung,clkreq-on; /* needed for UART mode */
> >       status = "okay";
> > diff --git a/arch/arm64/boot/dts/exynos/google/gs101.dtsi b/arch/arm64/boot/dts/exynos/google/gs101.dtsi
> > index 608369cec47b..9c94829bf14c 100644
> > --- a/arch/arm64/boot/dts/exynos/google/gs101.dtsi
> > +++ b/arch/arm64/boot/dts/exynos/google/gs101.dtsi
> > @@ -1277,6 +1277,41 @@ pinctrl_hsi2: pinctrl@14440000 {
> >                       interrupts = <GIC_SPI 503 IRQ_TYPE_LEVEL_HIGH 0>;
> >               };
> >
> > +             ufs_0_phy: phy@17e04000 {
> > +                     compatible = "google,gs101-ufs-phy";
> > +                     reg = <0x14704000 0x3000>;
> > +                     reg-names = "phy-pma";
> > +                     samsung,pmu-syscon = <&pmu_system_controller>;
> > +                     #phy-cells = <0>;
> > +                     clocks = <&ext_24_5m>;
> > +                     clock-names = "ref_clk";
> > +                     status = "disabled";
> > +             };
> > +
> > +             ufs_0: ufs@14700000 {
> > +                     compatible = "google,gs101-ufs";
> > +
>
> Drop blank line.
>
> > +                     reg = <0x14700000 0x200>,
> > +                           <0x14701100 0x200>,
> > +                           <0x14780000 0xa000>,
> > +                           <0x14600000 0x100>;
>
>
> Best regards,
> Krzysztof
>

  reply	other threads:[~2024-04-18 13:20 UTC|newest]

Thread overview: 67+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20240404122615epcas5p3812bd7c825bf604fc474bbcdf40d11f6@epcas5p3.samsung.com>
2024-04-04 12:25 ` [PATCH 00/17] HSI2, UFS & UFS phy support for Tensor GS101 Peter Griffin
2024-04-04 12:25   ` [PATCH 01/17] dt-bindings: clock: google,gs101-clock: add HSI2 clock management unit Peter Griffin
2024-04-05  7:15     ` André Draszik
2024-04-05  7:46       ` Krzysztof Kozlowski
2024-04-16 10:52       ` Peter Griffin
2024-04-04 12:25   ` [PATCH 02/17] dt-bindings: soc: google: exynos-sysreg: add dedicated hsi2 sysreg compatible Peter Griffin
2024-04-05  7:19     ` André Draszik
2024-04-10 16:40     ` Rob Herring
2024-04-04 12:25   ` [PATCH 03/17] dt-bindings: ufs: exynos-ufs: Add gs101 compatible Peter Griffin
2024-04-05  7:49     ` Krzysztof Kozlowski
2024-04-16 11:30       ` Peter Griffin
2024-04-04 12:25   ` [PATCH 04/17] dt-bindings: phy: samsung,ufs-phy: Add dedicated gs101-ufs-phy compatible Peter Griffin
2024-04-05  7:50     ` Krzysztof Kozlowski
2024-04-16 11:45       ` Peter Griffin
2024-04-04 12:25   ` [PATCH 05/17] arm64: dts: exynos: gs101: enable cmu-hsi2 clock controller Peter Griffin
2024-04-05  7:38     ` André Draszik
2024-04-16 11:56       ` Peter Griffin
2024-04-16 12:21         ` André Draszik
2024-04-16 14:33           ` Peter Griffin
2024-04-05  7:51     ` Krzysztof Kozlowski
2024-04-04 12:25   ` [PATCH 06/17] arm64: dts: exynos: gs101: Add the hsi2 sysreg node Peter Griffin
2024-04-05  7:33     ` André Draszik
2024-04-16 12:13       ` Peter Griffin
2024-04-04 12:25   ` [PATCH 07/17] arm64: dts: exynos: gs101: Add ufs, ufs-phy and ufs regulator dt nodes Peter Griffin
2024-04-05  7:53     ` Krzysztof Kozlowski
2024-04-18 13:20       ` Peter Griffin [this message]
2024-04-18 17:31         ` Krzysztof Kozlowski
2024-04-04 12:25   ` [PATCH 08/17] clk: samsung: gs101: add support for cmu_hsi2 Peter Griffin
2024-04-04 13:24     ` André Draszik
2024-04-22 14:55       ` Peter Griffin
2024-04-04 22:52     ` kernel test robot
2024-04-05  7:23     ` André Draszik
2024-04-05  7:55     ` Krzysztof Kozlowski
2024-04-08 14:49     ` André Draszik
2024-04-23 17:45       ` Peter Griffin
2024-04-04 12:25   ` [PATCH 09/17] phy: samsung-ufs: use exynos_get_pmu_regmap_by_phandle() to obtain PMU regmap Peter Griffin
2024-04-05  7:04     ` André Draszik
2024-04-22 12:40       ` Peter Griffin
2024-04-10  0:59     ` Alim Akhtar
2024-04-04 12:25   ` [PATCH 10/17] phy: samsung-ufs: ufs: Add SoC callbacks for calibration and clk data recovery Peter Griffin
2024-04-05  7:56     ` Krzysztof Kozlowski
2024-04-17  9:52     ` Dan Carpenter
2024-04-22 12:39       ` Peter Griffin
2024-04-04 12:25   ` [PATCH 11/17] phy: samsung-ufs: ufs: Add support for gs101 UFS phy tuning Peter Griffin
2024-04-05  7:57     ` Krzysztof Kozlowski
2024-04-04 12:25   ` [PATCH 12/17] scsi: ufs: host: ufs-exynos: Add EXYNOS_UFS_OPT_UFSPR_SECURE option Peter Griffin
2024-04-05  7:57     ` Krzysztof Kozlowski
2024-04-09 20:30     ` William McVicker
2024-04-04 12:25   ` [PATCH 13/17] scsi: ufs: host: ufs-exynos: add EXYNOS_UFS_OPT_TIMER_TICK_SELECT option Peter Griffin
2024-04-05  7:58     ` Krzysztof Kozlowski
2024-04-09 20:31     ` William McVicker
2024-04-04 12:25   ` [PATCH 14/17] scsi: ufs: host: ufs-exynos: allow max frequencies up to 267Mhz Peter Griffin
2024-04-05  7:58     ` Krzysztof Kozlowski
2024-04-09 20:32     ` William McVicker
2024-04-04 12:25   ` [PATCH 15/17] scsi: ufs: host: ufs-exynos: add some pa_dbg_ register offsets into drvdata Peter Griffin
2024-04-05  7:59     ` Krzysztof Kozlowski
2024-04-09 20:35     ` William McVicker
2024-04-04 12:25   ` [PATCH 16/17] scsi: ufs: host: ufs-exynos: Add support for Tensor gs101 SoC Peter Griffin
2024-04-05  7:59     ` Krzysztof Kozlowski
2024-04-09 20:36     ` William McVicker
2024-04-04 12:25   ` [PATCH 17/17] MAINTAINERS: Add phy-gs101-ufs file to Tensor GS101 Peter Griffin
2024-04-05  8:00     ` Krzysztof Kozlowski
2024-04-05  7:45   ` [PATCH 00/17] HSI2, UFS & UFS phy support for " Krzysztof Kozlowski
2024-04-16 10:28     ` Peter Griffin
2024-04-06  9:19   ` (subset) " Vinod Koul
2024-04-08  8:30   ` Alim Akhtar
2024-04-16 10:29     ` Peter Griffin

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='CADrjBPpaR86R6FMwMqos7ojVfDpGxS=ygW50UBCy1DTsoXHJgQ@mail.gmail.com' \
    --to=peter.griffin@linaro.org \
    --cc=alim.akhtar@samsung.com \
    --cc=andre.draszik@linaro.org \
    --cc=avri.altman@wdc.com \
    --cc=bvanassche@acm.org \
    --cc=chanho61.park@samsung.com \
    --cc=conor+dt@kernel.org \
    --cc=cw00.choi@samsung.com \
    --cc=devicetree@vger.kernel.org \
    --cc=ebiggers@kernel.org \
    --cc=jejb@linux.ibm.com \
    --cc=kishon@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=krzk@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-phy@lists.infradead.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=martin.petersen@oracle.com \
    --cc=mturquette@baylibre.com \
    --cc=robh@kernel.org \
    --cc=s.nawrocki@samsung.com \
    --cc=saravanak@google.com \
    --cc=sboyd@kernel.org \
    --cc=tudor.ambarus@linaro.org \
    --cc=vkoul@kernel.org \
    --cc=willmcvicker@google.com \
    /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;
as well as URLs for NNTP newsgroup(s).