Using the kernel function i2c_gpio. C i2c_algo_bit. C i2c_core. C set the gpio to i2c pin
Now can catch device i2c - 0/00-0048/input/input5
But sda SCL has been high for
In the program manual lower pin can realize gpiod_set_value ((), 0);
But the state is the state has not been updated
Gpiod_set_value ((), the state);
As with effect of gpio_set_value
Dtsi configuration
I2c @ {0
I2c - gpio, open - sda - drain; tapping
I2c - gpio, open - SCL - drain; tapping
Compatible="i2c - gpio";
.
Ts @ 48 {
Compatible="ts_touch";
Irq_gpio=& lt; & TLMM.. 0 x00 & gt;;
.
}
CodePudding user response:
Now have a waveform, but read data is 0 XFF or 0 x00, what reason?
CodePudding user response:
Ci2c_gpio. C i2c_algo_bit.Call set_value and getvalue sometimes seems to pin doesn't work?
CodePudding user response:
CodePudding user response:
Your simulated I2C clock, co-ordinate with the slaver?Timing is correct?
Slaver ID is correct?
Have a slaver reply?
CodePudding user response:
DSP GPIO?CodePudding user response:
Gpio simulation i2c is really practical, you can try to drive a try from the device,