Message ID | 20241119105017.917833-1-xu.yang_2@nxp.com |
---|---|
State | New |
Headers | show |
Series | [v2] dt-bindings: phy: imx8mq-usb: correct reference to usb-switch.yaml | expand |
On Tue, 19 Nov 2024 18:50:17 +0800, Xu Yang wrote: > The i.MX95 usb-phy can work with or without orientation-switch. With > current setting, if usb-phy works without orientation-switch, the > dt-schema check will show below error: > > phy@4c1f0040: 'oneOf' conditional failed, one must be fixed: > 'port' is a required property > 'ports' is a required property > from schema $id: http://devicetree.org/schemas/phy/fsl,imx8mq-usb-phy.yaml# > > This will correct the behavior of referring to usb-switch.yaml. > > Signed-off-by: Xu Yang <xu.yang_2@nxp.com> > > --- > v2: remake patch and subject > --- > .../devicetree/bindings/phy/fsl,imx8mq-usb-phy.yaml | 7 ++----- > 1 file changed, 2 insertions(+), 5 deletions(-) > Acked-by: Rob Herring (Arm) <robh@kernel.org>
Am Dienstag, 19. November 2024, 11:50:17 CET schrieb Xu Yang: > The i.MX95 usb-phy can work with or without orientation-switch. With > current setting, if usb-phy works without orientation-switch, the > dt-schema check will show below error: > > phy@4c1f0040: 'oneOf' conditional failed, one must be fixed: > 'port' is a required property > 'ports' is a required property > from schema $id: http://devicetree.org/schemas/phy/fsl,imx8mq-usb-phy.yaml# > > This will correct the behavior of referring to usb-switch.yaml. > > Signed-off-by: Xu Yang <xu.yang_2@nxp.com> Acked-by: Alexander Stein <alexander.stein@ew.tq-group.com>
On Tue, 19 Nov 2024 18:50:17 +0800, Xu Yang wrote: > The i.MX95 usb-phy can work with or without orientation-switch. With > current setting, if usb-phy works without orientation-switch, the > dt-schema check will show below error: > > phy@4c1f0040: 'oneOf' conditional failed, one must be fixed: > 'port' is a required property > 'ports' is a required property > from schema $id: http://devicetree.org/schemas/phy/fsl,imx8mq-usb-phy.yaml# > > [...] Applied, thanks! [1/1] dt-bindings: phy: imx8mq-usb: correct reference to usb-switch.yaml commit: 2318ca5994599bb4d287e9e00ae87e0855cba712 Best regards,
diff --git a/Documentation/devicetree/bindings/phy/fsl,imx8mq-usb-phy.yaml b/Documentation/devicetree/bindings/phy/fsl,imx8mq-usb-phy.yaml index 6d6d211883ae..daee0c0fc915 100644 --- a/Documentation/devicetree/bindings/phy/fsl,imx8mq-usb-phy.yaml +++ b/Documentation/devicetree/bindings/phy/fsl,imx8mq-usb-phy.yaml @@ -113,11 +113,8 @@ allOf: maxItems: 1 - if: - properties: - compatible: - contains: - enum: - - fsl,imx95-usb-phy + required: + - orientation-switch then: $ref: /schemas/usb/usb-switch.yaml#
The i.MX95 usb-phy can work with or without orientation-switch. With current setting, if usb-phy works without orientation-switch, the dt-schema check will show below error: phy@4c1f0040: 'oneOf' conditional failed, one must be fixed: 'port' is a required property 'ports' is a required property from schema $id: http://devicetree.org/schemas/phy/fsl,imx8mq-usb-phy.yaml# This will correct the behavior of referring to usb-switch.yaml. Signed-off-by: Xu Yang <xu.yang_2@nxp.com> --- v2: remake patch and subject --- .../devicetree/bindings/phy/fsl,imx8mq-usb-phy.yaml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)