[PATCH v3 09/12] libfdt: Add fdt_find_regions()

2013-06-13 Thread Simon Glass
Add a function to find regions in device tree given a list of nodes to include and properties to exclude. See the header file for full documentation. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: - Fix checkpatch checks about parenthesis alignment include/libfdt.h

[PATCH v3 0/12] Verified boot implementation based on FIT

2013-06-13 Thread Simon Glass
instead of calloc() within U-Boot's signature verification code - gd->fdt_blob is now available on all archs (generic board landed) Simon Glass (12): image: Add signing infrastructure image: Support signing of images image: Add RSA support for image signing mkimage: Add -k option to specify

Re: [U-Boot] [PATCH] fdt: Enhance dts/Makefile to be all things to all men

2013-05-29 Thread Simon Glass
Hi Stephen, On Wed, May 29, 2013 at 10:11 PM, Stephen Warren wrote: > On 05/29/2013 10:46 PM, Simon Glass wrote: > > Hi, > > > > On Wed, May 29, 2013 at 4:07 PM, Stephen Warren > <mailto:swar...@wwwdotorg.org>> wrote: > > > > On 05/29/2013

Re: [U-Boot] [PATCH] fdt: Enhance dts/Makefile to be all things to all men

2013-05-29 Thread Simon Glass
Hi, On Wed, May 29, 2013 at 4:07 PM, Stephen Warren wrote: > On 05/29/2013 04:36 PM, Wolfgang Denk wrote: > > Dear Stephen Warren, > > > > In message <51a67ec1.2000...@wwwdotorg.org> you wrote: > >> > >> To keep this process in check a bit, we could always pick a specific git > >> commit or relea

Re: [U-Boot] [PATCH] fdt: Enhance dts/Makefile to be all things to all men

2013-05-29 Thread Simon Glass
Hi Wolfgang, On Tue, May 28, 2013 at 2:08 PM, Wolfgang Denk wrote: > Dear Simon Glass, > > In message <1369769778-12455-1-git-send-email-...@chromium.org> you wrote: >> >> Some device tree files use the word 'linux' which gets replaced with '1' b

Re: [PATCH] fdt: Enhance dts/Makefile to be all things to all men

2013-05-29 Thread Simon Glass
Hi Stephen, On Tue, May 28, 2013 at 1:57 PM, Stephen Warren wrote: > On 05/28/2013 01:36 PM, Simon Glass wrote: >> There are a few partially conflicting requirements in compiling the device >> tree, since U-Boot relies on whatever is installed on the build machine. >> &g

[PATCH] fdt: Enhance dts/Makefile to be all things to all men

2013-05-28 Thread Simon Glass
test it in different environments. Signed-off-by: Tom Warren Signed-off-by: Simon Glass --- dts/Makefile | 34 +- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/dts/Makefile b/dts/Makefile index 03e163e..1f6fabb 100644 --- a/dts/Makefile +++ b/dts/Makef

Re: [U-Boot] [PATCH v4 0/19] Allow images to work on sandbox

2013-05-09 Thread Simon Glass
Hi Tom, On Thu, May 9, 2013 at 12:36 PM, Tom Rini wrote: > On Tue, May 07, 2013 at 09:11:44AM -0700, Simon Glass wrote: > >> This series adjusts the image code to work with sandbox and prepares it for >> verified boot to come later. >> >> The primary goal here is t

[PATCH v4 06/19] libfdt: Add fdt_next_subnode() to permit easy subnode iteration

2013-05-07 Thread Simon Glass
code body */ } Also, it doesn't require two levels of indentation for the loop body. Signed-off-by: Simon Glass (Cherry-picked from dtc commit 4e76ec79) --- Changes in v4: - Bring in upstream version of fdt_first/next_subnode() Changes in v3: None Changes in v2: None include/libfdt.h |

[PATCH v4 0/19] Allow images to work on sandbox

2013-05-07 Thread Simon Glass
"function" Simon Glass (19): env: Fix minor comment typos in cmd_nvedit Add minor updates to README.fdt-control hash: Add a way to calculate a hash for any algortihm bootstage: Don't build for HOSTCC mkimage: Move ARRAY_SIZE to header file libfdt: Add fdt_next_subnode

Re: [PATCH v8 0/3] Runtime Interpreted Power Sequences

2013-04-26 Thread Simon Glass
Hi, On Thu, Nov 15, 2012 at 10:38 PM, Alexandre Courbot wrote: > Hopefully the final series before the feature gets merged. Anton Vorontsov > kindly accepted to take it into his tree, so this series is mostly a call for > acks, tests and reviews notices before the merge window for 3.8 opens. If y

[PATCH v2] libfdt: Add fdt_next_subnode() to permit easy subnode iteration

2013-04-26 Thread Simon Glass
code body */ } Also, it doesn't require two levels of indentation for the loop body. Signed-off-by: Simon Glass --- Changes in v2: - Use first/next pattern to avoid needing a depth parameter libfdt/fdt.c | 28 ++ libfdt/libfdt.h | 22 +++ tests/Make

[PATCH] libfdt: Add fdt_next_subnode() to permit easy subnode iteration

2013-04-25 Thread Simon Glass
t_subnode(fdt, offset, &depth)) { /* code body */ } Also, it doesn't require two levels of indentation for the loop body. Signed-off-by: Simon Glass --- libfdt/fdt.c | 12 ++ libfdt/libfdt.h | 17 + tests/Makefile.tests | 3 +- tests/run_tests.sh|

Re: [PATCH v2 1/3] libfdt: Add function to find regions in an FDT

2013-04-15 Thread Simon Glass
Hi David, On Fri, Mar 22, 2013 at 6:18 AM, David Gibson wrote: > On Tue, Mar 12, 2013 at 08:46:12PM -0700, Simon Glass wrote: >> Hi, >> >> On Fri, Feb 15, 2013 at 2:49 PM, Simon Glass wrote: >> > Given a set of nodes and properties, find the regions of the device

Re: [PATCH v4 1/3] i2c: mux: Add i2c-arbitrator-cros-ec 'mux' driver

2013-04-05 Thread Simon Glass
HI Wolfram, On Wed, Apr 3, 2013 at 12:19 PM, Wolfram Sang wrote: > Doug, > >> Separately from a discussion of the technical merits, I'd say that >> this patch is needed because the Embedded Controller (EC) on the ARM >> Chromebook shipped expecting to communicate with this scheme. While > > Uhrm

Re: [PATCH v6 0/6] Add ChromeOS Embedded Controller support

2013-03-20 Thread Simon Glass
Hi Samuel, On Wed, Mar 20, 2013 at 1:52 AM, Samuel Ortiz wrote: > Hi Simon, > > On Wed, Mar 20, 2013 at 09:14:56AM +0100, Samuel Ortiz wrote: >> On Tue, Mar 19, 2013 at 07:01:42PM -0700, Simon Glass wrote: >> > Hi Samuel, >> > >> > On Tue, Mar 19,

Re: [PATCH v6 0/6] Add ChromeOS Embedded Controller support

2013-03-19 Thread Simon Glass
Hi Samuel, On Tue, Mar 19, 2013 at 6:12 PM, Samuel Ortiz wrote: > On Wed, Mar 20, 2013 at 01:56:52AM +0100, Samuel Ortiz wrote: >> Hi Simon, >> >> On Mon, Feb 25, 2013 at 02:08:35PM -0800, Simon Glass wrote: >> > The ChromeOS Embedded Controller (EC) is an Open Sour

Re: [PATCH v6 0/6] Add ChromeOS Embedded Controller support

2013-03-18 Thread Simon Glass
Hi Samuel, On Wed, Feb 27, 2013 at 12:40 AM, Samuel Ortiz wrote: > Hi Simon, > > On Tue, Feb 26, 2013 at 09:13:06PM -0800, Simon Glass wrote: >> Hi Samuel, >> >> On Mon, Feb 25, 2013 at 2:08 PM, Simon Glass wrote: >> > The ChromeOS Embedded Controller (EC)

Re: [PATCH v2 1/3] libfdt: Add function to find regions in an FDT

2013-03-12 Thread Simon Glass
Hi, On Fri, Feb 15, 2013 at 2:49 PM, Simon Glass wrote: > Given a set of nodes and properties, find the regions of the device tree > which describe those parts. > > A test is provided which builds a tree while tracking where the regions > should be, then calls fdt_first/next_r

Re: [PATCH] i2c: exynos5: add High Speed I2C controller driver

2013-03-12 Thread Simon Glass
[please excuse my mailer html confusion] Hi Naveen, On Mon, Mar 11, 2013 at 9:32 PM, Naveen Krishna Chatradhi wrote: > > Adds support for High Speed I2C driver found in Exynos5 and later > SoCs from Samsung. This driver currently supports Auto mode. > > Driver only supports Device Tree method. >

Re: [PATCH v2 3/3] RFC: Check offset in fdt_string()

2013-02-27 Thread Simon Glass
Hi David, On Thu, Feb 21, 2013 at 3:35 PM, David Gibson wrote: > On Fri, Feb 15, 2013 at 02:49:38PM -0800, Simon Glass wrote: >> (We probably don't want this patch, and certainly can't apply it as is, >> but I send it in order to find out the intent of fdt_string()). &g

Re: [PATCH v6 0/6] Add ChromeOS Embedded Controller support

2013-02-27 Thread Simon Glass
Hi Samuel, On Wed, Feb 27, 2013 at 12:40 AM, Samuel Ortiz wrote: > Hi Simon, > > On Tue, Feb 26, 2013 at 09:13:06PM -0800, Simon Glass wrote: >> Hi Samuel, >> >> On Mon, Feb 25, 2013 at 2:08 PM, Simon Glass wrote: >> > The ChromeOS Embedded Controller (EC)

Re: [PATCH v6 0/6] Add ChromeOS Embedded Controller support

2013-02-26 Thread Simon Glass
Hi Samuel, On Mon, Feb 25, 2013 at 2:08 PM, Simon Glass wrote: > The ChromeOS Embedded Controller (EC) is an Open Source EC implementation > used on ARM and Intel Chromebooks. Current implementations use a Cortex-M3 > connected on a bus (such as I2C, SPI, LPC) to the AP. A separate

[PATCH v6 6/6] Input: Add ChromeOS EC keyboard driver

2013-02-25 Thread Simon Glass
-off-by: Simon Glass Signed-off-by: Luigi Semenzato Signed-off-by: Vincent Palatin --- Changes in v6: - Fix incorrect indentation in cros_ec_keyb_process() - Remove unnecessary assignment to NULL in probe function Changes in v5: - Fix {} style nit in cros_ec_keyb_has_ghosting - Correct key lookup

[PATCH v6 2/6] mfd: Add ChromeOS EC implementation

2013-02-25 Thread Simon Glass
structure is used to pass messages to the protocol driver. Signed-off-by: Simon Glass Signed-off-by: Che-Liang Chiou Signed-off-by: Jonathan Kliegman Signed-off-by: Luigi Semenzato Signed-off-by: Olof Johansson Signed-off-by: Vincent Palatin --- Changes in v6: - Allow cros_ec to be a module

[PATCH v6 0/6] Add ChromeOS Embedded Controller support

2013-02-25 Thread Simon Glass
on to read matrix-keypad parameters from DT - Remove key autorepeat parameters from DT binding and driver - Use unsigned int for rows/cols Simon Glass (6): mfd: Add ChromeOS EC messages header mfd: Add ChromeOS EC implementation mfd: Add ChromeOS EC I2C driver mfd: Add ChromeOS EC SPI driver Inp

[PATCH v5 6/6] Input: Add ChromeOS EC keyboard driver

2013-02-20 Thread Simon Glass
-off-by: Simon Glass Signed-off-by: Luigi Semenzato Signed-off-by: Vincent Palatin --- Changes in v5: - Fix {} style nit in cros_ec_keyb_has_ghosting - Correct key lookup logic which was broken in previous version - Switch cros_ec_keyb driver to use devm Changes in v4: - Add 'depen

[PATCH v5 2/6] mfd: Add ChromeOS EC implementation

2013-02-20 Thread Simon Glass
structure is used to pass messages to the protocol driver. Signed-off-by: Simon Glass Signed-off-by: Che-Liang Chiou Signed-off-by: Jonathan Kliegman Signed-off-by: Luigi Semenzato Signed-off-by: Olof Johansson Signed-off-by: Vincent Palatin --- Changes in v5: - Remove cros_ec allocation

[PATCH v5 0/6] Add ChromeOS Embedded Controller support

2013-02-20 Thread Simon Glass
use of __devinit/__devexit - Use function to read matrix-keypad parameters from DT - Remove key autorepeat parameters from DT binding and driver - Use unsigned int for rows/cols Simon Glass (6): mfd: Add ChromeOS EC messages header mfd: Add ChromeOS EC implementation mfd: Add ChromeOS EC I2C

Re: [PATCH v4 6/6] Input: Add ChromeOS EC keyboard driver

2013-02-19 Thread Simon Glass
Hi, On Tue, Feb 19, 2013 at 12:36 AM, li guang wrote: > 在 2013-02-15五的 20:16 -0800,Simon Glass写道: >> Use the key-matrix layer to interpret key scan information from the EC >> and inject input based on the FDT-supplied key map. This driver registers >> itself with the

Re: [PATCH v4 6/6] Input: Add ChromeOS EC keyboard driver

