From: Gary Thomas <gary-kIKI1E8EpGZWk0Htik3J/w@public.gmane.org>
To: Jon Smirl <jonsmirl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: OF support for tsc2007
Date: Fri, 01 May 2009 09:49:00 -0600 [thread overview]
Message-ID: <49FB19EC.20002@mlbassoc.com> (raw)
In-Reply-To: <9e4733910905010843u13c03eb5q9daef91842c1f08a-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
Jon Smirl wrote:
> On Fri, May 1, 2009 at 11:05 AM, Gary Thomas <gary-kIKI1E8EpGZWk0Htik3J/w@public.gmane.org> wrote:
>> I'm trying to use the TSC2007 (actually TSC2003) on a PowerPC
>> based platform. Sadly, the current driver (as of .30-rc4)
>> does not seem to be OF aware.
>>
>> Jon Smirl on the PPC list suggested I ask here.
>
> I thought you said it was an old-style driver that hadn't been
> converted to new style?
>
> i2c drivers don't need to be OF aware. The code in
> drivers/of/of_i2c.c set things up for you.
> You need a driver tree entry like this:
>
> i2c@3d40 {
> #address-cells = <1>;
> #size-cells = <0>;
> compatible = "fsl,mpc5200b-i2c","fsl,mpc5200-i2c","fsl-i2c";
> cell-index = <1>;
> reg = <0x3d40 0x40>;
> interrupts = <0x2 0x10 0x0>;
> interrupt-parent = <&mpc5200_pic>;
> fsl5200-clocking;
>
> rtc@51 {
> device_type = "rtc";
> compatible = "epson,rtc8564";
> reg = <0x51>;
> };
> eeprom@52 {
> compatible = "atmel,24c32", "eeprom";
> reg = <0x52>;
> };
> };
>
>
>
>
>> Any help or ideas?
>>
>> n.b. at the moment, I'm not subscribed to this list, so please
>> CC me on any replies.
My question remains; how do I provide the platform_data this
driver wants on an OF based platform?
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
prev parent reply other threads:[~2009-05-01 15:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-01 15:05 OF support for tsc2007 Gary Thomas
[not found] ` <49FB0FAE.3080609-kIKI1E8EpGZWk0Htik3J/w@public.gmane.org>
2009-05-01 15:43 ` Jon Smirl
[not found] ` <9e4733910905010843u13c03eb5q9daef91842c1f08a-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-05-01 15:49 ` Gary Thomas [this message]
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=49FB19EC.20002@mlbassoc.com \
--to=gary-kiki1e8epgzwk0htik3j/w@public.gmane.org \
--cc=jonsmirl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@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