页次: 1
荔枝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函数
麻烦 各位大佬百忙之中抽个时间看看 谢谢
页次: 1