Skip to content

Commit e340c04

Browse files
andredvinodkoul
authored andcommitted
dt-bindings: phy: samsung,usb3-drd-phy: add gs101 compatible
Add a dedicated google,gs101-usb31drd-phy compatible for Google Tensor gs101 SoC. It needs additional clocks enabled for register access, and additional memory regions (PCS & PMA) are required for successful configuration. It also requires various power supplies (regulators) for the internal circuitry to work. The required voltages are: * pll-supply: 0.85V * dvdd-usb20-supply: 0.85V (+10%, -7%) * vddh-usb20-supply: 1.8V (+10%, -7%) * vdd33-usb20-supply: 3.3V (+10%, -7%) * vdda-usbdp-supply: 0.85V * vddh-usbdp-supply: 1.8V Signed-off-by: André Draszik <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Peter Griffin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 4c75fe2 commit e340c04

File tree

1 file changed

+75
-2
lines changed

1 file changed

+75
-2
lines changed

Documentation/devicetree/bindings/phy/samsung,usb3-drd-phy.yaml

Lines changed: 75 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ description: |
2525
properties:
2626
compatible:
2727
enum:
28+
- google,gs101-usb31drd-phy
2829
- samsung,exynos5250-usbdrd-phy
2930
- samsung,exynos5420-usbdrd-phy
3031
- samsung,exynos5433-usbdrd-phy
@@ -57,7 +58,15 @@ properties:
5758
the OF graph bindings specified.
5859

5960
reg:
60-
maxItems: 1
61+
minItems: 1
62+
maxItems: 3
63+
64+
reg-names:
65+
minItems: 1
66+
items:
67+
- const: phy
68+
- const: pcs
69+
- const: pma
6170

6271
samsung,pmu-syscon:
6372
$ref: /schemas/types.yaml#/definitions/phandle
@@ -72,6 +81,19 @@ properties:
7281
description:
7382
VBUS Boost 5V power source.
7483

84+
pll-supply:
85+
description: Power supply for the USB PLL.
86+
dvdd-usb20-supply:
87+
description: DVDD power supply for the USB 2.0 phy.
88+
vddh-usb20-supply:
89+
description: VDDh power supply for the USB 2.0 phy.
90+
vdd33-usb20-supply:
91+
description: 3.3V power supply for the USB 2.0 phy.
92+
vdda-usbdp-supply:
93+
description: VDDa power supply for the USB DP phy.
94+
vddh-usbdp-supply:
95+
description: VDDh power supply for the USB DP phy.
96+
7597
required:
7698
- compatible
7799
- clocks
@@ -81,6 +103,40 @@ required:
81103
- samsung,pmu-syscon
82104

83105
allOf:
106+
- if:
107+
properties:
108+
compatible:
109+
contains:
110+
const: google,gs101-usb31drd-phy
111+
then:
112+
properties:
113+
clocks:
114+
items:
115+
- description: Gate of main PHY clock
116+
- description: Gate of PHY reference clock
117+
- description: Gate of control interface AXI clock
118+
- description: Gate of control interface APB clock
119+
- description: Gate of SCL APB clock
120+
clock-names:
121+
items:
122+
- const: phy
123+
- const: ref
124+
- const: ctrl_aclk
125+
- const: ctrl_pclk
126+
- const: scl_pclk
127+
reg:
128+
minItems: 3
129+
reg-names:
130+
minItems: 3
131+
required:
132+
- reg-names
133+
- pll-supply
134+
- dvdd-usb20-supply
135+
- vddh-usb20-supply
136+
- vdd33-usb20-supply
137+
- vdda-usbdp-supply
138+
- vddh-usbdp-supply
139+
84140
- if:
85141
properties:
86142
compatible:
@@ -100,7 +156,20 @@ allOf:
100156
- const: phy_utmi
101157
- const: phy_pipe
102158
- const: itp
103-
else:
159+
reg:
160+
maxItems: 1
161+
reg-names:
162+
maxItems: 1
163+
164+
- if:
165+
properties:
166+
compatible:
167+
contains:
168+
enum:
169+
- samsung,exynos5250-usbdrd-phy
170+
- samsung,exynos5420-usbdrd-phy
171+
- samsung,exynos850-usbdrd-phy
172+
then:
104173
properties:
105174
clocks:
106175
minItems: 2
@@ -109,6 +178,10 @@ allOf:
109178
items:
110179
- const: phy
111180
- const: ref
181+
reg:
182+
maxItems: 1
183+
reg-names:
184+
maxItems: 1
112185

113186
additionalProperties: false
114187

0 commit comments

Comments
 (0)