Skip to content

Commit dbf76c0

Browse files
andredkrzk
authored andcommitted
dt-bindings: clock: google,gs101-clock: add HSI0 clock management unit
Add dt-schema documentation and clock IDs for the high speed interface 0 HSI0 clock management unit. This is used (amongst others) for USB. While the usual (sed) script has been used to derive the linux clock IDs from the data sheet, one manual tweak was applied to fix a typo which we don't want to carry: HSI0_USPDPDBG_USER -> HSI0_USBDPDBG_USER (note USB vs USP). Signed-off-by: André Draszik <[email protected]> Reviewed-by: Rob Herring (Arm) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Krzysztof Kozlowski <[email protected]>
1 parent 4cece76 commit dbf76c0

File tree

2 files changed

+81
-2
lines changed

2 files changed

+81
-2
lines changed

Documentation/devicetree/bindings/clock/google,gs101-clock.yaml

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,17 @@ properties:
3030
- google,gs101-cmu-top
3131
- google,gs101-cmu-apm
3232
- google,gs101-cmu-misc
33+
- google,gs101-cmu-hsi0
3334
- google,gs101-cmu-peric0
3435
- google,gs101-cmu-peric1
3536

3637
clocks:
3738
minItems: 1
38-
maxItems: 3
39+
maxItems: 5
3940

4041
clock-names:
4142
minItems: 1
42-
maxItems: 3
43+
maxItems: 5
4344

4445
"#clock-cells":
4546
const: 1
@@ -72,6 +73,30 @@ allOf:
7273
items:
7374
- const: oscclk
7475

76+
- if:
77+
properties:
78+
compatible:
79+
contains:
80+
const: google,gs101-cmu-hsi0
81+
82+
then:
83+
properties:
84+
clocks:
85+
items:
86+
- description: External reference clock (24.576 MHz)
87+
- description: HSI0 bus clock (from CMU_TOP)
88+
- description: DPGTC (from CMU_TOP)
89+
- description: USB DRD controller clock (from CMU_TOP)
90+
- description: USB Display Port debug clock (from CMU_TOP)
91+
92+
clock-names:
93+
items:
94+
- const: oscclk
95+
- const: bus
96+
- const: dpgtc
97+
- const: usb31drd
98+
- const: usbdpdbg
99+
75100
- if:
76101
properties:
77102
compatible:

include/dt-bindings/clock/google,gs101.h

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,60 @@
313313
#define CLK_APM_PLL_DIV4_APM 70
314314
#define CLK_APM_PLL_DIV16_APM 71
315315

316+
/* CMU_HSI0 */
317+
#define CLK_FOUT_USB_PLL 1
318+
#define CLK_MOUT_PLL_USB 2
319+
#define CLK_MOUT_HSI0_ALT_USER 3
320+
#define CLK_MOUT_HSI0_BUS_USER 4
321+
#define CLK_MOUT_HSI0_DPGTC_USER 5
322+
#define CLK_MOUT_HSI0_TCXO_USER 6
323+
#define CLK_MOUT_HSI0_USB20_USER 7
324+
#define CLK_MOUT_HSI0_USB31DRD_USER 8
325+
#define CLK_MOUT_HSI0_USBDPDBG_USER 9
326+
#define CLK_MOUT_HSI0_BUS 10
327+
#define CLK_MOUT_HSI0_USB20_REF 11
328+
#define CLK_MOUT_HSI0_USB31DRD 12
329+
#define CLK_DOUT_HSI0_USB31DRD 13
330+
#define CLK_GOUT_HSI0_PCLK 14
331+
#define CLK_GOUT_HSI0_USB31DRD_I_USB31DRD_SUSPEND_CLK_26 15
332+
#define CLK_GOUT_HSI0_CLK_HSI0_ALT 16
333+
#define CLK_GOUT_HSI0_DP_LINK_I_DP_GTC_CLK 17
334+
#define CLK_GOUT_HSI0_DP_LINK_I_PCLK 18
335+
#define CLK_GOUT_HSI0_D_TZPC_HSI0_PCLK 19
336+
#define CLK_GOUT_HSI0_ETR_MIU_I_ACLK 20
337+
#define CLK_GOUT_HSI0_ETR_MIU_I_PCLK 21
338+
#define CLK_GOUT_HSI0_GPC_HSI0_PCLK 22
339+
#define CLK_GOUT_HSI0_LHM_AXI_G_ETR_HSI0_I_CLK 23
340+
#define CLK_GOUT_HSI0_LHM_AXI_P_AOCHSI0_I_CLK 24
341+
#define CLK_GOUT_HSI0_LHM_AXI_P_HSI0_I_CLK 25
342+
#define CLK_GOUT_HSI0_LHS_ACEL_D_HSI0_I_CLK 26
343+
#define CLK_GOUT_HSI0_LHS_AXI_D_HSI0AOC_I_CLK 27
344+
#define CLK_GOUT_HSI0_PPMU_HSI0_AOC_ACLK 28
345+
#define CLK_GOUT_HSI0_PPMU_HSI0_AOC_PCLK 29
346+
#define CLK_GOUT_HSI0_PPMU_HSI0_BUS0_ACLK 30
347+
#define CLK_GOUT_HSI0_PPMU_HSI0_BUS0_PCLK 31
348+
#define CLK_GOUT_HSI0_CLK_HSI0_BUS_CLK 32
349+
#define CLK_GOUT_HSI0_SSMT_USB_ACLK 33
350+
#define CLK_GOUT_HSI0_SSMT_USB_PCLK 34
351+
#define CLK_GOUT_HSI0_SYSMMU_USB_CLK_S2 35
352+
#define CLK_GOUT_HSI0_SYSREG_HSI0_PCLK 36
353+
#define CLK_GOUT_HSI0_UASC_HSI0_CTRL_ACLK 37
354+
#define CLK_GOUT_HSI0_UASC_HSI0_CTRL_PCLK 38
355+
#define CLK_GOUT_HSI0_UASC_HSI0_LINK_ACLK 39
356+
#define CLK_GOUT_HSI0_UASC_HSI0_LINK_PCLK 40
357+
#define CLK_GOUT_HSI0_USB31DRD_ACLK_PHYCTRL 41
358+
#define CLK_GOUT_HSI0_USB31DRD_BUS_CLK_EARLY 42
359+
#define CLK_GOUT_HSI0_USB31DRD_I_USB20_PHY_REFCLK_26 43
360+
#define CLK_GOUT_HSI0_USB31DRD_I_USB31DRD_REF_CLK_40 44
361+
#define CLK_GOUT_HSI0_USB31DRD_I_USBDPPHY_REF_SOC_PLL 45
362+
#define CLK_GOUT_HSI0_USB31DRD_I_USBDPPHY_SCL_APB_PCLK 46
363+
#define CLK_GOUT_HSI0_USB31DRD_I_USBPCS_APB_CLK 47
364+
#define CLK_GOUT_HSI0_USB31DRD_USBDPPHY_I_ACLK 48
365+
#define CLK_GOUT_HSI0_USB31DRD_USBDPPHY_UDBG_I_APB_PCLK 49
366+
#define CLK_GOUT_HSI0_XIU_D0_HSI0_ACLK 50
367+
#define CLK_GOUT_HSI0_XIU_D1_HSI0_ACLK 51
368+
#define CLK_GOUT_HSI0_XIU_P_HSI0_ACLK 52
369+
316370
/* CMU_MISC */
317371
#define CLK_MOUT_MISC_BUS_USER 1
318372
#define CLK_MOUT_MISC_SSS_USER 2

0 commit comments

Comments
 (0)