From: Tony Lindgren <tony@atomide.com>
To: "Gupta, Pekon" <pekon@ti.com>
Cc: Jason Kridner <jkridner@gmail.com>, "Rini, Tom" <trini@ti.com>,
OMAP List <linux-omap@vger.kernel.org>,
"beagleboard@googlegroups.com" <beagleboard@googlegroups.com>,
Robert Nelson <robertcnelson@gmail.com>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
ARM Kernel List <linux-arm-kernel@lists.infradead.org>
Subject: Re: Unifying cape overlays into boot .dtb for BeagleBoard.org boards
Date: Thu, 26 Jun 2014 00:50:40 -0700 [thread overview]
Message-ID: <20140626075039.GG28884@atomide.com> (raw)
In-Reply-To: <20980858CB6D3A4BAE95CA194937D5E73EAF5DD0@DBDE04.ent.ti.com>
* Gupta, Pekon <pekon@ti.com> [140618 01:52]:
> Hi,
>
> >From: Jason Kridner [mailto:jkridner@gmail.com]
> >>On Tue, Jun 17, 2014 at 3:11 AM, Gupta, Pekon <pekon@ti.com> wrote:
> >>>From: Jason Kridner
> [...]
> >>>> * The devicetree sources, including the primary boot .dts files, will
> >>>> eventually be removed from the kernel source tree. I'm not too sure if
> >>>> and when it'll really happen, but starting up a project to maintain
> >>>> the definitive beagleboard.org board devicetree files outside the
> >>>> kernel seems to make sense. Given the interdependency of the boot .dtb
> >>>> and the overlay .dtbo files, combining them into a single repository
> >>>> where every distribution can pick them up seems like a natural and
> >>>> obvious choice. There are of course some dependencies on kernel
> >>>> versions, but I believe most of those have settled out by now and we
> >>>> should be OK moving forward.
> >>
> >> +1
> >> Yes, moving cape DTS out of kernel tree should help developers.
> >> There are quite a few cape patches floating in mail-lists, but as cape
> >> DTS is still not accepted in mainline so they get lost and forgotten.
> >> So one place for collecting all this is a good idea.
> >>
> >>
> >> However, somehow the universal I/O DTS looked seemed complicated:
> >> (1)
> >> All capes work standalone, but due to share pin-mux some cape
> >> combinations cannot be used simultaneously. But most users of
> >> BeagleBone are already well-versed with DT and kernel infrastructure,
> >> so they need not be spoon fed to get a out-of-box working solution
> >> for each combination. If there is proper documentation is available
> >> about compatibility of capes with each other, then users will figure
> >> out themselves.
> >
> >I think you have too much confidence in users. If this doesn't hurt
> >power users, then why is it bad have an option to spoon feed? This
> >doesn't prevent anyone with knowledge of DT from doing their own
> >thing.
> >
> Fair enough.
> But plz give a try to u-boot alternative below. It works at my end.
>
> >>
> >> (2)
> >> Also, there was a talk of enabling and disabling DT fragments via u-boot.
> >> That should also be explored instead of complicating cape DTS.
> >
> >Link? Relevance?
> >
> we can modify DT from u-boot itself [1].
> Example: "MMC2" pin-mux conflicts with "NAND" and "NOR" capes.
> But using following sequence of commands, you can modify DTB via
> u-boot and make NAND cape work _without_any_hack_ in patch [2].
>
> /* load DTB */
> u-boot> tftp 0x81000000 am335x-boneblack.dtb
> u-boot> fdt addr 0x81000000
> /* disable MMC2 node */
> u-boot> fdt list /ocp/mmc@481d8000
> u-boot> fdt set /ocp/mmc@481d8000 status \d\i\s\a\b\l\e\d
> u-boot> fdt list /ocp/mmc@481d8000 status
> /* enable GPMC node */
> u-boot> fdt list /ocp/gpmc
> u-boot> fdt set /ocp/gpmc status \o\k\a\y
> u-boot> fdt list /ocp/gpmc status
> /* enable ELM node */
> u-boot> fdt list /ocp/elm
> u-boot> fdt set /ocp/elm status \o\k\a\y
> u-boot> fdt list /ocp/elm status
> /* boot uImage */
> tftp 0x82000000 uImage
> bootm 0x82000000 - 0x81000000
>
> Note: "fdt set" command does not accept string literals
> as binding values, it internally converts them to string, so
> escape sequenced characters were used here..
> "okay" == \o\k\a\y
> "disabled" == \d\i\s\a\b\l\e\d"
>
>
> Hope above solves the pre-requisite because of which 'Tony Lindgren <tony@atomide.com>'
> was unable to accept cape related DTS into his tree [3]
Yes. If the capes are disabled by default we can have at
least some of them included in the mainline kernel and
enabled by the bootloader as needed. I'd like to hear back
from the u-boot people too on this approach naturally.
And some things we still cannot merge if they overlap for
GPMC bindings for example. So we have to carefully check
the generated .dtb file with dtc -I dtb -O dts.
Regards,
Tony
> [1] http://www.denx.de/wiki/view/DULG/UBootCmdFDT
> [2] http://www.spinics.net/lists/linux-omap/msg107307.html
> [3] http://www.spinics.net/lists/linux-omap/msg107354.html
>
>
> with regards, pekon
next prev parent reply other threads:[~2014-06-26 7:50 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CA+T6QP==raXdWz9mezK3JxSvZjWhUZZ7aKv4CpCr0SbdaCMgDQ@mail.gmail.com>
2014-06-11 5:11 ` Unifying cape overlays into boot .dtb for BeagleBoard.org boards Jason Kridner
2014-06-17 7:11 ` Gupta, Pekon
[not found] ` <20980858CB6D3A4BAE95CA194937D5E73EAF59A7-yXqyApvAXouIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
2014-06-17 16:25 ` Jason Kridner
2014-06-18 8:51 ` Gupta, Pekon
2014-06-26 7:50 ` Tony Lindgren [this message]
[not found] ` <20140626075039.GG28884-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2014-06-26 13:06 ` Tom Rini
[not found] ` <53AC1AC5.5000103-l0cyMroinI0@public.gmane.org>
2014-06-26 15:27 ` Jason Kridner
[not found] ` <CA+T6QP==raXdWz9mezK3JxSvZjWhUZZ7aKv4CpCr0SbdaCMgDQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-06-11 5:10 ` Jason Kridner
2014-06-16 13:22 ` Jason Kridner
2014-06-17 9:09 ` Russell King - ARM Linux
2014-06-17 12:58 ` Matt Porter
2014-06-17 13:15 ` Russell King - ARM Linux
2014-06-17 13:30 ` Matt Porter
2014-06-17 13:32 ` Pantelis Antoniou
2014-06-17 16:01 ` Russell King - ARM Linux
[not found] ` <20140617160119.GE3705-l+eeeJia6m9vn6HldHNs0ANdhmdF6hFW@public.gmane.org>
2014-06-17 16:33 ` Jason Kridner
2014-06-17 16:59 ` Pantelis Antoniou
2014-06-17 17:05 ` Russell King - ARM Linux
2014-06-17 17:10 ` Pantelis Antoniou
2014-06-17 17:41 ` Russell King - ARM Linux
2014-06-17 19:24 ` Pantelis Antoniou
[not found] ` <20140617090931.GB3705-l+eeeJia6m9vn6HldHNs0ANdhmdF6hFW@public.gmane.org>
2014-06-17 12:37 ` Tom Rini
2014-06-17 12:56 ` Russell King - ARM Linux
[not found] ` <20140617125640.GC3705-l+eeeJia6m9vn6HldHNs0ANdhmdF6hFW@public.gmane.org>
2014-06-17 14:58 ` Tom Rini
2014-06-17 13:45 ` Vladimir Pantelic
2014-06-17 13:50 ` Grant Likely
2014-06-17 14:08 ` Iain Paton
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=20140626075039.GG28884@atomide.com \
--to=tony@atomide.com \
--cc=beagleboard@googlegroups.com \
--cc=devicetree@vger.kernel.org \
--cc=jkridner@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-omap@vger.kernel.org \
--cc=pekon@ti.com \
--cc=robertcnelson@gmail.com \
--cc=trini@ti.com \
/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;
as well as URLs for NNTP newsgroup(s).