From: Marek Vasut <marex-ynQEQJNshbs@public.gmane.org>
To: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Cc: "Ben Dooks" <ben.dooks-4yDnlxn2s6sWdaTGBSpHTA@public.gmane.org>,
"Fabio Estevam"
<fabio.estevam-KZfg59tc24xl57MIdRCFDg@public.gmane.org>,
"Wolfgang Denk" <wd-ynQEQJNshbs@public.gmane.org>,
"Detlev Zundel" <dzu-ynQEQJNshbs@public.gmane.org>,
"Stefano Babic" <sbabic-ynQEQJNshbs@public.gmane.org>,
"Sascha Hauer" <s.hauer-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>,
"Wolfram Sang" <w.sang-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>,
linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
"Uwe Kleine-König"
<u.kleine-koenig-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>,
"Shawn Guo" <shawn.guo-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
"Dong Aisheng" <b29396-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
Subject: Re: [PATCH 1/2] MXS: Set I2C timing registers for mxs-i2c
Date: Tue, 29 May 2012 08:46:53 +0200 [thread overview]
Message-ID: <201205290846.53960.marex@denx.de> (raw)
In-Reply-To: <4FC359BC.8080606-4yDnlxn2s6sWdaTGBSpHTA@public.gmane.org>
Dear Ben Dooks,
> On 27/05/12 03:10, Marek Vasut wrote:
> > This patch configures the I2C bus timing registers according
> > to information passed via DT. Currently, 100kHz and 400kHz
> > modes are supported.
> >
> > Signed-off-by: Marek Vasut<marex-ynQEQJNshbs@public.gmane.org>
> > Cc: Detlev Zundel<dzu-ynQEQJNshbs@public.gmane.org>
> > CC: Dong Aisheng<b29396-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
> > CC: Fabio Estevam<fabio.estevam-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
> > Cc: Linux ARM kernel<linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org>
> > Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> > CC: Sascha Hauer<s.hauer-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
> > CC: Shawn Guo<shawn.guo-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
> > Cc: Stefano Babic<sbabic-ynQEQJNshbs@public.gmane.org>
> > CC: Uwe Kleine-König<u.kleine-koenig-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
> > Cc: Wolfgang Denk<wd-ynQEQJNshbs@public.gmane.org>
> > Cc: Wolfram Sang<w.sang-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
> > ---
> >
> > Documentation/devicetree/bindings/i2c/i2c-mxs.txt | 1 +
> > arch/arm/boot/dts/imx28.dtsi | 2 +
> > drivers/i2c/busses/i2c-mxs.c | 64
> > +++++++++++++++++++++ 3 files changed, 67 insertions(+)
> >
> > diff --git a/Documentation/devicetree/bindings/i2c/i2c-mxs.txt
> > b/Documentation/devicetree/bindings/i2c/i2c-mxs.txt index
> > 1bfc02d..790b5c6 100644
> > --- a/Documentation/devicetree/bindings/i2c/i2c-mxs.txt
> > +++ b/Documentation/devicetree/bindings/i2c/i2c-mxs.txt
> >
> > @@ -4,6 +4,7 @@ Required properties:
> > - compatible: Should be "fsl,<chip>-i2c"
> > - reg: Should contain registers location and length
> > - interrupts: Should contain ERROR and DMA interrupts
> >
> > +- speed: Speed of the bus in kHz (400 or 100 are supported)
> >
> > Examples:
> > diff --git a/arch/arm/boot/dts/imx28.dtsi b/arch/arm/boot/dts/imx28.dtsi
> > index 4634cb8..d927155 100644
> > --- a/arch/arm/boot/dts/imx28.dtsi
> > +++ b/arch/arm/boot/dts/imx28.dtsi
> > @@ -381,6 +381,7 @@
> >
> > compatible = "fsl,imx28-i2c";
> > reg =<0x80058000 2000>;
> > interrupts =<111 68>;
> >
> > + fsl,speed =<400>;
> >
> > status = "disabled";
> >
> > };
> >
> > @@ -390,6 +391,7 @@
> >
> > compatible = "fsl,imx28-i2c";
> > reg =<0x8005a000 2000>;
> > interrupts =<110 69>;
> >
> > + fsl,speed =<400>;
> >
> > status = "disabled";
> >
> > };
>
> Is there not a standard speed setting in the i2c binding?
Not that I know of, but if someone hinted one to me, I'd gladly rework the
patches :)
Best regards,
Marek Vasut
next prev parent reply other threads:[~2012-05-29 6:46 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-27 2:10 [PATCH 1/2] MXS: Set I2C timing registers for mxs-i2c Marek Vasut
[not found] ` <1338084656-11961-1-git-send-email-marex-ynQEQJNshbs@public.gmane.org>
2012-05-27 2:10 ` [PATCH 2/2] MXS: Implement DMA support into mxs-i2c Marek Vasut
[not found] ` <1338084656-11961-2-git-send-email-marex-ynQEQJNshbs@public.gmane.org>
2012-06-06 3:47 ` Shawn Guo
2012-06-06 2:53 ` [PATCH 1/2] MXS: Set I2C timing registers for mxs-i2c Shawn Guo
2012-05-28 10:55 ` Ben Dooks
[not found] ` <4FC359BC.8080606-4yDnlxn2s6sWdaTGBSpHTA@public.gmane.org>
2012-05-29 6:46 ` Marek Vasut [this message]
[not found] ` <201205290846.53960.marex-ynQEQJNshbs@public.gmane.org>
2012-06-02 6:48 ` Wolfram Sang
-- strict thread matches above, loose matches on Subject: below --
2012-06-29 8:24 Marek Vasut
[not found] ` <1340958243-2332-1-git-send-email-marex-ynQEQJNshbs@public.gmane.org>
2012-06-29 9:06 ` Dong Aisheng
[not found] ` <20120629090602.GI5844-Fb7DQEYuewWctlrPMvKcciBecyulp+rMXqFh9Ls21Oc@public.gmane.org>
2012-06-29 9:33 ` Marek Vasut
[not found] ` <201206291133.09379.marex-ynQEQJNshbs@public.gmane.org>
2012-06-29 9:39 ` Dong Aisheng
[not found] ` <20120629093942.GM5844-Fb7DQEYuewWctlrPMvKcciBecyulp+rMXqFh9Ls21Oc@public.gmane.org>
2012-06-29 10:03 ` Marek Vasut
2012-06-29 11:47 ` Shawn Guo
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=201205290846.53960.marex@denx.de \
--to=marex-ynqeqjnshbs@public.gmane.org \
--cc=b29396-KZfg59tc24xl57MIdRCFDg@public.gmane.org \
--cc=ben.dooks-4yDnlxn2s6sWdaTGBSpHTA@public.gmane.org \
--cc=dzu-ynQEQJNshbs@public.gmane.org \
--cc=fabio.estevam-KZfg59tc24xl57MIdRCFDg@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=s.hauer-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org \
--cc=sbabic-ynQEQJNshbs@public.gmane.org \
--cc=shawn.guo-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
--cc=u.kleine-koenig-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org \
--cc=w.sang-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org \
--cc=wd-ynQEQJNshbs@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;
as well as URLs for NNTP newsgroup(s).