dt-bindings: net: marvell,orion-mdio: Fix examples
authorMichał Grzelak <mig@semihalf.com>
Thu, 29 Dec 2022 14:22:19 +0000 (15:22 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Jan 2023 15:00:12 +0000 (15:00 +0000)
commit91e2286160edd29d3fea8efff2dcda7df321878d
treebba850b3aa04db34bdca43f28e556db1a9fde914
parenta3542b0ccd58f9fd42f34afa9daea435279a7c1c
dt-bindings: net: marvell,orion-mdio: Fix examples

As stated in marvell-orion-mdio.txt deleted in commit 0781434af811f
("dt-bindings: net: orion-mdio: Convert to JSON schema") if
'interrupts' property is present, width of 'reg' should be 0x84.
Otherwise, width of 'reg' should be 0x4. Fix 'examples:' and add
constraints checking whether 'interrupts' property is present
and validate it against fixed values in reg.

Signed-off-by: Michał Grzelak <mig@semihalf.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/devicetree/bindings/net/marvell,orion-mdio.yaml