]> Pileus Git - ~andy/linux/commitdiff
ARM: dts: enable audio support for imx28-evk
authorShawn Guo <shawn.guo@linaro.org>
Thu, 10 May 2012 07:03:16 +0000 (15:03 +0800)
committerShawn Guo <shawn.guo@linaro.org>
Sun, 13 May 2012 00:27:47 +0000 (08:27 +0800)
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm/boot/dts/imx28-evk.dts
arch/arm/boot/dts/imx28.dtsi

index 0b8eeb559906e0f408303c898727cc4866aa8552..ee520a529cb4a6406385b72a3717d00c8c791fbf 100644 (file)
                };
 
                apbx@80040000 {
+                       saif0: saif@80042000 {
+                               pinctrl-names = "default";
+                               pinctrl-0 = <&saif0_pins_a>;
+                               status = "okay";
+                       };
+
+                       saif1: saif@80046000 {
+                               pinctrl-names = "default";
+                               pinctrl-0 = <&saif1_pins_a>;
+                               fsl,saif-master = <&saif0>;
+                               status = "okay";
+                       };
+
                        i2c0: i2c@80058000 {
                                pinctrl-names = "default";
                                pinctrl-0 = <&i2c0_pins_a>;
                                status = "okay";
+
+                               sgtl5000: codec@0a {
+                                       compatible = "fsl,sgtl5000";
+                                       reg = <0x0a>;
+                                       VDDA-supply = <&reg_3p3v>;
+                                       VDDIO-supply = <&reg_3p3v>;
+
+                               };
                        };
 
                        duart: serial@80074000 {
                        status = "okay";
                };
        };
+
+       regulators {
+               compatible = "simple-bus";
+
+               reg_3p3v: 3p3v {
+                       compatible = "regulator-fixed";
+                       regulator-name = "3P3V";
+                       regulator-min-microvolt = <3300000>;
+                       regulator-max-microvolt = <3300000>;
+                       regulator-always-on;
+               };
+       };
+
+       sound {
+               compatible = "fsl,imx28-evk-sgtl5000",
+                            "fsl,mxs-audio-sgtl5000";
+               model = "imx28-evk-sgtl5000";
+               saif-controllers = <&saif0 &saif1>;
+               audio-codec = <&sgtl5000>;
+       };
 };
index fd73fc24e26ebe6f35d6c050b1e9152937bd8647..4634cb861a597d115b5f6dab784da3a616c81b01 100644 (file)
@@ -20,6 +20,8 @@
                gpio2 = &gpio2;
                gpio3 = &gpio3;
                gpio4 = &gpio4;
+               saif0 = &saif0;
+               saif1 = &saif1;
        };
 
        cpus {
                                        fsl,voltage = <1>;
                                        fsl,pull-up = <1>;
                                };
+
+                               saif0_pins_a: saif0@0 {
+                                       reg = <0>;
+                                       fsl,pinmux-ids =
+                                               <0x3140 0x3150 0x3160 0x3170>;
+                                       fsl,drive-strength = <2>;
+                                       fsl,voltage = <1>;
+                                       fsl,pull-up = <1>;
+                               };
+
+                               saif1_pins_a: saif1@0 {
+                                       reg = <0>;
+                                       fsl,pinmux-ids = <0x31a0>;
+                                       fsl,drive-strength = <2>;
+                                       fsl,voltage = <1>;
+                                       fsl,pull-up = <1>;
+                               };
                        };
 
                        digctl@8001c000 {
                        };
 
                        saif0: saif@80042000 {
+                               compatible = "fsl,imx28-saif";
                                reg = <0x80042000 2000>;
                                interrupts = <59 80>;
+                               fsl,saif-dma-channel = <4>;
                                status = "disabled";
                        };
 
                        };
 
                        saif1: saif@80046000 {
+                               compatible = "fsl,imx28-saif";
                                reg = <0x80046000 2000>;
                                interrupts = <58 81>;
+                               fsl,saif-dma-channel = <5>;
                                status = "disabled";
                        };