[PATCH v2 18/18] ARM: Rockchip: Add documentation

2015-03-04 Thread Andrey Panov
Signed-off-by: Andrey Panov --- Documentation/boards/rockchip.rst | 47 +++ 1 file changed, 47 insertions(+) create mode 100644 Documentation/boards/rockchip.rst diff --git a/Documentation/boards/rockchip.rst b/Documentation/boards/rockchip.rst new file mode

Barebox drops into shell immediately, without waiting for key (next branch)

2015-03-04 Thread Панов Андрей
Hello! I've discovered that on recent next commit "acc69bdddc50262b8f91034c248279d8dc734284 defaultenv-2: init: don't call timeout again if the user intervened" caused barebox to enter shell without asking for pressing a key. On Radxa Rock board. It's just me? -- Андрей __

[PATCH v2 09/18] CLK: Add helper defines to barebox-wrapper.h for easier porting of drivers from Linux kernel

2015-03-04 Thread Andrey Panov
Signed-off-by: Andrey Panov --- include/linux/barebox-wrapper.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/linux/barebox-wrapper.h b/include/linux/barebox-wrapper.h index d34d1d1..3859185 100644 --- a/include/linux/barebox-wrapper.h +++ b/include/linux/barebox-wrapper.h @@

[PATCH v2 05/18] CLK: clk-divider: Respect CLK_DIVIDER_HIWORD_MASK flag

2015-03-04 Thread Andrey Panov
It is required for Rockchip SoCs where clock settings registers have write-enable mask in high word. Signed-off-by: Andrey Panov --- drivers/clk/clk-divider.c | 4 include/linux/clk.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/drivers/clk/clk-divider.c b/drivers/clk/clk-di

[PATCH v2 16/18] ARM: Rockchip: Update Radxa Rock board

2015-03-04 Thread Andrey Panov
Signed-off-by: Andrey Panov --- arch/arm/boards/radxa-rock/board.c | 35 ++ arch/arm/boards/radxa-rock/env/boot/mshc1 | 9 +++ arch/arm/boards/radxa-rock/env/boot/mshc1-old | 8 ++ arch/arm/boards/radxa-rock/env/init/bootsource | 7 ++ arch

[PATCH v2 03/18] CLK: Add fractional divider clock support from Linux kernel

2015-03-04 Thread Andrey Panov
Signed-off-by: Andrey Panov --- drivers/clk/Makefile | 3 +- drivers/clk/clk-fractional-divider.c | 152 +++ include/linux/clk.h | 9 +++ 3 files changed, 163 insertions(+), 1 deletion(-) create mode 100644 drivers/clk/clk-frac

[PATCH v2 14/18] ARM: Rockchip: Update clk driver from Linux kernel for use with newer DTS

2015-03-04 Thread Andrey Panov
Signed-off-by: Andrey Panov --- drivers/clk/rockchip/Makefile | 2 +- drivers/clk/rockchip/clk-cpu.c | 160 +++ drivers/clk/rockchip/clk-pll.c | 368 +++ drivers/clk/rockchip/clk-rk3188.c | 872 drivers/clk/rockchip/clk-rock

[PATCH v2 02/18] CLK: Add support for composite clock from Linux kernel

2015-03-04 Thread Andrey Panov
Signed-off-by: Andrey Panov --- drivers/clk/Makefile| 2 +- drivers/clk/clk-composite.c | 145 include/linux/clk.h | 6 ++ 3 files changed, 152 insertions(+), 1 deletion(-) create mode 100644 drivers/clk/clk-composite.c diff --git

[PATCH v2 06/18] CLK: clk-divider: Introduce clk_divider_alloc() and *_free() routines

2015-03-04 Thread Andrey Panov
Signed-off-by: Andrey Panov --- drivers/clk/clk-divider.c | 27 ++- include/linux/clk.h | 3 +++ 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/drivers/clk/clk-divider.c b/drivers/clk/clk-divider.c index eb48334..cedcdda 100644 --- a/drivers/clk/clk

