From: Roland Stigge <stigge@antcom.de>
To: Wolfram Sang <w.sang@pengutronix.de>
Cc: Grant Likely <grant.likely@secretlab.ca>,
Rob Herring <robherring2@gmail.com>,
vitalywool@gmail.com, khali@linux-fr.org, ben-linux@fluff.org,
rob.herring@calxeda.com, linux-i2c@vger.kernel.org,
linux-kernel@vger.kernel.org,
devicetree-discuss@lists.ozlabs.org, arm@kernel.org,
linux-arm-kernel@lists.infradead.org, kevin.wells@nxp.com,
srinivas.bakki@nxp.com
Subject: Re: [PATCH v4] i2c: Add device tree support to i2c-pnx.c
Date: Thu, 19 Apr 2012 18:32:12 +0200 [thread overview]
Message-ID: <4F903E0C.6010604@antcom.de> (raw)
In-Reply-To: <20120419160715.GD24987@pengutronix.de>
Hi,
On 04/19/2012 06:07 PM, Wolfram Sang wrote:
>> + - clock-frequency: desired I2C bus clock frequency in Hz,
>> Default: 100000 Hz + - pnx,timeout: I2C bus timeout in
>> milliseconds, Default: 10 ms
>
> I'd like to repeat my question to the devicetree folks here: Can we
> have timeout generic? It doesn't make sense to me to have that per
> vendor again and again.
Sounds completely reasonable.
To help make the devicetree conversion into 3.5, I would prefer to
integrate the "vendor,timeout" as-is if a longish standardization
process would block this, considering that we luckily only have 2-3 of
such timeout definitions currently.
I'd volunteer to clean up later by preparing a patch when there is a
standard timeout defined.
If we have a solution soon, I will prepare a new version of the patch,
of course, in the next days.
>> + i2c2: i2c@400a8000 { + compatible = "nxp,pnx-i2c"; + reg =
>> <0x400a8000 0x100>; + interrupt-parent = <&mic>; + interrupts =
>> <50 0>; + #address-cells = <1>; + #size-cells = <0>; +
>> clock-frequency = <0x186a0>; + pnx,timeout = <0x64>;
>
> Did you change this, too? Timeouts are better readable in dec :)
Right. But even when removing the "0x" in the timeout line above, it's
still hex, see Documentation/devicetree/booting-without-of.txt
Or did I get sth. wrong?
Thanks,
Roland
next prev parent reply other threads:[~2012-04-19 16:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-19 15:50 [PATCH v4] i2c: Add device tree support to i2c-pnx.c Roland Stigge
2012-04-19 16:07 ` Wolfram Sang
2012-04-19 16:32 ` Roland Stigge [this message]
2012-04-19 20:39 ` Wolfram Sang
2012-04-19 21:18 ` Roland Stigge
2012-04-20 7:28 ` Wolfram Sang
2012-04-20 7:53 ` Roland Stigge
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=4F903E0C.6010604@antcom.de \
--to=stigge@antcom.de \
--cc=arm@kernel.org \
--cc=ben-linux@fluff.org \
--cc=devicetree-discuss@lists.ozlabs.org \
--cc=grant.likely@secretlab.ca \
--cc=kevin.wells@nxp.com \
--cc=khali@linux-fr.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rob.herring@calxeda.com \
--cc=robherring2@gmail.com \
--cc=srinivas.bakki@nxp.com \
--cc=vitalywool@gmail.com \
--cc=w.sang@pengutronix.de \
/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