audio: AB311 bringup, init 2 AMPs AD82584f [1/1]
authorZhe Wang <Zhe.Wang@amlogic.com>
Mon, 15 Apr 2019 08:32:43 +0000 (16:32 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Tue, 16 Apr 2019 01:20:43 +0000 (18:20 -0700)
PD#SWPL-7174

Problem:
spk is out of work on AB311

Solution:
bringup AMP ad82584f

Verify:
AB311

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

index 8cafa90..c2eb5ba 100644 (file)
                        };
                        tdmacodec: codec {
                                //sound-dai = <&dummy_codec>;
-                               sound-dai = </*&ad82584f*/ &tl1_codec>;
+                               prefix-names = "AMP", "AMP1";
+                               sound-dai = <&ad82584f &ad82584f1 &tl1_codec>;
                        };
                };
 
                aml-audio-card,dai-link@1 {
-                       status = "disabled";
 
                        format = "i2s";
                        mclk-fs = <256>;
 
                pinctrl-names = "spdif_pins",
                                "spdif_pins_mute";
-               pinctrl-0 = <&spdifout_a>;
-               pinctrl-1 = <&spdifout_a_mute>;
+               pinctrl-0 = <&spdifin_a>;
+               //pinctrl-1 = <&spdifout_a_mute>;
 
                /*
                 * whether do asrc for pcm and resample a or b
        pinctrl-0=<&i2c3_h1_pins>;
        clock-frequency = <400000>;
 
-       ad82584f: ad82584f@62 {
+       ad82584f: ad82584f@60 {
                compatible = "ESMT, ad82584f";
                #sound-dai-cells = <0>;
-               reg = <0x31>;
-               status = "disabled";
+               reg = <0x30>;
+               status = "okay";
                reset_pin = <&gpio GPIOH_13 0>;
                no_mclk;
        };
+       ad82584f1: ad82584f@62 {
+               compatible = "ESMT, ad82584f";
+               #sound-dai-cells = <0>;
+               reg = <0x31>;
+               status = "okay";
+               no_mclk;
+       };
 };
 
 &sd_emmc_c {
 
 &ethmac {
        status = "okay";
-       pinctrl-names = "internal_eth_pins";
-       pinctrl-0 = <&internal_eth_pins>;
+       //pinctrl-names = "internal_eth_pins";
+       //pinctrl-0 = <&internal_eth_pins>;
        mc_val = <0x4be04>;
 
        internal_phy=<1>;
index c29d582..a779ab6 100644 (file)
                        };
                        tdmacodec: codec {
                                //sound-dai = <&dummy_codec>;
-                               sound-dai = </*&ad82584f*/ &tl1_codec>;
+                               prefix-names = "AMP", "AMP1";
+                               sound-dai = <&ad82584f &ad82584f1 &tl1_codec>;
                        };
                };
 
 
                pinctrl-names = "spdif_pins",
                                "spdif_pins_mute";
-               pinctrl-0 = <&spdifout_a>;
-               pinctrl-1 = <&spdifout_a_mute>;
+               pinctrl-0 = <&spdifin_a>;
+               //pinctrl-1 = <&spdifout_a_mute>;
 
                /*
                 * whether do asrc for pcm and resample a or b
        pinctrl-0=<&i2c3_h1_pins>;
        clock-frequency = <400000>;
 
-       ad82584f: ad82584f@62 {
+       ad82584f: ad82584f@60 {
                compatible = "ESMT, ad82584f";
                #sound-dai-cells = <0>;
-               reg = <0x31>;
-               status = "disabled";
+               reg = <0x30>;
+               status = "okay";
                reset_pin = <&gpio GPIOH_13 0>;
                no_mclk;
        };
+
+       ad82584f1: ad82584f@62 {
+               compatible = "ESMT, ad82584f";
+               #sound-dai-cells = <0>;
+               reg = <0x31>;
+               status = "okay";
+               no_mclk;
+       };
 };
 
 
 
 &ethmac {
        status = "okay";
-       pinctrl-names = "internal_eth_pins";
-       pinctrl-0 = <&internal_eth_pins>;
+       //pinctrl-names = "internal_eth_pins";
+       //pinctrl-0 = <&internal_eth_pins>;
        mc_val = <0x4be04>;
 
        internal_phy=<1>;