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

dt-bindings: usb: dwc3-imx8mp: Use the correct name for child node "snps, dwc3"

File snps,dwc3.yaml describes the schema of Synopsys DesignWare USB3
Controller, it directly or indirectly contains "$ref: usb.yaml". So the
node name of "snps,dwc3" must start with "usb". Otherwise, the following
warning will be displayed:

Documentation/devicetree/bindings/usb/fsl,imx8mp-dwc3.example.dt.yaml: \
dwc3@38100000: $nodename:0: 'dwc3@38100000' does not match '^usb(@.*)?'
From schema: Documentation/devicetree/bindings/usb/snps,dwc3.yaml

In addition, replace "type: object" with "$ref: snps,dwc3.yaml#". Ensure
that all properties of the child node comply with snps,dwc3.yaml.

Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Link: https://lore.kernel.org/r/20210329072714.2135-2-thunder.leizhen@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Zhen Lei and committed by
Greg Kroah-Hartman
9ea6feb6 048b14e1

+3 -6
+3 -6
Documentation/devicetree/bindings/usb/fsl,imx8mp-dwc3.yaml
··· 52 52 # Required child node: 53 53 54 54 patternProperties: 55 - "^dwc3@[0-9a-f]+$": 56 - type: object 57 - description: 58 - A child node must exist to represent the core DWC3 IP block 59 - The content of the node is defined in dwc3.txt. 55 + "^usb@[0-9a-f]+$": 56 + $ref: snps,dwc3.yaml# 60 57 61 58 required: 62 59 - compatible ··· 84 87 dma-ranges = <0x40000000 0x40000000 0xc0000000>; 85 88 ranges; 86 89 87 - dwc3@38100000 { 90 + usb@38100000 { 88 91 compatible = "snps,dwc3"; 89 92 reg = <0x38100000 0x10000>; 90 93 clocks = <&clk IMX8MP_CLK_HSIO_AXI>,