Re: touch screen ads7846/7843 devicetree support

2011-01-27 Thread Mike Frysinger
On Thu, Jan 27, 2011 at 01:10, Thomas Chou wrote: > We need devicetree support on ads7846/7843 touch screen driver. Do you have > plan on it? We are moving to devicetree on nios2, so do arm/mips/x86. what part are you using exactly ? -mike ___ devicetree

Re: [uclinux-dist-devel] touch screen ads7846/7843 devicetree support

2011-06-09 Thread Mike Frysinger
On Thu, Jun 9, 2011 at 02:07, Barry Song wrote: > BTW, is ads7846 from TI? or am i wrong? why is this question posted in > ADI' maillist? ads7846 is a TI part, but the driver supports more than just that part -mike ___ devicetree-discuss mailing list dev

Re: [PATCH v2] mtd: dataflash: add device tree probe support

2011-07-14 Thread Mike Frysinger
shouldnt there be #ifdef's around this ? not everyone supports devicetrees. -mike ___ devicetree-discuss mailing list devicetree-discuss@lists.ozlabs.org https://lists.ozlabs.org/listinfo/devicetree-discuss

Re: [PATCH v2] mtd: dataflash: add device tree probe support

2011-07-19 Thread Mike Frysinger
On Wed, Jul 20, 2011 at 01:32, Artem Bityutskiy wrote: > On Wed, 2011-07-20 at 13:28 +0800, Shawn Guo wrote: >> On Wed, Jul 20, 2011 at 08:17:45AM +0300, Artem Bityutskiy wrote: >> > On Wed, 2011-07-20 at 12:55 +0800, Shawn Guo wrote: >> > > On Wed, Jul 20, 2011 at 07:40:38AM +0300, Artem Bityutski

Re: [PATCH] mtd: gpio-nand: add device tree bindings

2011-07-27 Thread Mike Frysinger
On Wed, Jul 27, 2011 at 12:55, Jamie Iles wrote: > On Wed, Jul 27, 2011 at 02:45:01PM -0500, Scott Wood wrote: >> On Wed, 27 Jul 2011 15:03:30 +0100 >> Jamie Iles wrote: >> >> > --- /dev/null >> > +++ b/Documentation/devicetree/bindings/mtd/gpio-nand.txt >> > @@ -0,0 +1,43 @@ >> > +GPIO assisted N

Re: [PATCH] mtd: gpio-nand: add device tree bindings

2011-07-27 Thread Mike Frysinger
On Wed, Jul 27, 2011 at 07:03, Jamie Iles wrote: > --- a/drivers/mtd/nand/gpio.c > +++ b/drivers/mtd/nand/gpio.c > > +static const struct of_device_id gpio_nand_id_table[] = { > +       { .compatible = "gpio-nand" }, > +       {} > +}; > +MODULE_DEVICE_TABLE(of, gpio_nand_id_table); all this new l

Re: [PATCH] USB: isp1362: Add devicetree support

2011-08-09 Thread Mike Frysinger
data = kzalloc(sizeof(struct isp1362_platform_data), > GFP_KERNEL); sizeof(*pdata) the rest of the non-of code looks fine to me. as for of, i havent used it before, so i have no feedback on it as long as it's behind CONFIG_OF (which it is). Acked-by: Mike Frysinger -mike

[PATCH] fdtdump: rename from ftdump

2011-10-25 Thread Mike Frysinger
The freetype package already installs a binary named "ftdump", so the dtc package conflicts with that. So rename the newer dtc tool to "fdtdump". This even makes a bit more sense: ftdump: [F]lat device [T]ree [dump] fdtdump: [F]lat [D]evice [T]ree [dump]

Re: RFC: New release for DTC?

2012-11-17 Thread Mike Frysinger
On Thursday 23 August 2012 21:36:25 David Gibson wrote: > On Thu, Aug 23, 2012 at 08:15:39PM +0200, Yann E. MORIN wrote: > > Following advice from Jon Loeliger, I would suggest that a new release > > of DTC be tagged and packaged. > > > > It is important for some projects to rely on a released ver

