From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796495383; b=vkOgE3pWQTOASAOVTKcrTYAlIlR19Vdrz/lNeuvIIb6qhZvn56jTMP+jBZHACT2y+p2m XIgLEpODS9zIaWGpm/a+tLql+pW9N3iHP8NdTy1u2XLBQlFMvr5NdgS744F7tl+eDgbnJ UJGZbfYle1MOx1k5Ec7zk7R5BfWt/uGEsZW9Rug+qNR/XUpfS8O6+dAxdHUcPNH1Jr+mR WhW8ZOG7lpnxEnjUr3qASudQyXANwH4FRWV+T6c9lEOwX/4YHKnP+hk+dzM6b40YMi5T2 b6ByOBxvLZWlvBzcJB8I4dy520seBOvH74nwWumFgavIlc2d8MCK2eMlFGZ0a5JykLg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796495383; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=zk+OEpCHjPsWhFEPUFjBRjaFjbGz/QFu8pgjRFro8Jg=; b=paPKjF3LZRrU+KETamgxWR5RNsYdgpu8gQ2s46JlUwg8gbrtZ7U+fLUj82T5Jh+0+SHn 9rqQEqS/rT+t+RXtaZE4yxkeDFdATvuiVLdCTYJWNTcZp6S2/I8KNTDDzHFigq9GTvHDK p/CvjMqavvimyLitplkCYBrVlShqXo2QzyQk/z1/00ZL/GNATYz2pb4SEurge+kUoqNf5 oyYZwzTAn5hZb1vN2y9zBrDY9RiMVh5Ec+zHX+Ra+cJrgZEj53RthMqzoJv8UEnRjjwWH YMzTIGBuCz+YtL7g4fyMg5ygBDa7yTRYOG0CJHoA8yzKsB8mnLKDFeAfNy87fH0lQDQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=AbLWPW5d; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4ACC0606A31F for ; Sat, 5 Dec 2026 18:29:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=AbLWPW5d Received: by smtp.kernel.org (Postfix) with ESMTPSA id BEA1A1F00936; Sat, 5 Dec 2026 18:29:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796495382; bh=zk+OEpCHjPsWhFEPUFjBRjaFjbGz/QFu8pgjRFro8Jg=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=AbLWPW5df+68urpuli9O4SafEK0JQrRDi03Zj22IytLm2Xapolt52IVVXxZ3M1PSo u8pS52SM+d9FtHee0HJl35f/fRHbnyw9Qroij6K/kSAYP7YUfcWtolvXbSCHZ18hzD UyFL+0Ceq0iG30XOX4UqS/ED0iJouMWa14+LToDYnM7u174cvhIV0y4yrQPir2aX3p cCM+1Hm8mZlo8o4WDD5/e9xyt0BNUu86oUgqu0JHG1kFCothXEzol18qez0y0lqtmu uSpyTv5SL3ouVd3qIixJmYmu6061BzWc3F50bFOUfpTE4S+Xuw8AVfIphlR0YQqxDP WuELqO/seE/eQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [RFC PATCH net-next 3/6] dt-bindings: net: dsa: realtek: add new rtl9607c switch compatible Reply-To: sashiko-reviews@lists.linux.dev To: "Rustam Adilov" , devicetree@vger.kernel.org Cc: robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261204182553.33952-4-adilov@disroot.org> References: <20261204182553.33952-1-adilov@disroot.org> <20261204182553.33952-4-adilov@disroot.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sat, 05 Dec 2026 18:29:42 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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 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/Doc= umentation/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 > + #include > + > + ethernet-switch@1b000000 { > + compatible =3D "realtek,rtl9607c-switch", "syscon", "simple-= mfd"; > + reg =3D <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 =3D <1>; > + #size-cells =3D <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 =3D <9>; > + ethernet =3D <&gmac0>; > + phy-mode =3D "internal"; > + fixed-link { > + speed =3D <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. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204182553.3395= 2-1-adilov@disroot.org?part=3D3