Re: nanopi/allwinner i2c not working.

Daniel Braniss <[email protected]>
Newsgroups gmane.os.freebsd.devel.arm
Message-ID <[email protected]>

> On 7 Oct 2020, at 11:33, Andriy Gapon <[email protected]> wrote:
> 
> On 07/10/2020 10:54, Daniel Braniss wrote:
>> with D26049:
>> i2s -s works with and without debug
>> 
>> my test runs ok with debug on, but failed with debug off.
>> timing issue?
> 
> That's interesting.
> I also have an H3-based system and did not see anything like that with any of
> I2C devices that I have.
> The latest driver is completely interrupt driven and there are no fixed delays.
> The controller datasheet does not seem to mandate any delays as well.
> Perhaps the problem is on the device's side?
> Also, it could be that the older driver (in 12.1) was slower, so more forgiving
> of any wiring / connector problems.
> 
> Not sure how to proceed when debug mode works fine and non-debug fails.
> Perhaps DTrace would be less overhead than the debug printf-s.
> 
> Ah, another thought, with debugging enabled, could you please do a bus reset and
> see what mode and clock param get printed?

iichb0: twsi_calc_baud_rate: Bus clock is at 24000000
iichb0: twsi_reset: Using clock param=59

> 
> -- 
> Andriy Gapon

_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-arm
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.