[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1672307866-25839-4-git-send-email-dh10.jung@samsung.com>
Date: Thu, 29 Dec 2022 18:57:46 +0900
From: Daehwan Jung <dh10.jung@...sung.com>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Thinh Nguyen <Thinh.Nguyen@...opsys.com>,
Mathias Nyman <mathias.nyman@...el.com>,
Felipe Balbi <balbi@...nel.org>
Cc: linux-usb@...r.kernel.org (open list:USB SUBSYSTEM),
devicetree@...r.kernel.org (open list:OPEN FIRMWARE AND FLATTENED
DEVICE TREE BINDINGS), linux-kernel@...r.kernel.org (open list),
sc.suh@...sung.com, taehyun.cho@...sung.com,
jh0801.jung@...sung.com, eomji.oh@...sung.com,
Daehwan Jung <dh10.jung@...sung.com>
Subject: [RFC PATCH v2 3/3] dt-bindings: usb: snps,dwc3: add generic-xhci as
child
Currently, dwc3 invokes just xhci platform driver(generic-xhci) without
DT schema even though xhci works as child of dwc3. It makes sense to add
xhci as child of dwc3 with DT schema. It also supports to use another
compatible in xhci platform driver.
Signed-off-by: Daehwan Jung <dh10.jung@...sung.com>
---
.../devicetree/bindings/usb/snps,dwc3.yaml | 29 +++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml
index 6d78048c4613..83ed7c526dba 100644
--- a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml
+++ b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml
@@ -360,8 +360,22 @@ properties:
description:
Enable USB remote wakeup.
+ "#address-cells":
+ enum: [ 1, 2 ]
+
+ "#size-cells":
+ enum: [ 1, 2 ]
+
+ ranges: true
+
unevaluatedProperties: false
+# Required child node:
+patternProperties:
+ "^usb@[0-9a-f]+$":
+ $ref: generic-xhci.yaml#
+ description: Required child node
+
required:
- compatible
- reg
@@ -388,4 +402,19 @@ examples:
snps,dis_u2_susphy_quirk;
snps,dis_enblslpm_quirk;
};
+ - |
+ usb@...00000 {
+ compatible = "snps,dwc3";
+ reg = <0x4a200000 0xcfff>;
+ interrupts = <0 92 4>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+ ranges;
+
+ xhci: usb@...00000 {
+ compatible = "generic-xhci";
+ reg = <0x4a200000 0x7fff>;
+ interrupts = <0 92 4>;
+ };
+ };
...
--
2.31.1
Powered by blists - more mailing lists