Re: [PATCH V2 0/2] Add device tree support of i2c Atmel driver

2014-08-05 Thread Bo Shen
Hi Raphaël Poggi, On 08/04/2014 05:29 PM, Bo Shen wrote: Hi Raphaël Poggi, On 08/04/2014 05:22 PM, Raphaël Poggi wrote: Hi, I have tested it on a custom board which use a sam9m10 and it worked... Tell me more when we have found something suspicious. I tested on sama5d3xek with qt1070

[PATCH 5/5] mtd: atmel_nand: add support for device tree

2014-08-05 Thread Raphaël Poggi
Signed-off-by: Raphaël Poggi poggi.r...@gmail.com --- drivers/mtd/nand/atmel_nand.c | 111 - 1 file changed, 110 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c index 780d266..a5d05d8 100644 ---

[PATCH 1/5] mtd: nand: remove NAND_ATMEL_PMECC

2014-08-05 Thread Raphaël Poggi
By removing this CONFIG_, we can use a structure member to retrieve the config, either through the plateform data or through the device tree. So we can handle cases when the driver is probed using device tree or not. Signed-off-by: Raphaël Poggi poggi.r...@gmail.com ---

[PATCH v2 0/5] Add device tree support of Atmel NAND driver

2014-08-05 Thread Raphaël Poggi
Change since v1: * Reorder patchs * Fix some clean style issue. This patchset adds the device tree support for the Atmel NAND driver. The first patch removes the NAND_ATMEL_PMECC config. With this removal we can manage in a better way the device tree / non device tree probing of

[PATCH 2/5] board: atmel: initialise the has_pmecc member

2014-08-05 Thread Raphaël Poggi
--- arch/arm/boards/at91sam9n12ek/init.c|1 + arch/arm/boards/at91sam9x5ek/init.c |1 + arch/arm/boards/sama5d3_xplained/init.c |1 + arch/arm/boards/sama5d3xek/init.c |1 + 4 files changed, 4 insertions(+) diff --git a/arch/arm/boards/at91sam9n12ek/init.c

[PATCH 4/5] board: atmel: initialise ecc_mode

2014-08-05 Thread Raphaël Poggi
This commit initialise the ecc_mode (NAND_ECC_SOFT) on atmel board init which missing it. Signed-off-by: Raphaël Poggi poggi.r...@gmail.com --- arch/arm/boards/at91sam9260ek/init.c|1 + arch/arm/boards/at91sam9261ek/init.c|1 + arch/arm/boards/at91sam9263ek/init.c|1 +

[PATCH 3/5] mtd: atmel_nand: retrieve ecc_mode from pdata

2014-08-05 Thread Raphaël Poggi
By retrieving the ecc_mode from pdata we can use the same code for device tree and non device tree probing. Which was not possible before, because ecc_mode was arbitrarily set to NAND_ECC_SOFT. Signed-off-by: Raphaël Poggi poggi.r...@gmail.com --- drivers/mtd/nand/atmel_nand.c |2 +- 1

Re: [PATCH v2 0/5] Add device tree support of Atmel NAND driver

2014-08-05 Thread Raphaël Poggi
I forget to add a v2 tag on the patches, do I need to resend all the serie ? Thanks, Raphaël Poggi 2014-08-05 11:14 GMT+02:00 Raphaël Poggi poggi.r...@gmail.com: Change since v1: * Reorder patchs * Fix some clean style issue. This patchset adds the device tree support for

Re: [PATCH 1/2] pinctrl: at91: add pinctrl driver

2014-08-05 Thread Jean-Christophe PLAGNIOL-VILLARD
On Aug 5, 2014, at 2:37 AM, Raphaël Poggi raphi...@gmail.com wrote: I have planned to add device tree support for the AT91 port. So I port the pinctrl driver from linux to barebox to be able to use the pinctrl in device tree, but maybe I made a mistake and there is another solution.

Re: [PATCH 1/2] pinctrl: at91: add pinctrl driver

2014-08-05 Thread Raphaël Poggi
Ok, so I drop my patch ? Or your version is very similar of my patch and you can review mine to improve/clean it ? Best regards, Raphaël Poggi 2014-08-05 12:26 GMT+02:00 Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com: On Aug 5, 2014, at 2:37 AM, Raphaël Poggi raphi...@gmail.com wrote:

Re: [PATCH V2 0/2] Add device tree support of i2c Atmel driver

2014-08-05 Thread Raphaël Poggi
I am ready to send a v3. Are you going to send your fix or you want me to squash it in v3 ? Best Regards, Raphaël Poggi 2014-08-05 10:32 GMT+02:00 Raphaël Poggi raphi...@gmail.com: Hello, The patch works fine for me. Thanks for your review/help. Best Regards, Raphaël Poggi 2014-08-05

[PATCH v2 2/2] at91sam9g45: add device tree gpio clocks

