Skip to content

Commit 7d25645

Browse files
svenpeter42jannau
authored andcommitted
dt-bindings: usb: Add Apple dwc3
Apple Silicon uses Synopsys DesignWare dwc3 based USB controllers for their Type-C ports. Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Neal Gompa <neal@gompa.dev> Signed-off-by: Sven Peter <sven@kernel.org> Link: https://patch.msgid.link/20251015-b4-aplpe-dwc3-v2-1-cbd65a2d511a@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 7d0a66e commit 7d25645

2 files changed

Lines changed: 81 additions & 0 deletions

File tree

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/usb/apple,dwc3.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Apple Silicon DWC3 USB controller
8+
9+
maintainers:
10+
- Sven Peter <sven@kernel.org>
11+
12+
description:
13+
Apple Silicon SoCs use a Synopsys DesignWare DWC3 based controller for each of
14+
their Type-C ports.
15+
16+
allOf:
17+
- $ref: snps,dwc3-common.yaml#
18+
19+
properties:
20+
compatible:
21+
oneOf:
22+
- items:
23+
- enum:
24+
- apple,t6000-dwc3
25+
- apple,t6020-dwc3
26+
- apple,t8112-dwc3
27+
- const: apple,t8103-dwc3
28+
- const: apple,t8103-dwc3
29+
30+
reg:
31+
items:
32+
- description: Core DWC3 region
33+
- description: Apple-specific DWC3 region
34+
35+
reg-names:
36+
items:
37+
- const: dwc3-core
38+
- const: dwc3-apple
39+
40+
interrupts:
41+
maxItems: 1
42+
43+
iommus:
44+
maxItems: 2
45+
46+
resets:
47+
maxItems: 1
48+
49+
power-domains:
50+
maxItems: 1
51+
52+
required:
53+
- compatible
54+
- reg
55+
- reg-names
56+
- interrupts
57+
- iommus
58+
- resets
59+
- power-domains
60+
- usb-role-switch
61+
62+
unevaluatedProperties: false
63+
64+
examples:
65+
- |
66+
#include <dt-bindings/interrupt-controller/apple-aic.h>
67+
#include <dt-bindings/interrupt-controller/irq.h>
68+
69+
usb@82280000 {
70+
compatible = "apple,t8103-dwc3";
71+
reg = <0x82280000 0xcd00>, <0x8228cd00 0x3200>;
72+
reg-names = "dwc3-core", "dwc3-apple";
73+
interrupts = <AIC_IRQ 777 IRQ_TYPE_LEVEL_HIGH>;
74+
iommus = <&dwc3_0_dart_0 0>, <&dwc3_0_dart_1 1>;
75+
76+
power-domains = <&ps_atc0_usb>;
77+
resets = <&atcphy0>;
78+
79+
usb-role-switch;
80+
};

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2442,6 +2442,7 @@ F: Documentation/devicetree/bindings/power/reset/apple,smc-reboot.yaml
24422442
F: Documentation/devicetree/bindings/pwm/apple,s5l-fpwm.yaml
24432443
F: Documentation/devicetree/bindings/spi/apple,spi.yaml
24442444
F: Documentation/devicetree/bindings/spmi/apple,spmi.yaml
2445+
F: Documentation/devicetree/bindings/usb/apple,dwc3.yaml
24452446
F: Documentation/devicetree/bindings/watchdog/apple,wdt.yaml
24462447
F: arch/arm64/boot/dts/apple/
24472448
F: drivers/bluetooth/hci_bcm4377.c

0 commit comments

Comments
 (0)