From: sashiko-bot@kernel.org
To: "Rustam Adilov" <adilov@disroot.org>, devicetree@vger.kernel.org
Cc: robh@kernel.org, conor+dt@kernel.org
Subject: Re: [RFC PATCH net-next 3/6] dt-bindings: net: dsa: realtek: add new rtl9607c switch compatible
Date: Sat, 05 Dec 2026 18:29:42 +0000 [thread overview]
Message-ID: <sashiko-outbox-251794@kernel.org> (raw)
In-Reply-To: <20261204182553.33952-4-adilov@disroot.org>
Thank you for your contribution! Sashiko AI review found 4 potential
issues to consider:
- [Medium] dt-bindings: realtek: missing closing brace in RTL9607C
example
- [Medium] dt-bindings: realtek: single-string compatible enum rejects
syscon list
- [Medium] dt-bindings: realtek: reg conditional applies SPI schema and
bans mdio
- [Medium] dt-bindings: realtek: undeclared #address-cells/#size-cells
in example
--
commit 8258ecde66c556092d02b98bb36dc923750f3241
Author: Rustam Adilov <adilov@disroot.org>
dt-bindings: net: dsa: realtek: add new rtl9607c switch compatible
This commit documents MMIO-connected Realtek switches in realtek.yaml,
adds the realtek,rtl9607c-switch compatible string, and provides a device
tree example for RTL9607C.
> diff --git a/Documentation/devicetree/bindings/net/dsa/realtek.yaml b/Documentation/devicetree/bindings/net/dsa/realtek.yaml
> index b7bb60af623ca..761a79bc28d94 100644
> --- a/Documentation/devicetree/bindings/net/dsa/realtek.yaml
> +++ b/Documentation/devicetree/bindings/net/dsa/realtek.yaml
[ ... ]
> @@ -53,6 +56,7 @@ properties:
> enum:
> - realtek,rtl8365mb
> - realtek,rtl8366rb
> + - realtek,rtl9607c-switch
[Severity: Medium]
Does adding realtek,rtl9607c-switch to the flat compatible enum reject
the multi-string compatible in the new example?
A top-level enum restricts compatible to one string, so the example's
"realtek,rtl9607c-switch", "syscon", "simple-mfd" fails dt_binding_check.
Conversely, rtl83xx_probe() calls syscon_node_to_regmap(), which requires
"syscon" and returns -EPROBE_DEFER if it is omitted.
In addition, "simple-mfd" has no MFD child bindings or child nodes here.
Either drop syscon and simple-mfd (mapping reg directly in the driver),
or use oneOf with items to allow the list and model any MFD children.
[ ... ]
> @@ -421,3 +427,54 @@ examples:
> };
> };
> };
> + - |
> + #include <dt-bindings/interrupt-controller/mips-gic.h>
> + #include <dt-bindings/interrupt-controller/irq.h>
> +
> + ethernet-switch@1b000000 {
> + compatible = "realtek,rtl9607c-switch", "syscon", "simple-mfd";
> + reg = <0x1b000000 0x1000000>;
[Severity: Medium]
Does the existing reg conditional in realtek.yaml reject this MMIO reg
property and forbid the mdio child node?
Any node with reg matches "if: required: [ reg ]", applying
spi-peripheral-props.yaml# and setting mdio: false. That schema limits
reg to single-cell values in [0, 256], so <0x1b000000 0x1000000> fails
dt_binding_check while SPI properties are spuriously allowed.
Omitting reg instead falls into the else branch requiring SMI GPIOs, as
reg is not required for realtek,rtl9607c-switch. Setting mdio: false
also conflicts with rtl9607c_main.c, where rtl83xx_setup_user_mdio()
returns -ENODEV if the internal mdio child node is absent.
> + #address-cells = <1>;
> + #size-cells = <1>;
[Severity: Medium]
Are #address-cells and #size-cells rejected on ethernet-switch@1b000000
by unevaluatedProperties: false?
Neither realtek.yaml nor its referenced schemas define #address-cells or
#size-cells on the switch node, so dt_binding_check fails. No direct
child in the example has a reg property or unit address either, which
also triggers a dtc warning for unnecessary address/size cells.
[ ... ]
> + ethernet-port@9 {
> + reg = <9>;
> + ethernet = <&gmac0>;
> + phy-mode = "internal";
> + fixed-link {
> + speed = <1000>;
> + full-duplex;
> + };
> + };
> + };
[Severity: Medium]
Is ethernet-switch@1b000000 missing its closing brace? The final "};"
only closes ethernet-ports, leaving the switch node unclosed at the end
of the file and causing dtc to fail with a syntax error during
make dt_binding_check.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204182553.33952-1-adilov@disroot.org?part=3
next prev parent reply other threads:[~2026-12-05 18:29 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 18:25 [RFC PATCH net-next 0/6] net: dsa: realtek: add support for RTL9607C switch Rustam Adilov
2026-12-04 18:25 ` [RFC PATCH net-next 1/6] net: dsa: tag_rtl8_4: add support for RTL9607C tag variant Rustam Adilov
2026-12-05 18:29 ` sashiko-bot
2026-12-04 18:25 ` [RFC PATCH net-next 2/6] net: dsa: realtek: add new mmio interface for drivers Rustam Adilov
2026-12-05 18:29 ` sashiko-bot
2026-12-04 18:25 ` [RFC PATCH net-next 3/6] dt-bindings: net: dsa: realtek: add new rtl9607c switch compatible Rustam Adilov
2026-12-05 18:29 ` sashiko-bot [this message]
2026-12-04 18:25 ` [RFC PATCH net-next 4/6] net: dsa: realtek: add support for RTL9607C switch Rustam Adilov
2026-12-05 18:29 ` sashiko-bot
2026-12-04 18:25 ` [RFC PATCH net-next 5/6] net: phy: realtek: use mdio.addr instead of 0 in rtlgen_read/write_vend2 Rustam Adilov
2026-12-04 18:25 ` [RFC PATCH net-next 6/6] net: phy: realtek: add support for RTL9607C internal PHYs Rustam Adilov
2026-12-05 18:29 ` sashiko-bot
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=sashiko-outbox-251794@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=adilov@disroot.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@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