Commit | Line | Data |
---|---|---|
c82f3030 MR |
1 | # SPDX-License-Identifier: GPL-2.0+ |
2 | %YAML 1.2 | |
3 | --- | |
91f93c38 | 4 | $id: http://devicetree.org/schemas/clock/allwinner,sun9i-a80-usb-clks.yaml# |
c82f3030 MR |
5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
6 | ||
dd3cb467 | 7 | title: Allwinner A80 USB Clock Controller |
c82f3030 MR |
8 | |
9 | maintainers: | |
10 | - Chen-Yu Tsai <wens@csie.org> | |
11 | - Maxime Ripard <mripard@kernel.org> | |
12 | ||
13 | properties: | |
14 | "#clock-cells": | |
15 | const: 1 | |
16 | ||
17 | "#reset-cells": | |
18 | const: 1 | |
19 | ||
20 | compatible: | |
91f93c38 | 21 | const: allwinner,sun9i-a80-usb-clks |
c82f3030 MR |
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 | ||
36 | required: | |
37 | - "#clock-cells" | |
38 | - "#reset-cells" | |
39 | - compatible | |
40 | - reg | |
41 | - clocks | |
42 | - clock-names | |
43 | ||
44 | additionalProperties: false | |
45 | ||
46 | examples: | |
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 | ... |