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.

codec驱动以及device-tree问题

Part Number: TLV320AIC31

device-tree配置如下(LINUX\android\kernel\msm-4.14\arch\arm64\boot\dts\qcom\sm6150-pinctrl.dtsi):

codec:

qupv3_cci1_gpio_pins: qupv3_cci1_gpio_pins {
qupv3_cci1_gpio_default: qupv3_cci1_gpio_default {
mux {
pins = "gpio39", "gpio40";
function = "gpio";
};

config {
pins = "gpio39", "gpio40";
drive-strength = <4>;
bias-disable;
};
};
};

I2C(这里采用的普通引脚来模拟I2C)

qupv3_cci_i2c1_gpio: i2c-gpio-1 {
compatible = "i2c-gpio";
pinctrl-names = "codeci2c_default";
pinctrl-0 = <&qupv3_cci1_gpio_default>;
gpios = <&tlmm 39 0>, /* I2C_SDA */
<&tlmm 40 0>; /* I2C_SCL */
i2c-gpio,delay-us = <5>;
i2c-gpio,timeout-ms = <500>;
#address-cells = <1>;
#size-cells = <0>;
status = "ok";
};

系统启动之后发现在驱动加载失败,/proc/device-tree/目录以及子目录下面也没有对应的驱动信息,请问是哪里配置有问题?

非常感谢!

  • 您好,您是从哪里下载的Linux driver,建议参考下面关于codec的linux driver的FAQ:

    https://e2e.ti.com/support/audio-group/audio/f/audio-forum/773056/faq-linux-drivers-device-drivers-for-aic31xx-dac31xx-aic325x-aic320x-aic326x-aic321x