[PATCH 1/9] dt-bindings: phy: amlogic,g12a-usb2-phy: add the T7 compatible
From: Lucas Tanure
Date: Sun Nov 29 2026 - 04:28:23 EST
The Amlogic T7 carries the G12A USB 2 PHY with different tuning values,
so it needs its own compatible.
On the T7 each port also has a small block of control registers that
take the port out of reset and select host mode. They are per port and
sit outside the PHY register range, so the T7 PHY takes them as a second
register range.
Signed-off-by: Lucas Tanure <tanure@xxxxxxxxx>
---
.../bindings/phy/amlogic,g12a-usb2-phy.yaml | 53 ++++++++++++++-----
1 file changed, 40 insertions(+), 13 deletions(-)
diff --git a/Documentation/devicetree/bindings/phy/amlogic,g12a-usb2-phy.yaml b/Documentation/devicetree/bindings/phy/amlogic,g12a-usb2-phy.yaml
index 54058d2e6053..d80821ab8eab 100644
--- a/Documentation/devicetree/bindings/phy/amlogic,g12a-usb2-phy.yaml
+++ b/Documentation/devicetree/bindings/phy/amlogic,g12a-usb2-phy.yaml
@@ -16,9 +16,13 @@ properties:
- amlogic,g12a-usb2-phy
- amlogic,a1-usb2-phy
- amlogic,s4-usb2-phy
+ - amlogic,t7-usb2-phy
reg:
- maxItems: 1
+ minItems: 1
+ items:
+ - description: PHY registers
+ - description: port control registers
clocks:
maxItems: 1
@@ -54,18 +58,31 @@ required:
- reset-names
- "#phy-cells"
-if:
- properties:
- compatible:
- enum:
- - amlogic,meson-a1-usb-ctrl
-
-then:
- properties:
- power-domains:
- maxItems: 1
- required:
- - power-domains
+allOf:
+ - if:
+ properties:
+ compatible:
+ enum:
+ - amlogic,meson-a1-usb-ctrl
+ then:
+ properties:
+ power-domains:
+ maxItems: 1
+ required:
+ - power-domains
+ - if:
+ properties:
+ compatible:
+ contains:
+ const: amlogic,t7-usb2-phy
+ then:
+ properties:
+ reg:
+ minItems: 2
+ else:
+ properties:
+ reg:
+ maxItems: 1
additionalProperties: false
@@ -80,3 +97,13 @@ examples:
reset-names = "phy";
#phy-cells = <0>;
};
+ - |
+ phy@3c000 {
+ compatible = "amlogic,t7-usb2-phy";
+ reg = <0x3c000 0x2000>, <0x3a000 0x20>;
+ clocks = <&xtal>;
+ clock-names = "xtal";
+ resets = <&phy_reset>;
+ reset-names = "phy";
+ #phy-cells = <0>;
+ };
--
2.56.1