xref: /freebsd/sys/contrib/device-tree/Bindings/clock/imx27-clock.yaml (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*c66ec88fSEmmanuel Vadot%YAML 1.2
3*c66ec88fSEmmanuel Vadot---
4*c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/clock/imx27-clock.yaml#
5*c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*c66ec88fSEmmanuel Vadot
7*c66ec88fSEmmanuel Vadottitle: Clock bindings for Freescale i.MX27
8*c66ec88fSEmmanuel Vadot
9*c66ec88fSEmmanuel Vadotmaintainers:
10*c66ec88fSEmmanuel Vadot  - Fabio Estevam <fabio.estevam@nxp.com>
11*c66ec88fSEmmanuel Vadot
12*c66ec88fSEmmanuel Vadotdescription: |
13*c66ec88fSEmmanuel Vadot  The clock consumer should specify the desired clock by having the clock
14*c66ec88fSEmmanuel Vadot  ID in its "clocks" phandle cell. See include/dt-bindings/clock/imx27-clock.h
15*c66ec88fSEmmanuel Vadot  for the full list of i.MX27 clock IDs.
16*c66ec88fSEmmanuel Vadot
17*c66ec88fSEmmanuel Vadotproperties:
18*c66ec88fSEmmanuel Vadot  compatible:
19*c66ec88fSEmmanuel Vadot    const: fsl,imx27-ccm
20*c66ec88fSEmmanuel Vadot
21*c66ec88fSEmmanuel Vadot  reg:
22*c66ec88fSEmmanuel Vadot    maxItems: 1
23*c66ec88fSEmmanuel Vadot
24*c66ec88fSEmmanuel Vadot  interrupts:
25*c66ec88fSEmmanuel Vadot    maxItems: 1
26*c66ec88fSEmmanuel Vadot
27*c66ec88fSEmmanuel Vadot  '#clock-cells':
28*c66ec88fSEmmanuel Vadot    const: 1
29*c66ec88fSEmmanuel Vadot
30*c66ec88fSEmmanuel Vadotrequired:
31*c66ec88fSEmmanuel Vadot  - compatible
32*c66ec88fSEmmanuel Vadot  - reg
33*c66ec88fSEmmanuel Vadot  - '#clock-cells'
34*c66ec88fSEmmanuel Vadot
35*c66ec88fSEmmanuel VadotadditionalProperties: false
36*c66ec88fSEmmanuel Vadot
37*c66ec88fSEmmanuel Vadotexamples:
38*c66ec88fSEmmanuel Vadot  - |
39*c66ec88fSEmmanuel Vadot    #include <dt-bindings/clock/imx27-clock.h>
40*c66ec88fSEmmanuel Vadot
41*c66ec88fSEmmanuel Vadot    clock-controller@10027000 {
42*c66ec88fSEmmanuel Vadot        compatible = "fsl,imx27-ccm";
43*c66ec88fSEmmanuel Vadot        reg = <0x10027000 0x1000>;
44*c66ec88fSEmmanuel Vadot        interrupts = <31>;
45*c66ec88fSEmmanuel Vadot        #clock-cells = <1>;
46*c66ec88fSEmmanuel Vadot    };
47*c66ec88fSEmmanuel Vadot
48*c66ec88fSEmmanuel Vadot    serial@1000a000 {
49*c66ec88fSEmmanuel Vadot        compatible = "fsl,imx27-uart", "fsl,imx21-uart";
50*c66ec88fSEmmanuel Vadot        reg = <0x1000a000 0x1000>;
51*c66ec88fSEmmanuel Vadot        interrupts = <20>;
52*c66ec88fSEmmanuel Vadot        clocks = <&clks IMX27_CLK_UART1_IPG_GATE>,
53*c66ec88fSEmmanuel Vadot                 <&clks IMX27_CLK_PER1_GATE>;
54*c66ec88fSEmmanuel Vadot        clock-names = "ipg", "per";
55*c66ec88fSEmmanuel Vadot    };
56