Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ae79f66d authored by Simon Horman's avatar Simon Horman
Browse files

ARM: dts: gose: enable sound DMA support via DVC in device tree



Enable DMA transfer using DVC in r8a7793/gose device tree.

     DMA               DMApp
[MEM] -> [SRC] -> [DVC] -> [SSIU] -> [SSI]

     DMA               DMApp
[MEM] <- [DVC] <- [SRC] <- [SSIU] <- [SSI]

Based on similar work for the r8a7791/koelsch by Kuninori Morimoto.

Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: default avatarSimon Horman <horms+renesas@verge.net.au>
parent d2cde3b6
Loading
Loading
Loading
Loading
+19 −2
Original line number Original line Diff line number Diff line
@@ -18,7 +18,24 @@
 * This command is required when Playback/Capture
 * This command is required when Playback/Capture
 *
 *
 *	amixer set "LINEOUT Mixer DACL" on
 *	amixer set "LINEOUT Mixer DACL" on
 *	amixer set "DVC Out" 100%
 *	amixer set "DVC In" 100%
 *
 * You can use Mute
 *
 *	amixer set "DVC Out Mute" on
 *	amixer set "DVC In Mute" on
 *
 * You can use Volume Ramp
 *
 *	amixer set "DVC Out Ramp Up Rate"   "0.125 dB/64 steps"
 *	amixer set "DVC Out Ramp Down Rate" "0.125 dB/512 steps"
 *	amixer set "DVC Out Ramp" on
 *	aplay xxx.wav &
 *	amixer set "DVC Out"  80%  // Volume Down
 *	amixer set "DVC Out" 100%  // Volume Up
 */
 */

/dts-v1/;
/dts-v1/;
#include "r8a7793.dtsi"
#include "r8a7793.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/gpio/gpio.h>
@@ -401,8 +418,8 @@


	rcar_sound,dai {
	rcar_sound,dai {
		dai0 {
		dai0 {
			playback = <&ssi0 &src2>;
			playback = <&ssi0 &src2 &dvc0>;
			capture  = <&ssi1 &src3>;
			capture  = <&ssi1 &src3 &dvc1>;
		};
		};
	};
	};
};
};