Skip to content

Commit 74f3d86

Browse files
superna9999jbrun3t
authored andcommitted
dt-bindings: clock: amlogic: convert amlogic,gxbb-aoclkc.txt to dt-schema
Convert the Amlogic Always-On Clock Controller bindings to dt-schema. [jbrunet: Fixed whitespace checkpatch warning] Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org> Reviewed-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20230706-b4-amlogic-bindings-convert-take2-v3-2-f63de6f12dcc@linaro.org Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
1 parent 2ad72b1 commit 74f3d86

File tree

2 files changed

+85
-64
lines changed

2 files changed

+85
-64
lines changed

Documentation/devicetree/bindings/clock/amlogic,gxbb-aoclkc.txt

Lines changed: 0 additions & 64 deletions
This file was deleted.
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/clock/amlogic,gxbb-aoclkc.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Amlogic Always-On Clock Controller
8+
9+
maintainers:
10+
- Neil Armstrong <neil.armstrong@linaro.org>
11+
12+
properties:
13+
compatible:
14+
oneOf:
15+
- items:
16+
- enum:
17+
- amlogic,meson-gxbb-aoclkc
18+
- amlogic,meson-gxl-aoclkc
19+
- amlogic,meson-gxm-aoclkc
20+
- amlogic,meson-axg-aoclkc
21+
- const: amlogic,meson-gx-aoclkc
22+
- enum:
23+
- amlogic,meson-axg-aoclkc
24+
- amlogic,meson-g12a-aoclkc
25+
26+
clocks:
27+
minItems: 2
28+
maxItems: 5
29+
30+
clock-names:
31+
minItems: 2
32+
items:
33+
- const: xtal
34+
- const: mpeg-clk
35+
- const: ext-32k-0
36+
- const: ext-32k-1
37+
- const: ext-32k-2
38+
39+
'#clock-cells':
40+
const: 1
41+
42+
'#reset-cells':
43+
const: 1
44+
45+
required:
46+
- compatible
47+
- clocks
48+
- clock-names
49+
- '#clock-cells'
50+
- '#reset-cells'
51+
52+
allOf:
53+
- if:
54+
properties:
55+
compatible:
56+
enum:
57+
- amlogic,meson-g12a-aoclkc
58+
59+
then:
60+
properties:
61+
clocks:
62+
minItems: 2
63+
maxItems: 3
64+
65+
clock-names:
66+
minItems: 2
67+
maxItems: 3
68+
69+
- if:
70+
properties:
71+
compatible:
72+
enum:
73+
- amlogic,meson-gxl-aoclkc
74+
- amlogic,meson-gxm-aoclkc
75+
- amlogic,meson-axg-aoclkc
76+
77+
then:
78+
properties:
79+
clocks:
80+
maxItems: 2
81+
82+
clock-names:
83+
maxItems: 2
84+
85+
additionalProperties: false

0 commit comments

Comments
 (0)