Re: RFC: i2c designware gpio recovery

2017-05-10 Thread Phil Reid
G'day Tim, Sorry for the delay in looking at this. My device is currently running a 4.9 kernel and I had to backport the cahnges to the driver to get things running with your patch. In general the code works and the bus recovers now. I've been using the i2c gpio bus driver because the dw wouldn

Re: RFC: i2c designware gpio recovery

2017-05-03 Thread Tim Sander
Good Day Phil Am Mittwoch, 3. Mai 2017, 09:30:50 CEST schrieb Phil Reid: > G'day Tim, > > On 1/05/2017 21:31, Tim Sander wrote: > > Good Day Phil > > > > Am Montag, 1. Mai 2017, 09:57:35 CEST schrieb Phil Reid: > >>> So i took a look into the device tree file socfpga.dtsi and found that > >>> th

Re: RFC: i2c designware gpio recovery

2017-05-02 Thread Phil Reid
G'day Tim, On 1/05/2017 21:31, Tim Sander wrote: Good Day Phil Am Montag, 1. Mai 2017, 09:57:35 CEST schrieb Phil Reid: So i took a look into the device tree file socfpga.dtsi and found that the reset lines where not defined (although available in the corresponding reset manager). Is there a r

Re: RFC: i2c designware gpio recovery

2017-05-01 Thread Tim Sander
Good Day Phil Am Montag, 1. Mai 2017, 09:57:35 CEST schrieb Phil Reid: > > So i took a look into the device tree file socfpga.dtsi and found that the > > reset lines where not defined (although available in the corresponding > > reset manager). Is there a reason for this? Other components are > >

Re: RFC: i2c designware gpio recovery

2017-04-30 Thread Phil Reid
On 28/04/2017 23:43, Tim Sander wrote: Hi G'day Tim, Given a couple of days I can test this on some flack i2c hardware I have with a Cyclone-V SOC. I'm interested in the functionality as well. For i2c that are connected to the dedicated HPS pins it should be possible to reconfigure the pin m

Re: RFC: i2c designware gpio recovery

2017-04-30 Thread Phil Reid
G'day Tim, On 29/04/2017 00:14, Tim Sander wrote: Hi After sending this mail i just found out how i could reset the i2c-1 controller manually with devmem 0xffd05014 32 0x2000 devmem 0xffd05014 32 0 So i took a look into the device tree file socfpga.dtsi and found that the reset lines where

Re: RFC: i2c designware gpio recovery

2017-04-28 Thread Tim Sander
Hi After sending this mail i just found out how i could reset the i2c-1 controller manually with devmem 0xffd05014 32 0x2000 devmem 0xffd05014 32 0 So i took a look into the device tree file socfpga.dtsi and found that the reset lines where not defined (although available in the corresponding

RFC: i2c designware gpio recovery

2017-04-28 Thread Tim Sander
Hi I have tried to add a gpio recovery gpio controller to the designware i2c driver. The attempt is attached below. I have a Intel(Altera) Cyclone V SOC Platform attached to a buggy power supply which gives a lockup on the i2c controller as a external device gives to much noise on the signal an