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

dt-bindings: usb: snps,dwc3: correct i.MX8MQ support

The previous i.MX8MQ support breaks rockchip,dwc3 support,
so use select to restrict i.MX8MQ support and avoid break others.

Fixes: 3754c41c7686 ("dt-bindings: usb: snps,dwc3: support i.MX8MQ")
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20230323035531.3808192-1-peng.fan@oss.nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Peng Fan and committed by
Greg Kroah-Hartman
092a2a78 8c1b63b3

+53 -7
+48
Documentation/devicetree/bindings/usb/fsl,imx8mq-dwc3.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/usb/fsl,imx8mq-dwc3.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: NXP iMX8MQ Soc USB Controller 8 + 9 + maintainers: 10 + - Li Jun <jun.li@nxp.com> 11 + - Peng Fan <peng.fan@nxp.com> 12 + 13 + select: 14 + properties: 15 + compatible: 16 + contains: 17 + enum: 18 + - fsl,imx8mq-dwc3 19 + required: 20 + - compatible 21 + 22 + properties: 23 + compatible: 24 + items: 25 + - const: fsl,imx8mq-dwc3 26 + - const: snps,dwc3 27 + 28 + allOf: 29 + - $ref: snps,dwc3.yaml# 30 + 31 + unevaluatedProperties: false 32 + 33 + examples: 34 + - | 35 + #include <dt-bindings/clock/imx8mq-clock.h> 36 + #include <dt-bindings/interrupt-controller/arm-gic.h> 37 + 38 + usb_dwc3_1: usb@38200000 { 39 + compatible = "fsl,imx8mq-dwc3", "snps,dwc3"; 40 + reg = <0x38200000 0x10000>; 41 + clocks = <&clk IMX8MQ_CLK_USB2_CTRL_ROOT>, 42 + <&clk IMX8MQ_CLK_USB_CORE_REF>, 43 + <&clk IMX8MQ_CLK_32K>; 44 + clock-names = "bus_early", "ref", "suspend"; 45 + interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>; 46 + phys = <&usb3_phy1>, <&usb3_phy1>; 47 + phy-names = "usb2-phy", "usb3-phy"; 48 + };
+5 -7
Documentation/devicetree/bindings/usb/snps,dwc3.yaml
··· 30 30 31 31 properties: 32 32 compatible: 33 - oneOf: 34 - - items: 35 - - const: fsl,imx8mq-dwc3 36 - - const: snps,dwc3 37 - - const: snps,dwc3 38 - - const: synopsys,dwc3 39 - deprecated: true 33 + contains: 34 + oneOf: 35 + - const: snps,dwc3 36 + - const: synopsys,dwc3 37 + deprecated: true 40 38 41 39 reg: 42 40 maxItems: 1