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/目录以及子目录下面也没有对应的驱动信息,请问是哪里配置有问题?
非常感谢!