mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:04:51 +01:00
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: 3754c41c76 ("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>
This commit is contained in:
parent
8c1b63b3c2
commit
092a2a78e6
2 changed files with 53 additions and 7 deletions
48
Documentation/devicetree/bindings/usb/fsl,imx8mq-dwc3.yaml
Normal file
48
Documentation/devicetree/bindings/usb/fsl,imx8mq-dwc3.yaml
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
||||
%YAML 1.2
|
||||
---
|
||||
$id: http://devicetree.org/schemas/usb/fsl,imx8mq-dwc3.yaml#
|
||||
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
||||
|
||||
title: NXP iMX8MQ Soc USB Controller
|
||||
|
||||
maintainers:
|
||||
- Li Jun <jun.li@nxp.com>
|
||||
- Peng Fan <peng.fan@nxp.com>
|
||||
|
||||
select:
|
||||
properties:
|
||||
compatible:
|
||||
contains:
|
||||
enum:
|
||||
- fsl,imx8mq-dwc3
|
||||
required:
|
||||
- compatible
|
||||
|
||||
properties:
|
||||
compatible:
|
||||
items:
|
||||
- const: fsl,imx8mq-dwc3
|
||||
- const: snps,dwc3
|
||||
|
||||
allOf:
|
||||
- $ref: snps,dwc3.yaml#
|
||||
|
||||
unevaluatedProperties: false
|
||||
|
||||
examples:
|
||||
- |
|
||||
#include <dt-bindings/clock/imx8mq-clock.h>
|
||||
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
||||
|
||||
usb_dwc3_1: usb@38200000 {
|
||||
compatible = "fsl,imx8mq-dwc3", "snps,dwc3";
|
||||
reg = <0x38200000 0x10000>;
|
||||
clocks = <&clk IMX8MQ_CLK_USB2_CTRL_ROOT>,
|
||||
<&clk IMX8MQ_CLK_USB_CORE_REF>,
|
||||
<&clk IMX8MQ_CLK_32K>;
|
||||
clock-names = "bus_early", "ref", "suspend";
|
||||
interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
|
||||
phys = <&usb3_phy1>, <&usb3_phy1>;
|
||||
phy-names = "usb2-phy", "usb3-phy";
|
||||
};
|
||||
|
|
@ -30,13 +30,11 @@ allOf:
|
|||
|
||||
properties:
|
||||
compatible:
|
||||
oneOf:
|
||||
- items:
|
||||
- const: fsl,imx8mq-dwc3
|
||||
- const: snps,dwc3
|
||||
- const: snps,dwc3
|
||||
- const: synopsys,dwc3
|
||||
deprecated: true
|
||||
contains:
|
||||
oneOf:
|
||||
- const: snps,dwc3
|
||||
- const: synopsys,dwc3
|
||||
deprecated: true
|
||||
|
||||
reg:
|
||||
maxItems: 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue