Re: [PATCH v3] checks: Remove check for graph child addresses

David Gibson <[email protected]>
Newsgroups org.kernel.vger.devicetree-compiler,org.kernel.vger.linux-renesas-soc
Message-ID <aKO5RosG6zeIjZKu@zatzit>
On Sun, Aug 17, 2025 at 03:37:33PM +0200, Niklas Söderlund wrote:
> The dtc graph_child_address check can't distinguish between bindings
> where there can only be a single endpoint, and cases where there can be
> multiple endpoints.
> 
> In cases where the bindings allow for multiple endpoints but only one is
> described false warnings about unnecessary #address-cells/#size-cells
> can be generated, but only if the endpoint described have an address of
> 0 (A), for single endpoints with a non-zero address (B) no warnings are
> generated.
> 
> A)
>     ports {
> 	#address-cells = <1>;
> 	#size-cells = <0>;
> 
> 	port@0 {
> 	    #address-cells = <1>;
> 	    #size-cells = <0>;
> 
> 	    sourceA: endpoint@0 {
> 		reg = <0>
> 	    };
> 	};
>     };
> 
> B)
>     ports {
> 	#address-cells = <1>;
> 	#size-cells = <0>;
> 
> 	port@0 {
> 	    #address-cells = <1>;
> 	    #size-cells = <0>;
> 
> 	    sourceB: endpoint@1 {
> 		reg = <1>
> 	    };
> 	};
>     };
> 
> Remove the check as it is somewhat redundant now that we can use schemas
> to validate the full node.
> 
> Signed-off-by: Niklas Söderlund <[email protected]>
> Reviewed-by: Rob Herring (Arm) <[email protected]>

Applied, thanks.

-- 
David Gibson (he or they)	| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you, not the other way
				| around.
http://www.ozlabs.org/~dgibson
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEO+dNsU4E3yXUXRK2zQJF27ox2GcFAmijuUUACgkQzQJF27ox
2GcWdQ/8Cbv3KIEeAoJVRKSPZ6SgNZu/WXxQ1kkIdJhhu9ygvOrJKmGaGIF0R++5
/rXUpgpdmUwQpr+NiQFtHpZOKYXt3VjEWYx0FrC8NCWmY2aZKLsxE5P7kf+2L6em
zvrZ3VNFHipvKGxTXM3juCST34AuQ5tU+Gbey/yBx71Fg18BQMdFEWAELkn7l5g6
6ekZs++Il+LQT8x6iXIsKtEIJMGeJ4q8djSz2/nbRKXu9AnBiJTRpfoMNsnF7KUB
Dak4eTpivLmcdYVW47O2b8Z54rHELu5ZhWT1AjskgZqfO47AgtRtvo1ysuxcOfgG
z9BQCMJ4SAGmAjSOpqUKiGoF2njXtFo0dq3os2+0UnqhLFTEvkpgQR77hSHLPpTL
WJFsuktOmJ+phhs0FvHhXsG8vnUgpLk4nWJ55IQrSzIVkFS8IoLpyXV7ZC3WFXhQ
OqP39opqSqKQiNmLKFxC+EzRrheTezg6W4EkX4r5wpReO2h/Bxq67sOYPo+tG1w9
AATwmN5hAYe7KInq5W5eu/+Hiz20G4P87T0b7vkvgI34grsH43CbWzHjRzMWqn2+
LTnZPdibgIDylyXK4ET/uDZ2uwxI3MY4k4fSKzIodJsUDnDdFA5meQwLa6wwYUeN
ARBPh7nUh/IlpbxG6WlKTHhIjT4zRKYpXCOePSrc0RFbB/+CAM0=
=xcNO
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.