Skip to content

Commit 094e111

Browse files
robherringbebarino
authored andcommitted
dt-bindings: clock: Convert APM XGene clocks to DT schema
Convert the APM XGene clocks to DT schema. The device clock binding is a bit different from the others, so put it in its own schema file. Drop the examples. Signed-off-by: Rob Herring (Arm) <robh@kernel.org> Link: https://lore.kernel.org/r/20250521004655.1792703-1-robh@kernel.org Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent bd6ada5 commit 094e111

3 files changed

Lines changed: 130 additions & 131 deletions

File tree

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/clock/apm,xgene-device-clock.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: APM X-Gene SoC device clocks
8+
9+
maintainers:
10+
- Khuong Dinh <khuong@os.amperecomputing.com>
11+
12+
properties:
13+
compatible:
14+
const: apm,xgene-device-clock
15+
16+
reg:
17+
minItems: 1
18+
maxItems: 2
19+
20+
reg-names:
21+
items:
22+
- enum: [ csr-reg, div-reg ]
23+
- const: div-reg
24+
minItems: 1
25+
26+
clocks:
27+
maxItems: 1
28+
29+
"#clock-cells":
30+
const: 1
31+
32+
clock-output-names:
33+
maxItems: 1
34+
35+
clock-names:
36+
maxItems: 1
37+
38+
csr-offset:
39+
description: Offset to the CSR reset register
40+
$ref: /schemas/types.yaml#/definitions/uint32
41+
default: 0
42+
43+
csr-mask:
44+
description: CSR reset mask bit
45+
$ref: /schemas/types.yaml#/definitions/uint32
46+
default: 0xf
47+
48+
enable-offset:
49+
description: Offset to the enable register
50+
$ref: /schemas/types.yaml#/definitions/uint32
51+
default: 8
52+
53+
enable-mask:
54+
description: CSR enable mask bit
55+
$ref: /schemas/types.yaml#/definitions/uint32
56+
default: 0xf
57+
58+
divider-offset:
59+
description: Offset to the divider register
60+
$ref: /schemas/types.yaml#/definitions/uint32
61+
default: 0
62+
63+
divider-width:
64+
description: Width of the divider register
65+
$ref: /schemas/types.yaml#/definitions/uint32
66+
default: 0
67+
68+
divider-shift:
69+
description: Bit shift of the divider register
70+
$ref: /schemas/types.yaml#/definitions/uint32
71+
default: 0
72+
73+
required:
74+
- compatible
75+
- reg
76+
- clocks
77+
- '#clock-cells'
78+
- clock-output-names
79+
80+
additionalProperties: false
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/clock/apm,xgene-socpll-clock.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: APM X-Gene SoC PLL, PCPPLL, and PMD clocks
8+
9+
maintainers:
10+
- Khuong Dinh <khuong@os.amperecomputing.com>
11+
12+
properties:
13+
compatible:
14+
items:
15+
- enum:
16+
- apm,xgene-pcppll-clock
17+
- apm,xgene-pcppll-v2-clock
18+
- apm,xgene-pmd-clock
19+
- apm,xgene-socpll-clock
20+
- apm,xgene-socpll-v2-clock
21+
22+
reg:
23+
maxItems: 1
24+
25+
reg-names:
26+
items:
27+
- enum: [ csr-reg, div-reg ]
28+
- const: div-reg
29+
minItems: 1
30+
31+
clocks:
32+
maxItems: 1
33+
34+
clock-names:
35+
enum: [ pcppll, socpll ]
36+
37+
"#clock-cells":
38+
const: 1
39+
40+
clock-output-names:
41+
maxItems: 1
42+
43+
required:
44+
- compatible
45+
- reg
46+
- clocks
47+
- '#clock-cells'
48+
- clock-output-names
49+
50+
additionalProperties: false

Documentation/devicetree/bindings/clock/xgene.txt

Lines changed: 0 additions & 131 deletions
This file was deleted.

0 commit comments

Comments
 (0)