Freescale SAI bitclock-as-a-clock

Schema identifier ($id): "http://devicetree.org/schemas/clock/fsl,sai-clock.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Michael Walle <michael@walle.cc>"

It is possible to use the BCLK pin of a SAI module as a generic clock output. Some SoC are very constrained in their pin multiplexer configuration. Eg. pins can only be changed groups. For example, on the LS1028A SoC you can only enable SAIs in pairs. If you use only one SAI, the second pins are wasted. Using this binding it is possible to use the clock of the second SAI as a MCLK clock for an audio codec, for example.

This is a composite of a gated clock and a divider clock.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "fsl,vf610-sai-clock"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

#clock-cells — required here #

Exact value (const): 0

Required in this object (required): "compatible", "reg", "clocks", "#clock-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

soc {
    #address-cells = <2>;
    #size-cells = <2>;

    mclk: clock-mclk@f130080 {
        compatible = "fsl,vf610-sai-clock";
        reg = <0x0 0xf130080 0x0 0x80>;
        #clock-cells = <0>;
        clocks = <&parentclk>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page