Re: [U-Boot] [PATCH v3 02/18] fdt: Add header guard to fdtdec.h

2012-07-19 Thread Mike Frysinger
On Thursday 12 July 2012 11:25:02 Simon Glass wrote: > This makes it easier to include this header from other headers. Acked-by: Mike Frysinger > --- a/include/fdtdec.h > +++ b/include/fdtdec.h > > const u8 *fdtdec_locate_byte_array(const void

Re: [PATCH] fdtget-runtest.sh: Fix failures when /bin/sh isn't bash

2012-11-02 Thread Mike Frysinger
On Tuesday 20 March 2012 22:23:46 Stephen Warren wrote: > On Ubuntu, /bin/sh is dash (at least by default), and dash's echo doesn't > accept the -e option. This means that fdtget-runtest.sh's EXPECT file will > contain "-e foo" rather than just "foo", which causes a test failure. > > To work aroun

Re: [PATCH] fdtget-runtest.sh: use printf instead of /bin/echo -e

2012-11-09 Thread Mike Frysinger
On Tuesday 06 November 2012 13:00:31 Stephen Warren wrote: > Mike, should I re-write this with you as the git author? nah, you did the work -mike signature.asc Description: This is a digitally signed message part. ___ devicetree-discuss mailing list d

Re: [PATCH] fdtget-runtest.sh: use printf instead of /bin/echo -e

2012-11-09 Thread Mike Frysinger
On Tuesday 06 November 2012 21:42:06 David Gibson wrote: > Ah, so it was. I didn't realise there had been such a long delay > between the initial patch and this discussion. yes, i was perusing my backlog on the list when i came across it ;) -mike signature.asc Description: This is a digitally s

[PATCH 3/8] die: constify format string arg

2013-04-08 Thread Mike Frysinger
We only display this string, so there's no need for it to be writable. Constify away! Signed-off-by: Mike Frysinger --- util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.h b/util.h index 3c20b15..d856eb9 100644 --- a/util.h +++ b/util.h @@ -23,7

[PATCH 6/8] fdtdump: add a --scan option

2013-04-08 Thread Mike Frysinger
inary data. Signed-off-by: Mike Frysinger --- fdtdump.c | 46 -- 1 file changed, 44 insertions(+), 2 deletions(-) diff --git a/fdtdump.c b/fdtdump.c index b685ed1..7b967aa 100644 --- a/fdtdump.c +++ b/fdtdump.c @@ -2,12 +2,14 @@ * fdtdump.c - Contri

[PATCH 5/8] fdtdump: make usage a bit more friendly

2013-04-08 Thread Mike Frysinger
This starts a new usage framework and then cuts fdtdump over to it. Now we can do `fdtdump -h` and get something useful back. Signed-off-by: Mike Frysinger --- fdtdump.c | 31 +++ util.c| 53 + util.h| 61

[PATCH 8/8] util: drop "long" from usage helpers

2013-04-08 Thread Mike Frysinger
Now that all utils have converted to the new usage framework, we can rename to just plain "usage()" and avoid naming conflicts. Signed-off-by: Mike Frysinger --- dtc.c | 6 +++--- fdtdump.c | 2 +- fdtget.c | 6 +++--- fdtput.c | 8 util.c| 6 +++--- util

[PATCH 4/8] util_version: new helper for displaying version info

2013-04-08 Thread Mike Frysinger
This is so all utilities can have this flag and not just dtc. Signed-off-by: Mike Frysinger --- dtc.c | 5 + util.c | 7 +++ util.h | 5 + 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/dtc.c b/dtc.c index d40e220..e4e1b84 100644 --- a/dtc.c +++ b/dtc.c @@ -21,8

[PATCH 1/8] utilfdt_read_err: use xmalloc funcs

2013-04-08 Thread Mike Frysinger
We've got these handy helpers, so let's use them. Signed-off-by: Mike Frysinger --- util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util.c b/util.c index b081fa8..12f0614 100644 --- a/util.c +++ b/util.c @@ -212,12 +212,12 @@ int utilfdt_read_err(

[PATCH 0/8] usage()/--help clean up & unification

2013-04-08 Thread Mike Frysinger
that I noticed as I was hacking on things. Really I just wanted a --scan option in the fdtdump tool :). Mike Frysinger (8): utilfdt_read_err: use xmalloc funcs utilfdt_read: pass back up the length of data read die: constify format string arg util_version: new helper for displaying

[PATCH 2/8] utilfdt_read: pass back up the length of data read

2013-04-08 Thread Mike Frysinger
For a follow up commit, we want to be able to scan the buffer that was returned to us. In order to do that safely, we need to know how big the buffer actually is, so pass that back if requested. Signed-off-by: Mike Frysinger --- fdtget.c | 2 +- fdtput.c | 2 +- util.c | 8 +--- util.h

[PATCH 7/8] dtc/fdt{get, put}/convert-dtsv0-lexer: convert to new usage helpers

2013-04-08 Thread Mike Frysinger
This helps standardize the flag processing and the usage screens. Only lightly tested; would be great if someone who uses these utils could double check. Signed-off-by: Mike Frysinger --- convert-dtsv0-lexer.l | 22 +++--- dtc.c | 111

Re: [PATCH 0/8] usage()/--help clean up & unification

2013-04-08 Thread Mike Frysinger
there's a minor bug or two in this patch series. i'll wait to see if there is any feedback before respinning though. -mike signature.asc Description: This is a digitally signed message part. ___ devicetree-discuss mailing list devicetree-discuss@lists

[PATCH 00/10 v2] usage()/--help clean up & unification

2013-04-10 Thread Mike Frysinger
that I noticed as I was hacking on things. Really I just wanted a --scan option in the fdtdump tool :). For the v2 series, I fixed a compile/output bug in one of the patches and this now passes `make check`. I also added a --debug option to fdtdump. Mike Frysinger (10): utilfdt_read_err: use