[PATCH v2 17/18] ARM: Rockchip: Add Radxa Rock defconfig

2015-03-04 Thread Andrey Panov
Signed-off-by: Andrey Panov --- arch/arm/configs/radxa_rock_defconfig | 110 ++ 1 file changed, 110 insertions(+) create mode 100644 arch/arm/configs/radxa_rock_defconfig diff --git a/arch/arm/configs/radxa_rock_defconfig b/arch/arm/configs/radxa_rock_defconfig

[PATCH v2 08/18] CLK: Check and do not allow to register clock twice

2015-03-04 Thread Andrey Panov
Signed-off-by: Andrey Panov --- drivers/clk/clk.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 584e2f3..b77d022 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -212,6 +212,16 @@ struct clk *clk_get_parent(struct clk *clk)

[PATCH v2 15/18] ARM: Rockchip: Use newer DTS for Radxa Rock board

2015-03-04 Thread Andrey Panov
Signed-off-by: Andrey Panov --- arch/arm/dts/rk3188-clocks.dtsi | 289 --- arch/arm/dts/rk3188-radxarock.dts | 32 ++-- arch/arm/dts/rk3188.dtsi | 306 -- arch/arm/dts/rk3xxx.dtsi | 139 - 4 f

[PATCH v2 11/18] MMC: dw_mmc: Add support for PIO mode and Rockchip variant of this hardware

2015-03-04 Thread Andrey Panov
Signed-off-by: Andrey Panov --- drivers/mci/Kconfig | 6 ++ drivers/mci/dw_mmc.c | 174 --- 2 files changed, 173 insertions(+), 7 deletions(-) diff --git a/drivers/mci/Kconfig b/drivers/mci/Kconfig index dbcc38d..17bf0d3 100644 --- a/drivers/mci

[PATCH v2 10/18] NET: arc_emac: Update for newer DTS, support for Rockchip .compatible

2015-03-04 Thread Andrey Panov
Signed-off-by: Andrey Panov --- drivers/net/arc_emac.c | 24 +--- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/drivers/net/arc_emac.c b/drivers/net/arc_emac.c index 1770506..06c3376 100644 --- a/drivers/net/arc_emac.c +++ b/drivers/net/arc_emac.c @@ -23,6 +23

[PATCH v2 13/18] ARM: Rockchip: Update Kconfig

2015-03-04 Thread Andrey Panov
Signed-off-by: Andrey Panov --- arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 527a913..50f3095 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -160,6 +160,7 @@ config ARCH_ROCKCHIP select PINCTRL_ROCKCHIP sel

[PATCH v2 12/18] ARM: Rockchip: Remove unused files from mach-rockchip

2015-03-04 Thread Andrey Panov
Signed-off-by: Andrey Panov --- arch/arm/mach-rockchip/Makefile| 1 - arch/arm/mach-rockchip/include/mach/rockchip-pll.h | 26 -- arch/arm/mach-rockchip/pll.c | 102 - 3 files changed, 129 deletions(-) delete mode 100644 arch/a

[PATCH v2 04/18] CLK: clk-mux: Respect CLK_MUX_HIWORD_MASK flag

2015-03-04 Thread Andrey Panov
It is required for Rockchip SoCs where clock settings registers have write-enable mask in high word. Signed-off-by: Andrey Panov --- drivers/clk/clk-mux.c | 3 +++ include/linux/clk.h | 2 ++ 2 files changed, 5 insertions(+) diff --git a/drivers/clk/clk-mux.c b/drivers/clk/clk-mux.c index 4ce

[PATCH v2 07/18] CLK: clk-divider: Respect CLK_DIVIDER_POWER_OF_TWO flag

2015-03-04 Thread Andrey Panov
Signed-off-by: Andrey Panov --- drivers/clk/clk-divider.c | 9 + include/linux/clk.h | 1 + 2 files changed, 10 insertions(+) diff --git a/drivers/clk/clk-divider.c b/drivers/clk/clk-divider.c index cedcdda..646e5b0 100644 --- a/drivers/clk/clk-divider.c +++ b/drivers/clk/clk-divid

