^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/imx1-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.MX1 CPUs
^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/imx1-clock.h
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) for the full list of i.MX1 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,imx1-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/imx1-clock.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) clock-controller@21b000 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) #clock-cells = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) compatible = "fsl,imx1-ccm";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) reg = <0x0021b000 0x1000>;
^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) pwm@208000 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) #pwm-cells = <2>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) compatible = "fsl,imx1-pwm";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) reg = <0x00208000 0x1000>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) interrupts = <34>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) clocks = <&clks IMX1_CLK_DUMMY>, <&clks IMX1_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) };