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/imx21-clock.yaml# 5*c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*c66ec88fSEmmanuel Vadot 7*c66ec88fSEmmanuel Vadottitle: Clock bindings for Freescale i.MX21 8*c66ec88fSEmmanuel Vadot 9*c66ec88fSEmmanuel Vadotmaintainers: 10*c66ec88fSEmmanuel Vadot - Alexander Shiyan <shc_work@mail.ru> 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/imx21-clock.h 15*c66ec88fSEmmanuel Vadot for the full list of i.MX21 clock IDs. 16*c66ec88fSEmmanuel Vadot 17*c66ec88fSEmmanuel Vadotproperties: 18*c66ec88fSEmmanuel Vadot compatible: 19*c66ec88fSEmmanuel Vadot const: fsl,imx21-ccm 20*c66ec88fSEmmanuel Vadot 21*c66ec88fSEmmanuel Vadot reg: 22*c66ec88fSEmmanuel Vadot maxItems: 1 23*c66ec88fSEmmanuel Vadot 24*c66ec88fSEmmanuel Vadot '#clock-cells': 25*c66ec88fSEmmanuel Vadot const: 1 26*c66ec88fSEmmanuel Vadot 27*c66ec88fSEmmanuel Vadotrequired: 28*c66ec88fSEmmanuel Vadot - compatible 29*c66ec88fSEmmanuel Vadot - reg 30*c66ec88fSEmmanuel Vadot - '#clock-cells' 31*c66ec88fSEmmanuel Vadot 32*c66ec88fSEmmanuel VadotadditionalProperties: false 33*c66ec88fSEmmanuel Vadot 34*c66ec88fSEmmanuel Vadotexamples: 35*c66ec88fSEmmanuel Vadot - | 36*c66ec88fSEmmanuel Vadot #include <dt-bindings/clock/imx21-clock.h> 37*c66ec88fSEmmanuel Vadot 38*c66ec88fSEmmanuel Vadot clock-controller@10027000 { 39*c66ec88fSEmmanuel Vadot compatible = "fsl,imx21-ccm"; 40*c66ec88fSEmmanuel Vadot reg = <0x10027000 0x800>; 41*c66ec88fSEmmanuel Vadot #clock-cells = <1>; 42*c66ec88fSEmmanuel Vadot }; 43*c66ec88fSEmmanuel Vadot 44*c66ec88fSEmmanuel Vadot serial@1000a000 { 45*c66ec88fSEmmanuel Vadot compatible = "fsl,imx21-uart"; 46*c66ec88fSEmmanuel Vadot reg = <0x1000a000 0x1000>; 47*c66ec88fSEmmanuel Vadot interrupts = <20>; 48*c66ec88fSEmmanuel Vadot clocks = <&clks IMX21_CLK_UART1_IPG_GATE>, 49*c66ec88fSEmmanuel Vadot <&clks IMX21_CLK_PER1>; 50*c66ec88fSEmmanuel Vadot clock-names = "ipg", "per"; 51*c66ec88fSEmmanuel Vadot }; 52