【发布时间】:2016-10-08 13:42:48
【问题描述】:
我从使用 yocto 创建的内核中得到以下 dmesg 输出。
bus: 'i2c': add driver edt_ft5x06
bus: 'i2c': driver_probe_device: matched device 1-0038 with driver edt_ft5x06
bus: 'i2c': really_probe: probing driver edt_ft5x06 with device 1-0038
edt_ft5x06 1-0038: no default pinctrl state
edt_ft5x06 1-0038: probe
edt_ft5x06 1-0038: no platform data?
edt_ft5x06: probe of 1-0038 failed with error -22
i2c-core: driver [edt_ft5x06] registered
我的设备树包含:
smarc_i2c_cam: i2c-gpio-1 {
compatible = "i2c-gpio";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_smx6_i2c_gpio_1>;
gpios =
<&gpio4 10 0>, /* sda */
<&gpio1 6 0>; /* scl */
#address-cells = <1>;
#size-cells = <0>;
i2c-gpio,delay-us = <2>;
};
polytouch: edt-ft5x06@38 {
compatible = "edt,edt-ft5x06";
reg = <0x38>;
pinctrl-names = "default";
//pinctrl-1 = <&edt_ft5x06_pins>;
interrupt-parent = <&gpio3>;
interrupts = <1 8>;
};
我的主板是 smarc-samx6i(imx6q“飞思卡尔”处理器)。
Linux 内核是 3.10.17。
但是触摸没有响应;甚至 i2c 也没有响应。还有什么需要我照顾的吗?
【问题讨论】:
-
您的设备树中有错误。但我认为你只是把它们弄错了,否则你的整个形象就无法创建。
-
内核编译成功,我可以理解我的设备树在中断引脚配置中有一些配置。你能有任何文件显示这两种语法如何定义“interrupt-parent = ; interrupts = ;”
标签: embedded interrupt yocto device-tree imx6