[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20191028134131.5pq2vaqojx4gpfth@pengutronix.de>
Date: Mon, 28 Oct 2019 14:41:31 +0100
From: Uwe Kleine-König
<u.kleine-koenig@...gutronix.de>
To: Biwen Li <biwen.li@....com>
Cc: Oleksij Rempel <o.rempel@...gutronix.de>,
"shawnguo@...nel.org" <shawnguo@...nel.org>,
"s.hauer@...gutronix.de" <s.hauer@...gutronix.de>,
"kernel@...gutronix.de" <kernel@...gutronix.de>,
"festevam@...il.com" <festevam@...il.com>,
dl-linux-imx <linux-imx@....com>,
"wsa@...-dreams.de" <wsa@...-dreams.de>,
Leo Li <leoyang.li@....com>,
Aisheng Dong <aisheng.dong@....com>,
Clark Wang <xiaoning.wang@....com>,
Xiaobo Xie <xiaobo.xie@....com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-i2c@...r.kernel.org" <linux-i2c@...r.kernel.org>,
Jiafei Pan <jiafei.pan@....com>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
Laurentiu Tudor <laurentiu.tudor@....com>
Subject: Re: [EXT] Re: [RESEND v2] i2c: imx: support slave mode for imx I2C
driver
Hello,
On Fri, Oct 25, 2019 at 04:02:11AM +0000, Biwen Li wrote:
> > I'm trying to test you patch on i.MX6S RIoTBoard. So far I fail to get it
> > working with following setup:
> > 1. register i2c-gpio
> > 2. connect i2c-gpio SCL to i2c-imx SCL pin and i2c-gpio SDA to i2c-imx SDA
> > pin 3. run this command to register i2c slave eeprom on i2c-imx:
> > echo slave-24c02 0x1064 > /sys/bus/i2c/devices/i2c-3/new_device
> > 4. run "i2cdetect 4" on i2c-gpio to detect eeprom on i2c-imx slave.
> >
> > So far, nothing was detected and even irq counter of i2c-imx didn't
> > increased.
> >
> > Do I'm missing some thing? Please, help me to test you patch.
> You not miss anything, but the i2c-gpio driver from upstream is not
> workable on imx(I have tested the i2c-gpio driver with oscilloscope
> on imx8mm-evk, I cannot get any signal from the i2c-gpio bus).
In general the GPIOs are known to work, so I wonder what the problem is.
If it relies on being able to read the state of an output it might help
to set the SION bit on the related pins.
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Powered by blists - more mailing lists