2013-02-18 Thread Simon Glass
Hi Dmitry, On Sat, Feb 16, 2013 at 12:49 PM, Dmitry Torokhov wrote: > Hi Simon, > > On Fri, Feb 15, 2013 at 08:16:12PM -0800, Simon Glass wrote: >> + for (row = 0; row < ckdev->rows; row++) { >> + if (cros_ec_keyb_row_has_ghosting(ckdev, buf, row)) >

Re: [v3 0/6] ARM: tegra: convert device tree files to use CLK defines

2013-02-17 Thread Simon Glass
Hi Hiroshi, On Fri, Feb 15, 2013 at 12:43 AM, Hiroshi Doyu wrote: > Hi, > > With new dtc+cpp feature, we could get rid of magic numbers in dts* > files. This patch replaces CLK IDs. > > We also plan to share those DT header files with kernel source > later[1]. > > This series depends on: > [PAT

[PATCH v4 6/6] Input: Add ChromeOS EC keyboard driver

2013-02-15 Thread Simon Glass
-off-by: Simon Glass Signed-off-by: Luigi Semenzato Signed-off-by: Vincent Palatin --- Changes in v4: - Add 'depends on MFD_CROS_EC' to Kconfig - Remove use of wake_notifier - Remove manual code to locate device tree node - Add resume handler to clear keyboard scan buffer if required Cha

[PATCH v4 0/6] Add ChromeOS Embedded Controller support

2013-02-15 Thread Simon Glass
- Add new patch to decode matrix-keypad DT binding - Remove use of __devinit/__devexit - Use function to read matrix-keypad parameters from DT - Remove key autorepeat parameters from DT binding and driver - Use unsigned int for rows/cols Simon Glass (6): mfd: Add ChromeOS EC messages header mf

[PATCH v4 2/6] mfd: Add ChromeOS EC implementation

2013-02-15 Thread Simon Glass
structure is used to pass messages to the protocol driver. Signed-off-by: Simon Glass Signed-off-by: Che-Liang Chiou Signed-off-by: Jonathan Kliegman Signed-off-by: Luigi Semenzato Signed-off-by: Olof Johansson Signed-off-by: Vincent Palatin --- Changes in v4: - Fix up trvial logging comments

Re: [PATCH v2 2/6] mfd: Add ChromeOS EC implementation

2013-02-15 Thread Simon Glass
Hi Joe, On Tue, Feb 12, 2013 at 7:35 PM, Joe Perches wrote: > On Tue, 2013-02-12 at 18:42 -0800, Simon Glass wrote: >> This is the base EC implementation, which provides a high level >> interface to the EC for use by the rest of the kernel. The actual >> communcations is dea

Re: [PATCH v2 6/6] Input: Add ChromeOS EC keyboard driver

2013-02-15 Thread Simon Glass
Hi Dmitry, On Thu, Feb 14, 2013 at 9:31 AM, Dmitry Torokhov wrote: > On Wed, Feb 13, 2013 at 10:45:07PM -0800, Simon Glass wrote: >> >> >> >> +config KEYBOARD_CROS_EC >> >> + tristate "ChromeOS EC keyboard" >> >> + select INPU

[PATCH v2 1/3] libfdt: Add function to find regions in an FDT

2013-02-15 Thread Simon Glass
. Signed-off-by: Simon Glass --- Changes in v2: - Move region code to separate fdt_region.c file - Fix info->count <= info->max_regions in fdt_add_region() merge case - Add new FDT_ERR_TOODEEP error type and use it - Change returned error from BADLAYOUT to BADSTRUCTURE - Return FDT_ERR_BADLAY

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

2013-02-15 Thread Simon Glass
-O dtb tests/grep.dtb which produces a valid DTB file with just the above nodes. Various options are provided to search for properties, to ensure that nodes/properties are not present, and to search for nodes by compatible string. Signed-off-by: Simon Glass --- Changes in v2: - Add local fdt

[PATCH v2 3/3] RFC: Check offset in fdt_string()

2013-02-15 Thread Simon Glass
act return NULL. Changing it to do so also breaks 15 tests (segfault). What is the intended behaviour of this function, please? Signed-off-by: Simon Glass --- Changes in v2: - Drop patch to replace fdtdump libfdt/fdt_ro.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libfdt/fdt_ro.

[PATCH v2 0/3] Introduce fdtgrep for subsetting and hashing FDTs

2013-02-15 Thread Simon Glass
Drop patch to replace fdtdump Simon Glass (3): libfdt: Add function to find regions in an FDT Add fdtgrep to grep and subset FDTs RFC: Check offset in fdt_string() .gitignore | 1 + Makefile | 4 + Makefile.utils | 7 +

Re: [PATCH 5/8] libfdt: Add function to find regions in an FDT

2013-02-15 Thread Simon Glass
Hi David, On Sun, Feb 10, 2013 at 6:47 PM, David Gibson wrote: > On Mon, Jan 21, 2013 at 12:59:19PM -0800, Simon Glass wrote: >> Given a set of nodes and properties, find the regions of the device tree >> which describe those parts. >> >> A test is provided which b

[PATCH v3 6/6] Input: Add ChromeOS EC keyboard driver

2013-02-13 Thread Simon Glass
-off-by: Simon Glass Signed-off-by: Luigi Semenzato Signed-off-by: Vincent Palatin --- Changes in v3: - Remove 'select MFD_CROS_EC' from Kconfig as it isn't necessary - Remove old_state by using input layer's idev->key - Move inner loop of cros_ec_keyb_has_ghosting() in

Re: [PATCH v2 6/6] Input: Add ChromeOS EC keyboard driver

2013-02-13 Thread Simon Glass
Hi Dmitry, On Wed, Feb 13, 2013 at 12:02 PM, Dmitry Torokhov wrote: > Hi SImon, > > On Tue, Feb 12, 2013 at 06:42:26PM -0800, Simon Glass wrote: >> Use the key-matrix layer to interpret key scan information from the EC >> and inject input based on the FDT-supplied key map.

[PATCH v2 6/6] Input: Add ChromeOS EC keyboard driver

2013-02-12 Thread Simon Glass
information. Signed-off-by: Simon Glass Signed-off-by: Luigi Semenzato Signed-off-by: Vincent Palatin --- Changes in v2: - Remove use of __devinit/__devexit - Use function to read matrix-keypad parameters from DT - Remove key autorepeat parameters from DT binding and driver - Use unsigned int for rows

[PATCH v2 2/6] mfd: Add ChromeOS EC implementation

2013-02-12 Thread Simon Glass
resume notification also, in case drivers wish to perform some action there. A simple message structure is used to pass messages to the protocol driver. Signed-off-by: Simon Glass Signed-off-by: Che-Liang Chiou Signed-off-by: Jonathan Kliegman Signed-off-by: Luigi Semenzato Signed-off-by: Olof

[PATCH v2 0/6] Add ChromeOS Embedded Controller support

2013-02-12 Thread Simon Glass
/__devexit - Use function to read matrix-keypad parameters from DT - Remove key autorepeat parameters from DT binding and driver - Use unsigned int for rows/cols Simon Glass (6): mfd: Add ChromeOS EC messages header mfd: Add ChromeOS EC implementation mfd: Add ChromeOS EC I2C driver mfd

Re: [PATCH 0/5] Add ChromeOS Embedded Controller support

2013-02-12 Thread Simon Glass
Hi Samuel, On Tue, Feb 12, 2013 at 4:37 PM, Simon Glass wrote: > Hi Samuel, > > On Wed, Dec 12, 2012 at 1:33 PM, Simon Glass wrote: >> (get_maintainer.pl has produced an enormous list - I hope you are all >> interested.) >> >> The ChromeOS Embedded Con

Re: [PATCH 0/5] Add ChromeOS Embedded Controller support

2013-02-12 Thread Simon Glass
Hi Samuel, On Wed, Dec 12, 2012 at 1:33 PM, Simon Glass wrote: > (get_maintainer.pl has produced an enormous list - I hope you are all > interested.) > > The ChromeOS Embedded Controller (EC) is an Open Source EC implementation > used on ARM and Intel Chromebooks. Current implem

Re: [PATCH 7/8] Remove fdtdump and use fdtgrep instead

2013-02-06 Thread Simon Glass
Hi David, On Tue, Feb 5, 2013 at 11:16 PM, David Gibson wrote: > On Mon, Jan 21, 2013 at 12:59:21PM -0800, Simon Glass wrote: >> Since fdtgrep does everything that fdtdump does now, perhaps we should >> replace it with a symlink. > > Nack. The point of fdtdump is not si

Re: [PATCH 1/8] Adjust util_is_printable_string() comment and fix test

2013-01-27 Thread Simon Glass
Hi David, On Tue, Jan 22, 2013 at 6:33 PM, David Gibson wrote: > On Mon, Jan 21, 2013 at 12:59:15PM -0800, Simon Glass wrote: >> This commit which changed the behaviour of this function broke one >> of the tests. Also the comment should be updated to reflect its new >> be

[PATCH v2 1/8] Adjust util_is_printable_string() comment and fix test

2013-01-27 Thread Simon Glass
This commit which changed the behaviour of this function broke one of the tests. Also the comment should be updated to reflect its new behaviour. Signed-off-by: Simon Glass --- Changes in v2: - Add new test to check byte output of a string list property tests/run_tests.sh | 3 ++- util.h

[PATCH 6/8] Add fdtgrep to grep and subset FDTs

2013-01-21 Thread Simon Glass
-O dtb tests/grep.dtb which produces a valid DTB file with just the above nodes. Various options are provided to search for properties, to ensure that nodes/properties are not present, and to search for nodes by compatible string. Signed-off-by: Simon Glass --- .gitignore |1 + Mak

[PATCH 7/8] Remove fdtdump and use fdtgrep instead

2013-01-21 Thread Simon Glass
Since fdtgrep does everything that fdtdump does now, perhaps we should replace it with a symlink. Signed-off-by: Simon Glass --- Makefile |5 +- fdtdump.c | 137 - fdtgrep.c | 40 -- 3 files changed, 30

[PATCH 5/8] libfdt: Add function to find regions in an FDT

2013-01-21 Thread Simon Glass
-off-by: Simon Glass --- libfdt/fdt_wip.c | 311 libfdt/libfdt.h | 142 ++ tests/.gitignore |1 + tests/Makefile.tests |3 +- tests/region_tree.c | 324

[PATCH 8/8] RFC: Check offset in fdt_string()

2013-01-21 Thread Simon Glass
act return NULL. Changing it to do so also breaks 15 tests (segfault). What is the intended behaviour of this function, please? Signed-off-by: Simon Glass --- libfdt/fdt_ro.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/libfdt/fdt_ro.c b/libfdt/fdt_ro.c index 50007f

[PATCH 4/8] Export fdt_stringlist_contains()

2013-01-21 Thread Simon Glass
This function is useful outside libfdt, so export it. Signed-off-by: Simon Glass --- libfdt/fdt_ro.c |5 ++--- libfdt/libfdt.h | 14 ++ 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/libfdt/fdt_ro.c b/libfdt/fdt_ro.c index 42da2bd..50007f6 100644 --- a/libfdt

[PATCH 2/8] Move property-printing into util

2013-01-21 Thread Simon Glass
The function that prints a property can be useful to other programs, so move it into util. Signed-off-by: Simon Glass --- fdtdump.c | 37 + util.c| 37 + util.h| 14 ++ 3 files changed, 52

[PATCH 1/8] Adjust util_is_printable_string() comment and fix test

2013-01-21 Thread Simon Glass
This commit which changed the behaviour of this function broke one of the tests. Also the comment should be updated to reflect its new behaviour. Signed-off-by: Simon Glass --- tests/run_tests.sh |4 +--- util.h |8 +--- 2 files changed, 6 insertions(+), 6 deletions

[PATCH 3/8] .gitignore: Add rule for *.patch

2013-01-21 Thread Simon Glass
Ignore any patch files that we find, since these are likely to be used when sending patches upstream. Signed-off-by: Simon Glass --- .gitignore |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/.gitignore b/.gitignore index 7cabc49..545b899 100644 --- a/.gitignore +++ b

[PATCH 0/8] Introduce fdtgrep for subsetting and hashing FDTs

2013-01-21 Thread Simon Glass
his is done by using fdt_find_regions() to select the data that needs to be hashed for a particular configuration. The fdtgrep utility can fairly easily replace all of the functions of fdtdump, so this series turns fdtdump into a symlink. Simon Glass (8): Adjust util_is_printable_string() comment and fix

Re: [PATCH V7] kbuild: create a rule to run the pre-processor on *.dts files

2013-01-12 Thread Simon Glass
ff-by: Stephen Warren Acked-by: Simon Glass > --- > Grant, back in mid-November, you said you'd make a decision on this in > the next couple of days, but I think this got overlooked. > > v7: Build *.dtb from *.dts not src/*.dts. > v6: No change. > v5: > * Update Docum

Re: [PATCH 5/5] Input: Add ChromeOS EC keyboard driver

2013-01-10 Thread Simon Glass
Hi Grant, On Wed, Dec 19, 2012 at 12:42 PM, Grant Likely wrote: > On Wed, Dec 19, 2012 at 8:20 PM, Simon Glass wrote: >> On Wed, Dec 19, 2012 at 10:16 AM, Dmitry Torokhov >> wrote: >>> >>> On Wed, Dec 19, 2012 at 12:57:22PM +, Grant Likely wrote: >>

[PATCH v2] input: Extend matrix-keypad device tree binding

2013-01-10 Thread Simon Glass
be done by passing 0 for these parameters? Many of the parameters can already be set to NULL. Ick. Signed-off-by: Simon Glass --- Changes in v2: - Remove repeat rate parameters - Update TI OMAP, tca8418 and lpc32xx bindings to use this one .../devicetree/bindings/input/lpc32xx-key.txt |9

Re: [PATCH] RFC: input: Extend matrix-keypad device tree binding

2012-12-20 Thread Simon Glass
Hi Dmitry, On Thu, Dec 20, 2012 at 1:13 PM, Dmitry Torokhov wrote: > Hi Simon, > > On Thu, Dec 20, 2012 at 12:23:58PM -0800, Simon Glass wrote: >> >> For the key repeat feature, we need to set this after the input device >> is registered. So we would need to add a mat

[PATCH] RFC: input: Extend matrix-keypad device tree binding

2012-12-20 Thread Simon Glass
-off-by: Simon Glass --- .../devicetree/bindings/input/matrix-keymap.txt| 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/Documentation/devicetree/bindings/input/matrix-keymap.txt b/Documentation/devicetree/bindings/input/matrix-keymap.txt index 3cd8b98

Re: [PATCH 1/2] i2c-core: Add gpio based bus arbitration implementation

2012-12-19 Thread Simon Glass
On Wed, Dec 19, 2012 at 9:14 AM, Mark Brown wrote: > On Wed, Dec 19, 2012 at 12:32:01PM +, Grant Likely wrote: > >> I'm not convinced on the design of this protocol. It won't scale beyond >> 2 bus masters and it seems very specific to the design of a specific >> piece of hardware. I don't thin

Re: [PATCH 5/5] Input: Add ChromeOS EC keyboard driver

2012-12-19 Thread Simon Glass
; On Wed, 12 Dec 2012 13:33:48 -0800, Simon Glass >> > > wrote: >> > > > Use the key-matrix layer to interpret key scan information from the EC >> > > > and inject input based on the FDT-supplied key map. This driver >> &

Re: [PATCH 5/5] Input: Add ChromeOS EC keyboard driver

2012-12-19 Thread Simon Glass
nt Likely wrote: > > > > On Wed, 12 Dec 2012 13:33:48 -0800, Simon Glass > wrote: > > > > > Use the key-matrix layer to interpret key scan information from > the EC > > > > > and inject input based on the FDT-supplied key map. This driver > re

[PATCH 5/5] Input: Add ChromeOS EC keyboard driver

2012-12-12 Thread Simon Glass
information. Signed-off-by: Simon Glass Signed-off-by: Luigi Semenzato Signed-off-by: Vincent Palatin --- .../devicetree/bindings/input/cros-ec-keyb.txt | 77 drivers/input/keyboard/Kconfig | 10 + drivers/input/keyboard/Makefile|1 + drivers

[PATCH 2/5] mfd: Add ChromeOS EC implementation

2012-12-12 Thread Simon Glass
resume notification also, in case drivers wish to perform some action there. A simple message structure is used to pass messages to the protocol driver. Signed-off-by: Simon Glass Signed-off-by: Che-Liang Chiou Signed-off-by: Jonathan Kliegman Signed-off-by: Luigi Semenzato Signed-off-by: Olof

[PATCH 0/5] Add ChromeOS Embedded Controller support

2012-12-12 Thread Simon Glass
-snow is provided at this stage, since we must wait for the above-mentioned patches to land to avoid errors from dtc. This can be added with a follow-on patch when that work is complete. Simon Glass (5): mfd: Add ChromeOS EC messages header mfd: Add ChromeOS EC implementation mfd: Add ChromeOS

Re: RFC: New release for DTC?

2012-12-11 Thread Simon Glass
Hi Jon, On Tue, Dec 11, 2012 at 6:55 AM, Jon Loeliger wrote: >> >> > >> >> > This has been a bit of a perrenial problem. dtc development has been >> >> > sufficiently gradual that there haven't been many obvious points for >> >> > making new releases. dtc developers (i.e. Jon and my, mostly) do

Re: RFC: New release for DTC?

2012-12-10 Thread Simon Glass
Hi, On Sat, Nov 17, 2012 at 4:00 PM, Grant Likely wrote: > On Sat, 17 Nov 2012 12:50:07 -0500, Mike Frysinger wrote: >> 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 s

[PATCH v2 15/23] fdt: edid: Enable fdt_add_edid() function when CONFIG_LCD defined

2012-11-22 Thread Simon Glass
From: Tom Wai-Hong Tam This function can be used for LCDs as well as monitors. Signed-off-by: Tom Wai-Hong Tam Signed-off-by: Simon Glass --- Changes in v2: None common/fdt_support.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/common/fdt_support.c b/common

Re: Device tree node to major/minor?

2012-11-21 Thread Simon Glass
Hi Grant, On Wed, Nov 21, 2012 at 7:47 AM, Grant Likely wrote: > On Tue, 20 Nov 2012 15:48:24 -0800, Simon Glass wrote: >> Hi Grant, >> >> On Tue, Nov 20, 2012 at 2:32 PM, Grant Likely >> wrote: >> > On Tue, Nov 20, 2012 at 10:23 PM, Simon Glass wrote: &g

Re: Device tree node to major/minor?

2012-11-20 Thread Simon Glass
Hi Grant, On Tue, Nov 20, 2012 at 2:32 PM, Grant Likely wrote: > On Tue, Nov 20, 2012 at 10:23 PM, Simon Glass wrote: >> Hi, >> >> I hope this is a stupid question with an easy answer, but I cannot find it. >> >> I have a device tree node for an mmc block devic

Device tree node to major/minor?

2012-11-20 Thread Simon Glass
Hi, I hope this is a stupid question with an easy answer, but I cannot find it. I have a device tree node for an mmc block device and I want to use that block device from another driver. I have a phandle which lets me get the node of the mmc device, but I am not sure how to convert that into a bl

Re: [U-Boot] [PATCH 0/14] fdt: Add various device tree utilities and features

2012-11-19 Thread Simon Glass
d the GPIO patch (http://patchwork.ozlabs.org/patch/194340/) since as Stephen pointed out there is discussion on the kernel list of whether to keep the polarity bit. I suppose we can always address that later if they decide to replace it with something else. > > On 10/25/2012 10:30 PM, Simon G

Re: [U-Boot] [PATCH 09/14] fdt: Add polarity-aware gpio functions to fdtdec

2012-11-15 Thread Simon Glass
Hi Stephen, On Thu, Nov 15, 2012 at 3:46 PM, Stephen Warren wrote: > On 11/15/2012 04:31 PM, Simon Glass wrote: >> Hi Stephen, >> >> On Wed, Oct 31, 2012 at 9:50 PM, Stephen Warren >> wrote: >>> On 10/31/2012 05:59 PM, Simon Glass wrote: >>>>

Re: [U-Boot] [PATCH 09/14] fdt: Add polarity-aware gpio functions to fdtdec

2012-11-15 Thread Simon Glass
Hi Stephen, On Wed, Oct 31, 2012 at 9:50 PM, Stephen Warren wrote: > On 10/31/2012 05:59 PM, Simon Glass wrote: >> Hi, >> >> On Fri, Oct 26, 2012 at 12:17 AM, Lucas Stach wrote: >>> Am Donnerstag, den 25.10.2012, 19:31 -0700 schrieb Simon Glass: >>>>

[PATCH 10/20] x86: fdt: Create basic .dtsi file for coreboot

2012-11-03 Thread Simon Glass
This contains just the minimum information for a coreboot-based board. Signed-off-by: Stefan Reinauer Signed-off-by: Gabe Black Signed-off-by: Simon Glass --- arch/x86/dts/coreboot.dtsi | 16 arch/x86/dts/skeleton.dtsi | 13 + 2 files changed, 29 insertions

[PATCH 12/17] fdt: edid: Enable fdt_add_edid() function when CONFIG_LCD defined

2012-11-02 Thread Simon Glass
From: Tom Wai-Hong Tam This function can be used for LCDs as well as monitors. Signed-off-by: Tom Wai-Hong Tam Signed-off-by: Simon Glass --- common/fdt_support.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/common/fdt_support.c b/common/fdt_support.c index

[PATCH v2 05/14] fdt: Remove fdtdec_find_alias_node() function

2012-10-31 Thread Simon Glass
This function is not needed, since fdt_path_offset() performs the same service. Remove it. Signed-off-by: Simon Glass --- Changes in v2: - Remove fdtdec_find_alias_node() function lib/fdtdec.c | 24 +--- 1 files changed, 1 insertions(+), 23 deletions(-) diff --git a/lib

Re: [U-Boot] [PATCH 09/14] fdt: Add polarity-aware gpio functions to fdtdec

2012-10-31 Thread Simon Glass
Hi, On Fri, Oct 26, 2012 at 12:17 AM, Lucas Stach wrote: > Am Donnerstag, den 25.10.2012, 19:31 -0700 schrieb Simon Glass: >> From: Sean Paul >> >> Add get and set gpio functions to fdtdec that take into account the >> polarity field in fdtdec_gpio_state.flags. >

Re: [PATCH 05/14] fdt: Export fdtdec_find_alias_node() function

2012-10-31 Thread Simon Glass
Hi David, On Thu, Oct 25, 2012 at 9:24 PM, David Gibson wrote: > On Thu, Oct 25, 2012 at 07:31:02PM -0700, Simon Glass wrote: >> This function is useful outside fdtdec, so export it. > > Hrm. fdt_path_offset() in libfdt itself will already look up aliases > if given a path

[PATCH 09/14] fdt: Add polarity-aware gpio functions to fdtdec

2012-10-25 Thread Simon Glass
From: Sean Paul Add get and set gpio functions to fdtdec that take into account the polarity field in fdtdec_gpio_state.flags. Signed-off-by: Sean Paul Signed-off-by: Simon Glass --- include/fdtdec.h | 16 lib/fdtdec.c | 20 2 files changed, 36

[PATCH 03/14] fdt: Add fdtdec_decode_region() to decode memory region

2012-10-25 Thread Simon Glass
A memory region has a start and a size and is often specified in a node by a 'reg' property. Add a function to decode this information from the fdt. Signed-off-by: Simon Glass --- include/fdtdec.h | 19 +++ lib/fdtdec.c | 17 + 2 files c

[PATCH 04/14] fdt: Add function for decoding multiple gpios globally available

2012-10-25 Thread Simon Glass
From: Abhilash Kesavan Samsung's SDHCI bindings require multiple gpios to be parsed and configured at a time. Export the already available fdtdec_decode_gpios for this purpose. Signed-off-by: Abhilash Kesavan Commit-Ready: Che-Liang Chiou Signed-off-by: Simon Glass --- include/fdt

[PATCH 13/14] fdt: Add option to default to most compatible conf in a fit image

2012-10-25 Thread Simon Glass
, the first configuration, A, D, would be chosen. Both the first and second configurations match, but the first one matches a more specific entry in U-Boot's device tree. The order in the kernel's device tree is ignored. Signed-off-by: Gabe Black Commit-Ready: Gabe Black Signed-off-

[PATCH 14/14] fdt: Set kernaddr if fdt indicates a kernel is present

2012-10-25 Thread Simon Glass
ho \"Using bundled kernel\"; "\ "bootm ${kernaddr};" \ "fi; "\ /* rest of boot sequence follows here */ Signed-off-by: Simon Glass --- common/main.c | 16 1 files changed, 16 insertions(+), 0 de

[PATCH 12/14] fdt: Allow device tree to specify secure booting

2012-10-25 Thread Simon Glass
ruped. * Failure doesn't cause us to fall back to the shell. Signed-off-by: Gabe Black Signed-off-by: Doug Anderson Signed-off-by: Simon Glass --- common/main.c | 62 + 1 files changed, 62 insertions(+), 0 deletions(-) diff --git a/commo

[PATCH 01/14] fdt: Add function to get config int from device tree

2012-10-25 Thread Simon Glass
From: Abhilash Kesavan Add a function to look up a configuration item such as machine id and return its value. Note: The code has been taken as is from the Chromium u-boot development tree and needs Simon Glass' sign-off. Signed-off-by: Abhilash Kesavan Signed-off-by: Simon

[PATCH 05/14] fdt: Export fdtdec_find_alias_node() function

2012-10-25 Thread Simon Glass
This function is useful outside fdtdec, so export it. Signed-off-by: Simon Glass --- include/fdtdec.h |9 + lib/fdtdec.c |6 +++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/include/fdtdec.h b/include/fdtdec.h index e70714b..e566e47 100644 --- a/include

[PATCH 06/14] fdt: Export fdtdec_lookup() and fix the name

2012-10-25 Thread Simon Glass
The name of this function is not consistent, so fix it, and export the function for external use. Signed-off-by: Simon Glass --- include/fdtdec.h | 13 + lib/fdtdec.c |2 +- 2 files changed, 14 insertions(+), 1 deletions(-) diff --git a/include/fdtdec.h b/include/fdtdec.h

[PATCH 11/14] fdt: Tell the FDT library where the device tree is

2012-10-25 Thread Simon Glass
address it was at to set things up manually. Signed-off-by: Gabe Black Signed-off-by: Simon Glass --- common/main.c |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/common/main.c b/common/main.c index 23a68ee..cf1b5f9 100644 --- a/common/main.c +++ b/common/main.c

[PATCH 10/14] fdt: Load boot command from device tree

2012-10-25 Thread Simon Glass
From: Che-Liang Chiou Load boot command from /config/bootcmd of device tree if present. Signed-off-by: Tom Wai-Hong Tam Signed-off-by: Che-Liang Chiou Signed-off-by: Simon Glass --- common/main.c | 16 +++- 1 files changed, 15 insertions(+), 1 deletions(-) diff --git a/common

[PATCH 07/14] fdt: Add function to read boolean property

2012-10-25 Thread Simon Glass
From: Gabe Black Signed-off-by: Vincent Palatin Commit-Ready: Vincent Palatin Commit-Ready: Gabe Black Signed-off-by: Simon Glass --- include/fdtdec.h | 10 ++ lib/fdtdec.c | 14 ++ 2 files changed, 24 insertions(+), 0 deletions(-) diff --git a/include/fdtdec.h

[PATCH 02/14] fdt: Add function to get a config string from device tree

2012-10-25 Thread Simon Glass
Add a function to look up a configuration string such as board name and returns its value. We look in the "/config" node for this. Signed-off-by: Simon Glass --- include/fdtdec.h | 10 ++ lib/fdtdec.c | 28 ++-- 2 files changed, 28 inserti

[PATCH 08/14] fdt: Add fdtdec_get_uint64 to decode a 64-bit value from a property

2012-10-25 Thread Simon Glass
From: Che-Liang Chiou It decodes a 64-bit value from a property that is at least 8 bytes long. Signed-off-by: Che-Liang Chiou Signed-off-by: Simon Glass --- include/fdtdec.h | 15 +++ lib/fdtdec.c | 13 + 2 files changed, 28 insertions(+), 0 deletions

  1   2   3   4   5   >