[Linux-stm32] [PATCH 2/8] dt-bindings: net: Add a YAML schemas for the generic PHY options
Maxime Ripard
maxime.ripard at bootlin.com
Fri May 24 11:06:49 UTC 2019
Hi Rob,
On Thu, May 23, 2019 at 09:44:51AM -0500, Rob Herring wrote:
> > + reg:
> > + maxItems: 1
> > + minimum: 0
> > + maximum: 31
>
> min/max need to be under 'items'. I don't think these would ever be
> valid if the type is an array.
>
> I've modified the meta-schema to catch this.
Have you pushed it already?
Using:
reg:
maxItems: 1
items:
minimum: 0
maximum: 31
is creating this error when running dtbs_check
ethernet-phy.yaml: properties:reg: {'maxItems': 1, 'items': {'minimum': 0, 'maximum': 31}, 'description': 'The ID number for the PHY.'} is not valid under any of the given schemas
Maxime
--
Maxime Ripard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
More information about the Linux-stm32
mailing list