Machine cleanup for Nifty Needlefish
[AGL/meta-agl.git] / meta-agl-bsp / meta-rcar-gen3-adas / recipes-kernel / linux / linux-renesas / 0004-ADSP-enable-and-add-sound-hardware-abstraction_kf.patch
1 The ADSP on Renesas SoCs required a reserved memory area to become
2 enabled, and this needs to be done manually.
3
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. 
8
9 Future work will incorporate the h3ulcb and Salvator boards into the
10 abstraction.
11
12 Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
13 Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
14 ---
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
19 @@ -15,6 +15,39 @@
20                      "renesas,r8a7796";
21  };
22  
23 +
24 +&adsp {
25 +
26 +       /* ADSP playback setting for pcm3168 */
27 +       adsp_playback0: adsp,playback {
28 +               mode  = "tdm";
29 +               clock-mode = "master";
30 +               bus-width = <24>;
31 +               ssi = <3>;
32 +               bus-if = <0>;
33 +               channels = <8>;
34 +               pin-share-ssi = <4>;
35 +       };
36 +
37 +       /* ADSP capture setting for pcm3168 */
38 +       adsp_capture0: adsp,capture {
39 +               mode  = "tdm";
40 +               clock-mode = "slave";
41 +               bus-width = <24>;
42 +               ssi = <4>;
43 +               bus-if = <0>;
44 +               channels = <8>;
45 +               pin-share-ssi = <3>;
46 +       };
47 +
48 +       adsp,ports {
49 +               port@0 {
50 +                       playback = <&adsp_playback0>;
51 +                       capture  = <&adsp_capture0>;
52 +               };
53 +       };
54 +};
55 +
56  &du {
57         ports {
58                 port@0 {