xref: /freebsd/sys/contrib/device-tree/Bindings/clock/raspberrypi,rp1-clocks.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/raspberrypi,rp1-clocks.yaml#
5*833e5d42SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*833e5d42SEmmanuel Vadot
7*833e5d42SEmmanuel Vadottitle: RaspberryPi RP1 clock generator
8*833e5d42SEmmanuel Vadot
9*833e5d42SEmmanuel Vadotmaintainers:
10*833e5d42SEmmanuel Vadot  - A. della Porta <andrea.porta@suse.com>
11*833e5d42SEmmanuel Vadot
12*833e5d42SEmmanuel Vadotdescription: |
13*833e5d42SEmmanuel Vadot  The RP1 contains a clock generator designed as three PLLs (CORE, AUDIO,
14*833e5d42SEmmanuel Vadot  VIDEO), and each PLL output can be programmed through dividers to generate
15*833e5d42SEmmanuel Vadot  the clocks to drive the sub-peripherals embedded inside the chipset.
16*833e5d42SEmmanuel Vadot
17*833e5d42SEmmanuel Vadot  Link to datasheet:
18*833e5d42SEmmanuel Vadot  https://datasheets.raspberrypi.com/rp1/rp1-peripherals.pdf
19*833e5d42SEmmanuel Vadot
20*833e5d42SEmmanuel Vadotproperties:
21*833e5d42SEmmanuel Vadot  compatible:
22*833e5d42SEmmanuel Vadot    const: raspberrypi,rp1-clocks
23*833e5d42SEmmanuel Vadot
24*833e5d42SEmmanuel Vadot  reg:
25*833e5d42SEmmanuel Vadot    maxItems: 1
26*833e5d42SEmmanuel Vadot
27*833e5d42SEmmanuel Vadot  '#clock-cells':
28*833e5d42SEmmanuel Vadot    const: 1
29*833e5d42SEmmanuel Vadot    description:
30*833e5d42SEmmanuel Vadot      The available clocks are defined in
31*833e5d42SEmmanuel Vadot      include/dt-bindings/clock/raspberrypi,rp1-clocks.h.
32*833e5d42SEmmanuel Vadot
33*833e5d42SEmmanuel Vadot  clocks:
34*833e5d42SEmmanuel Vadot    maxItems: 1
35*833e5d42SEmmanuel Vadot
36*833e5d42SEmmanuel Vadotrequired:
37*833e5d42SEmmanuel Vadot  - compatible
38*833e5d42SEmmanuel Vadot  - reg
39*833e5d42SEmmanuel Vadot  - '#clock-cells'
40*833e5d42SEmmanuel Vadot  - clocks
41*833e5d42SEmmanuel Vadot
42*833e5d42SEmmanuel VadotadditionalProperties: false
43*833e5d42SEmmanuel Vadot
44*833e5d42SEmmanuel Vadotexamples:
45*833e5d42SEmmanuel Vadot  - |
46*833e5d42SEmmanuel Vadot    #include <dt-bindings/clock/raspberrypi,rp1-clocks.h>
47*833e5d42SEmmanuel Vadot
48*833e5d42SEmmanuel Vadot    rp1 {
49*833e5d42SEmmanuel Vadot        #address-cells = <2>;
50*833e5d42SEmmanuel Vadot        #size-cells = <2>;
51*833e5d42SEmmanuel Vadot
52*833e5d42SEmmanuel Vadot        clocks@c040018000 {
53*833e5d42SEmmanuel Vadot            compatible = "raspberrypi,rp1-clocks";
54*833e5d42SEmmanuel Vadot            reg = <0xc0 0x40018000 0x0 0x10038>;
55*833e5d42SEmmanuel Vadot            #clock-cells = <1>;
56*833e5d42SEmmanuel Vadot            clocks = <&clk_rp1_xosc>;
57*833e5d42SEmmanuel Vadot        };
58*833e5d42SEmmanuel Vadot    };
59