xref: /freebsd/sys/contrib/device-tree/Bindings/clock/marvell,armada-3700-tbg-clock.yaml (revision 833e5d42ab135b0238e61c5b3c19b8619677cbfa)
1*833e5d42SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*833e5d42SEmmanuel Vadot%YAML 1.2
3*833e5d42SEmmanuel Vadot---
4*833e5d42SEmmanuel Vadot$id: http://devicetree.org/schemas/clock/marvell,armada-3700-tbg-clock.yaml#
5*833e5d42SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*833e5d42SEmmanuel Vadot
7*833e5d42SEmmanuel Vadottitle: Marvell Armada 3700 Time Base Generator Clock
8*833e5d42SEmmanuel Vadot
9*833e5d42SEmmanuel Vadotmaintainers:
10*833e5d42SEmmanuel Vadot  - Andrew Lunn <andrew@lunn.ch>
11*833e5d42SEmmanuel Vadot  - Gregory Clement <gregory.clement@bootlin.com>
12*833e5d42SEmmanuel Vadot
13*833e5d42SEmmanuel Vadotdescription: >
14*833e5d42SEmmanuel Vadot  Marvell Armada 37xx SoCs provide Time Base Generator clocks which are used as
15*833e5d42SEmmanuel Vadot  parent clocks for the peripheral clocks.
16*833e5d42SEmmanuel Vadot
17*833e5d42SEmmanuel Vadot  The TBG clock consumer should specify the desired clock by having the clock ID
18*833e5d42SEmmanuel Vadot  in its "clocks" phandle cell.
19*833e5d42SEmmanuel Vadot
20*833e5d42SEmmanuel Vadot  The following is a list of provided IDs and clock names on Armada 3700:
21*833e5d42SEmmanuel Vadot
22*833e5d42SEmmanuel Vadot    0 = TBG A P
23*833e5d42SEmmanuel Vadot    1 = TBG B P
24*833e5d42SEmmanuel Vadot    2 = TBG A S
25*833e5d42SEmmanuel Vadot    3 = TBG B S
26*833e5d42SEmmanuel Vadot
27*833e5d42SEmmanuel Vadotproperties:
28*833e5d42SEmmanuel Vadot  compatible:
29*833e5d42SEmmanuel Vadot    const: marvell,armada-3700-tbg-clock
30*833e5d42SEmmanuel Vadot
31*833e5d42SEmmanuel Vadot  reg:
32*833e5d42SEmmanuel Vadot    maxItems: 1
33*833e5d42SEmmanuel Vadot
34*833e5d42SEmmanuel Vadot  clocks:
35*833e5d42SEmmanuel Vadot    maxItems: 1
36*833e5d42SEmmanuel Vadot
37*833e5d42SEmmanuel Vadot  '#clock-cells':
38*833e5d42SEmmanuel Vadot    const: 1
39*833e5d42SEmmanuel Vadot
40*833e5d42SEmmanuel Vadotrequired:
41*833e5d42SEmmanuel Vadot  - compatible
42*833e5d42SEmmanuel Vadot  - reg
43*833e5d42SEmmanuel Vadot  - '#clock-cells'
44*833e5d42SEmmanuel Vadot
45*833e5d42SEmmanuel VadotadditionalProperties: false
46*833e5d42SEmmanuel Vadot
47*833e5d42SEmmanuel Vadotexamples:
48*833e5d42SEmmanuel Vadot  - |
49*833e5d42SEmmanuel Vadot    clock-controller@13200 {
50*833e5d42SEmmanuel Vadot        compatible = "marvell,armada-3700-tbg-clock";
51*833e5d42SEmmanuel Vadot        reg = <0x13200 0x1000>;
52*833e5d42SEmmanuel Vadot        clocks = <&xtalclk>;
53*833e5d42SEmmanuel Vadot        #clock-cells = <1>;
54*833e5d42SEmmanuel Vadot    };
55