xref: /linux/Documentation/devicetree/bindings/clock/atmel,at91sam9x5-sckc.yaml (revision 06a130e42a5bfc84795464bff023bff4c16f58c5)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/clock/atmel,at91sam9x5-sckc.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Atmel Slow Clock Controller (SCKC)
8
9maintainers:
10  - Claudiu Beznea <claudiu.beznea@microchip.com>
11
12properties:
13  compatible:
14    oneOf:
15      - enum:
16          - atmel,at91sam9x5-sckc
17          - atmel,sama5d3-sckc
18          - atmel,sama5d4-sckc
19          - microchip,sam9x60-sckc
20      - items:
21          - enum:
22              - microchip,sam9x7-sckc
23              - microchip,sama7g5-sckc
24          - const: microchip,sam9x60-sckc
25
26  reg:
27    maxItems: 1
28
29  clocks:
30    maxItems: 1
31
32  "#clock-cells":
33    enum: [0, 1]
34
35  atmel,osc-bypass:
36    type: boolean
37    description: set when a clock signal is directly provided on XIN
38
39required:
40  - compatible
41  - reg
42  - clocks
43  - "#clock-cells"
44
45allOf:
46  - if:
47      properties:
48        compatible:
49          contains:
50            enum:
51              - microchip,sam9x60-sckc
52    then:
53      properties:
54        "#clock-cells":
55          const: 1
56    else:
57      properties:
58        "#clock-cells":
59          const: 0
60
61additionalProperties: false
62
63examples:
64  - |
65    clk32k: clock-controller@fffffe50 {
66        compatible = "microchip,sam9x60-sckc";
67        reg = <0xfffffe50 0x4>;
68        clocks = <&slow_xtal>;
69        #clock-cells = <1>;
70    };
71
72...
73