Skip to content

Commit 40af852

Browse files
committed
Merge branch 'for-v6.8/samsung-bindings-compatibles' into next/dt64
2 parents 57de428 + e4f0277 commit 40af852

4 files changed

Lines changed: 505 additions & 5 deletions

File tree

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/clock/google,gs101-clock.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Google GS101 SoC clock controller
8+
9+
maintainers:
10+
- Peter Griffin <peter.griffin@linaro.org>
11+
12+
description: |
13+
Google GS101 clock controller is comprised of several CMU units, generating
14+
clocks for different domains. Those CMU units are modeled as separate device
15+
tree nodes, and might depend on each other. The root clock in that clock tree
16+
is OSCCLK (24.576 MHz). That external clock must be defined as a fixed-rate
17+
clock in dts.
18+
19+
CMU_TOP is a top-level CMU, where all base clocks are prepared using PLLs and
20+
dividers; all other leaf clocks (other CMUs) are usually derived from CMU_TOP.
21+
22+
Each clock is assigned an identifier and client nodes can use this identifier
23+
to specify the clock which they consume. All clocks available for usage
24+
in clock consumer nodes are defined as preprocessor macros in
25+
'dt-bindings/clock/gs101.h' header.
26+
27+
properties:
28+
compatible:
29+
enum:
30+
- google,gs101-cmu-top
31+
- google,gs101-cmu-apm
32+
- google,gs101-cmu-misc
33+
34+
clocks:
35+
minItems: 1
36+
maxItems: 2
37+
38+
clock-names:
39+
minItems: 1
40+
maxItems: 2
41+
42+
"#clock-cells":
43+
const: 1
44+
45+
reg:
46+
maxItems: 1
47+
48+
required:
49+
- compatible
50+
- "#clock-cells"
51+
- clocks
52+
- clock-names
53+
- reg
54+
55+
allOf:
56+
- if:
57+
properties:
58+
compatible:
59+
contains:
60+
enum:
61+
- google,gs101-cmu-top
62+
- google,gs101-cmu-apm
63+
then:
64+
properties:
65+
clocks:
66+
items:
67+
- description: External reference clock (24.576 MHz)
68+
69+
clock-names:
70+
items:
71+
- const: oscclk
72+
73+
- if:
74+
properties:
75+
compatible:
76+
contains:
77+
const: google,gs101-cmu-misc
78+
79+
then:
80+
properties:
81+
clocks:
82+
items:
83+
- description: Misc bus clock (from CMU_TOP)
84+
- description: Misc sss clock (from CMU_TOP)
85+
86+
clock-names:
87+
items:
88+
- const: dout_cmu_misc_bus
89+
- const: dout_cmu_misc_sss
90+
91+
additionalProperties: false
92+
93+
examples:
94+
# Clock controller node for CMU_TOP
95+
- |
96+
#include <dt-bindings/clock/google,gs101.h>
97+
98+
cmu_top: clock-controller@1e080000 {
99+
compatible = "google,gs101-cmu-top";
100+
reg = <0x1e080000 0x8000>;
101+
#clock-cells = <1>;
102+
clocks = <&ext_24_5m>;
103+
clock-names = "oscclk";
104+
};
105+
106+
...

Documentation/devicetree/bindings/soc/samsung/exynos-pmu.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ select:
1515
compatible:
1616
contains:
1717
enum:
18+
- google,gs101-pmu
1819
- samsung,exynos3250-pmu
1920
- samsung,exynos4210-pmu
2021
- samsung,exynos4212-pmu
@@ -35,6 +36,7 @@ properties:
3536
oneOf:
3637
- items:
3738
- enum:
39+
- google,gs101-pmu
3840
- samsung,exynos3250-pmu
3941
- samsung,exynos4210-pmu
4042
- samsung,exynos4212-pmu

Documentation/devicetree/bindings/soc/samsung/samsung,exynos-sysreg.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,14 @@ properties:
1414
oneOf:
1515
- items:
1616
- enum:
17+
- google,gs101-apm-sysreg
18+
- google,gs101-peric0-sysreg
19+
- google,gs101-peric1-sysreg
1720
- samsung,exynos3-sysreg
1821
- samsung,exynos4-sysreg
1922
- samsung,exynos5-sysreg
23+
- samsung,exynosautov920-peric0-sysreg
24+
- samsung,exynosautov920-peric1-sysreg
2025
- tesla,fsd-cam-sysreg
2126
- tesla,fsd-fsys0-sysreg
2227
- tesla,fsd-fsys1-sysreg
@@ -50,11 +55,6 @@ properties:
5055
- samsung,exynosautov9-peric1-sysreg
5156
- const: samsung,exynosautov9-sysreg
5257
- const: syscon
53-
- items:
54-
- enum:
55-
- samsung,exynosautov920-peric0-sysreg
56-
- samsung,exynosautov920-peric1-sysreg
57-
- const: syscon
5858

5959
reg:
6060
maxItems: 1

0 commit comments

Comments
 (0)