[PATCH v2 1/3] dt-bindings: phy: tegra194: Add compatible for Tegra238
Jon Hunter
jonathanh at nvidia.com
Thu Oct 1 06:28:18 PDT 2026
The Tegra238 XUSB pad controller is similar to that found on the
Tegra194 and Tegra234, but only has three USB2 ports and three USB3
ports.
Add the Tegra238 compatible string for the XUSB pad controller and
constrain the binding so that a Tegra238 device tree can only have three
USB2 and three USB3 ports.
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski at oss.qualcomm.com>
Signed-off-by: Jon Hunter <jonathanh at nvidia.com>
---
.../bindings/phy/nvidia,tegra194-xusb-padctl.yaml | 38 ++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/Documentation/devicetree/bindings/phy/nvidia,tegra194-xusb-padctl.yaml b/Documentation/devicetree/bindings/phy/nvidia,tegra194-xusb-padctl.yaml
index f6fe3c90b5b048aca9937a4746fdab80eec0c55b..fbafe8eb150bea95d49ffaebd959d4ebc1a92194 100644
--- a/Documentation/devicetree/bindings/phy/nvidia,tegra194-xusb-padctl.yaml
+++ b/Documentation/devicetree/bindings/phy/nvidia,tegra194-xusb-padctl.yaml
@@ -45,6 +45,7 @@ properties:
enum:
- nvidia,tegra194-xusb-padctl
- nvidia,tegra234-xusb-padctl
+ - nvidia,tegra238-xusb-padctl
- nvidia,tegra264-xusb-padctl
reg:
@@ -542,6 +543,43 @@ properties:
description: connection to a USB Type C controller
$ref: /schemas/graph.yaml#/properties/port
+allOf:
+ - if:
+ properties:
+ compatible:
+ contains:
+ const: nvidia,tegra238-xusb-padctl
+ then:
+ properties:
+ pads:
+ properties:
+ usb2:
+ properties:
+ lanes:
+ properties:
+ usb2-3: false
+ usb3:
+ properties:
+ lanes:
+ properties:
+ usb3-3: false
+ ports:
+ properties:
+ usb2-3: false
+ usb3-0:
+ properties:
+ nvidia,usb2-companion:
+ enum: [ 0, 1, 2 ]
+ usb3-1:
+ properties:
+ nvidia,usb2-companion:
+ enum: [ 0, 1, 2 ]
+ usb3-2:
+ properties:
+ nvidia,usb2-companion:
+ enum: [ 0, 1, 2 ]
+ usb3-3: false
+
additionalProperties: false
required:
--
2.43.0
More information about the linux-phy
mailing list