[PATCH 02/10] utilfdt_read: pass back up the length of data read

2013-04-10 Thread Mike Frysinger
For a follow up commit, we want to be able to scan the buffer that was returned to us. In order to do that safely, we need to know how big the buffer actually is, so pass that back if requested. Signed-off-by: Mike Frysinger --- fdtget.c | 2 +- fdtput.c | 2 +- tests

[PATCH 04/10] util_version: new helper for displaying version info

2013-04-10 Thread Mike Frysinger
This is so all utilities can have this flag and not just dtc. Acked-by: David Gibson Signed-off-by: Mike Frysinger --- dtc.c | 5 + util.c | 7 +++ util.h | 5 + 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/dtc.c b/dtc.c index d40e220..e4e1b84 100644 --- a/dtc.c

[PATCH 01/10] utilfdt_read_err: use xmalloc funcs

2013-04-10 Thread Mike Frysinger
We've got these handy helpers, so let's use them. Acked-by: David Gibson Signed-off-by: Mike Frysinger --- util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util.c b/util.c index b081fa8..12f0614 100644 --- a/util.c +++ b/util.c @@ -212,12 +212

[PATCH 03/10] die: constify format string arg

2013-04-10 Thread Mike Frysinger
We only display this string, so there's no need for it to be writable. Constify away! Acked-by: David Gibson Signed-off-by: Mike Frysinger --- util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.h b/util.h index 3c20b15..d856eb9 100644 --- a/util.h +++ b/u

[PATCH 06/10] fdtdump: add a --scan option

2013-04-10 Thread Mike Frysinger
inary data. Signed-off-by: Mike Frysinger --- fdtdump.c | 46 -- 1 file changed, 44 insertions(+), 2 deletions(-) diff --git a/fdtdump.c b/fdtdump.c index b685ed1..7b967aa 100644 --- a/fdtdump.c +++ b/fdtdump.c @@ -2,12 +2,14 @@ * fdtdump.c - Contri

