linux/Documentation/devicetree
Ravikanth Tuniki 25a54df408 dt-bindings: net: xlnx,axi-ethernet: Add missing reg minItems
[ Upstream commit c6929644c1 ]

Add missing reg minItems as based on current binding document
only ethernet MAC IO space is a supported configuration.

There is a bug in schema, current examples contain 64-bit
addressing as well as 32-bit addressing. The schema validation
does pass incidentally considering one 64-bit reg address as
two 32-bit reg address entries. If we change axi_ethernet_eth1
example node reg addressing to 32-bit schema validation reports:

Documentation/devicetree/bindings/net/xlnx,axi-ethernet.example.dtb:
ethernet@40000000: reg: [[1073741824, 262144]] is too short

To fix it add missing reg minItems constraints and to make things clearer
stick to 32-bit addressing in examples.

Fixes: cbb1ca6d5f ("dt-bindings: net: xlnx,axi-ethernet: convert bindings document to yaml")
Signed-off-by: Ravikanth Tuniki <ravikanth.tuniki@amd.com>
Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://patch.msgid.link/1727723615-2109795-1-git-send-email-radhey.shyam.pandey@amd.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2024-10-10 11:57:18 +02:00
..
bindings dt-bindings: net: xlnx,axi-ethernet: Add missing reg minItems 2024-10-10 11:57:18 +02:00
changesets.rst docs: dt: Make 'Devicetree' wording more consistent 2021-03-27 12:58:04 -06:00
dynamic-resolution-notes.rst docs: dt: Make 'Devicetree' wording more consistent 2021-03-27 12:58:04 -06:00
index.rst docs: dt: Add DT API documentation 2021-03-27 12:59:03 -06:00
kernel-api.rst docs: dt: Add DT API documentation 2021-03-27 12:59:03 -06:00
of_unittest.rst of: unittest: add program to process EXPECT messages 2022-02-28 15:20:32 -06:00
overlay-notes.rst of: overlay: rework overlay apply and remove kfree()s 2022-04-25 10:56:11 -05:00
usage-model.rst docs: dt: fix documented Primecell compatible string 2023-06-08 07:31:59 -06:00