From: Lorenzo Bianconi <lorenzo@kernel.org>
To: sashiko-reviews@lists.linux.dev
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org,
netdev@vger.kernel.org
Subject: Re: [PATCH net-next v7 01/10] dt-bindings: net: airoha: Add EN7581 ethernet-ports properties
Date: Mon, 18 May 2026 22:39:10 +0200 [thread overview]
Message-ID: <agt47l8NuOj-Ufr8@lore-desk> (raw)
In-Reply-To: <20260517055811.EFECEC2BCB3@smtp.kernel.org>
[-- Attachment #1: Type: text/plain, Size: 3453 bytes --]
> Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
> - [Medium] Unconditionally requiring `#address-cells` and `#size-cells` for `ethernet@3` and `ethernet@4` breaks backward compatibility and causes `dtc` warnings.
> - [Low] The `reg` property in the `airoha,eth-port` node incorrectly uses `maxItems: 5` instead of `maximum: 5`.
> --
>
> commit f8c9c25c14697c9de91b47f1ea5850c1b33f44a9
> Author: Lorenzo Bianconi <lorenzo@kernel.org>
>
> dt-bindings: net: airoha: Add EN7581 ethernet-ports properties
>
> The EN7581 and AN7583 SoCs support connecting multiple external SerDes to GDM3
> or GDM4 ports via a hw arbiter that manages the traffic in a TDM manner. This
> commit introduces the ethernet-port property in order to model a given
> net_device connected via the external arbiter.
>
> > diff --git a/Documentation/devicetree/bindings/net/airoha,en7581-eth.yaml b/Documentation/devicetree/bindings/net/airoha,en7581-eth.yaml
> > index fbe2ddcdd909c..7144d6da7394b 100644
> > --- a/Documentation/devicetree/bindings/net/airoha,en7581-eth.yaml
> > +++ b/Documentation/devicetree/bindings/net/airoha,en7581-eth.yaml
> > @@ -130,6 +130,46 @@ patternProperties:
> > maximum: 4
> > description: GMAC port identifier
> >
> > + allOf:
> > + - if:
> > + properties:
> > + reg:
> > + contains:
> > + items:
> > + - enum:
> > + - 3
> > + - 4
> > + then:
> > + properties:
> > + '#address-cells':
> > + const: 1
> > +
> > + '#size-cells':
> > + const: 0
> > +
> > + patternProperties:
> > + "^ethernet@[0-5]$":
> > + type: object
> > + unevaluatedProperties: false
> > + $ref: ethernet-controller.yaml#
> > + description: External ethernet port ID available on the GDM port
> > +
> > + properties:
> > + compatible:
> > + const: airoha,eth-port
> > +
> > + reg:
> > + maxItems: 5
>
> Could this maxItems constraint allow the reg array to contain up to 5 elements
> (e.g., reg = <0 1 2 3 4>)? Since the parent node enforces #address-cells = <1>
> and #size-cells = <0>, shouldn't this use maximum: 5 instead to restrict the
> numeric value of a single port ID?
ack, I will fix it in v8.
>
> > + description: External ethernet port identifier
> > +
> > + required:
> > + - reg
> > + - compatible
> > +
> > + required:
> > + - "#address-cells"
> > + - "#size-cells"
>
> Will unconditionally requiring #address-cells and #size-cells for ethernet@3
> and ethernet@4 break configurations that don't use the external arbiter?
>
> If a board connects the GDM3 or GDM4 port directly to a PHY without child nodes,
> it seems these properties would fail schema validation.
>
> Also, if added merely to satisfy dtbs_check, wouldn't dtc emit an
> avoid_unnecessary_addr_size warning when the node has no children?
ack, I will fix it in v8.
Regards,
Lorenzo
>
> --
> Sashiko AI review · https://sashiko.dev/#/patchset/20260516-airoha-eth-multi-serdes-v7-0-99e0093303e2@kernel.org?part=1
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2026-05-18 20:39 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-16 5:57 [PATCH net-next v7 00/10] net: airoha: Support multiple net_devices connected to the same GDM port Lorenzo Bianconi
2026-05-16 5:57 ` [PATCH net-next v7 01/10] dt-bindings: net: airoha: Add EN7581 ethernet-ports properties Lorenzo Bianconi
[not found] ` <20260517055811.EFECEC2BCB3@smtp.kernel.org>
2026-05-18 20:39 ` Lorenzo Bianconi [this message]
2026-05-16 5:57 ` [PATCH net-next v7 02/10] net: airoha: Introduce airoha_gdm_dev struct Lorenzo Bianconi
[not found] ` <20260517055812.CEC33C2BCB0@smtp.kernel.org>
2026-05-18 20:59 ` Lorenzo Bianconi
2026-05-16 5:57 ` [PATCH net-next v7 03/10] net: airoha: Move airoha_qdma pointer in " Lorenzo Bianconi
[not found] ` <20260517055811.39179C2BCB0@smtp.kernel.org>
2026-05-19 8:21 ` Lorenzo Bianconi
2026-05-16 5:57 ` [PATCH net-next v7 04/10] net: airoha: Rely on airoha_gdm_dev pointer in airoha_is_lan_gdm_port() Lorenzo Bianconi
2026-05-16 5:57 ` [PATCH net-next v7 05/10] net: airoha: Move qos_sq_bmap in airoha_gdm_dev struct Lorenzo Bianconi
[not found] ` <20260517055814.3D107C2BCB0@smtp.kernel.org>
2026-05-19 8:23 ` Lorenzo Bianconi
2026-05-16 5:57 ` [PATCH net-next v7 06/10] net: airoha: Move {cpu,fwd}_tx_packets " Lorenzo Bianconi
2026-05-16 5:57 ` [PATCH net-next v7 07/10] net: airoha: Support multiple net_devices for a single FE GDM port Lorenzo Bianconi
[not found] ` <20260517055813.7DF3AC2BCF5@smtp.kernel.org>
2026-05-18 21:28 ` Lorenzo Bianconi
2026-05-16 5:57 ` [PATCH net-next v7 08/10] net: airoha: Do not stop GDM port if it is shared Lorenzo Bianconi
[not found] ` <20260517055814.DB1F8C2BCB0@smtp.kernel.org>
2026-05-18 22:12 ` Lorenzo Bianconi
2026-05-16 5:57 ` [PATCH net-next v7 09/10] net: airoha: Introduce WAN device flag Lorenzo Bianconi
2026-05-16 5:57 ` [PATCH net-next v7 10/10] net: airoha: Support multiple LAN/WAN interfaces for hw MAC address configuration Lorenzo Bianconi
[not found] ` <20260517055815.89B7CC2BCB0@smtp.kernel.org>
2026-05-19 8:37 ` Lorenzo Bianconi
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=agt47l8NuOj-Ufr8@lore-desk \
--to=lorenzo@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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