From: Tony Lindgren <tony@atomide.com>
To: "Gupta, Pekon" <pekon@ti.com>
Cc: linux-omap <linux-omap@vger.kernel.org>,
Ezequiel Garcia <ezequiel.garcia@free-electrons.com>,
Stefan Roese <sr@denx.de>,
Javier Martinez Canillas <javier@dowhile0.org>,
"Quadros, Roger" <rogerq@ti.com>,
"Jason Kridner (jkridner@gmail.com)" <jkridner@gmail.com>,
"Robert Nelson (robertcnelson@gmail.com)"
<robertcnelson@gmail.com>
Subject: Re: [PATCH v7 1/4] ARM: dts: am335x-bone: add support for beaglebone NAND cape
Date: Sun, 22 Jun 2014 22:48:39 -0700 [thread overview]
Message-ID: <20140623054838.GB28884@atomide.com> (raw)
In-Reply-To: <20980858CB6D3A4BAE95CA194937D5E73EAF6A7C@DBDE04.ent.ti.com>
* Gupta, Pekon <pekon@ti.com> [140622 22:42]:
> Hi Tony,
>
> Just reviving this thread for some information..
>
> >From: Tony Lindgren [mailto:tony@atomide.com]
> >Sent: Monday, May 19, 2014 9:56 PM
> >To: Gupta, Pekon
> >Cc: linux-omap; Ezequiel Garcia; Stefan Roese; Javier Martinez Canillas; Quadros, Roger
> >Subject: Re: [PATCH v7 1/4] ARM: dts: am335x-bone: add support for beaglebone NAND cape
> >
> >* Pekon Gupta <pekon@ti.com> [140519 02:16]:
> >> --- a/arch/arm/boot/dts/am335x-bone.dts
> >> +++ b/arch/arm/boot/dts/am335x-bone.dts
> >> @@ -9,6 +9,7 @@
> >>
> >> #include "am33xx.dtsi"
> >> #include "am335x-bone-common.dtsi"
> >> +#include "am335x-bone-memory-cape.dts"
> >>
> >> &ldo3_reg {
> >> regulator-min-microvolt = <1800000>;
> >> --- a/arch/arm/boot/dts/am335x-boneblack.dts
> >> +++ b/arch/arm/boot/dts/am335x-boneblack.dts
> >> @@ -9,6 +9,7 @@
> >>
> >> #include "am33xx.dtsi"
> >> #include "am335x-bone-common.dtsi"
> >> +#include "am335x-bone-memory-cape.dts"
> >>
> >> &ldo3_reg {
> >> regulator-min-microvolt = <1800000>;
> >
> >Based on the recent discussions on the capes, it seems that nobody
> >wants to implement toggling of the capes in u-boot. And as there
> >can be other capes using GPMC bus, we can't merge this.
>
> I have been able to get toggling of capes (enabling and disabling of DT nodes)
> in u-boot. It was already there in u-boot mainline [1], may be no-body tried it.
>
> Example: Below sequence works for NAND cape patch mentioned in this thread.
> ---------------
> /* 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"
Cool. Now all we need is a few helper functions in u-boot
so it can be done a bit easier :)
Regards,
Tony
next prev parent reply other threads:[~2014-06-23 5:48 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-19 9:15 [PATCH v7 0/4] add parallel NAND support for TI's new OMAPx and AMxx platforms (Part-2) Pekon Gupta
2014-05-19 9:15 ` [PATCH v7 1/4] ARM: dts: am335x-bone: add support for beaglebone NAND cape Pekon Gupta
2014-05-19 16:25 ` Tony Lindgren
2014-05-19 17:52 ` Gupta, Pekon
2014-05-19 18:16 ` Ezequiel Garcia
2014-05-19 18:22 ` Gupta, Pekon
2014-05-19 18:39 ` Robert Nelson
2014-05-19 18:51 ` Gupta, Pekon
2014-05-19 18:58 ` Robert Nelson
[not found] ` <DAEAC432-DB0E-4C30-9B85-71D8987FBF77@ti.com>
2014-05-19 19:22 ` Robert Nelson
2014-05-19 20:01 ` Kridner, Jason
2014-05-19 20:11 ` Robert Nelson
2014-06-23 5:40 ` Gupta, Pekon
2014-06-23 5:48 ` Tony Lindgren [this message]
2014-06-23 6:13 ` Jason Kridner
2014-06-24 8:03 ` Gupta, Pekon
2014-05-19 9:15 ` [PATCH v7 2/4] ARM: dts: am437x-gp-evm: add support for parallel NAND flash Pekon Gupta
2014-05-19 22:06 ` Tony Lindgren
2014-05-20 4:06 ` Gupta, Pekon
2014-05-20 5:52 ` Tony Lindgren
2014-05-20 6:09 ` Gupta, Pekon
2014-05-27 21:19 ` Tony Lindgren
2014-05-19 9:15 ` [PATCH v7 3/4] ARM: dts: dra7: " Pekon Gupta
2014-05-19 22:12 ` Tony Lindgren
2014-05-19 9:15 ` [PATCH v7 4/4] ARM: dts: am43xx: fix starting offset of NAND.filesystem MTD partition Pekon Gupta
2014-05-19 22:12 ` 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=20140623054838.GB28884@atomide.com \
--to=tony@atomide.com \
--cc=ezequiel.garcia@free-electrons.com \
--cc=javier@dowhile0.org \
--cc=jkridner@gmail.com \
--cc=linux-omap@vger.kernel.org \
--cc=pekon@ti.com \
--cc=robertcnelson@gmail.com \
--cc=rogerq@ti.com \
--cc=sr@denx.de \
/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.