Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: phy: imx8mq-usb: correct reference to 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>
Acked-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/20241119105017.917833-1-xu.yang_2@nxp.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Xu Yang and committed by
Vinod Koul
2318ca59 691cdb40

+2 -5
+2 -5
Documentation/devicetree/bindings/phy/fsl,imx8mq-usb-phy.yaml
··· 113 113 maxItems: 1 114 114 115 115 - if: 116 - properties: 117 - compatible: 118 - contains: 119 - enum: 120 - - fsl,imx95-usb-phy 116 + required: 117 + - orientation-switch 121 118 then: 122 119 $ref: /schemas/usb/usb-switch.yaml# 123 120