18c2ecf20Sopenharmony_ciADI AXI-I2S controller
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciThe core can be generated with transmit (playback), only receive
48c2ecf20Sopenharmony_ci(capture) or both directions enabled.
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ciRequired properties:
78c2ecf20Sopenharmony_ci - compatible : Must be "adi,axi-i2s-1.00.a"
88c2ecf20Sopenharmony_ci - reg : Must contain I2S core's registers location and length
98c2ecf20Sopenharmony_ci - clocks : Pairs of phandle and specifier referencing the controller's clocks.
108c2ecf20Sopenharmony_ci   The controller expects two clocks, the clock used for the AXI interface and
118c2ecf20Sopenharmony_ci   the clock used as the sampling rate reference clock sample.
128c2ecf20Sopenharmony_ci - clock-names : "axi" for the clock to the AXI interface, "ref" for the sample
138c2ecf20Sopenharmony_ci   rate reference clock.
148c2ecf20Sopenharmony_ci - dmas: Pairs of phandle and specifier for the DMA channels that are used by
158c2ecf20Sopenharmony_ci   the core. The core expects two dma channels if both transmit and receive are
168c2ecf20Sopenharmony_ci   enabled, one channel otherwise.
178c2ecf20Sopenharmony_ci - dma-names : "tx" for the transmit channel, "rx" for the receive channel.
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ciFor more details on the 'dma', 'dma-names', 'clock' and 'clock-names' properties
208c2ecf20Sopenharmony_ciplease check:
218c2ecf20Sopenharmony_ci	* resource-names.txt
228c2ecf20Sopenharmony_ci	* clock/clock-bindings.txt
238c2ecf20Sopenharmony_ci	* dma/dma.txt
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ciExample:
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ci	i2s: i2s@77600000 {
288c2ecf20Sopenharmony_ci		compatible = "adi,axi-i2s-1.00.a";
298c2ecf20Sopenharmony_ci		reg = <0x77600000 0x1000>;
308c2ecf20Sopenharmony_ci		clocks = <&clk 15>, <&audio_clock>;
318c2ecf20Sopenharmony_ci		clock-names = "axi", "ref";
328c2ecf20Sopenharmony_ci		dmas = <&ps7_dma 0>, <&ps7_dma 1>;
338c2ecf20Sopenharmony_ci		dma-names = "tx", "rx";
348c2ecf20Sopenharmony_ci	};
35