From: Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
To: "David Lanzendörfer"
<david.lanzendoerfer-Z7Kmv9EsliU@public.gmane.org>,
"linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: Question: DTS and redundant board IDs
Date: Fri, 04 May 2012 11:38:41 -0600 [thread overview]
Message-ID: <4FA41421.3010205@wwwdotorg.org> (raw)
In-Reply-To: <5798689.HUgVBhM8Wg@kira>
On 05/04/2012 02:47 AM, David Lanzendörfer wrote:
> Hi
> Thanks a lot for your answer!
>
>> The machine ID isn't relevant with device tree; just supply the correct
>> content in device tree and it'll work out fine.
>
> How do I tell the kernel on which device within the tree it's running on?
The kernel shouldn't really care; the DT support is designed to mostly
only directly know about Tegra20 vs. Tegra30.
> Where can I get the correct string from for adding into pinmux_configs?
You'll have to create it yourself by translating the content of the
board pinmux file in whatever kernel the board currently uses.
I do have a very rough Python script that mostly converts the format,
but it's got a lot of warts. I can email that to you directly if you
want. You will need to manually patch up some of the results though.
> In upstream there are strings like "compulab,trimslice" or "nvidia,harmony".
> Where can I extract the correct string for adam?
You will have to create it yourself based on the vendor and board name.
I think what you want is something like:
compatible = "notionink,adam", "nvidia,tegra20";
> Sry, but until now, I've just used the hw id and it worked... :-/
>
> Is there a documentation and I'm just unable to find it?
In the kernel source, Documentation/devicetree/bindings describes the
format of all the device tree nodes. See e.g.
pinctrl/nvidia,tegra20-pinmux.txt. Also, be sure to become familiar with
how the other Tegra device trees are constructed; see
arch/arm/board/dts/tegra*.
prev parent reply other threads:[~2012-05-04 17:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-03 14:50 Question: DTS and redundant board IDs David Lanzendörfer
2012-05-03 15:37 ` Stephen Warren
[not found] ` <5798689.HUgVBhM8Wg@kira>
2012-05-04 17:38 ` Stephen Warren [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=4FA41421.3010205@wwwdotorg.org \
--to=swarren-3lzwwm7+weoh9zmkesr00q@public.gmane.org \
--cc=david.lanzendoerfer-Z7Kmv9EsliU@public.gmane.org \
--cc=linux-tegra-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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.