Skip to content

Commit f80c438

Browse files
ambaruskrzk
authored andcommitted
dt-bindings: clock: google,gs101-clock: add PERIC0 clock management unit
Add dt-schema documentation for the Connectivity Peripheral 0 (PERIC0) clock management unit. Reviewed-by: Sam Protsenko <[email protected]> Reviewed-by: Peter Griffin <[email protected]> Reviewed-by: Rob Herring <[email protected]> Signed-off-by: Tudor Ambarus <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Krzysztof Kozlowski <[email protected]>
1 parent 6613476 commit f80c438

File tree

2 files changed

+104
-2
lines changed

2 files changed

+104
-2
lines changed

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

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,15 @@ properties:
3030
- google,gs101-cmu-top
3131
- google,gs101-cmu-apm
3232
- google,gs101-cmu-misc
33+
- google,gs101-cmu-peric0
3334

3435
clocks:
3536
minItems: 1
36-
maxItems: 2
37+
maxItems: 3
3738

3839
clock-names:
3940
minItems: 1
40-
maxItems: 2
41+
maxItems: 3
4142

4243
"#clock-cells":
4344
const: 1
@@ -88,6 +89,26 @@ allOf:
8889
- const: dout_cmu_misc_bus
8990
- const: dout_cmu_misc_sss
9091

92+
- if:
93+
properties:
94+
compatible:
95+
contains:
96+
const: google,gs101-cmu-peric0
97+
98+
then:
99+
properties:
100+
clocks:
101+
items:
102+
- description: External reference clock (24.576 MHz)
103+
- description: Connectivity Peripheral 0 bus clock (from CMU_TOP)
104+
- description: Connectivity Peripheral 0 IP clock (from CMU_TOP)
105+
106+
clock-names:
107+
items:
108+
- const: oscclk
109+
- const: bus
110+
- const: ip
111+
91112
additionalProperties: false
92113

93114
examples:

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

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,4 +389,85 @@
389389
#define CLK_GOUT_MISC_WDT_CLUSTER1_PCLK 73
390390
#define CLK_GOUT_MISC_XIU_D_MISC_ACLK 74
391391