[PATCH 05/10] fdtdump: make usage a bit more friendly

2013-04-10 Thread Mike Frysinger
This starts a new usage framework and then cuts fdtdump over to it. Now we can do `fdtdump -h` and get something useful back. Signed-off-by: Mike Frysinger --- fdtdump.c | 31 +++ util.c| 54 ++ util.h| 61

[PATCH 07/10] dtc/fdt{get, put}/convert-dtsv0-lexer: convert to new usage helpers

2013-04-10 Thread Mike Frysinger
This helps standardize the flag processing and the usage screens. Only lightly tested; would be great if someone who uses these utils could double check. Signed-off-by: Mike Frysinger --- convert-dtsv0-lexer.l | 22 +++--- dtc.c | 111

[PATCH 08/10] util: drop "long" from usage helpers

2013-04-10 Thread Mike Frysinger
Now that all utils have converted to the new usage framework, we can rename to just plain "usage()" and avoid naming conflicts. Signed-off-by: Mike Frysinger --- convert-dtsv0-lexer.l | 2 +- dtc.c | 6 +++--- fdtdump.c | 2 +- fdtget.c

[PATCH 09/10] util: add common ARRAY_SIZE define

2013-04-10 Thread Mike Frysinger
I want to use this in more places, so put it in util.h rather than copying & pasting it into another file. Signed-off-by: Mike Frysinger --- convert-dtsv0-lexer.l | 2 -- dtc.h | 1 - util.h| 2 ++ 3 files changed, 2 insertions(+), 3 deletions(-) diff --g

[PATCH 10/10] fdtdump: add a debug mode

2013-04-10 Thread Mike Frysinger
When hacking raw fdt files, it's useful to know the actual offsets into the file each node appears. Add a --debug mode that includes this. Signed-off-by: Mike Frysinger --- fdtdump.c | 40 1 file changed, 36 insertions(+), 4 deletions(-) diff --

Re: [PATCH 05/10] fdtdump: make usage a bit more friendly

2013-04-11 Thread Mike Frysinger
On Thursday 11 April 2013 00:00:14 David Gibson wrote: > On Wed, Apr 10, 2013 at 02:29:10PM -0400, Mike Frysinger wrote: > > This starts a new usage framework and then cuts fdtdump over to it. > > Now we can do `fdtdump -h` and get something useful back. > > Hrm. The pr

Re: [PATCH 06/10] fdtdump: add a --scan option

2013-04-11 Thread Mike Frysinger
On Thursday 11 April 2013 00:11:30 David Gibson wrote: > On Wed, Apr 10, 2013 at 02:29:11PM -0400, Mike Frysinger wrote: > > Often times, fdts get embedded in other larger files. Rather than force > > people to `dd` the blob out themselves, make the fdtdump file smarter. > >

Re: [PATCH 02/10] utilfdt_read: pass back up the length of data read

2013-04-15 Thread Mike Frysinger
On Monday 15 April 2013 00:58:38 David Gibson wrote: > On Wed, Apr 10, 2013 at 02:29:07PM -0400, Mike Frysinger wrote: > > For a follow up commit, we want to be able to scan the buffer that was > > returned to us. In order to do that safely, we need to know how big > > the b

Re: [PATCH 10/10] fdtdump: add a debug mode

