From: Conor Dooley <conor@kernel.org>
To: Eugen Hristev <eugen.hristev@collabora.com>
Cc: linux-mediatek@lists.infradead.org, chunfeng.yun@mediatek.com,
vkoul@kernel.org, kishon@kernel.org, robh+dt@kernel.org,
krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org,
matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com,
sam.shih@mediatek.com, jieyy.yang@mediatek.com,
frank-w@public-files.de, linux-arm-kernel@lists.infradead.org,
linux-phy@lists.infradead.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, chris.obbard@collabora.com,
kernel@collabora.com
Subject: Re: [PATCH v2 1/2] dt-bindings: phy: mediatek,tphy: allow simple nodename pattern
Date: Mon, 14 Aug 2023 17:19:01 +0100 [thread overview]
Message-ID: <20230814-isolating-faceless-72835873207e@spud> (raw)
In-Reply-To: <20230814093931.9298-1-eugen.hristev@collabora.com>
[-- Attachment #1: Type: text/plain, Size: 1861 bytes --]
On Mon, Aug 14, 2023 at 12:39:30PM +0300, Eugen Hristev wrote:
> The pattern for the nodename only allows t-phy@... , however, for the case
> when the t-phy has no `reg` and only `ranges` (basically when the t-phy
> is just a parent node), dtc will throw this warning:
>
> Warning (unit_address_vs_reg): /t-phy@1a243000: node has a unit name, but no reg or ranges property
>
> For a node like this:
>
> sata_phy: t-phy@1a243000 {
> ranges;
>
> sata_port: sata-phy@1a243000 {
> reg = <0 0x1a243000 0 0x0100>;
> };
> };
>
> it is normal that the parent node 't-phy' would be without any address, as in:
>
> sata_phy: t-phy {
> ranges;
>
> sata_port: sata-phy@1a243000 {
> reg = <0 0x1a243000 0 0x0100>;
> };
> };
>
> because being just a holder it does not have its own reg.
>
> However the binding does not allow such a name for the t-phy, so with this
> patch, making the `@[0-9a-f]+` part optional, such node is possible.
>
> Signed-off-by: Eugen Hristev <eugen.hristev@collabora.com>
This seems reasonable to me, perhaps the lads will scream.
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Thanks,
Conor.
> ---
> Changes in v2:
> - none
> Documentation/devicetree/bindings/phy/mediatek,tphy.yaml | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/phy/mediatek,tphy.yaml b/Documentation/devicetree/bindings/phy/mediatek,tphy.yaml
> index 230a17f24966..2bb91542e984 100644
> --- a/Documentation/devicetree/bindings/phy/mediatek,tphy.yaml
> +++ b/Documentation/devicetree/bindings/phy/mediatek,tphy.yaml
> @@ -64,7 +64,7 @@ description: |
>
> properties:
> $nodename:
> - pattern: "^t-phy@[0-9a-f]+$"
> + pattern: "^t-phy(@[0-9a-f]+)?$"
>
> compatible:
> oneOf:
> --
> 2.34.1
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2023-08-14 16:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-14 9:39 [PATCH v2 1/2] dt-bindings: phy: mediatek,tphy: allow simple nodename pattern Eugen Hristev
2023-08-14 9:39 ` [PATCH v2 2/2] arm64: dts: mediatek: fix t-phy unit name Eugen Hristev
2023-10-03 9:19 ` AngeloGioacchino Del Regno
2023-08-14 16:19 ` Conor Dooley [this message]
2023-08-17 9:55 ` (subset) [PATCH v2 1/2] dt-bindings: phy: mediatek,tphy: allow simple nodename pattern Vinod Koul
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=20230814-isolating-faceless-72835873207e@spud \
--to=conor@kernel.org \
--cc=angelogioacchino.delregno@collabora.com \
--cc=chris.obbard@collabora.com \
--cc=chunfeng.yun@mediatek.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=eugen.hristev@collabora.com \
--cc=frank-w@public-files.de \
--cc=jieyy.yang@mediatek.com \
--cc=kernel@collabora.com \
--cc=kishon@kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-phy@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=robh+dt@kernel.org \
--cc=sam.shih@mediatek.com \
--cc=vkoul@kernel.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;
as well as URLs for NNTP newsgroup(s).