From: Pavel Pisa <ppisa4lists-hnFyeMMZ0rvQT0dZR+AlfA@public.gmane.org>
To: linux-arm-kernel-xIg/pKzrS19vn6HldHNs0ANdhmdF6hFW@public.gmane.org
Cc: Darius <augulis.darius-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org
Subject: Re: [PATCH V3] I2C driver for IMX
Date: Mon, 14 Apr 2008 02:55:46 +0200 [thread overview]
Message-ID: <200804140255.46603.ppisa4lists@pikron.com> (raw)
In-Reply-To: <ftl1i0$e5n$1@ger.gmane.org>
On Thursday 10 April 2008 14:31, Darius wrote:
> Russell King - ARM Linux wrote:
> > On Thu, Apr 10, 2008 at 01:33:51PM +0200, Juergen Beisert wrote:
> >> On Thursday 10 April 2008 12:33, Darius wrote:
> >>>> Then I guess that we want to add support to the i2c-mpc driver rather
> >>>> than adding another driver to the kernel tree?
> >>>
> >>> I prefer to use separate driver for imx i2c inteface.
> >>> if it's not needed for all, I'll leave it for my private needs.
> >>
> >> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> >> As I did with my imx i2c driver last year....Yes, this I2C controller is
> >> mostly the same than the one in the MPC family and mostly the same the
> >> ones we can find in the MCX family (i.MX21/27, i.MX31?). But it seems
> >> there is noone who is able to write such a generic driver.
> >
> > Which basically means everyone gets to write their own IMX I2C driver.
> > What a brilliant advert for open source software. ;(
>
> why not to submit this my driver into kernel? i2c driver is not so big
> fat thing, kernel size will not increase dramatically, even mpc has
> similar hardware and similar driver.
Hello All,
I agree, that it is better to include this driver than to wait for common
one. If there be even two fully working and tested variants, then it could
be simpler to prepare generic one in future.
I admit that I am the one who noticed similarity of the i.MX and MPC
I2C cores last year but the differences/lack of functionality
of i.MX version makes reuse of MPC one very problematic.
I have tried to contact MPC variant author, but nobody
replied => separate i.MX version is probably the best option
for now.
Best wishes
Pavel
On Friday 10 August 2007 17:15, Pavel Pisa wrote:
....
> The curious information for you could be, that driver for
> I2C core same/similar to one found in i.MX families is
> already included in mainline kernel.
>
> linux-2.6.23-git/drivers/i2c/busses/i2c-mpc.c
>
> It is I2C core for PowerPC MPC5200 chips.
> Unfortunately, the i.MX version lacks
> I2C Interrupt Control Register, which is later
> patch added to MPC5200. It is common to both MPC5200
> I2C interfaces. It provides very wanted feature.
> It allow s to ask for signaling interrupt when bus
> becomes free (BNBE1 and BNBE2 bits). It is paintfully
> missing on i.MX. This means, that probing for bus
> free condition has to be solved by polling timer on MX1.
>
> The other difference is missing bit AKF in Status Register,
> which complicates processing of lost arbitration and
> simultaneous addressed as slave condition.
>
> The less important is missing support for glitches
> filtering configuration register.
>
> I suggest to look at MPC5200 documentation, because
> it is little more comprehensive. The other source
> of documentation Tundra Universe II VME to PCI bridge
> manual, because this chip contains same I2C core too.
>
> I have even written fully interrupt driven driver
> for MX1 for RTEMS executive. It runs in its own thread.
> I have not finished functionality yet, but master works
> reliably. I can send it as other reference.
>
> Generally it would be nice if "i2c-mpc" driver could
> be reuse by i.MX familly. It is better to have not
> two drivers implementations for same IP core.
> But due to lack of BNBEx and other minor differences
> it would require some ifdefs in the source or processing
> altered by core variant flags. The free bus polling
> timer for BNBEx would be required too. So I am not
> sure if something like that is acceptable for PowerPC
> people or if the code should be duplicated.
> I am sending copy to Adrian Cox who seems
> to be author of MPC5200 driver.
_______________________________________________
i2c mailing list
i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org
http://lists.lm-sensors.org/mailman/listinfo/i2c
next prev parent reply other threads:[~2008-04-14 0:55 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-08 8:01 [PATCH V3] I2C driver for IMX Darius
2008-04-09 23:28 ` Ben Dooks
[not found] ` <20080409232834.GG1197-SMNkleLxa3Z6Wcw2j4pizdi2O/JbrIOy@public.gmane.org>
2008-04-10 3:25 ` Kumar Gala
2008-04-10 10:01 ` Jean Delvare
[not found] ` <20080410120141.4d220d27-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2008-04-10 10:09 ` Kumar Gala
2008-04-10 10:33 ` Darius
2008-04-10 11:33 ` Juergen Beisert
2008-04-10 12:24 ` Russell King - ARM Linux
2008-04-10 12:31 ` Darius
2008-04-14 0:55 ` Pavel Pisa [this message]
2008-04-15 11:03 ` Darius
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200804140255.46603.ppisa4lists@pikron.com \
--to=ppisa4lists-hnfyemmz0rvqt0dzr+alfa@public.gmane.org \
--cc=augulis.darius-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org \
--cc=linux-arm-kernel-xIg/pKzrS19vn6HldHNs0ANdhmdF6hFW@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox