Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    T113S3 PF6不做MCLK拿来操作PA的开启和关闭

    T Series
    1
    1
    665
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      tivon LV 6 last edited by

      专业术语DAPM
      动态音频电源管理

      修改设备树,取消在i2s2中的定义
      i2s2_pins_a: i2s2@0 {
      /* I2S_PIN: MCLK, BCLK, LRCK */
      pins = "PF3", "PF5"; //pf6 used as pa pow
      function = "i2s2";
      drive-strength = <20>;
      bias-disable;
      };
      i2s2_pins_d: i2s2_sleep@0 {
      pins = "PF0", "PF1", "PF3", "PF5"; //pf6 used as pa pow
      function = "io_disabled";
      drive-strength = <20>;
      bias-disable;
      };
      不输出MCLK
      soundcard-mach,mclk-fs = <0>;
      增加PF6的设置
      &i2s2_plat {
      tdm-num = <2>;
      tx-pin = <0>;
      rx-pin = <0>;
      pinctrl-used;
      pinctrl-names= "default","sleep";
      pinctrl-0 = <&i2s2_pins_a &i2s2_pins_b &i2s2_pins_c>;
      pinctrl-1 = <&i2s2_pins_d>;
      pa-pin-max = <1>;
      // 0: level contrl; 1: pulse contrl; 0xFF: user contrl.
      pa-cfg-mode-0 = <0>;
      pa-pin-0 = <&pio PF 6 GPIO_ACTIVE_HIGH>;
      pa-pin-level-0 = <1>;
      pa-pin-msleep-0 = <100>; //
      pa-pin-msleep1-0 = <100>;
      tx-hub-en;
      rx-sync-en;
      //status = "disabled";
      status = "okay";
      };

      出错了,没有随着声音的播放拉高
      pin 166 (PF6): UNCLAIMED
      PF6状态不对

      但是增加部分放在&codec下面状态(GPIO)是对的,说明i2s下面驱动代码没有实现
      但是依然播放时不会拉高引脚,
      把下面这句写入设备树(&i2s2_mach下),直接不能开机
      //soundcard-mach,pin-switches = "SPK";

      但是放在(&codec)下,可以开机,但是播放依然不会拉高
      求助论坛,谢谢大家

      1 Reply Last reply Reply Quote Share 0
      • 1 / 1
      • First post
        Last post

      Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

      行为准则 | 用户协议 | 隐私权政策