OSDN Git Service

ARM: dts: Add sound nodes for Odroid-X2/U3 boards
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Tue, 15 Jul 2014 18:16:44 +0000 (03:16 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Tue, 15 Jul 2014 18:16:44 +0000 (03:16 +0900)
Add MAX98090 audio codec, I2S interface and the sound complex
nodes to enable audio on Odroid-X2/U3 boards.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
arch/arm/boot/dts/exynos4412-odroid-common.dtsi
arch/arm/boot/dts/exynos4412-odroidu3.dts
arch/arm/boot/dts/exynos4412-odroidx2.dts

index 0bc1a9b..6d6d23c 100644 (file)
                };
        };
 
+       i2s0: i2s@03830000 {
+               pinctrl-0 = <&i2s0_bus>;
+               pinctrl-names = "default";
+               status = "okay";
+               clocks = <&clock_audss EXYNOS_I2S_BUS>,
+                        <&clock_audss EXYNOS_DOUT_AUD_BUS>;
+               clock-names = "iis", "i2s_opclk0";
+       };
+
+       sound: sound {
+               compatible = "samsung,odroidx2-audio";
+               samsung,i2s-controller = <&i2s0>;
+               samsung,audio-codec = <&max98090>;
+       };
+
        mmc@12550000 {
                pinctrl-0 = <&sd4_clk &sd4_cmd &sd4_bus4 &sd4_bus8>;
                pinctrl-names = "default";
                };
        };
 
+       i2c@13870000 {
+               pinctrl-names = "default";
+               pinctrl-0 = <&i2c1_bus>;
+               status = "okay";
+               max98090: max98090@10 {
+                       compatible = "maxim,max98090";
+                       reg = <0x10>;
+                       interrupt-parent = <&gpx0>;
+                       interrupts = <0 0>;
+               };
+       };
+
        exynos-usbphy@125B0000 {
                status = "okay";
        };
index 287aa0d..c8a64be 100644 (file)
                status = "okay";
        };
 };
+
+&sound {
+       compatible = "samsung,odroidu3-audio";
+       samsung,model = "Odroid-U3";
+       samsung,audio-routing =
+               "Headphone Jack", "HPL",
+               "Headphone Jack", "HPR",
+               "Headphone Jack", "MICBIAS",
+               "IN1", "Headphone Jack",
+               "Speakers", "SPKL",
+               "Speakers", "SPKR";
+};
index e9ae161..96b43f4 100644 (file)
                reg = <0x40000000 0x7FF00000>;
        };
 };
+
+&sound {
+       samsung,model = "Odroid-X2";
+       samsung,audio-routing =
+               "Headphone Jack", "HPL",
+               "Headphone Jack", "HPR",
+               "IN1", "Mic Jack",
+               "Mic Jack", "MICBIAS";
+};