On Mon, Aug 19, 2024 at 03:38:25PM -0700, Stephen Boyd wrote: > Move the usb-switch endpoint bindings to defs so that they can be reused > by other bindings. Future users of this binding will have more than one > type-c output node when they're muxing a single DP signal to more than > one usb-c-connector. Add an example to show how this binding can be used > and accelerate binding checks. > > Cc: Rob Herring <robh...@kernel.org> > Cc: Krzysztof Kozlowski <krzysztof.kozlowski...@linaro.org> > Cc: Conor Dooley <conor...@kernel.org> > Cc: Benson Leung <ble...@chromium.org> > Cc: Guenter Roeck <gro...@chromium.org> > Cc: Prashant Malani <pmal...@chromium.org> > Cc: Tzung-Bi Shih <tzun...@kernel.org> > Cc: <devicet...@vger.kernel.org> > Cc: <chrome-platf...@lists.linux.dev> > Cc: Pin-yen Lin <treapk...@chromium.org> > Signed-off-by: Stephen Boyd <swb...@chromium.org> > --- > .../devicetree/bindings/usb/usb-switch.yaml | 74 ++++++++++++++++--- > 1 file changed, 62 insertions(+), 12 deletions(-) > > diff --git a/Documentation/devicetree/bindings/usb/usb-switch.yaml > b/Documentation/devicetree/bindings/usb/usb-switch.yaml > index da76118e73a5..5fc031b56fad 100644 > --- a/Documentation/devicetree/bindings/usb/usb-switch.yaml > +++ b/Documentation/devicetree/bindings/usb/usb-switch.yaml > @@ -35,9 +35,13 @@ properties: > $ref: /schemas/graph.yaml#/properties/ports > properties: > port@0: > - $ref: /schemas/graph.yaml#/properties/port > - description: > - Super Speed (SS) Output endpoint to the Type-C connector > + $ref: /schemas/graph.yaml#/$defs/port-base > + unevaluatedProperties: false > + > + properties: > + endpoint: > + $ref: '#/$defs/usbc-out-endpoint' > + unevaluatedProperties: false
You can drop this unevaluatedProperties since the $ref contains one. Same elsewhere. Otherwise, Reviewed-by: Rob Herring (Arm) <r...@kernel.org>