]> www.infradead.org Git - users/willy/pagecache.git/commit
dt-bindings: net: xlnx,axi-ethernet: Add missing reg minItems
authorRavikanth Tuniki <ravikanth.tuniki@amd.com>
Mon, 30 Sep 2024 19:13:35 +0000 (00:43 +0530)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 3 Oct 2024 10:15:04 +0000 (12:15 +0200)
commitc6929644c1e0d6108e57061d427eb966e1746351
tree4a864e894462e1cbb1340f9580b6df5aaf21881e
parentb63ad06ddddfe792f93df0c24adb66622bd7b8c9
dt-bindings: net: xlnx,axi-ethernet: Add missing reg minItems

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: cbb1ca6d5f9a ("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>
Documentation/devicetree/bindings/net/xlnx,axi-ethernet.yaml