xref: /linux/Documentation/devicetree/bindings/clock/imx7ulp-scg-clock.yaml (revision 9ddb236f13594b34a12dacf69a5adca7a1aef35e)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/clock/imx7ulp-scg-clock.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Clock bindings for Freescale i.MX7ULP System Clock Generation (SCG) modules
8
9maintainers:
10  - A.s. Dong <aisheng.dong@nxp.com>
11
12description: |
13  i.MX7ULP Clock functions are under joint control of the System
14  Clock Generation (SCG) modules, Peripheral Clock Control (PCC)
15  modules, and Core Mode Controller (CMC)1 blocks
16
17  The clocking scheme provides clear separation between M4 domain
18  and A7 domain. Except for a few clock sources shared between two
19  domains, such as the System Oscillator clock, the Slow IRC (SIRC),
20  and and the Fast IRC clock (FIRCLK), clock sources and clock
21  management are separated and contained within each domain.
22
23  M4 clock management consists of SCG0, PCC0, PCC1, and CMC0 modules.
24  A7 clock management consists of SCG1, PCC2, PCC3, and CMC1 modules.
25
26  Note: this binding doc is only for A7 clock domain.
27
28  The System Clock Generation (SCG) is responsible for clock generation
29  and distribution across this device. Functions performed by the SCG
30  include: clock reference selection, generation of clock used to derive
31  processor, system, peripheral bus and external memory interface clocks,
32  source selection for peripheral clocks and control of power saving
33  clock gating mode.
34
35  The clock consumer should specify the desired clock by having the clock
36  ID in its "clocks" phandle cell.
37  See include/dt-bindings/clock/imx7ulp-clock.h for the full list of
38  i.MX7ULP clock IDs of each module.
39
40properties:
41  compatible:
42    const: fsl,imx7ulp-scg1
43
44  reg:
45    maxItems: 1
46
47  '#clock-cells':
48    const: 1
49
50  clocks:
51    items:
52      - description: rtc osc
53      - description: system osc
54      - description: slow internal reference clock
55      - description: fast internal reference clock
56      - description: usb PLL
57
58  clock-names:
59    items:
60      - const: rosc
61      - const: sosc
62      - const: sirc
63      - const: firc
64      - const: upll
65
66required:
67  - compatible
68  - reg
69  - '#clock-cells'
70  - clocks
71  - clock-names
72
73additionalProperties: false
74
75examples:
76  - |
77    #include <dt-bindings/clock/imx7ulp-clock.h>
78    #include <dt-bindings/interrupt-controller/arm-gic.h>
79
80    clock-controller@403e0000 {
81        compatible = "fsl,imx7ulp-scg1";
82        reg = <0x403e0000 0x10000>;
83        clocks = <&rosc>, <&sosc>, <&sirc>,
84                 <&firc>, <&upll>;
85        clock-names = "rosc", "sosc", "sirc",
86                      "firc", "upll";
87        #clock-cells = <1>;
88    };
89
90    mmc@40380000 {
91        compatible = "fsl,imx7ulp-usdhc";
92        reg = <0x40380000 0x10000>;
93        interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
94        clocks = <&scg1 IMX7ULP_CLK_NIC1_BUS_DIV>,
95                 <&scg1 IMX7ULP_CLK_NIC1_DIV>,
96                 <&pcc2 IMX7ULP_CLK_USDHC1>;
97        clock-names ="ipg", "ahb", "per";
98        bus-width = <4>;
99    };
100