From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Gibson 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 Message-ID: <20111220120148.GB5133@truffala.fritz.box> References: <1316711466-14199-1-git-send-email-sjg@chromium.org> <1316711466-14199-5-git-send-email-sjg@chromium.org> <20110923012007.GG12286@yookeroo.fritz.box> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org To: Simon Glass Cc: Devicetree Discuss List-Id: devicetree@vger.kernel.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 > 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 d= tc > >> 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 l= ist of > >> node, property pairs. The utility then looks up each node, finds the p= roperty > >> 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 t= o decode > >> the value as a string, or byte, etc. > >> > >> To read from stdin, use - as the file. > >> > >> Usage: > >> =A0 =A0 =A0 fdtget
[ ]... > >> Options: > >> =A0 =A0 =A0 -t =A0 =A0 =A0 Type of data > >> =A0 =A0 =A0 -h =A0 =A0 =A0 =A0 =A0 =A0 =A0Print this help > >> > >> =A0 =A0 =A0 =A0s=3Dstring, i=3Dint, u=3Dunsigned, x=3Dhex > >> =A0 =A0 =A0 Optional modifier prefix: > >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 hh or b=3Dbyte, h=3D2 byte, l=3D4 byte (de= fault) > >> > >> Signed-off-by: Simon Glass > > > > Acked-by: David Gibson > = > 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 directl= y. -- = 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