荔枝nano 的dtsi和dts的配置如下:
twi0: twi@0x01c27000{
#address-cells = <1>;
#size-cells = <0>;
compatible = "allwinner,suniv-twix";
device_type = "twi0";
reg = <0x0 0x01c27000 0x0 0x400>;
interrupts = <7>;
clocks = <&clk_twi0>;
clock-frequency = <400000>;
pinctrl-names = "default", "sleep";
pinctrl-0 = <&twi0_pins_a>;
pinctrl-1 = <&twi0_pins_b>;
status = "okay";
};
twi0: twi@0x01c27000{
clock-frequency = <100000>;
status = "okay";
rtc@0x51 {
compatible = "nxp,pcf8563";
i2c-max-frequency = <100000>;
reg = <0x51>;
};
io_expand@0x20 {
compatible = "ti,pcf8574a";
i2c-max-frequency = <100000>;
reg = <0x20>;
};
sensor_ov5640@0x78{
compatible = "allwinner,sensor_ov5640";
i2c-max-frequency = <100000>;
reg = <0x78>;
status = "okay";
};
nano-gt911i@0x5d{
compatible = "nano,touch-gt911";
i2c-max-frequency = <100000>;
int-pin = <&pio PE 3 1 3 1 0>;
reg = <0x5d>;
status = "okay";
};
};
但是在/sys/bus/i2c/devices下面无任何i2c设备出现。。。。。
在驱动中注册i2c driver 也无法匹配进入probe函数
麻烦 各位大佬百忙之中抽个时间看看 谢谢
离线
你板子上有 PCF85633 这些器件吗,有没有挂个逻辑分析仪试一试?
没有这些东西,但是有个GT911的触摸屏
离线
miniCat 说:smartcar 说:你板子上有 PCF85633 这些器件吗,有没有挂个逻辑分析仪试一试?
没有这些东西,但是有个GT911的触摸屏
我记得GT911可以设置两组I2C地址,
这个要注意一下,换一组地址试一试。在内核里面开启用户层 i2c 设备接口,就是 /dev/ic2-0 这种,
然后配合 i2c utils 工具,可以搜索i2c总线什上面所有设备,
你试一试
改了设备地址,但是还是没有出现,我觉得可能是i2c总线适配器注册的有问题
离线