1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/clock/bitmain,bm1880-clk.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Bitmain BM1880 Clock Controller
8
9maintainers:
10  - Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
11
12description: |
13  The Bitmain BM1880 clock controller generates and supplies clock to
14  various peripherals within the SoC.
15
16  This binding uses common clock bindings
17  [1] Documentation/devicetree/bindings/clock/clock-bindings.txt
18
19properties:
20  compatible:
21    const: bitmain,bm1880-clk
22
23  reg:
24    items:
25      - description: pll registers
26      - description: system registers
27
28  reg-names:
29    items:
30      - const: pll
31      - const: sys
32
33  clocks:
34    maxItems: 1
35
36  clock-names:
37    const: osc
38
39  '#clock-cells':
40    const: 1
41
42required:
43  - compatible
44  - reg
45  - reg-names
46  - clocks
47  - clock-names
48  - '#clock-cells'
49
50additionalProperties: false
51
52examples:
53  # Clock controller node:
54  - |
55    clk: clock-controller@e8 {
56        compatible = "bitmain,bm1880-clk";
57        reg = <0xe8 0x0c>, <0x800 0xb0>;
58        reg-names = "pll", "sys";
59        clocks = <&osc>;
60        clock-names = "osc";
61        #clock-cells = <1>;
62    };
63
64...
65