From: Tony Lindgren <tony@atomide.com>
To: Robert Nelson <robertcnelson@gmail.com>
Cc: Nishanth Menon <nm@ti.com>,
linux-omap <linux-omap@vger.kernel.org>,
linux-mtd <linux-mtd@lists.infradead.org>,
"Gupta, Pekon" <pekon@ti.com>,
"bcousson@baylibre.com" <bcousson@baylibre.com>
Subject: Re: [PATCH v1 1/3] ARM: dts: am335x-bone: add support for beaglebone NAND cape
Date: Thu, 13 Mar 2014 09:55:48 -0700 [thread overview]
Message-ID: <20140313165547.GB5576@atomide.com> (raw)
In-Reply-To: <CAOCHtYhcJZ711XaJhBAPNSoHH-dK_tH8ZgB-AHZ86POXas1OfQ@mail.gmail.com>
* Robert Nelson <robertcnelson@gmail.com> [140313 06:33]:
> On Thu, Mar 13, 2014 at 8:03 AM, Nishanth Menon <nm@ti.com> wrote:
> > On 03/13/2014 01:19 AM, Gupta, Pekon wrote:
> > [..]
> >>> diff --git a/arch/arm/boot/dts/am335x-bone-memory-cape.dts b/arch/arm/boot/dts/am335x-bone-memory-cape.dts
> >>> new file mode 100644
> >>> index 0000000..7ab088d
> >>> --- /dev/null
> >>> +++ b/arch/arm/boot/dts/am335x-bone-memory-cape.dts
> >>>
> >> From discussions, option I could think are..
> >>
> >> (a) NAND cape node added in both 'am335x-bone.dts' and
> >> 'am335x-boneblack.dts' but "disabled" by default.
The capes can live their own revision cycle from beaglebones,
so separate .dts files for each cape are probably better.
> >> (b) NAND cape node in new '.dts' file (as mentioned above), and generate
> >> a separate blob individual for cape.
(b.2) NAND cape node in new '.dts' file but devices set to disabled
by default. Included into am335x-*bone*.dts files. The found
and configured cape devices set back to enabled by u-boot by
modifying the .dtb by using the existing ft_board_setup() and
fdt_find_and_setprop() in u-boot.
> >> (c) NAND cape node in existing 'am335x-bone-common.dtsi', "disabled"
> >> by default. But there is no guarantee that future boards remain
> >> compatible and same 'common_xx.dtsi' can be reused later.
This also has an issue of different revision cycle between beaglebones
and the capes.
> >> I'll wait for Tony/Benoit-C. to decide on what suits them, as they are the
> >> ones who have to maintain all these. Tony ?
> >>
> >
> > Key for us is that we'd have to live with what ever we introduce in
> > the interest of backward dtb compatibility. both (a) and (c) requires
> > hand modification by user of nand cape - considering this might be the
> > strategy for "most common capes", we might end up with confusing
> > entries that in many cases will require additional documentation
> > example: option a, c: consider both audio cape (which needs hdmi
> > disabled) and nand cape (which needs mmc2 disabled) - how'd the user
> > know which entries to enable/disable for the user of the cape -
> > documentation needed and potentially user error prone implementation
> > as well.
> >
> > There is as well a option (d) where we wait for FDT overlay to mature,
> > write up a resource manager and support all level capes.
Yeah option (d) and having the capes hotpluggable is probably the best
way to go in the long run. Meanwhile, I'd suggest researching if
option (b.2) above is doable for enabling some capes.
> (b) is the direction i'm currently trying to transition the
> beagleboard.org community till (d) actually shows any life/hope again.
>
> example:
> https://github.com/RobertCNelson/linux-dev/tree/am33x-v3.13/patches/static-capes
>
> I really like Nishanth's simpler version he posted, so I'll be
> converting mine to that style later today.
Yeah except most of these capes should be included into the
am335x-*bone*.dts files as in (b.2) above. All the internal omap
devices are still there on the SoC even if not wired to the cape.
The GPMC devices may cause more of an issue as we cannot just override
the chip select wiring by modifying the .dtb. But for the internal
devices modifying the .dtb to enable some of them might be doable.
> Also with u-boot v2014.04-rcX we now have "test -e" (exist support) so
> we can actively check for the presence of <board>-<cape>.dtb and
> safely fall back to <board>.dtb if it didn't actually exist. The only
> requirement is the end user specify the <cape> as a variable in
> uEnv.txt
>
> https://github.com/RobertCNelson/Bootloader-Builder/blob/master/patches/v2014.04-rc2/0001-am335x_evm-uEnv.txt-bootz-n-fixes.patch#L76
That's great!
Regards,
Tony
next prev parent reply other threads:[~2014-03-13 16:56 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-12 10:49 [PATCH v1 0/3] add parallel NAND support for TI's new OMAPx and AMxx platforms (Part-2) Pekon Gupta
2014-03-12 10:49 ` [PATCH v1 1/3] ARM: dts: am335x-bone: add support for beaglebone NAND cape Pekon Gupta
2014-03-12 14:35 ` Nishanth Menon
2014-03-12 18:26 ` Gupta, Pekon
2014-03-12 18:57 ` Nishanth Menon
2014-03-12 19:08 ` Robert Nelson
2014-03-12 19:28 ` Tony Lindgren
2014-03-12 20:51 ` Nishanth Menon
2014-03-12 21:13 ` Gupta, Pekon
2014-03-12 21:53 ` Nishanth Menon
2014-03-13 6:19 ` Gupta, Pekon
2014-03-13 13:03 ` Nishanth Menon
2014-03-13 13:30 ` Robert Nelson
2014-03-13 16:55 ` Tony Lindgren [this message]
2014-03-12 10:49 ` [PATCH v1 2/3] ARM: dts: am335x-boneblack: " Pekon Gupta
2014-03-12 10:49 ` [PATCH v1 3/3] ARM: dts: am437x-gp-evm: add support for parallel NAND flash Pekon Gupta
2014-03-12 14:39 ` Nishanth Menon
2014-03-12 18:30 ` Gupta, Pekon
-- strict thread matches above, loose matches on Subject: below --
2014-06-24 12:24 [PATCH v1 0/3] ARM: dts: am335x-bone: Beaglebone cape DTS Pekon Gupta
2014-06-24 12:24 ` [PATCH v1 1/3] ARM: dts: am335x-bone: add support for beaglebone NAND cape Pekon Gupta
2014-06-25 15:27 ` Ezequiel Garcia
2014-06-26 5:43 ` Gupta, Pekon
2014-06-26 10:40 ` Tony Lindgren
2014-06-26 15:06 ` Guido Martínez
2014-07-01 7:01 ` Gupta, Pekon
2014-07-01 23:42 ` Guido Martínez
2014-07-02 5:29 ` Gupta, Pekon
2014-06-26 19:48 ` Guido Martínez
2014-06-27 21:06 ` Gupta, Pekon
2014-07-01 8:47 ` Tony Lindgren
2014-07-01 9:07 ` Gupta, Pekon
2014-07-01 13:28 ` Tony Lindgren
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=20140313165547.GB5576@atomide.com \
--to=tony@atomide.com \
--cc=bcousson@baylibre.com \
--cc=linux-mtd@lists.infradead.org \
--cc=linux-omap@vger.kernel.org \
--cc=nm@ti.com \
--cc=pekon@ti.com \
--cc=robertcnelson@gmail.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).