[PATCH v2 01/18] lib: Add gcd() function

2015-03-04 Thread Andrey Panov
It calculates greatest common divisor. Signed-off-by: Andrey Panov --- include/linux/gcd.h| 8 include/linux/kernel.h | 5 + lib/Makefile | 1 + lib/gcd.c | 18 ++ 4 files changed, 32 insertions(+) create mode 100644 include/linux/gcd.h

[PATCH v2 00/18] Update support for RK3188, Radxa Rock board

2015-03-04 Thread Andrey Panov
This series will update support for Radxa Rock board, allowing it to boot from SD card with Barebox as first-stage loader. Based on next branch. v2: Rebased on more recent sources, fixed patches. ___ barebox mailing list barebox@lists.infradead.org h

Re: Rockchip RK3188

2015-03-04 Thread Панов Андрей
Hello! 04.03.2015, 13:26, "Erwin Rol" : > Hey all, > > I saw some mails and patches passing by for the Rockchip RK3188. Since I > am just starting a project with a RK3188 I was wondering if there are > ppl that have more info than the pathetic databook from Rochchip. All known documents are on ht

Re: [PATCH 2/2] remove unnecessary device pointer argument

2015-03-04 Thread Jean-Christophe PLAGNIOL-VILLARD
> On Mar 4, 2015, at 6:45 PM, Sascha Hauer wrote: > > On Wed, Mar 04, 2015 at 04:43:13PM +0800, Jean-Christophe PLAGNIOL-VILLARD > wrote: >> >>> On Mar 4, 2015, at 3:49 PM, Sascha Hauer wrote: >>> >>> The struct device_d * argument is not necessary, it can be retrieved from >>> the FILE *. T

Re: [PATCH 2/2] remove unnecessary device pointer argument

2015-03-04 Thread Sascha Hauer
On Wed, Mar 04, 2015 at 04:43:13PM +0800, Jean-Christophe PLAGNIOL-VILLARD wrote: > > > On Mar 4, 2015, at 3:49 PM, Sascha Hauer wrote: > > > > The struct device_d * argument is not necessary, it can be retrieved from > > the FILE *. This adds a convenience function for doing this and removes >

Re: [PATCH v2] led: gpio: add support for default-state dt-property

2015-03-04 Thread Sascha Hauer
On Wed, Mar 04, 2015 at 10:52:04AM +0100, Hubert Feurstein wrote: > This patch adds support for the default-state device tree property. > > Signed-off-by: Hubert Feurstein > --- > drivers/led/led-gpio.c | 8 > 1 file changed, 8 insertions(+) Nice, as it happens I can just make use of t

Re: [PATCH v3 00/13] sandbox OF integration

2015-03-04 Thread Sascha Hauer
On Tue, Mar 03, 2015 at 01:14:46PM +0100, Marc Kleine-Budde wrote: > Hello Sascha, > > these are the remaining patches that bring OF support to the sandbox so that > enables testing of framworks which need the device tree. > > changes since v2: > - build sandbox with oftree support always, select

Re: [PATCH 01/11] of: make of_alias_get work on all types of DT paths

2015-03-04 Thread Sascha Hauer
On Tue, Mar 03, 2015 at 08:46:13PM +0100, Lucas Stach wrote: > of_alias_get assumed that a DT path is always the full node path, > whic is not necessarily the case, as there are other valid path > descriptions. All of them are handled by of_find_node_by_path. > > As there is already a preparsed li

Rockchip RK3188

2015-03-04 Thread Erwin Rol
Hey all, I saw some mails and patches passing by for the Rockchip RK3188. Since I am just starting a project with a RK3188 I was wondering if there are ppl that have more info than the pathetic databook from Rochchip. Also it seems large parts (even essential things like the NAND controller) are

[PATCH v2] led: gpio: add support for default-state dt-property

2015-03-04 Thread Hubert Feurstein
This patch adds support for the default-state device tree property. Signed-off-by: Hubert Feurstein --- drivers/led/led-gpio.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/led/led-gpio.c b/drivers/led/led-gpio.c index a1a6617..ae3f13f 100644 --- a/drivers/led/led-gpio.c ++

