[PATCH 7/9] dt-bindings: phy: amlogic,g12a-usb3-pcie-phy: add the T7 compatible
From: Lucas Tanure
Date: Sun Nov 29 2026 - 04:28:44 EST
The Amlogic T7 has the G12A USB3 + PCIe combo PHY, but it is not
described, so its USB ports cannot run at SuperSpeed.
The T7 PHY needs different settings, so it needs its own compatible. It
also has a second reset, for its register interface. Its USB 3 lane is
tuned through USB control registers outside the PHY range, so it takes
them as a second register range.
Signed-off-by: Lucas Tanure <tanure@xxxxxxxxx>
---
.../phy/amlogic,g12a-usb3-pcie-phy.yaml | 46 ++++++++++++++++++-
1 file changed, 44 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/phy/amlogic,g12a-usb3-pcie-phy.yaml b/Documentation/devicetree/bindings/phy/amlogic,g12a-usb3-pcie-phy.yaml
index 1a5a12adb72b..63ac68fe0efe 100644
--- a/Documentation/devicetree/bindings/phy/amlogic,g12a-usb3-pcie-phy.yaml
+++ b/Documentation/devicetree/bindings/phy/amlogic,g12a-usb3-pcie-phy.yaml
@@ -14,9 +14,13 @@ properties:
compatible:
enum:
- amlogic,g12a-usb3-pcie-phy
+ - amlogic,t7-usb3-pcie-phy
reg:
- maxItems: 1
+ minItems: 1
+ items:
+ - description: PHY registers
+ - description: USB control registers
clocks:
maxItems: 1
@@ -26,11 +30,16 @@ properties:
- const: ref_clk
resets:
- maxItems: 1
+ minItems: 1
+ items:
+ - description: PHY reset
+ - description: PHY register interface reset
reset-names:
+ minItems: 1
items:
- const: phy
+ - const: apb
"#phy-cells":
const: 1
@@ -49,6 +58,29 @@ required:
- reset-names
- "#phy-cells"
+allOf:
+ - if:
+ properties:
+ compatible:
+ contains:
+ const: amlogic,t7-usb3-pcie-phy
+ then:
+ properties:
+ reg:
+ minItems: 2
+ resets:
+ minItems: 2
+ reset-names:
+ minItems: 2
+ else:
+ properties:
+ reg:
+ maxItems: 1
+ resets:
+ maxItems: 1
+ reset-names:
+ maxItems: 1
+
additionalProperties: false
examples:
@@ -62,3 +94,13 @@ examples:
reset-names = "phy";
#phy-cells = <1>;
};
+ - |
+ phy@62000 {
+ compatible = "amlogic,t7-usb3-pcie-phy";
+ reg = <0x62000 0x2000>, <0x3a080 0x20>;
+ clocks = <&ref_clk>;
+ clock-names = "ref_clk";
+ resets = <&phy_reset>, <&apb_reset>;
+ reset-names = "phy", "apb";
+ #phy-cells = <1>;
+ };
--
2.56.1