2014-08-05 Thread Raphaël Poggi
Signed-off-by: Raphaël Poggi poggi.r...@gmail.com --- arch/arm/mach-at91/at91sam9g45.c | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/mach-at91/at91sam9g45.c b/arch/arm/mach-at91/at91sam9g45.c index d19d26a..8c020fa 100644 --- a/arch/arm/mach-at91/at91sam9g45.c +++

[PATCH v2 0/2] Add atmel pinctrl driver

2014-08-05 Thread Raphaël Poggi
Change since v1: * Fix coding style issue. * Register gpio clocks with CLKDEV_DEV_ID instead of CLKDEV_CON_DEV_ID This patchset add atmel pinctrl/gpio driver and the corresponding clocks for the at91sam9g45 device. The pinctrl driver also include the gpio driver (like in linux)

[PATCH v2 1/2] pinctrl: at91: add pinctrl driver

2014-08-05 Thread Raphaël Poggi
This driver is based on mach-at91/gpio.c and linux pinctrl driver. The driver contains the gpio and pinctrl parts (like in linux) because the two parts share some structures and logics. Signed-off-by: Raphaël Poggi poggi.r...@gmail.com --- drivers/pinctrl/Kconfig| 6 +

Re: [PATCH V2 0/2] Add device tree support of i2c Atmel driver

2014-08-05 Thread Bo Shen
Hi Raphaël Poggi, On 08/06/2014 04:05 AM, Raphaël Poggi wrote: I am ready to send a v3. Are you going to send your fix or you want me to squash it in v3 ? Please send it together with your patch. Thanks. Best Regards, Raphaël Poggi Best Regards, Bo Shen

Re: envfs: provide an intentional way to ignore an existing external environment

2014-08-05 Thread Jean-Christophe PLAGNIOL-VILLARD
On 09:44 Thu 31 Jul , Uwe Kleine-K??nig wrote: On Thu, Jul 31, 2014 at 09:33:02AM +0200, Juergen Borleis wrote: Hi Uwe, On Thursday 31 July 2014 09:14:25 Uwe Kleine-König wrote: [...] Compared with storing the default environment in the external store the only difference is

Re: [RFC] gen-dtb-s: make metadata binary fields always little-endian

2014-08-05 Thread Jean-Christophe PLAGNIOL-VILLARD
On 21:53 Sun 03 Aug , Antony Pavlov wrote: On Sun, 03 Aug 2014 18:17:45 +0200 Jan Lübbe j...@pengutronix.de wrote: Hi, On Sat, 2014-08-02 at 09:45 +0400, Antony Pavlov wrote: compatlen=$($FDTGET -t s $dtb / compatible | wc -c) - echo .int

Re: [PATCH 1/5] mtd: nand: remove NAND_ATMEL_PMECC

2014-08-05 Thread Jean-Christophe PLAGNIOL-VILLARD
On 11:14 Tue 05 Aug , Rapha??l Poggi wrote: By removing this CONFIG_, we can use a structure member to retrieve the config, either through the plateform data or through the device tree. So we can handle cases when the driver is probed using device tree or not. NACK this is use to

[PATCH 1/3] openrisc: add barebox.lds to .gitignore

2014-08-05 Thread Antony Pavlov
Signed-off-by: Antony Pavlov antonynpav...@gmail.com --- arch/openrisc/cpu/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/openrisc/cpu/.gitignore b/arch/openrisc/cpu/.gitignore new file mode 100644 index 000..d116578 --- /dev/null +++ b/arch/openrisc/cpu/.gitignore @@

[PATCH 2/3] scripts: add bareboximd{,-target} to .gitignore

2014-08-05 Thread Antony Pavlov
Signed-off-by: Antony Pavlov antonynpav...@gmail.com --- scripts/.gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/.gitignore b/scripts/.gitignore index fddc04b..980c2be 100644 --- a/scripts/.gitignore +++ b/scripts/.gitignore @@ -15,3 +15,5 @@ zynq_mkimage socfpga_mkimage

[PATCH 3/3] fixup! dtc: compile fdtget

2014-08-05 Thread Antony Pavlov
--- scripts/dtc/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/dtc/.gitignore b/scripts/dtc/.gitignore index cdabdc9..80f6b50 100644 --- a/scripts/dtc/.gitignore +++ b/scripts/dtc/.gitignore @@ -2,3 +2,4 @@ dtc dtc-lexer.lex.c dtc-parser.tab.c dtc-parser.tab.h +fdtget

[PATCH 0/3] misc .gitignore-related fixes

2014-08-05 Thread Antony Pavlov
Antony Pavlov (3): openrisc: add barebox.lds to .gitignore scripts: add bareboximd{,-target} to .gitignore fixup! dtc: compile fdtget arch/openrisc/cpu/.gitignore | 1 + scripts/.gitignore | 2 ++ scripts/dtc/.gitignore | 1 + 3 files changed, 4 insertions(+) create mode