2013-04-15 Thread Mike Frysinger
On Monday 15 April 2013 01:12:06 David Gibson wrote: > On Wed, Apr 10, 2013 at 02:29:15PM -0400, Mike Frysinger wrote: > > -static void dump_blob(void *blob) > > +static const char *tagname(uint32_t tag) > > { > > + static const char * const names[] =

[PATCH 02/10] utilfdt_read: pass back up the length of data read

2013-04-15 Thread Mike Frysinger
For a follow up commit, we want to be able to scan the buffer that was returned to us. In order to do that safely, we need to know how big the buffer actually is, so create a new set of funcs to pass that back. Signed-off-by: Mike Frysinger --- util.c | 19 --- util.h | 13

[PATCH 01/10] utilfdt_read_err: use xmalloc funcs

2013-04-15 Thread Mike Frysinger
We've got these handy helpers, so let's use them. Acked-by: David Gibson Signed-off-by: Mike Frysinger --- util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util.c b/util.c index b081fa8..12f0614 100644 --- a/util.c +++ b/util.c @@ -212,12 +212

[PATCH 04/10] util_version: new helper for displaying version info

2013-04-15 Thread Mike Frysinger
This is so all utilities can have this flag and not just dtc. Acked-by: David Gibson Signed-off-by: Mike Frysinger --- dtc.c | 5 + util.c | 7 +++ util.h | 5 + 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/dtc.c b/dtc.c index d40e220..e4e1b84 100644 --- a/dtc.c

[PATCH 06/10] fdtdump: add a --scan option

2013-04-15 Thread Mike Frysinger
inary data. Signed-off-by: Mike Frysinger --- fdtdump.c | 46 -- 1 file changed, 44 insertions(+), 2 deletions(-) diff --git a/fdtdump.c b/fdtdump.c index a6e522c..c8a3ee7 100644 --- a/fdtdump.c +++ b/fdtdump.c @@ -2,12 +2,14 @@ * fdtdump.c - Contri

[PATCH 00/10 v3] usage()/--help clean up & unification, and extend fdtdump

2013-04-15 Thread Mike Frysinger
an rework existing ones - rename dprintf() to dumpf() in fdtdump Mike Frysinger (10): utilfdt_read_err: use xmalloc funcs utilfdt_read: pass back up the length of data read die: constify format string arg util_version: new helper for displaying version info fdtdump: make usage a bit more

[PATCH 03/10] die: constify format string arg

2013-04-15 Thread Mike Frysinger
We only display this string, so there's no need for it to be writable. Constify away! Acked-by: David Gibson Signed-off-by: Mike Frysinger --- util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.h b/util.h index 1f0ef47..b9c6d7e 100644 --- a/util.h +++ b/u

[PATCH 05/10] fdtdump: make usage a bit more friendly

2013-04-15 Thread Mike Frysinger
This starts a new usage framework and then cuts fdtdump over to it. Now we can do `fdtdump -h` and get something useful back. Signed-off-by: Mike Frysinger --- fdtdump.c | 31 +++ util.c| 54 ++ util.h| 61

[PATCH 07/10] dtc/fdt{get, put}/convert-dtsv0-lexer: convert to new usage helpers

2013-04-15 Thread Mike Frysinger
This helps standardize the flag processing and the usage screens. Only lightly tested; would be great if someone who uses these utils could double check. Signed-off-by: Mike Frysinger --- convert-dtsv0-lexer.l | 22 +++--- dtc.c | 111

[PATCH 08/10] util: drop "long" from usage helpers

2013-04-15 Thread Mike Frysinger
Now that all utils have converted to the new usage framework, we can rename to just plain "usage()" and avoid naming conflicts. Signed-off-by: Mike Frysinger --- convert-dtsv0-lexer.l | 2 +- dtc.c | 6 +++--- fdtdump.c | 2 +- fdtget.c

[PATCH 09/10] util: add common ARRAY_SIZE define

2013-04-15 Thread Mike Frysinger
I want to use this in more places, so put it in util.h rather than copying & pasting it into another file. Acked-by: David Gibson Signed-off-by: Mike Frysinger --- convert-dtsv0-lexer.l | 2 -- dtc.h | 1 - util.h| 2 ++ 3 files changed, 2 insertions(+

[PATCH 10/10] fdtdump: add a debug mode

2013-04-15 Thread Mike Frysinger
When hacking raw fdt files, it's useful to know the actual offsets into the file each node appears. Add a --debug mode that includes this. Signed-off-by: Mike Frysinger --- fdtdump.c | 41 + 1 file changed, 37 insertions(+), 4 deletions(-) diff --

Re: [PATCH v2 2/3] Add fdtgrep to grep and subset FDTs

2013-04-15 Thread Mike Frysinger
On Friday 15 February 2013 17:49:37 Simon Glass wrote: > --- /dev/null > +++ b/fdtgrep.c hopefully my patchset gets merged soon in which case you should rebase on top of it to use the new common getopts code > +/* Define DEBUG to get some debugging output on stderr */ > +#ifdef DEBUG > +#define

Re: [PATCH 04/10] util_version: new helper for displaying version info

2013-04-21 Thread Mike Frysinger
On Sunday 21 April 2013 15:26:03 Jon Loeliger wrote: > > On Mon, Apr 15, 2013 at 10:13:11PM -0400, Mike Frysinger wrote: > > > This is so all utilities can have this flag and not just dtc. > > > > > >=20 > > > > > > Acked-by: David Gibson

Re: [PATCH 04/10] util_version: new helper for displaying version info

2013-04-22 Thread Mike Frysinger
his series > > ... Message-Id: <1366078397-14889-3-git-send-email-vap...@gentoo.org> > > Please send me the version you want applied. attached -mike From 7a0e8d370b62b902ccf3defb41e9af2d3d34e177 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 8 Apr 2013 00:56:54 -0400 Subject

Re: [PATCH 04/10] util_version: new helper for displaying version info

2013-04-22 Thread Mike Frysinger
On Monday 22 April 2013 16:44:54 Jon Loeliger wrote: > > On Monday 22 April 2013 11:37:12 Jon Loeliger wrote: > > > > hmm, looks like patch #2 (utilfdt_read and handling of the len > > > > argument) was taken from the first patch series rather than the 3rd > > > > ? > > > > > > > > i'd suggest rev

Re: [PATCH 04/10] util_version: new helper for displaying version info

2013-04-22 Thread Mike Frysinger
On Thursday 18 April 2013 20:50:46 David Gibson wrote: > On Mon, Apr 15, 2013 at 10:13:11PM -0400, Mike Frysinger wrote: > > This is so all utilities can have this flag and not just dtc. > > > > Acked-by: David Gibson > > Signed-off-by: Mike Frysinger > > P

Re: [U-Boot] [PATCH v2 04/17] fdt: Add basic support for decoding GPIO definitions

2011-12-05 Thread Mike Frysinger
On Monday 05 December 2011 17:52:01 Simon Glass wrote: > On Mon, Dec 5, 2011 at 2:22 PM, Stephen Warren wrote: > > On 12/05/2011 02:56 PM, Simon Glass wrote: > > * A system-wide GPIO ID, in which case the numbering is "virtual" (e.g. > > a concatenation of the GPIOs on all the present controllers),

Re: [PATCH v3 1/9] fdt: Add fdtdec functions to read byte array

2012-01-16 Thread Mike Frysinger
On Tuesday 17 January 2012 01:11:14 Simon Glass wrote: > From: Anton Staff > > Sometimes we don't need a full cell for each value. This provides > a simple function to read a byte array, both with and without > copying it. > > Signed-off-by: Simon Glass seems like getting s-o-b from Anton shou

Re: [PATCH v3 1/9] fdt: Add fdtdec functions to read byte array

2012-01-17 Thread Mike Frysinger
On Tuesday 17 January 2012 02:11:58 Simon Glass wrote: > On Mon, Jan 16, 2012 at 10:30 PM, Mike Frysinger wrote: > > On Tuesday 17 January 2012 01:11:14 Simon Glass wrote: > >> From: Anton Staff > >> > >> Sometimes we don't need a full cell for each value

Re: [PATCH v4 1/8] sandbox: fdt: Add support for CONFIG_OF_CONTROL

2012-02-15 Thread Mike Frysinger
On Wednesday 15 February 2012 18:51:11 Simon Glass wrote: > This adds support for a controlling fdt, mirroring the ARM implementation. merged into my sandbox branch -mike signature.asc Description: This is a digitally signed message part. ___ devicetre