Re: [PATCH 0/4] Device Tree Overlay Support

2015-03-04 Thread Jan Lübbe
On Mi, 2015-03-04 at 10:29 +0100, Jan Luebbe wrote: > This adds support for device tree overlays as supported by Linux 4.0-rc1. > Patches 2-4 update the included DTC with overlay support. Sorry, I forgot to mention that this depends on Marc's sandbox-of series. Regards, Jan -- Pengutronix e.K.

[PATCH 2/4] scripts/dtc: import update-dtc-source.sh from kernel v4.0-rc1

2015-03-04 Thread Jan Luebbe
The original script was written by Grant Likely . The version for barebox also imports some libfdt sources, so that we are able to compile the fdtget host tool. Also remove the unused non-kconfig makefiles. Signed-off-by: Jan Luebbe --- scripts/dtc/Makefile.dtc | 18 --- script

[PATCH 1/4] drivers: of: implement overlay support

2015-03-04 Thread Jan Luebbe
This is based on Pantelis Antoniou's overlay support for the kernel. It has been simplified by leaving out transaction support, locking and other details required by the Linux DT support. It should support all features of the overlay file format as implemented in linux 4.0-rc1. Signed-off-by: Jan

[PATCH 0/4] Device Tree Overlay Support

2015-03-04 Thread Jan Luebbe
This adds support for device tree overlays as supported by Linux 4.0-rc1. Patches 2-4 update the included DTC with overlay support. Jan Luebbe (4): drivers: of: implement overlay support scripts/dtc: import update-dtc-source.sh from kernel v4.0-rc1 scripts/dtc: Update to upstream version 1.4

[PATCH 4/4] scripts/dtc: Update to upstream version 1.4.1 with overlay support

2015-03-04 Thread Jan Luebbe
This contains Pantelis Antoniou's "dynamic DT support" v4: * dtc: Symbol and local fixup generation support * dtc: Plugin (object) device tree support. * dtc: Document the dynamic plugin internals Signed-off-by: Jan Luebbe --- scripts/dtc/checks.c | 107 - scripts/dtc/dtc-lex

Re: [PATCH 2/2] remove unnecessary device pointer argument

2015-03-04 Thread Jean-Christophe PLAGNIOL-VILLARD
> On Mar 4, 2015, at 3:49 PM, Sascha Hauer wrote: > > The struct device_d * argument is not necessary, it can be retrieved from > the FILE *. This adds a convenience function for doing this and removes > the struct device_d * argument from the the filesystem drivers functions. if you do so you

[PATCH 2/2] ARM: i.MX: remove __naked from imx*_barebox_entry

2015-03-04 Thread Sascha Hauer
Since the stack is already configured when entering imx*_barebox_entry we can remove the __naked attribute. This fixes some compilation issues when some of the imx*_barebox_entry got too complicated to compile without stack. Signed-off-by: Sascha Hauer --- arch/arm/mach-imx/esdctl.c

[PATCH 1/2] ARM: i.MX: boards: Setup stack before calling imx*_barebox_entry

2015-03-04 Thread Sascha Hauer
This allows imx*_barebox_entry to use the stack. Signed-off-by: Sascha Hauer --- arch/arm/boards/eukrea_cpuimx25/lowlevel.c | 9 - arch/arm/boards/eukrea_cpuimx27/lowlevel_init.S| 5 ++--- arch/arm/boards/eukrea_cpuimx35/lowlevel.c | 5 ++--- arch/arm/boards/eukrea

[PATCH] ARM: i.MX53 QSB: remove unused /dev/env0 partition

2015-03-04 Thread Sascha Hauer
The environment on the QSB is configured via devicetree, but in the code there's also a /dev/env0 registered which is unused. Remove it. Signed-off-by: Sascha Hauer --- arch/arm/boards/freescale-mx53-qsb/board.c | 4 1 file changed, 4 deletions(-) diff --git a/arch/arm/boards/freescale-mx5