From: Thomas Chou <thomas-SDxUXYEhEBiCuPEqFHbRBg@public.gmane.org>
To: Grant Likely <grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org>
Cc: Ben Dooks <ben-linux-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org>,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
nios2-dev-1eJk0qcHJCcaeqlQEoCUNoJY59XmG8rH@public.gmane.org,
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org,
linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Albert Herranz <albert_herranz-mRCrAkd8dF0@public.gmane.org>
Subject: Re: [PATCH v6] i2c-gpio: add devicetree support
Date: Fri, 25 Feb 2011 10:04:59 +0800 [thread overview]
Message-ID: <4D670E4B.6000407@wytron.com.tw> (raw)
In-Reply-To: <20110224162210.GC17735-MrY2KI0G/OVr83L8+7iqerDks+cytr/Z@public.gmane.org>
Hi Grant,
On 02/25/2011 12:22 AM, Grant Likely wrote:
>> +Required properties:
>> +- compatible : should be "i2c-gpio".
>> +- gpios : should specify GPIOs used for SDA and SCL lines, in that order.
>> +Optional properties:
>> +- sda-is-open-drain : present if SDA gpio is open-drain.
>> +- scl-is-open-drain : present if SCL gpio is open-drain.
>> +- scl-is-output-only : present if the output driver for SCL cannot be
>> + turned off. this will prevent clock stretching from working.
>> +- speed-hz : SCL frequency.
>
> Hi Thomas,
>
> One nitpick; I just looked, and other i2c controllers are already
> using 'clock-frequency' instead of 'speed-hz' for the speed of the
> bus. I'd like to see this patch use the same terminology.
I studied 'clock-frequency' usage of existing i2c drivers before working
on this patch.
i2c-ibm_iic.c, i2c-mpc.c, i2c-ocores.c : use as bus clock frequency
input to the core.
i2c-cpm.c : use as i2c SCL output frequency.
Most other non-i2c drivers use clock-frequency as bus clock frequency
input, too.
I think the SCL freq usage in i2c-cpm.c is confusing. So I would suggest
we borrow 'speed-hz' from spi subsystem, which means the clock freq
output on the peripheral bus.
Best regards,
Thomas
next prev parent reply other threads:[~2011-02-25 2:04 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-30 15:56 [PATCH] i2c-gpio: add devicetree support Thomas Chou
[not found] ` <1296403013-6058-1-git-send-email-thomas-SDxUXYEhEBiCuPEqFHbRBg@public.gmane.org>
2011-01-31 3:26 ` Håvard Skinnemoen
[not found] ` <AANLkTi=5Uik+EwBRfYs_Pa77+qHngY03ezC63RC0WLQ8-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-01-31 8:09 ` Grant Likely
[not found] ` <AANLkTimS70uHqmv3jhr+7mPz4QFKXRXuFnWj8s3EpKsO-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-01-31 13:55 ` Jon Loeliger
[not found] ` <E1PjuE3-0002Xy-6z-CYoMK+44s/E@public.gmane.org>
2011-01-31 14:54 ` Grant Likely
2011-01-31 15:25 ` [PATCH 1/3] of: define dummy of_get_property if not CONFIG_OF Thomas Chou
[not found] ` <1296487551-30938-1-git-send-email-thomas-SDxUXYEhEBiCuPEqFHbRBg@public.gmane.org>
2011-01-31 22:10 ` Grant Likely
2011-01-31 15:25 ` [PATCH 2/3] of: of_gpiochip_add is needed only for gpiolib Thomas Chou
[not found] ` <1296487551-30938-2-git-send-email-thomas-SDxUXYEhEBiCuPEqFHbRBg@public.gmane.org>
2011-01-31 22:16 ` Grant Likely
2011-01-31 15:25 ` [PATCH 3/3 v2] i2c-gpio: add devicetree support Thomas Chou
[not found] ` <1296487551-30938-3-git-send-email-thomas-SDxUXYEhEBiCuPEqFHbRBg@public.gmane.org>
2011-01-31 21:14 ` [3/3,v2] " Milton Miller
[not found] ` <of-i2c-doc-kM9DGJe42AJBDgjK7y7TUQ@public.gmane.org>
2011-01-31 21:29 ` Grant Likely
[not found] ` <AANLkTimoaJKy-WTTHmRXFMmM6=e7uvzhjwRcDtNqGAPj-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-02-03 2:26 ` [PATCH] " Thomas Chou
2011-02-03 4:24 ` Håvard Skinnemoen
[not found] ` <1296699980-30234-1-git-send-email-thomas-SDxUXYEhEBiCuPEqFHbRBg@public.gmane.org>
2011-02-03 18:07 ` Grant Likely
[not found] ` <20110203180707.GE6180-MrY2KI0G/OVr83L8+7iqerDks+cytr/Z@public.gmane.org>
2011-02-10 2:29 ` [PATCH v4] " Thomas Chou
[not found] ` <1297304967-3759-1-git-send-email-thomas-SDxUXYEhEBiCuPEqFHbRBg@public.gmane.org>
2011-02-14 2:30 ` [PATCH v5] " Thomas Chou
[not found] ` <1297650610-12400-1-git-send-email-thomas-SDxUXYEhEBiCuPEqFHbRBg@public.gmane.org>
2011-02-16 5:49 ` Grant Likely
[not found] ` <20110216054956.GD11684-MrY2KI0G/OVr83L8+7iqerDks+cytr/Z@public.gmane.org>
2011-02-16 6:13 ` Thomas Chou
2011-02-23 1:12 ` Ben Dooks
[not found] ` <20110223011232.GC15795-SMNkleLxa3Z6Wcw2j4pizdi2O/JbrIOy@public.gmane.org>
2011-02-23 13:18 ` Thomas Chou
2011-02-24 4:00 ` [PATCH v6] " Thomas Chou
[not found] ` <1298520013-3630-1-git-send-email-thomas-SDxUXYEhEBiCuPEqFHbRBg@public.gmane.org>
2011-02-24 16:22 ` Grant Likely
[not found] ` <20110224162210.GC17735-MrY2KI0G/OVr83L8+7iqerDks+cytr/Z@public.gmane.org>
2011-02-25 2:04 ` Thomas Chou [this message]
[not found] ` <4D670E4B.6000407-SDxUXYEhEBiCuPEqFHbRBg@public.gmane.org>
2011-02-25 2:07 ` Grant Likely
2011-01-31 22:35 ` [PATCH] " Håvard Skinnemoen
[not found] ` <AANLkTini7Hx6dbTAKJKJy=NnC+LFcQuHEsayxwJJ78-+-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-01-31 23:01 ` Grant Likely
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=4D670E4B.6000407@wytron.com.tw \
--to=thomas-sdxuxyehebicupeqfhbrbg@public.gmane.org \
--cc=albert_herranz-mRCrAkd8dF0@public.gmane.org \
--cc=ben-linux-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org \
--cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
--cc=grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org \
--cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=nios2-dev-1eJk0qcHJCcaeqlQEoCUNoJY59XmG8rH@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