[PATCH 3/9] dt-bindings: usb: add the Amlogic T7 USB controller
Lucas Tanure
tanure at linux.com
Sun Nov 29 01:28:04 PST 2026
The Amlogic T7 has two USB controllers that are not described. Each one
can be a USB host or a USB device. In the host role it is an xHCI that
cannot use addresses above 4GB, although it reports that it can. The
driver must know this, so the controller needs its own compatible.
The binding allows both roles, so that device mode can be added later
without changing existing device trees.
Signed-off-by: Lucas Tanure <tanure at linux.com>
---
.../bindings/usb/amlogic,t7-usb.yaml | 78 +++++++++++++++++++
1 file changed, 78 insertions(+)
create mode 100644 Documentation/devicetree/bindings/usb/amlogic,t7-usb.yaml
diff --git a/Documentation/devicetree/bindings/usb/amlogic,t7-usb.yaml b/Documentation/devicetree/bindings/usb/amlogic,t7-usb.yaml
new file mode 100644
index 000000000000..3eb56fb5fa6c
--- /dev/null
+++ b/Documentation/devicetree/bindings/usb/amlogic,t7-usb.yaml
@@ -0,0 +1,78 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/usb/amlogic,t7-usb.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Amlogic T7 USB controller
+
+maintainers:
+ - Neil Armstrong <neil.armstrong at linaro.org>
+
+description:
+ Dual-role USB controller. In the host role it is an xHCI.
+
+allOf:
+ - $ref: usb-drd.yaml#
+ - $ref: usb-xhci.yaml#
+
+properties:
+ compatible:
+ const: amlogic,t7-usb
+
+ reg:
+ maxItems: 1
+
+ interrupts:
+ maxItems: 1
+
+ clocks:
+ maxItems: 1
+
+ resets:
+ items:
+ - description: USB block reset, shared by both controllers
+ - description: controller reset
+
+ phys:
+ minItems: 1
+ maxItems: 2
+
+ phy-names:
+ minItems: 1
+ items:
+ - const: usb2-phy
+ - const: usb3-phy
+
+ power-domains:
+ maxItems: 1
+
+required:
+ - compatible
+ - reg
+ - interrupts
+ - clocks
+ - resets
+ - power-domains
+ - phys
+ - phy-names
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/clock/amlogic,t7-peripherals-clkc.h>
+ #include <dt-bindings/interrupt-controller/arm-gic.h>
+ #include <dt-bindings/power/amlogic,t7-pwrc.h>
+
+ usb at fde00000 {
+ compatible = "amlogic,t7-usb";
+ reg = <0xfde00000 0x8000>;
+ interrupts = <GIC_SPI 130 IRQ_TYPE_EDGE_RISING>;
+ clocks = <&clkc_periphs CLKID_SYS_USB>;
+ resets = <&reset 4>, <&reset 6>;
+ power-domains = <&pwrc PWRC_T7_USB_COMB_ID>;
+ phys = <&usb2_phy0>;
+ phy-names = "usb2-phy";
+ dr_mode = "host";
+ };
--
2.56.1
More information about the linux-arm-kernel
mailing list