devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Gibson <david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org>
To: Simon Glass <sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
Cc: Devicetree Discuss
	<devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org>
Subject: Re: [PATCH v5 4/5] Add fdtget utility to read property values from a device tree
Date: Tue, 20 Dec 2011 23:01:48 +1100	[thread overview]
Message-ID: <20111220120148.GB5133@truffala.fritz.box> (raw)
In-Reply-To: <CAPnjgZ0Na+zAX2cj=b1HbyGW5iNLGLn2rAeQEfZ9LwBLDW6a1w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

On Thu, Dec 15, 2011 at 05:37:51PM -0800, Simon Glass wrote:
> Hi,
> 
> On Thu, Sep 22, 2011 at 6:20 PM, David Gibson
> <david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org> wrote:
> > On Thu, Sep 22, 2011 at 10:11:05AM -0700, Simon Glass wrote:
> >> This simply utility makes it easy for scripts to read values from the device
> >> tree. It is written in C and uses the same libfdt as the rest of the dtc
> >> package.
> >>
> >> What is it for:
> >> - Reading fdt values from scripts
> >> - Extracting fdt information within build systems
> >> - Looking at particular values without having to dump the entire tree
> >>
> >> To use it, specify the fdt binary file on command line followed by a list of
> >> node, property pairs. The utility then looks up each node, finds the property
> >> and displays the value.
> >>
> >> Each value is printed on a new line.
> >>
> >> fdtget tries to guess the type of each property based on its contents. This
> >> is not always reliable, so you can use the -t option to force fdtget to decode
> >> the value as a string, or byte, etc.
> >>
> >> To read from stdin, use - as the file.
> >>
> >> Usage:
> >>       fdtget <options> <dt file> [<node> <property>]...
> >> Options:
> >>       -t <type>       Type of data
> >>       -h              Print this help
> >>
> >> <type>        s=string, i=int, u=unsigned, x=hex
> >>       Optional modifier prefix:
> >>               hh or b=byte, h=2 byte, l=4 byte (default)
> >>
> >> Signed-off-by: Simon Glass <sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
> >
> > Acked-by: David Gibson <david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org>
> 
> Has this been applied? I cannot see it in the repo.

I haven't chased it, I'm afraid.  You'll need to follow up with Jon directly.

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson

  parent reply	other threads:[~2011-12-20 12:01 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-22 17:11 [PATCH v5 0/5] Add fdtget and fdtput for access to fdt from build system Simon Glass
     [not found] ` <1316711466-14199-1-git-send-email-sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2011-09-22 17:11   ` [PATCH v5 1/5] Add fdt read/write utility functions Simon Glass
     [not found]     ` <1316711466-14199-2-git-send-email-sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2011-09-22 18:54       ` Jon Loeliger
     [not found]         ` <E1R6oQ2-00016C-DY-CYoMK+44s/E@public.gmane.org>
2011-09-22 19:07           ` Simon Glass
2011-09-22 17:11   ` [PATCH v5 2/5] Make testutils use utilfdt Simon Glass
     [not found]     ` <1316711466-14199-3-git-send-email-sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2011-09-22 18:55       ` Jon Loeliger
2011-09-22 17:11   ` [PATCH v5 3/5] ftdump: use utilfdt to read blob Simon Glass
     [not found]     ` <1316711466-14199-4-git-send-email-sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2011-09-22 18:55       ` Jon Loeliger
2011-09-22 17:11   ` [PATCH v5 4/5] Add fdtget utility to read property values from a device tree Simon Glass
     [not found]     ` <1316711466-14199-5-git-send-email-sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2011-09-23  1:20       ` David Gibson
     [not found]         ` <20110923012007.GG12286-787xzQ0H9iQXU02nzanrWNbf9cGiqdzd@public.gmane.org>
2011-12-16  1:37           ` Simon Glass
     [not found]             ` <CAPnjgZ0Na+zAX2cj=b1HbyGW5iNLGLn2rAeQEfZ9LwBLDW6a1w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-12-20 12:01               ` David Gibson [this message]
     [not found]                 ` <20111220120148.GB5133-MK4v0fQdeXQXU02nzanrWNbf9cGiqdzd@public.gmane.org>
2011-12-22  6:47                   ` Simon Glass
     [not found]                     ` <CAPnjgZ3Y897hEQ2+qLO711Cuv9BvkQvcxusG1XQAyiG3UZ-M0g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-12-22 14:17                       ` Jon Loeliger
     [not found]                         ` <E1RdjSE-0007a8-86-CYoMK+44s/E@public.gmane.org>
2012-01-04  0:44                           ` Simon Glass
2011-09-22 17:11   ` [PATCH v5 5/5] Add fdtput utility to write property values to " Simon Glass
     [not found]     ` <1316711466-14199-6-git-send-email-sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2011-09-23  1:20       ` David Gibson

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=20111220120148.GB5133@truffala.fritz.box \
    --to=david-xt8fgy+axnrb3ne2bgzf6laj5h9x9tb+@public.gmane.org \
    --cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
    --cc=sjg-F7+t8E8rja9g9hUCZPvPmw@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 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).