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

dt-bindings: usb: cdns,usb3: use common usb-drd yaml

Use common usb-drd yaml for usb OTG related propteries to fix below
DTB_CHECK warning.

arch/arm64/boot/dts/freescale/imx8qxp-mek.dtb: usb@5b110000: usb@5b120000: 'port', 'usb-role-switch' do not match any of the regexes: 'pinctrl-[0-9]+'

Add "port" proptery to use connect type C connector and fix below warning.
arch/arm64/boot/dts/freescale/imx8qxp-mek.dtb: usb@5b110000: usb@5b120000: Unevaluated properties are not allowed ('port' was unexpected)

Signed-off-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/20240607154119.1543290-1-Frank.Li@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Frank Li and committed by
Greg Kroah-Hartman
1899e79c b0fc24f3

+12 -3
+12 -3
Documentation/devicetree/bindings/usb/cdns,usb3.yaml
··· 42 42 - const: otg 43 43 - const: wakeup 44 44 45 - dr_mode: 46 - enum: [host, otg, peripheral] 45 + port: 46 + $ref: /schemas/graph.yaml#/properties/port 47 + description: 48 + This port is used with the 'usb-role-switch' property to connect the 49 + cdns3 to type C connector. 47 50 48 51 maximum-speed: 49 52 enum: [super-speed, high-speed, full-speed] ··· 73 70 description: Enable resetting of PHY if Rx fail is detected 74 71 type: boolean 75 72 73 + dependencies: 74 + port: [ usb-role-switch ] 75 + 76 76 required: 77 77 - compatible 78 78 - reg ··· 83 77 - interrupts 84 78 - interrupt-names 85 79 86 - additionalProperties: false 80 + allOf: 81 + - $ref: usb-drd.yaml# 82 + 83 + unevaluatedProperties: false 87 84 88 85 examples: 89 86 - |