All of lore.kernel.org
 help / color / mirror / Atom feed
* Testing a OF Device Tree driver on a kernel using a board file.
@ 2013-06-27 20:22 Mr. Robert G Palmer Jr.
       [not found] ` <F14D68B9-D4F3-4185-BF5A-833780FFCEFC-yOrjPonjKN58UrSeD/g0lQ@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Mr. Robert G Palmer Jr. @ 2013-06-27 20:22 UTC (permalink / raw)
  To: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ


[-- Attachment #1.1.1: Type: text/plain, Size: 1419 bytes --]

I apologize up front if this is the wrong place for these questions.  I'm relatively new to the OF Device Tree.  If this is the wrong place, would someone point me to the correct discussion location.

1. Is it possible to take an existing kernel build that uses a board file move only a small portion into a Device Tree.  I am working on converting a driver from supporting only the board file to supporting both the board file and the OF Device Tree.  Unfortunately, the only test platform I have with the appropriate hardware is a Nexus7 and I'm using the Cyanogenmod build.  This uses (or at least appears to use) a board file for the Nexus7.  Is it possible to write a small Device Tree description for only the driver I am working on?  Where would this device tree file be placed? How would I include it in the build? Any assistance and/or pointers would be appreciated.

2. Are there any suggestions or hints for searching for OF Device Tree information.  The term "device tree" is used pervasively in the linux code and various projects to refer to source branches of a particular device type rather than the OF Device Tree.  This makes it extremely difficult to isolate applicable answers.

Thank you,
-- 
Robert G. Palmer, Jr.
President
Ingenutec, LLC
Mentor for HVA RoHAWKtics, FIRST Robotics Team 3824
865-405-5695
robert.palmer-yOrjPonjKN58UrSeD/g0lQ@public.gmane.org
www.ingenutec.com




[-- Attachment #1.1.2: Type: text/html, Size: 5539 bytes --]

[-- Attachment #1.2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 4903 bytes --]

[-- Attachment #2: Type: text/plain, Size: 192 bytes --]

_______________________________________________
devicetree-discuss mailing list
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
https://lists.ozlabs.org/listinfo/devicetree-discuss

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Testing a OF Device Tree driver on a kernel using a board file.
       [not found] ` <F14D68B9-D4F3-4185-BF5A-833780FFCEFC-yOrjPonjKN58UrSeD/g0lQ@public.gmane.org>
@ 2013-06-27 22:07   ` Grant Likely
  0 siblings, 0 replies; 2+ messages in thread
From: Grant Likely @ 2013-06-27 22:07 UTC (permalink / raw)
  To: Mr. Robert G Palmer Jr.; +Cc: devicetree-discuss

On Thu, Jun 27, 2013 at 9:22 PM, Mr. Robert G Palmer Jr.
<robert.palmer-yOrjPonjKN58UrSeD/g0lQ@public.gmane.org> wrote:
> I apologize up front if this is the wrong place for these questions.  I'm
> relatively new to the OF Device Tree.  If this is the wrong place, would
> someone point me to the correct discussion location.
>
> 1. Is it possible to take an existing kernel build that uses a board file
> move only a small portion into a Device Tree.  I am working on converting a
> driver from supporting only the board file to supporting both the board file
> and the OF Device Tree.  Unfortunately, the only test platform I have with
> the appropriate hardware is a Nexus7 and I'm using the Cyanogenmod build.
> This uses (or at least appears to use) a board file for the Nexus7.  Is it
> possible to write a small Device Tree description for only the driver I am
> working on?  Where would this device tree file be placed? How would I
> include it in the build? Any assistance and/or pointers would be
> appreciated.

Yes. Enable CONFIG_OF and add a dt_compat pointer to the existing
nexus7 MACHINE_START() stanze. Then a trivial device tree with a
top-level compatible property that matches something in the dt_compat
table can be used to boot the platform.

arch/arm/mach-versatile/versatile_dt.c shows an example.

> 2. Are there any suggestions or hints for searching for OF Device Tree
> information.  The term "device tree" is used pervasively in the linux code
> and various projects to refer to source branches of a particular device type
> rather than the OF Device Tree.  This makes it extremely difficult to
> isolate applicable answers.

This link is useful:
http://devicetree.org/Device_Tree_Usage

Also, look at the files in Documentation/devicetree in the Linux kernel.

g.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-06-27 22:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-27 20:22 Testing a OF Device Tree driver on a kernel using a board file Mr. Robert G Palmer Jr.
     [not found] ` <F14D68B9-D4F3-4185-BF5A-833780FFCEFC-yOrjPonjKN58UrSeD/g0lQ@public.gmane.org>
2013-06-27 22:07   ` Grant Likely

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.