lkml.org 
[lkml]   [2023]   [Jan]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC v4 1/5] dt-bindings: usb: Add bindings to support multiport properties
On Sun, Jan 15, 2023 at 05:11:42PM +0530, Krishna Kurapati wrote:
> diff --git a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml
[..]
> phy-names:
> minItems: 1
> - maxItems: 2
> - items:
> - enum:
> - - usb2-phy
> - - usb3-phy
> + maxItems: 8
> + oneOf:
> + - items:
> + enum:
> + - usb2-phy
> + - usb3-phy
> + - items:
> + enum:
> + - usb2-phy_port0
> + - usb2-phy_port1
> + - usb2-phy_port2
> + - usb2-phy_port3
> + - usb3-phy_port0
> + - usb3-phy_port1
> + - usb3-phy_port2
> + - usb3-phy_port3

How about expressing this as:

oneOf:
- items:
enum: [ usb2-phy, usb3-phy ]
- items:
pattern: "^usb[23]-phy_port[0-3]$"

Regards,
Bjorn

\
 
 \ /
  Last update: 2023-03-26 23:46    [W:0.271 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site