audio: S905X2 add clk tuning_enable control in dts [1/1]
authorCheng Tong <cheng.tong@amlogic.com>
Mon, 20 May 2019 05:46:33 +0000 (13:46 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Mon, 1 Jul 2019 07:21:48 +0000 (00:21 -0700)
PD#SWPL-10180

Problem:
can't enable clk tuning

Solution:
add control interface in dts to enable clk tuning
and start clk before codec init for s905x2

Verify:
verify on franklin

Change-Id: Icc97b04923bcc317b8259449ba068d1eddef0854
Signed-off-by: Cheng Tong <cheng.tong@amlogic.com>
arch/arm/boot/dts/amlogic/g12a_s905x2_u212.dts
arch/arm/boot/dts/amlogic/g12a_s905x2_u212_1g.dts
arch/arm64/boot/dts/amlogic/g12a_s905x2_u212.dts
arch/arm64/boot/dts/amlogic/g12a_s905x2_u212_1g.dts

index 439cc94..3acaaf7 100644 (file)
                 * 4: spdifout_b;
                 */
                samesource_sel = <3>;
+               /*enable default mclk(12.288M), before extern codec start*/
+               start_clk_enable = <1>;
+
+               /*tdm clk tuning enable*/
+               clk_tuning_enable = <1>;
        };
 
        aml_tdmc: tdmc {
                pinctrl-0 = <&spdifout>;
                pinctrl-1 = <&spdifout_a_mute>;
                status = "okay";
+               /*spdif clk tuning enable*/
+               clk_tuning_enable = <1>;
        };
        aml_spdif_b: spdif_b {
                compatible = "amlogic, g12a-snd-spdif-b";
index 57a3e29..ad3d5cc 100644 (file)
                 * 4: spdifout_b;
                 */
                samesource_sel = <3>;
+               /*enable default mclk(12.288M), before extern codec start*/
+               start_clk_enable = <1>;
+
+               /*tdm clk tuning enable*/
+               clk_tuning_enable = <1>;
        };
 
        aml_tdmc: tdmc {
                pinctrl-0 = <&spdifout>;
                pinctrl-1 = <&spdifout_a_mute>;
                status = "okay";
+               /*spdif clk tuning enable*/
+               clk_tuning_enable = <1>;
        };
        aml_spdif_b: spdif_b {
                compatible = "amlogic, g12a-snd-spdif-b";
index 58a59a4..44c6714 100644 (file)
                 * 4: spdifout_b;
                 */
                samesource_sel = <3>;
+               /*enable default mclk(12.288M), before extern codec start*/
+               start_clk_enable = <1>;
+
+               /*tdm clk tuning enable*/
+               clk_tuning_enable = <1>;
        };
 
        aml_tdmc: tdmc {
                pinctrl-0 = <&spdifout>;
                pinctrl-1 = <&spdifout_a_mute>;
                status = "okay";
+               /*spdif clk tuning enable*/
+               clk_tuning_enable = <1>;
        };
        aml_spdif_b: spdif_b {
                compatible = "amlogic, g12a-snd-spdif-b";
index d73a3e6..f607a00 100644 (file)
                 * 4: spdifout_b;
                 */
                samesource_sel = <3>;
+               /*enable default mclk(12.288M), before extern codec start*/
+               start_clk_enable = <1>;
+
+               /*tdm clk tuning enable*/
+               clk_tuning_enable = <1>;
        };
 
        aml_tdmc: tdmc {
                pinctrl-0 = <&spdifout>;
                pinctrl-1 = <&spdifout_a_mute>;
                status = "okay";
+               /*spdif clk tuning enable*/
+               clk_tuning_enable = <1>;
        };
        aml_spdif_b: spdif_b {
                compatible = "amlogic, g12a-snd-spdif-b";