From: Rob Herring <robh@kernel.org>
To: Claudiu <claudiu.beznea@tuxon.dev>
Cc: vkoul@kernel.org, kishon@kernel.org, krzk+dt@kernel.org,
conor+dt@kernel.org, p.zabel@pengutronix.de,
geert+renesas@glider.be, magnus.damm@gmail.com,
yoshihiro.shimoda.uh@renesas.com, biju.das.jz@bp.renesas.com,
linux-phy@lists.infradead.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org,
Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Subject: Re: [PATCH v4 4/8] dt-bindings: reset: renesas,rzg2l-usbphy-ctrl: Document RZ/G3S support
Date: Wed, 13 Aug 2025 18:21:00 -0500 [thread overview]
Message-ID: <20250813232100.GA950521-robh@kernel.org> (raw)
In-Reply-To: <20250808061806.2729274-5-claudiu.beznea.uj@bp.renesas.com>
On Fri, Aug 08, 2025 at 09:18:02AM +0300, Claudiu wrote:
> From: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
>
> The Renesas USB PHY hardware block needs to have the PWRRDY bit in the
> system controller set before applying any other settings. The PWRRDY bit
> must be controlled during power-on, power-off, and system suspend/resume
> sequences as follows:
> - during power-on/resume, it must be set to zero before enabling clocks and
> modules
> - during power-off/suspend, it must be set to one after disabling clocks
> and modules
>
> Add the renesas,sysc-pwrrdy device tree property, which allows the
> reset-rzg2l-usbphy-ctrl driver to parse, map, and control the system
> controller PWRRDY bit at the appropriate time. Along with it add a new
> compatible for the RZ/G3S SoC.
>
> Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
> ---
>
> Changes in v4:
> - dropped blank line from compatible section
> - s/renesas,sysc-signals/renesas,sysc-pwrrdy/g
> - dropped description from renesas,sysc-pwrrdy
> - updated description of renesas,sysc-pwrrdy items
> - updated patch description
>
> Changes in v3:
> - none; this patch is new
>
> .../reset/renesas,rzg2l-usbphy-ctrl.yaml | 40 ++++++++++++++++---
> 1 file changed, 34 insertions(+), 6 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/reset/renesas,rzg2l-usbphy-ctrl.yaml b/Documentation/devicetree/bindings/reset/renesas,rzg2l-usbphy-ctrl.yaml
> index b0b20af15313..c1d5f3228aa9 100644
> --- a/Documentation/devicetree/bindings/reset/renesas,rzg2l-usbphy-ctrl.yaml
> +++ b/Documentation/devicetree/bindings/reset/renesas,rzg2l-usbphy-ctrl.yaml
> @@ -15,12 +15,14 @@ description:
>
> properties:
> compatible:
> - items:
> - - enum:
> - - renesas,r9a07g043-usbphy-ctrl # RZ/G2UL and RZ/Five
> - - renesas,r9a07g044-usbphy-ctrl # RZ/G2{L,LC}
> - - renesas,r9a07g054-usbphy-ctrl # RZ/V2L
> - - const: renesas,rzg2l-usbphy-ctrl
> + oneOf:
> + - items:
> + - enum:
> + - renesas,r9a07g043-usbphy-ctrl # RZ/G2UL and RZ/Five
> + - renesas,r9a07g044-usbphy-ctrl # RZ/G2{L,LC}
> + - renesas,r9a07g054-usbphy-ctrl # RZ/V2L
> + - const: renesas,rzg2l-usbphy-ctrl
> + - const: renesas,r9a08g045-usbphy-ctrl # RZ/G3S
>
> reg:
> maxItems: 1
> @@ -48,6 +50,19 @@ properties:
> $ref: /schemas/regulator/regulator.yaml#
> unevaluatedProperties: false
>
> + renesas,sysc-pwrrdy:
> + description: The system controller PWRRDY indicates to the USB PHY if the
> + power supply is ready. PWRRDY needs to be set during power-on
> + before applying any other settings. It also needs to
> + be set before powering off the USB.
Where did this odd formatting come from? If copied from somewhere else,
patches reformatting them welcome.
description:
The system controller PWRRDY indicates to the USB PHY if the power
supply is ready. PWRRDY needs to be set during power-on before applying
any other settings. It also needs to be set before powering off the USB.
> + $ref: /schemas/types.yaml#/definitions/phandle-array
> + items:
> + - items:
> + - description: System controller phandle required by USB PHY CTRL
> + driver to set PWRRDY
Indent by 2 more than 'description'
With that,
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
> + - description: Register offset associated with PWRRDY
> + - description: Register bitmask associated with PWRRDY
> +
> required:
> - compatible
> - reg
> @@ -57,6 +72,19 @@ required:
> - '#reset-cells'
> - regulator-vbus
>
> +allOf:
> + - if:
> + properties:
> + compatible:
> + contains:
> + const: renesas,r9a08g045-usbphy-ctrl
> + then:
> + required:
> + - renesas,sysc-pwrrdy
> + else:
> + properties:
> + renesas,sysc-pwrrdy: false
> +
> additionalProperties: false
>
> examples:
> --
> 2.43.0
>
--
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
WARNING: multiple messages have this Message-ID (diff)
From: Rob Herring <robh@kernel.org>
To: Claudiu <claudiu.beznea@tuxon.dev>
Cc: vkoul@kernel.org, kishon@kernel.org, krzk+dt@kernel.org,
conor+dt@kernel.org, p.zabel@pengutronix.de,
geert+renesas@glider.be, magnus.damm@gmail.com,
yoshihiro.shimoda.uh@renesas.com, biju.das.jz@bp.renesas.com,
linux-phy@lists.infradead.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org,
Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Subject: Re: [PATCH v4 4/8] dt-bindings: reset: renesas,rzg2l-usbphy-ctrl: Document RZ/G3S support
Date: Wed, 13 Aug 2025 18:21:00 -0500 [thread overview]
Message-ID: <20250813232100.GA950521-robh@kernel.org> (raw)
In-Reply-To: <20250808061806.2729274-5-claudiu.beznea.uj@bp.renesas.com>
On Fri, Aug 08, 2025 at 09:18:02AM +0300, Claudiu wrote:
> From: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
>
> The Renesas USB PHY hardware block needs to have the PWRRDY bit in the
> system controller set before applying any other settings. The PWRRDY bit
> must be controlled during power-on, power-off, and system suspend/resume
> sequences as follows:
> - during power-on/resume, it must be set to zero before enabling clocks and
> modules
> - during power-off/suspend, it must be set to one after disabling clocks
> and modules
>
> Add the renesas,sysc-pwrrdy device tree property, which allows the
> reset-rzg2l-usbphy-ctrl driver to parse, map, and control the system
> controller PWRRDY bit at the appropriate time. Along with it add a new
> compatible for the RZ/G3S SoC.
>
> Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
> ---
>
> Changes in v4:
> - dropped blank line from compatible section
> - s/renesas,sysc-signals/renesas,sysc-pwrrdy/g
> - dropped description from renesas,sysc-pwrrdy
> - updated description of renesas,sysc-pwrrdy items
> - updated patch description
>
> Changes in v3:
> - none; this patch is new
>
> .../reset/renesas,rzg2l-usbphy-ctrl.yaml | 40 ++++++++++++++++---
> 1 file changed, 34 insertions(+), 6 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/reset/renesas,rzg2l-usbphy-ctrl.yaml b/Documentation/devicetree/bindings/reset/renesas,rzg2l-usbphy-ctrl.yaml
> index b0b20af15313..c1d5f3228aa9 100644
> --- a/Documentation/devicetree/bindings/reset/renesas,rzg2l-usbphy-ctrl.yaml
> +++ b/Documentation/devicetree/bindings/reset/renesas,rzg2l-usbphy-ctrl.yaml
> @@ -15,12 +15,14 @@ description:
>
> properties:
> compatible:
> - items:
> - - enum:
> - - renesas,r9a07g043-usbphy-ctrl # RZ/G2UL and RZ/Five
> - - renesas,r9a07g044-usbphy-ctrl # RZ/G2{L,LC}
> - - renesas,r9a07g054-usbphy-ctrl # RZ/V2L
> - - const: renesas,rzg2l-usbphy-ctrl
> + oneOf:
> + - items:
> + - enum:
> + - renesas,r9a07g043-usbphy-ctrl # RZ/G2UL and RZ/Five
> + - renesas,r9a07g044-usbphy-ctrl # RZ/G2{L,LC}
> + - renesas,r9a07g054-usbphy-ctrl # RZ/V2L
> + - const: renesas,rzg2l-usbphy-ctrl
> + - const: renesas,r9a08g045-usbphy-ctrl # RZ/G3S
>
> reg:
> maxItems: 1
> @@ -48,6 +50,19 @@ properties:
> $ref: /schemas/regulator/regulator.yaml#
> unevaluatedProperties: false
>
> + renesas,sysc-pwrrdy:
> + description: The system controller PWRRDY indicates to the USB PHY if the
> + power supply is ready. PWRRDY needs to be set during power-on
> + before applying any other settings. It also needs to
> + be set before powering off the USB.
Where did this odd formatting come from? If copied from somewhere else,
patches reformatting them welcome.
description:
The system controller PWRRDY indicates to the USB PHY if the power
supply is ready. PWRRDY needs to be set during power-on before applying
any other settings. It also needs to be set before powering off the USB.
> + $ref: /schemas/types.yaml#/definitions/phandle-array
> + items:
> + - items:
> + - description: System controller phandle required by USB PHY CTRL
> + driver to set PWRRDY
Indent by 2 more than 'description'
With that,
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
> + - description: Register offset associated with PWRRDY
> + - description: Register bitmask associated with PWRRDY
> +
> required:
> - compatible
> - reg
> @@ -57,6 +72,19 @@ required:
> - '#reset-cells'
> - regulator-vbus
>
> +allOf:
> + - if:
> + properties:
> + compatible:
> + contains:
> + const: renesas,r9a08g045-usbphy-ctrl
> + then:
> + required:
> + - renesas,sysc-pwrrdy
> + else:
> + properties:
> + renesas,sysc-pwrrdy: false
> +
> additionalProperties: false
>
> examples:
> --
> 2.43.0
>
next prev parent reply other threads:[~2025-08-13 23:21 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-08 6:17 [PATCH v4 0/8] Add initial USB support for the Renesas RZ/G3S SoC Claudiu
2025-08-08 6:17 ` Claudiu
2025-08-08 6:17 ` [PATCH v4 1/8] soc: renesas: rz-sysc: Add syscon/regmap support Claudiu
2025-08-08 6:17 ` Claudiu
2025-08-08 9:29 ` Geert Uytterhoeven
2025-08-08 9:29 ` Geert Uytterhoeven
2025-08-08 10:32 ` Claudiu Beznea
2025-08-08 10:32 ` Claudiu Beznea
2025-08-08 11:36 ` Geert Uytterhoeven
2025-08-08 11:36 ` Geert Uytterhoeven
2025-08-08 12:11 ` Claudiu Beznea
2025-08-08 12:11 ` Claudiu Beznea
2025-08-08 6:18 ` [PATCH v4 2/8] dt-bindings: phy: renesas,usb2-phy: Mark resets as required for RZ/G3S Claudiu
2025-08-08 6:18 ` Claudiu
2025-08-08 6:18 ` [PATCH v4 3/8] phy: renesas: rcar-gen3-usb2: Fix an error handling path in rcar_gen3_phy_usb2_probe() Claudiu
2025-08-08 6:18 ` Claudiu
2025-08-08 6:18 ` [PATCH v4 4/8] dt-bindings: reset: renesas,rzg2l-usbphy-ctrl: Document RZ/G3S support Claudiu
2025-08-08 6:18 ` Claudiu
2025-08-13 23:21 ` Rob Herring [this message]
2025-08-13 23:21 ` Rob Herring
2025-08-19 5:21 ` claudiu beznea
2025-08-19 5:21 ` claudiu beznea
2025-08-08 6:18 ` [PATCH v4 5/8] reset: rzg2l-usbphy-ctrl: Add support for USB PWRRDY Claudiu
2025-08-08 6:18 ` Claudiu
2025-08-08 6:18 ` [PATCH v4 6/8] reset: rzg2l-usbphy-ctrl: Add support for RZ/G3S SoC Claudiu
2025-08-08 6:18 ` Claudiu
2025-08-08 6:18 ` [PATCH v4 7/8] arm64: dts: renesas: r9a08g045: Add USB support Claudiu
2025-08-08 6:18 ` Claudiu
2025-08-08 6:18 ` [PATCH v4 8/8] arm64: dts: renesas: rzg3s-smarc: Enable " Claudiu
2025-08-08 6:18 ` Claudiu
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=20250813232100.GA950521-robh@kernel.org \
--to=robh@kernel.org \
--cc=biju.das.jz@bp.renesas.com \
--cc=claudiu.beznea.uj@bp.renesas.com \
--cc=claudiu.beznea@tuxon.dev \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=geert+renesas@glider.be \
--cc=kishon@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=magnus.damm@gmail.com \
--cc=p.zabel@pengutronix.de \
--cc=vkoul@kernel.org \
--cc=yoshihiro.shimoda.uh@renesas.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.