dt-bindings: net: constrain number of 'reg' in ethernet ports
'reg' without any constraints allows multiple items which is not the intention for Ethernet controller's port number. Constrain the 'reg' on AX88178 and LAN95xx USB Ethernet Controllers. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Oleksij Rempel <o.rempel@pengutronix.de> Reviewed-by: Rob Herring <robh@kernel.org> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
a3de357b08
commit
bd881b44fd
|
@ -27,7 +27,9 @@ properties:
|
|||
- usbb95,772b # ASIX AX88772B
|
||||
- usbb95,7e2b # ASIX AX88772B
|
||||
|
||||
reg: true
|
||||
reg:
|
||||
maxItems: 1
|
||||
|
||||
local-mac-address: true
|
||||
mac-address: true
|
||||
|
||||
|
|
|
@ -39,7 +39,9 @@ properties:
|
|||
- usb424,9e08 # SMSC LAN89530 USB Ethernet Device
|
||||
- usb424,ec00 # SMSC9512/9514 USB Hub & Ethernet Device
|
||||
|
||||
reg: true
|
||||
reg:
|
||||
maxItems: 1
|
||||
|
||||
local-mac-address: true
|
||||
mac-address: true
|
||||
|
||||
|
|
Loading…
Reference in New Issue