This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] TLV320AIC3109-Q1:请提供一些与 DTS 相关的配置信息。

Guru**** 2931100 points

Other Parts Discussed in Thread: TLV320ADC3101

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/audio-group/audio/f/audio-forum/1648795/tlv320aic3109-q1-please-provide-some-dts-related-configuration-information

器件型号: TLV320AIC3109-Q1
Thread 中讨论的其他器件: TLV320ADC3101

使用的驱动程序源代码是 tlv320aic310x 驱动程序源代码。 请根据此驱动程序源代码提供相关的设备树信息、因为我在官方文档中找不到任何相关信息。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好:

    今天是美国假期、因此回复会延迟。

    此致、

    Garret

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、

    我在以下文档中将此文件作为 tlv320aic31xx.txt:

    Texas Instruments - tlv320aic31xx Codec module
    
    The tlv320aic31xx serial control bus communicates through I2C protocols
    
    Required properties:
    
    - compatible - "string" - One of:
        "ti,tlv320aic310x" - Generic TLV320AIC31xx with mono speaker amp
        "ti,tlv320aic311x" - Generic TLV320AIC31xx with stereo speaker amp
        "ti,tlv320aic3100" - TLV320AIC3100 (mono speaker amp, no MiniDSP)
        "ti,tlv320aic3110" - TLV320AIC3110 (stereo speaker amp, no MiniDSP)
        "ti,tlv320aic3120" - TLV320AIC3120 (mono speaker amp, MiniDSP)
        "ti,tlv320aic3111" - TLV320AIC3111 (stereo speaker amp, MiniDSP)
        "ti,tlv320dac3100" - TLV320DAC3100 (no ADC, mono speaker amp, no MiniDSP)
        "ti,tlv320dac3101" - TLV320DAC3101 (no ADC, stereo speaker amp, no MiniDSP)
    
    - reg - <int> -  I2C slave address
    - HPVDD-supply, SPRVDD-supply, SPLVDD-supply, AVDD-supply, IOVDD-supply,
      DVDD-supply : power supplies for the device as covered in
      Documentation/devicetree/bindings/regulator/regulator.txt
    
    
    Optional properties:
    
    - reset-gpios - GPIO specification for the active low RESET input.
    - ai31xx-micbias-vg - MicBias Voltage setting
            1 or MICBIAS_2_0V - MICBIAS output is powered to 2.0V
            2 or MICBIAS_2_5V - MICBIAS output is powered to 2.5V
            3 or MICBIAS_AVDD - MICBIAS output is connected to AVDD
    	If this node is not mentioned or if the value is unknown, then
    	micbias	is set to 2.0V.
    
    Deprecated properties:
    
    - gpio-reset - gpio pin number used for codec reset
    
    CODEC output pins:
      * HPL
      * HPR
      * SPL, devices with stereo speaker amp
      * SPR, devices with stereo speaker amp
      * SPK, devices with mono speaker amp
      * MICBIAS
    
    CODEC input pins:
      * MIC1LP, devices with ADC
      * MIC1RP, devices with ADC
      * MIC1LM, devices with ADC
      * AIN1, devices without ADC
      * AIN2, devices without ADC
    
    The pins can be used in referring sound node's audio-routing property.
    
    Example:
    #include <dt-bindings/gpio/gpio.h>
    #include <dt-bindings/sound/tlv320aic31xx-micbias.h>
    
    tlv320aic31xx: tlv320aic31xx@18 {
    	compatible = "ti,tlv320aic311x";
    	reg = <0x18>;
    
    	ai31xx-micbias-vg = <MICBIAS_OFF>;
    
    	reset-gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
    
    	HPVDD-supply = <&regulator>;
    	SPRVDD-supply = <&regulator>;
    	SPLVDD-supply = <&regulator>;
    	AVDD-supply = <&regulator>;
    	IOVDD-supply = <&regulator>;
    	DVDD-supply = <&regulator>;
    };
    

    如果您需要更具体的帮助、请告诉我。

    此致、
    Mir

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    tlv320aic3109_sound:tlv320aic3109-sound{
    状态=“正常“;
    compatible =“Rockchip, multicodecs-card“;

    Rockchip, card-name =“rk-tlv320aic3109“;

    Rockchip、CPU =<&sai1>;
    Rockchip、codec =<&tlv320aic3109>;

    Rockchip、格式=“I2S_“;
    Rockchip、MCLK-FS =<256>;

    Rockchip、音频路由=
    “耳机“、“HPL“、
    “耳机“、“HPR“、
    “扬声器“、“SPK“、
    “MIC1LP“、“Main Mic“、
    “MIC1RP“、“Main Mic“;

    HP-DET_GPIO =<&GPIO0 RK_PD3 GPIO_ACTIVE_LOW>;

    IO 通道=<&saradc 3>;
    IO 通道名称=“ADC-DETECT“;

    Keyup-threshold-microvolt =<1800000>;
    轮询间隔=<100>;

    SPK-CON-GPIO =<&GPIO2 RK_PB1 GPIO_ACTIVE_HIGH>;
    HP-CON-GPIO =<&GPIO3 RK_PD6 GPIO_ACTIVE_HIGH>;

    Rockchip、预上电延迟 ms =<30>;
    Rockchip、断电后延迟 ms =<40>;

    pinctrl-names =“default“;
    pinctrl-0 =<&hp_det>;

    Play-pause-key{
    label =“playpause“;
    linux,代码= ;
    压阈值微伏=<2000>;
    };
    };

    &i2c3{
    状态=“正常“;

    tlv320aic3109:tlv320aic3109@18{
    状态=“正常“;

    兼容=“ti、tlv320aic310x“;
    reg =<0x18>;

    #sound-dai-cells =<0>;

    时钟=<&mclkout_sai1>;
    时钟名称=“MCLK“;

    RESET-GPIO =<&GPIO1 RK_PB2 GPIO_ACTIVE_LOW>;

    AVDD-SUPPLY =<&VCC_3V3>;
    IOVDD-SUPPLY =<&VCC_3V3>;
    DVDD-SUPPLY =<&VCC_1v8>;

    pinctrl-names =“default“;
    pinctrl-0 =<&sai1m0_MCLK>;
    };
    };

    (&S) sai1{
    状态=“正常“;

    pinctrl-names =“default“;

    pinctrl-0 =<
    &sai1m0_lrck
    &sai1m0_sclk
    &sai1m0_sdi0
    &sai1m0_sdo0
    >;

    分配的时钟=<&cru CLK_SAI1_MCLKOUT>;
    分配的时钟速率=<12288000>;
    };请问我这样书写设备树会有问题吗

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    此外、我们还计划使用 tlv320adc3101 ADC 芯片。 请问以这种方式编写设备树是否有问题? 如果可能、您是否还能提供 adc3101 的设备树?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、

    您可以在以下位置找到文档 YAML 文件: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/Documentation/devicetree/bindings/sound/ti,tlv320adc3xxx.yaml

    我不知道设备树是否可以通过读取它来为您工作,不幸的是,在您尝试之前,我无法提供更具体的帮助。 如果您在系统上运行后看到问题、我可以提供更多帮助。

    此致、
    Mir

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    好的、非常感谢 μ s