lkml.org 
[lkml]   [2023]   [Feb]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [EXTERNAL] Re: [PATCH v4 1/2] dt-bindings: net: Add ICSSG Ethernet Driver bindings
From
On 06/02/2023 11:39, Md Danish Anwar wrote:
>>> + properties:
>>> + '#address-cells':
>>> + const: 1
>>> + '#size-cells':
>>> + const: 0
>>> +
>>> + patternProperties:
>>> + ^port@[0-1]$:
>>> + type: object
>>> + description: ICSSG PRUETH external ports
>>> +
>
> At least one ethernet port is required. Should I add the below line here for this?
>
> minItems: 1

You need after the patternProperties:
anyOf:
- required:
- port@0
- required:
- port@1

>
>

Best regards,
Krzysztof

\
 
 \ /
  Last update: 2023-03-27 00:10    [W:0.111 / U:0.236 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site