392+
/* CMU_PERIC0 */
393+
#define CLK_MOUT_PERIC0_BUS_USER 1
394+
#define CLK_MOUT_PERIC0_I3C_USER 2
395+
#define CLK_MOUT_PERIC0_USI0_UART_USER 3
396+
#define CLK_MOUT_PERIC0_USI14_USI_USER 4
397+
#define CLK_MOUT_PERIC0_USI1_USI_USER 5
398+
#define CLK_MOUT_PERIC0_USI2_USI_USER 6
399+
#define CLK_MOUT_PERIC0_USI3_USI_USER 7
400+
#define CLK_MOUT_PERIC0_USI4_USI_USER 8
401+
#define CLK_MOUT_PERIC0_USI5_USI_USER 9
402+
#define CLK_MOUT_PERIC0_USI6_USI_USER 10
403+
#define CLK_MOUT_PERIC0_USI7_USI_USER 11
404+
#define CLK_MOUT_PERIC0_USI8_USI_USER 12
405+
#define CLK_DOUT_PERIC0_I3C 13
406+
#define CLK_DOUT_PERIC0_USI0_UART 14
407+
#define CLK_DOUT_PERIC0_USI14_USI 15
408+
#define CLK_DOUT_PERIC0_USI1_USI 16
409+
#define CLK_DOUT_PERIC0_USI2_USI 17
410+
#define CLK_DOUT_PERIC0_USI3_USI 18
411+
#define CLK_DOUT_PERIC0_USI4_USI 19
412+
#define CLK_DOUT_PERIC0_USI5_USI 20
413+
#define CLK_DOUT_PERIC0_USI6_USI 21
414+
#define CLK_DOUT_PERIC0_USI7_USI 22
415+
#define CLK_DOUT_PERIC0_USI8_USI 23
416+
#define CLK_GOUT_PERIC0_IP 24
417+
#define CLK_GOUT_PERIC0_PERIC0_CMU_PERIC0_PCLK 25
418+
#define CLK_GOUT_PERIC0_CLK_PERIC0_OSCCLK_CLK 26
419+
#define CLK_GOUT_PERIC0_D_TZPC_PERIC0_PCLK 27
420+
#define CLK_GOUT_PERIC0_GPC_PERIC0_PCLK 28
421+
#define CLK_GOUT_PERIC0_GPIO_PERIC0_PCLK 29
422+
#define CLK_GOUT_PERIC0_LHM_AXI_P_PERIC0_I_CLK 30
423+
#define CLK_GOUT_PERIC0_PERIC0_TOP0_IPCLK_0 31
424+
#define CLK_GOUT_PERIC0_PERIC0_TOP0_IPCLK_1 32
425+
#define CLK_GOUT_PERIC0_PERIC0_TOP0_IPCLK_10 33
426+
#define CLK_GOUT_PERIC0_PERIC0_TOP0_IPCLK_11 34
427+
#define CLK_GOUT_PERIC0_PERIC0_TOP0_IPCLK_12 35
428+
#define CLK_GOUT_PERIC0_PERIC0_TOP0_IPCLK_13 36
429+
#define CLK_GOUT_PERIC0_PERIC0_TOP0_IPCLK_14 37
430+
#define CLK_GOUT_PERIC0_PERIC0_TOP0_IPCLK_15 38
431+
#define CLK_GOUT_PERIC0_PERIC0_TOP0_IPCLK_2 39
432+
#define CLK_GOUT_PERIC0_PERIC0_TOP0_IPCLK_3 40
433+
#define CLK_GOUT_PERIC0_PERIC0_TOP0_IPCLK_4 41
434+
#define CLK_GOUT_PERIC0_PERIC0_TOP0_IPCLK_5 42
435+
#define CLK_GOUT_PERIC0_PERIC0_TOP0_IPCLK_6 43
436+
#define CLK_GOUT_PERIC0_PERIC0_TOP0_IPCLK_7 44
437+
#define CLK_GOUT_PERIC0_PERIC0_TOP0_IPCLK_8 45
438+
#define CLK_GOUT_PERIC0_PERIC0_TOP0_IPCLK_9 46
439+
#define CLK_GOUT_PERIC0_PERIC0_TOP0_PCLK_0 47
440+
#define CLK_GOUT_PERIC0_PERIC0_TOP0_PCLK_1 48
441+
#define CLK_GOUT_PERIC0_PERIC0_TOP0_PCLK_10 49
442+
#define CLK_GOUT_PERIC0_PERIC0_TOP0_PCLK_11 50
443+
#define CLK_GOUT_PERIC0_PERIC0_TOP0_PCLK_12 51
444+
#define CLK_GOUT_PERIC0_PERIC0_TOP0_PCLK_13 52
445+
#define CLK_GOUT_PERIC0_PERIC0_TOP0_PCLK_14 53
446+
#define CLK_GOUT_PERIC0_PERIC0_TOP0_PCLK_15 54
447+
#define CLK_GOUT_PERIC0_PERIC0_TOP0_PCLK_2 55
448+
#define CLK_GOUT_PERIC0_PERIC0_TOP0_PCLK_3 56
449+
#define CLK_GOUT_PERIC0_PERIC0_TOP0_PCLK_4 57
450+
#define CLK_GOUT_PERIC0_PERIC0_TOP0_PCLK_5 58
451+
#define CLK_GOUT_PERIC0_PERIC0_TOP0_PCLK_6 59
452+
#define CLK_GOUT_PERIC0_PERIC0_TOP0_PCLK_7 60
453+
#define CLK_GOUT_PERIC0_PERIC0_TOP0_PCLK_8 61
454+
#define CLK_GOUT_PERIC0_PERIC0_TOP0_PCLK_9 62
455+
#define CLK_GOUT_PERIC0_PERIC0_TOP1_IPCLK_0 63
456+
#define CLK_GOUT_PERIC0_PERIC0_TOP1_IPCLK_2 64
457+
#define CLK_GOUT_PERIC0_PERIC0_TOP1_PCLK_0 65
458+
#define CLK_GOUT_PERIC0_PERIC0_TOP1_PCLK_2 66
459+
#define CLK_GOUT_PERIC0_CLK_PERIC0_BUSP_CLK 67
460+
#define CLK_GOUT_PERIC0_CLK_PERIC0_I3C_CLK 68
461+
#define CLK_GOUT_PERIC0_CLK_PERIC0_USI0_UART_CLK 69
462+
#define CLK_GOUT_PERIC0_CLK_PERIC0_USI14_USI_CLK 70
463+
#define CLK_GOUT_PERIC0_CLK_PERIC0_USI1_USI_CLK 71
464+
#define CLK_GOUT_PERIC0_CLK_PERIC0_USI2_USI_CLK 72
465+
#define CLK_GOUT_PERIC0_CLK_PERIC0_USI3_USI_CLK 73
466+
#define CLK_GOUT_PERIC0_CLK_PERIC0_USI4_USI_CLK 74
467+
#define CLK_GOUT_PERIC0_CLK_PERIC0_USI5_USI_CLK 75
468+
#define CLK_GOUT_PERIC0_CLK_PERIC0_USI6_USI_CLK 76
469+
#define CLK_GOUT_PERIC0_CLK_PERIC0_USI7_USI_CLK 77
470+
#define CLK_GOUT_PERIC0_CLK_PERIC0_USI8_USI_CLK 78
471+
#define CLK_GOUT_PERIC0_SYSREG_PERIC0_PCLK 79
472+
392473
#endif /* _DT_BINDINGS_CLOCK_GOOGLE_GS101_H */

0 commit comments

Comments
 (0)