xref: /linux/Documentation/devicetree/bindings/clock/fsl,sai-clock.yaml (revision 7ae9fb1b7ecbb5d85d07857943f677fd1a559b18)
18798e8fbSMichael Walle# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
28798e8fbSMichael Walle%YAML 1.2
38798e8fbSMichael Walle---
404dbd865SRob Herring$id: http://devicetree.org/schemas/clock/fsl,sai-clock.yaml#
58798e8fbSMichael Walle$schema: http://devicetree.org/meta-schemas/core.yaml#
68798e8fbSMichael Walle
7*84e85359SKrzysztof Kozlowskititle: Freescale SAI bitclock-as-a-clock
88798e8fbSMichael Walle
98798e8fbSMichael Wallemaintainers:
108798e8fbSMichael Walle  - Michael Walle <michael@walle.cc>
118798e8fbSMichael Walle
128798e8fbSMichael Walledescription: |
138798e8fbSMichael Walle  It is possible to use the BCLK pin of a SAI module as a generic clock
148798e8fbSMichael Walle  output. Some SoC are very constrained in their pin multiplexer
158798e8fbSMichael Walle  configuration. Eg. pins can only be changed groups. For example, on the
168798e8fbSMichael Walle  LS1028A SoC you can only enable SAIs in pairs. If you use only one SAI,
178798e8fbSMichael Walle  the second pins are wasted. Using this binding it is possible to use the
188798e8fbSMichael Walle  clock of the second SAI as a MCLK clock for an audio codec, for example.
198798e8fbSMichael Walle
208798e8fbSMichael Walle  This is a composite of a gated clock and a divider clock.
218798e8fbSMichael Walle
228798e8fbSMichael Walleproperties:
238798e8fbSMichael Walle  compatible:
248798e8fbSMichael Walle    const: fsl,vf610-sai-clock
258798e8fbSMichael Walle
268798e8fbSMichael Walle  reg:
278798e8fbSMichael Walle    maxItems: 1
288798e8fbSMichael Walle
298798e8fbSMichael Walle  clocks:
308798e8fbSMichael Walle    maxItems: 1
318798e8fbSMichael Walle
328798e8fbSMichael Walle  '#clock-cells':
338798e8fbSMichael Walle    const: 0
348798e8fbSMichael Walle
358798e8fbSMichael Wallerequired:
368798e8fbSMichael Walle  - compatible
378798e8fbSMichael Walle  - reg
388798e8fbSMichael Walle  - clocks
398798e8fbSMichael Walle  - '#clock-cells'
408798e8fbSMichael Walle
418798e8fbSMichael WalleadditionalProperties: false
428798e8fbSMichael Walle
438798e8fbSMichael Walleexamples:
448798e8fbSMichael Walle  - |
458798e8fbSMichael Walle    soc {
468798e8fbSMichael Walle        #address-cells = <2>;
478798e8fbSMichael Walle        #size-cells = <2>;
488798e8fbSMichael Walle
498798e8fbSMichael Walle        mclk: clock-mclk@f130080 {
508798e8fbSMichael Walle            compatible = "fsl,vf610-sai-clock";
518798e8fbSMichael Walle            reg = <0x0 0xf130080 0x0 0x80>;
528798e8fbSMichael Walle            #clock-cells = <0>;
538798e8fbSMichael Walle            clocks = <&parentclk>;
548798e8fbSMichael Walle        };
558798e8fbSMichael Walle    };
56