^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) %YAML 1.2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) ---
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) $id: http://devicetree.org/schemas/clock/imx21-clock.yaml#
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) $schema: http://devicetree.org/meta-schemas/core.yaml#
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) title: Clock bindings for Freescale i.MX21
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) maintainers:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) - Alexander Shiyan <shc_work@mail.ru>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) description: |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) The clock consumer should specify the desired clock by having the clock
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) ID in its "clocks" phandle cell. See include/dt-bindings/clock/imx21-clock.h
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) for the full list of i.MX21 clock IDs.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) compatible:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) const: fsl,imx21-ccm
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) reg:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) maxItems: 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) '#clock-cells':
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) const: 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) required:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) - compatible
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) - reg
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) - '#clock-cells'
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) additionalProperties: false
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) examples:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) - |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) #include <dt-bindings/clock/imx21-clock.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) clock-controller@10027000 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) compatible = "fsl,imx21-ccm";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) reg = <0x10027000 0x800>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) #clock-cells = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) serial@1000a000 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) compatible = "fsl,imx21-uart";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) reg = <0x1000a000 0x1000>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) interrupts = <20>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) clocks = <&clks IMX21_CLK_UART1_IPG_GATE>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) <&clks IMX21_CLK_PER1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) clock-names = "ipg", "per";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) };