xref: /freebsd/sys/contrib/device-tree/Bindings/clock/allwinner,sun9i-a80-usb-clks.yaml (revision 7ef62cebc2f965b0f640263e179276928885e33d)
1# SPDX-License-Identifier: GPL-2.0+
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/clock/allwinner,sun9i-a80-usb-clks.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Allwinner A80 USB Clock Controller
8
9maintainers:
10  - Chen-Yu Tsai <wens@csie.org>
11  - Maxime Ripard <mripard@kernel.org>
12
13properties:
14  "#clock-cells":
15    const: 1
16
17  "#reset-cells":
18    const: 1
19
20  compatible:
21    const: allwinner,sun9i-a80-usb-clks
22
23  reg:
24    maxItems: 1
25
26  clocks:
27    items:
28      - description: Bus Clock
29      - description: High Frequency Oscillator
30
31  clock-names:
32    items:
33      - const: bus
34      - const: hosc
35
36required:
37  - "#clock-cells"
38  - "#reset-cells"
39  - compatible
40  - reg
41  - clocks
42  - clock-names
43
44additionalProperties: false
45
46examples:
47  - |
48    #include <dt-bindings/clock/sun9i-a80-ccu.h>
49
50    usb_clocks: clock@a08000 {
51        compatible = "allwinner,sun9i-a80-usb-clks";
52        reg = <0x00a08000 0x8>;
53        clocks = <&ccu CLK_BUS_USB>, <&osc24M>;
54        clock-names = "bus", "hosc";
55        #clock-cells = <1>;
56        #reset-cells = <1>;
57    };
58
59...
60