1 The ADSP on Renesas SoCs required a reserved memory area to become
2 enabled, and this needs to be done manually.
4 This patch adds sound hardware abstraction information for the m3ulcb
5 and m3ulcb-kf (kingfisher) device trees. This is helpful on-board the
6 ADSP for dynamically determining sound hardware at runtime, allowing
7 single binaries to be used between the two boards.
9 Future work will incorporate the h3ulcb and Salvator boards into the
12 Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
13 Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
15 diff --git a/arch/arm64/boot/dts/renesas/r8a7796-m3ulcb-kf.dts b/arch/arm64/boot/dts/renesas/r8a7796-m3ulcb-kf.dts
16 index de2390f009e7..4ccfa8315d17 100644
17 --- a/arch/arm64/boot/dts/renesas/r8a7796-m3ulcb-kf.dts
18 +++ b/arch/arm64/boot/dts/renesas/r8a7796-m3ulcb-kf.dts
26 + /* ADSP playback setting for pcm3168 */
27 + adsp_playback0: adsp,playback {
29 + clock-mode = "master";
34 + pin-share-ssi = <4>;
37 + /* ADSP capture setting for pcm3168 */
38 + adsp_capture0: adsp,capture {
40 + clock-mode = "slave";
45 + pin-share-ssi = <3>;
50 + playback = <&adsp_playback0>;
51 + capture = <&adsp_capture0>;
59 diff --git a/arch/arm64/boot/dts/renesas/r8a7796-m3ulcb.dts b/arch/arm64/boot/dts/renesas/r8a7796-m3ulcb.dts
60 index 1cd64c1b3b31..71e59da3528d 100644
61 --- a/arch/arm64/boot/dts/renesas/r8a7796-m3ulcb.dts
62 +++ b/arch/arm64/boot/dts/renesas/r8a7796-m3ulcb.dts
64 reg = <0x00000000 0x54000000 0x0 0x03000000>;
68 + adsp_reserved: linux,adsp {
69 + compatible = "shared-dma-pool";
71 + reg = <0x00000000 0x57000000 0x0 0x01000000>;
74 /* global autoconfigured region for contiguous allocations */
76 compatible = "shared-dma-pool";
78 - reg = <0x00000000 0x57000000 0x0 0x19000000>;
79 + reg = <0x00000000 0x58000000 0x0 0x18000000>;
84 "dclkin.0", "dclkin.1", "dclkin.2";
89 + clock-frequency = <12288000 11289600>;
90 + audio-clocks = <22579200 24576000>;
91 + memory-region = <&adsp_reserved>;
93 + /* ADSP playback setting for ak4613 */
94 + adsp_playback0: adsp,playback {
96 + clock-mode = "master";
101 + pin-share-ssi = <1>;
104 + /* ADSP capture setting for ak4613 */
105 + adsp_capture0: adsp,capture {
107 + clock-mode = "slave";
112 + pin-share-ssi = <0>;
117 + playback = <&adsp_playback0>;
118 + capture = <&adsp_capture0>;