mxs: add 3.18 support
[openwrt/svn-archive/archive.git] / target / linux / mxs / patches-3.18 / 101-soc-audio-dts.patch
1 --- a/arch/arm/boot/dts/imx23-olinuxino.dts
2 +++ b/arch/arm/boot/dts/imx23-olinuxino.dts
3 @@ -88,6 +88,25 @@
4 usbphy0: usbphy@8007c000 {
5 status = "okay";
6 };
7 +
8 + codec: mxs-builtin-codec {
9 + compatible = "fsl,mxs-builtin-codec";
10 + reg = <0x80048000 0x2000>, <0x8004c000 0x2000>,
11 + <0x8005c000 0x2000>;
12 + reg-names = "audioout", "audioin", "rtc";
13 + clocks = <&clks 31>;
14 + clock-names = "filt";
15 + };
16 +
17 + platform_dai: mxs-builtin-cpu-dai {
18 + compatible = "fsl,mxs-builtin-cpu-dai";
19 + reg = <0x80048000 0x2000>, <0x8004c000 0x2000>,
20 + <0x8005c000 0x2000>;
21 + reg-names = "audioout", "audioin", "rtc";
22 + interrupts = <8 6 4>;
23 + dmas = <&dma_apbx 0>, <&dma_apbx 1>;
24 + dma-names = "rx", "tx";
25 + };
26 };
27 };
28
29 @@ -122,4 +141,10 @@
30 gpios = <&gpio2 1 1>;
31 };
32 };
33 +
34 + mxs-builtin-audio {
35 + compatible = "fsl,mxs-builtin-audio";
36 + audio-codec = <&codec>;
37 + cpu-dai = <&platform_dai>;
38 + };
39 };