xref: /linux/Documentation/devicetree/bindings/sound/renesas,rsnd.txt (revision d9288d0ba12de1b5efb830b9128e4cc6877318fc)
190e8e50fSKuninori MorimotoRenesas R-Car sound
290e8e50fSKuninori Morimoto
390e8e50fSKuninori MorimotoRequired properties:
490e8e50fSKuninori Morimoto- compatible			: "renesas,rcar_sound-gen1" if generation1
590e8e50fSKuninori Morimoto				  "renesas,rcar_sound-gen2" if generation2
690e8e50fSKuninori Morimoto- reg				: Should contain the register physical address.
790e8e50fSKuninori Morimoto				  required register is
890e8e50fSKuninori Morimoto				   SRU/ADG/SSI      if generation1
990e8e50fSKuninori Morimoto				   SRU/ADG/SSIU/SSI if generation2
108bab0dd5SKuninori Morimoto- rcar_sound,ssi		: Should contain SSI feature.
118bab0dd5SKuninori Morimoto				  The number of SSI subnode should be same as HW.
128bab0dd5SKuninori Morimoto				  see below for detail.
138bab0dd5SKuninori Morimoto- rcar_sound,src		: Should contain SRC feature.
148bab0dd5SKuninori Morimoto				  The number of SRC subnode should be same as HW.
158bab0dd5SKuninori Morimoto				  see below for detail.
168bab0dd5SKuninori Morimoto- rcar_sound,dai		: DAI contents.
178bab0dd5SKuninori Morimoto				  The number of DAI subnode should be same as HW.
188bab0dd5SKuninori Morimoto				  see below for detail.
1990e8e50fSKuninori Morimoto
2090e8e50fSKuninori MorimotoSSI subnode properties:
2190e8e50fSKuninori Morimoto- interrupts			: Should contain SSI interrupt for PIO transfer
2290e8e50fSKuninori Morimoto- shared-pin			: if shared clock pin
23199e7688SKuninori Morimoto- pio-transfer			: use PIO transfer mode
24*d9288d0bSKuninori Morimoto- no-busif			: BUSIF is not ussed when [mem -> SSI] via DMA case
2590e8e50fSKuninori Morimoto
268bab0dd5SKuninori MorimotoSRC subnode properties:
278bab0dd5SKuninori Morimotono properties at this point
288bab0dd5SKuninori Morimoto
2990e8e50fSKuninori MorimotoDAI subnode properties:
3090e8e50fSKuninori Morimoto- playback			: list of playback modules
3190e8e50fSKuninori Morimoto- capture			: list of capture  modules
3290e8e50fSKuninori Morimoto
3390e8e50fSKuninori MorimotoExample:
3490e8e50fSKuninori Morimoto
3590e8e50fSKuninori Morimotorcar_sound: rcar_sound@0xffd90000 {
3690e8e50fSKuninori Morimoto	#sound-dai-cells = <1>;
3790e8e50fSKuninori Morimoto	compatible = "renesas,rcar_sound-gen2";
3890e8e50fSKuninori Morimoto	reg =	<0 0xec500000 0 0x1000>, /* SCU */
3990e8e50fSKuninori Morimoto		<0 0xec5a0000 0 0x100>,  /* ADG */
4090e8e50fSKuninori Morimoto		<0 0xec540000 0 0x1000>, /* SSIU */
4190e8e50fSKuninori Morimoto		<0 0xec541000 0 0x1280>; /* SSI */
4290e8e50fSKuninori Morimoto
4390e8e50fSKuninori Morimoto	rcar_sound,src {
4490e8e50fSKuninori Morimoto		src0: src@0 { };
4590e8e50fSKuninori Morimoto		src1: src@1 { };
4690e8e50fSKuninori Morimoto		src2: src@2 { };
4790e8e50fSKuninori Morimoto		src3: src@3 { };
4890e8e50fSKuninori Morimoto		src4: src@4 { };
4990e8e50fSKuninori Morimoto		src5: src@5 { };
5090e8e50fSKuninori Morimoto		src6: src@6 { };
5190e8e50fSKuninori Morimoto		src7: src@7 { };
5290e8e50fSKuninori Morimoto		src8: src@8 { };
5390e8e50fSKuninori Morimoto		src9: src@9 { };
5490e8e50fSKuninori Morimoto	};
5590e8e50fSKuninori Morimoto
5690e8e50fSKuninori Morimoto	rcar_sound,ssi {
5790e8e50fSKuninori Morimoto		ssi0: ssi@0 {
5890e8e50fSKuninori Morimoto			interrupts = <0 370 IRQ_TYPE_LEVEL_HIGH>;
5990e8e50fSKuninori Morimoto		};
6090e8e50fSKuninori Morimoto		ssi1: ssi@1 {
6190e8e50fSKuninori Morimoto			interrupts = <0 371 IRQ_TYPE_LEVEL_HIGH>;
6290e8e50fSKuninori Morimoto		};
6390e8e50fSKuninori Morimoto		ssi2: ssi@2 {
6490e8e50fSKuninori Morimoto			interrupts = <0 372 IRQ_TYPE_LEVEL_HIGH>;
6590e8e50fSKuninori Morimoto		};
6690e8e50fSKuninori Morimoto		ssi3: ssi@3 {
6790e8e50fSKuninori Morimoto			interrupts = <0 373 IRQ_TYPE_LEVEL_HIGH>;
6890e8e50fSKuninori Morimoto		};
6990e8e50fSKuninori Morimoto		ssi4: ssi@4 {
7090e8e50fSKuninori Morimoto			interrupts = <0 374 IRQ_TYPE_LEVEL_HIGH>;
7190e8e50fSKuninori Morimoto		};
7290e8e50fSKuninori Morimoto		ssi5: ssi@5 {
7390e8e50fSKuninori Morimoto			interrupts = <0 375 IRQ_TYPE_LEVEL_HIGH>;
7490e8e50fSKuninori Morimoto		};
7590e8e50fSKuninori Morimoto		ssi6: ssi@6 {
7690e8e50fSKuninori Morimoto			interrupts = <0 376 IRQ_TYPE_LEVEL_HIGH>;
7790e8e50fSKuninori Morimoto		};
7890e8e50fSKuninori Morimoto		ssi7: ssi@7 {
7990e8e50fSKuninori Morimoto			interrupts = <0 377 IRQ_TYPE_LEVEL_HIGH>;
8090e8e50fSKuninori Morimoto		};
8190e8e50fSKuninori Morimoto		ssi8: ssi@8 {
8290e8e50fSKuninori Morimoto			interrupts = <0 378 IRQ_TYPE_LEVEL_HIGH>;
8390e8e50fSKuninori Morimoto		};
8490e8e50fSKuninori Morimoto		ssi9: ssi@9 {
8590e8e50fSKuninori Morimoto			interrupts = <0 379 IRQ_TYPE_LEVEL_HIGH>;
8690e8e50fSKuninori Morimoto		};
8790e8e50fSKuninori Morimoto	};
8890e8e50fSKuninori Morimoto
8990e8e50fSKuninori Morimoto	rcar_sound,dai {
9090e8e50fSKuninori Morimoto		dai0 {
9190e8e50fSKuninori Morimoto			playback = <&ssi5 &src5>;
9290e8e50fSKuninori Morimoto			capture  = <&ssi6>;
9390e8e50fSKuninori Morimoto		};
9490e8e50fSKuninori Morimoto		dai1 {
9590e8e50fSKuninori Morimoto			playback = <&ssi3>;
9690e8e50fSKuninori Morimoto		};
9790e8e50fSKuninori Morimoto		dai2 {
9890e8e50fSKuninori Morimoto			capture  = <&ssi4>;
9990e8e50fSKuninori Morimoto		};
10090e8e50fSKuninori Morimoto		dai3 {
10190e8e50fSKuninori Morimoto			playback = <&ssi7>;
10290e8e50fSKuninori Morimoto		};
10390e8e50fSKuninori Morimoto		dai4 {
10490e8e50fSKuninori Morimoto			capture  = <&ssi8>;
10590e8e50fSKuninori Morimoto		};
10690e8e50fSKuninori Morimoto	};
10790e8e50fSKuninori Morimoto};
108