Lines Matching +full:pcm +full:- +full:clock +full:- +full:mode

1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/sound/st,stm32-sai.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Olivier Moysan <olivier.moysan@foss.st.com>
14 protocols as I2S standards, LSB or MSB-justified, PCM/DSP, TDM, and AC'97.
15 The SAI contains two independent audio sub-blocks. Each sub-block has
16 its own clock generator and I/O lines controller.
21 - st,stm32f4-sai
22 - st,stm32h7-sai
26 - description: Base address and size of SAI common register set.
27 - description: Base address and size of SAI identification register set.
39 "#address-cells":
42 "#size-cells":
48 clock-names:
52 - compatible
53 - reg
54 - ranges
55 - "#address-cells"
56 - "#size-cells"
57 - clocks
58 - clock-names
61 "^audio-controller@[0-9a-f]+$":
65 Two subnodes corresponding to SAI sub-block instances A et B
66 can be defined. Subnode can be omitted for unused sub-block.
70 description: Compatible for SAI sub-block A or B.
71 pattern: "st,stm32-sai-sub-[ab]"
73 "#sound-dai-cells":
81 - description: sai_ck clock feeding the internal clock generator.
82 - description: MCLK clock from a SAI set as master clock provider.
85 clock-names:
87 - const: sai_ck
88 - const: MCLK
94 dma-names:
96 rx: SAI sub-block is configured as a capture DAI.
97 tx: SAI sub-block is configured as a playback DAI.
102 Configure the SAI sub-block as slave of another SAI sub-block.
103 By default SAI sub-block is in asynchronous mode.
104 Must contain the phandle and index of the SAI sub-block providing
106 $ref: /schemas/types.yaml#/definitions/phandle-array
108 - items:
109 - description: phandle of the SAI sub-block
110 - description: index of the SAI sub-block
121 "#clock-cells":
122 description: Configure the SAI device as master clock provider.
126 $ref: audio-graph-port.yaml#
130 - compatible
131 - "#sound-dai-cells"
132 - reg
133 - clocks
134 - clock-names
135 - dmas
136 - dma-names
139 - if:
143 const: st,stm32f4-sai
148 - description: x8k, SAI parent clock for sampling rates multiple of 8kHz.
149 - description: x11k, SAI parent clock for sampling rates multiple of 11.025kHz.
151 clock-names:
153 - const: x8k
154 - const: x11k
159 - description: pclk feeds the peripheral bus interface.
160 - description: x8k, SAI parent clock for sampling rates multiple of 8kHz.
161 - description: x11k, SAI parent clock for sampling rates multiple of 11.025kHz.
163 clock-names:
165 - const: pclk
166 - const: x8k
167 - const: x11k
172 - |
173 #include <dt-bindings/interrupt-controller/arm-gic.h>
174 #include <dt-bindings/clock/stm32mp1-clks.h>
175 #include <dt-bindings/reset/stm32mp1-resets.h>
177 compatible = "st,stm32h7-sai";
178 #address-cells = <1>;
179 #size-cells = <1>;
183 clock-names = "pclk", "x8k", "x11k";
184 pinctrl-names = "default", "sleep";
185 pinctrl-0 = <&sai2a_pins_a>, <&sai2b_pins_b>;
186 pinctrl-1 = <&sai2a_sleep_pins_a>, <&sai2b_sleep_pins_b>;
188 sai2a: audio-controller@4400b004 {
189 #sound-dai-cells = <0>;
190 compatible = "st,stm32-sai-sub-a";
193 dma-names = "tx";
195 clock-names = "sai_ck";