audio: bringup project T312 audio [1/1]
authorZhe Wang <Zhe.Wang@amlogic.com>
Wed, 12 Jun 2019 08:35:40 +0000 (16:35 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Thu, 13 Jun 2019 02:31:28 +0000 (19:31 -0700)
PD#SWPL-9342

Problem:
T312 without audio

Solution:
bringup T312 audio

Verify:
T312.

Change-Id: I8be9a9fd6f09eafdb0425a1ac70cf83d17b30d60
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
arch/arm/boot/dts/amlogic/tm2_t962x3_t312.dts
arch/arm64/boot/dts/amlogic/tm2_t962x3_t312.dts

index cfabd6f..75e62fb 100644 (file)
                        tdmacodec: codec {
                                //sound-dai = <&dummy_codec>;
                                prefix-names = "AMP";
-                               sound-dai = <&tas5805 &tl1_codec>;
+                               sound-dai = <&ad82584f &tl1_codec>;
                        };
                };
 
                        "samesource_srcpll", "samesource_clk";
 
                pinctrl-names = "tdm_pins";
-               pinctrl-0 = <&tdma_mclk &tdmout_a>;
+               pinctrl-0 = </*&tdma_mclk*/ &tdmout_a>;
 
                /*
                 * 0: tdmout_a;
        /* audio pin mux */
 
        tdma_mclk: tdma_mclk {
-               mux { /* GPIOZ_0 */
-                       groups = "mclk0_z";
+               mux { /* GPIOH_4 */
+                       groups = "mclk0_h";
                        function = "mclk0";
                };
        };
 
        tdmout_a: tdmout_a {
-               mux { /* GPIOZ_1, GPIOZ_2, GPIOZ_3*/
-                       groups = "tdma_sclk_z",
-                               "tdma_fs_z",
-                               "tdma_dout0_z";
+               mux { /* GPIOH_5, GPIOH_6, GPIOH_7*/
+                       groups = "tdma_sclk_h",
+                               "tdma_fs_h",
+                               "tdma_dout0_h";
                        function = "tdma_out";
                        bias-pull-down;
                };
        status = "okay";
 };
 
-&i2c2 {
-       status = "okay";
-       pinctrl-names="default";
-       pinctrl-0=<&i2c2_z_pins>;
-       clock-frequency = <400000>;
 
-       tas5805: tas5805@5c {
-               compatible = "ti,tas5805";
-               #sound-dai-cells = <0>;
-               codec_name = "tas5805";
-               reg = <0x2e>;
-               reset_pin = <&gpio_ao GPIOAO_6 GPIO_ACTIVE_HIGH>;
-               status = "okay";
-       };
-};
 
-&i2c3 {
-       status = "okay";
-       pinctrl-names="default";
-       pinctrl-0=<&i2c3_h1_pins>;
-       clock-frequency = <400000>;
 
-       ad82584f: ad82584f@62 {
-               compatible = "ESMT, ad82584f";
-               #sound-dai-cells = <0>;
-               reg = <0x31>;
-               status = "disabled";
-               reset_pin = <&gpio GPIOH_13 0>;
-               no_mclk;
-       };
-};
 
 
 &sd_emmc_c {
                reg = <0x74>;
                status = "okay";
        };
+       ad82584f: ad82584f@62 {
+               compatible = "ESMT, ad82584f";
+               #sound-dai-cells = <0>;
+               reg = <0x31>;
+               status = "okay";
+               reset_pin = <&gpio GPIOH_4 0>;
+               no_mclk;
+       };
 };
 
 &pwm_ab {
index 39e949e..47be1e5 100644 (file)
                        tdmacodec: codec {
                                //sound-dai = <&dummy_codec>;
                                prefix-names = "AMP";
-                               sound-dai = <&tas5805 &tl1_codec>;
+                               sound-dai = <&ad82584f &tl1_codec>;
                        };
                };
 
                        "samesource_srcpll", "samesource_clk";
 
                pinctrl-names = "tdm_pins";
-               pinctrl-0 = <&tdma_mclk &tdmout_a>;
+               pinctrl-0 = </*&tdma_mclk*/ &tdmout_a>;
 
                /*
                 * 0: tdmout_a;
        /* audio pin mux */
 
        tdma_mclk: tdma_mclk {
-               mux { /* GPIOZ_0 */
-                       groups = "mclk0_z";
+               mux { /* GPIOH_4 */
+                       groups = "mclk0_h";
                        function = "mclk0";
                };
        };
 
        tdmout_a: tdmout_a {
-               mux { /* GPIOZ_1, GPIOZ_2, GPIOZ_3*/
-                       groups = "tdma_sclk_z",
-                               "tdma_fs_z",
-                               "tdma_dout0_z";
+               mux { /* GPIOH_5, GPIOH_6, GPIOH_7*/
+                       groups = "tdma_sclk_h",
+                               "tdma_fs_h",
+                               "tdma_dout0_h";
                        function = "tdma_out";
                        bias-pull-down;
                };
        status = "okay";
 };
 
-&i2c2 {
-       status = "okay";
-       pinctrl-names="default";
-       pinctrl-0=<&i2c2_z_pins>;
-       clock-frequency = <400000>;
-
-       tas5805: tas5805@5c {
-               compatible = "ti,tas5805";
-               #sound-dai-cells = <0>;
-               codec_name = "tas5805";
-               reg = <0x2e>;
-               reset_pin = <&gpio_ao GPIOAO_6 GPIO_ACTIVE_HIGH>;
-               status = "okay";
-       };
-};
-
-&i2c3 {
-       status = "okay";
-       pinctrl-names="default";
-       pinctrl-0=<&i2c3_h1_pins>;
-       clock-frequency = <400000>;
-
-       ad82584f: ad82584f@62 {
-               compatible = "ESMT, ad82584f";
-               #sound-dai-cells = <0>;
-               reg = <0x31>;
-               status = "disabled";
-               reset_pin = <&gpio GPIOH_13 0>;
-               no_mclk;
-       };
-};
-
-
 &sd_emmc_c {
        status = "okay";
        emmc {
                reg = <0x74>;
                status = "okay";
        };
+
+       ad82584f: ad82584f@62 {
+               compatible = "ESMT, ad82584f";
+               #sound-dai-cells = <0>;
+               reg = <0x31>;
+               status = "okay";
+               reset_pin = <&gpio GPIOH_4 0>;
+               no_mclk;
+       };
 };
 
 &pwm_ab {