ARM: dts: Switch Odroid X2/U2 to simple-audio-card
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Tue, 3 Feb 2015 14:06:21 +0000 (15:06 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 9 Feb 2015 06:18:20 +0000 (14:18 +0800)
Now when the CDCLK I2S output clock can be handled through the clock
API the Odroid X2/U3 can be switched to the simple-audio-card DT binding.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
arch/arm/boot/dts/exynos4.dtsi
arch/arm/boot/dts/exynos4412-odroid-common.dtsi
arch/arm/boot/dts/exynos4412-odroidu3.dts
arch/arm/boot/dts/exynos4412-odroidx2.dts

index 38d8f689f7ae7baac408ec08a408450baaf80db1..0cffe397e9474ee57f679b593565ee899ac2eaf3 100644 (file)
@@ -66,6 +66,7 @@
                dmas = <&pdma0 12>, <&pdma0 11>, <&pdma0 10>;
                dma-names = "tx", "rx", "tx-sec";
                samsung,idma-addr = <0x03000000>;
+               #sound-dai-cells = <1>;
                status = "disabled";
        };
 
                clock-output-names = "i2s_cdclk1";
                dmas = <&pdma1 12>, <&pdma1 11>;
                dma-names = "tx", "rx";
+               #sound-dai-cells = <1>;
                status = "disabled";
        };
 
                clock-output-names = "i2s_cdclk2";
                dmas = <&pdma0 14>, <&pdma0 13>;
                dma-names = "tx", "rx";
+               #sound-dai-cells = <1>;
                status = "disabled";
        };
 
index c26b9fbf12c915e358d442de1eccdedaa6b44377..abd63366298a812c2df659006c726b6345bfb444 100644 (file)
@@ -44,9 +44,7 @@
        };
 
        sound: sound {
-               compatible = "samsung,odroidx2-audio";
-               samsung,i2s-controller = <&i2s0>;
-               samsung,audio-codec = <&max98090>;
+               compatible = "simple-audio-card";
                assigned-clocks = <&clock_audss EXYNOS_MOUT_AUDSS>,
                                <&clock_audss EXYNOS_MOUT_I2S>,
                                <&clock_audss EXYNOS_DOUT_SRP>,
                                <0>,
                                <192000000>,
                                <19200000>;
+
+               simple-audio-card,format = "i2s";
+               simple-audio-card,bitclock-master = <&link0_codec>;
+               simple-audio-card,frame-master = <&link0_codec>;
+
+               simple-audio-card,cpu {
+                       sound-dai = <&i2s0 0>;
+                       system-clock-frequency = <19200000>;
+               };
+
+               link0_codec: simple-audio-card,codec {
+                       sound-dai = <&max98090>;
+                       clocks = <&i2s0 CLK_I2S_CDCLK>;
+               };
        };
 
        mmc@12550000 {
                        interrupts = <0 0>;
                        clocks = <&i2s0 CLK_I2S_CDCLK>;
                        clock-names = "mclk";
+                       #sound-dai-cells = <0>;
                };
        };
 
index c8a64be55d071ce863085e838477e983f20ed2a7..44684e57ead1e6a60e86731e67f7f5bc0141adfc 100644 (file)
 };
 
 &sound {
-       compatible = "samsung,odroidu3-audio";
-       samsung,model = "Odroid-U3";
-       samsung,audio-routing =
+       simple-audio-card,name = "Odroid-U3";
+       simple-audio-card,widgets =
+               "Headphone", "Headphone Jack",
+               "Speakers", "Speakers";
+       simple-audio-card,routing =
                "Headphone Jack", "HPL",
                "Headphone Jack", "HPR",
                "Headphone Jack", "MICBIAS",
index 96b43f4497cc0eefb931456bc34be4365a66dcb6..6e33678562aebf5be0cc055831489073ca16270f 100644 (file)
 };
 
 &sound {
-       samsung,model = "Odroid-X2";
-       samsung,audio-routing =
+       simple-audio-card,name = "Odroid-X2";
+       simple-audio-card,widgets =
+               "Headphone", "Headphone Jack",
+               "Microphone", "Mic Jack",
+               "Microphone", "DMIC";
+       simple-audio-card,routing =
                "Headphone Jack", "HPL",
                "Headphone Jack", "HPR",
                "IN1", "Mic Jack",