Lines Matching +full:stm32 +full:- +full:dma

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#
7 title: STMicroelectronics STM32 Serial Audio Interface (SAI)
10 - Olivier Moysan <olivier.moysan@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
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]+$":
64 Two subnodes corresponding to SAI sub-block instances A et B
65 can be defined. Subnode can be omitted for unsused sub-block.
69 description: Compatible for SAI sub-block A or B.
70 pattern: "st,stm32-sai-sub-[ab]"
72 "#sound-dai-cells":
80 - description: sai_ck clock feeding the internal clock generator.
81 - description: MCLK clock from a SAI set as master clock provider.
84 clock-names:
86 - const: sai_ck
87 - const: MCLK
93 dma-names:
95 rx: SAI sub-block is configured as a capture DAI.
96 tx: SAI sub-block is configured as a playback DAI.
101 Configure the SAI sub-block as slave of another SAI sub-block.
102 By default SAI sub-block is in asynchronous mode.
103 Must contain the phandle and index of the SAI sub-block providing
106 - $ref: /schemas/types.yaml#/definitions/phandle-array
107 - maxItems: 1
117 - $ref: /schemas/types.yaml#/definitions/flag
119 "#clock-cells":
124 - compatible
125 - "#sound-dai-cells"
126 - reg
127 - clocks
128 - clock-names
129 - dmas
130 - dma-names
133 - if:
137 const: st,stm32f4-sai
139 - then:
143 - description: x8k, SAI parent clock for sampling rates multiple of 8kHz.
144 - description: x11k, SAI parent clock for sampling rates multiple of 11.025kHz.
146 clock-names:
148 - const: x8k
149 - const: x11k
151 - else:
155 - description: pclk feeds the peripheral bus interface.
156 - description: x8k, SAI parent clock for sampling rates multiple of 8kHz.
157 - description: x11k, SAI parent clock for sampling rates multiple of 11.025kHz.
159 clock-names:
161 - const: pclk
162 - const: x8k
163 - const: x11k
168 - |
169 #include <dt-bindings/interrupt-controller/arm-gic.h>
170 #include <dt-bindings/clock/stm32mp1-clks.h>
171 #include <dt-bindings/reset/stm32mp1-resets.h>
173 compatible = "st,stm32h7-sai";
174 #address-cells = <1>;
175 #size-cells = <1>;
179 clock-names = "pclk", "x8k", "x11k";
180 pinctrl-names = "default", "sleep";
181 pinctrl-0 = <&sai2a_pins_a>, <&sai2b_pins_b>;
182 pinctrl-1 = <&sai2a_sleep_pins_a>, <&sai2b_sleep_pins_b>;
184 sai2a: audio-controller@4400b004 {
185 #sound-dai-cells = <0>;
186 compatible = "st,stm32-sai-sub-a";
189 dma-names = "tx";
191 clock-names = "sai_ck";