Re: [PATCH v2 0/9] at91: Support PMC clock bindings

2019-02-17 Thread Sam Ravnborg
Hi all. > Sam Ravnborg (9): > clocksource: Do not mix depends and select for ATMEL_PIT > arm: at91: fix at91_configure_usart6 warning > arm: at91: add SOC_SAMA5{D3,D4} > clk: at91: add at91sam9260 > clk: at91: add at91sam9rl > clk: at91: add at91sam9x5 >

Re: [PATCH] dts: Revert at91 switch to new PMC clock bindings

2019-02-17 Thread Sam Ravnborg
On Sat, Feb 16, 2019 at 11:14:33PM +0100, Sam Ravnborg wrote: > Hi Ladislav > > > Recent DTS update brought in switch to the new PMC clock > > bindings, however we do not support that yet. Revert this > > change until PMC clock bindings support is implemented. > > I have now ported the clk code

[PATCH v2 1/9] clocksource: Do not mix depends and select for ATMEL_PIT

2019-02-17 Thread Sam Ravnborg
CLOCKSOURCE_ATMEL_PIT was both set to yes using depends on and using select. Use only select to set this non-visible symbol to 'y' Signed-off-by: Sam Ravnborg --- drivers/clocksource/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/clocksource/Kconfig

[PATCH v2 0/9] at91: Support PMC clock bindings

2019-02-17 Thread Sam Ravnborg
The following patchset add supports for the PMC clk bindings for at91. The patchset was tested on: - at91sam9264ek - DT enabled - sama5d4-xplained - non DT The patchset includes sama5d2.c which is not used today. I have a sama5d27-som1-ek board that I hope to find time to work with and then this

[PATCH v2 2/9] arm: at91: fix at91_configure_usart6 warning

2019-02-17 Thread Sam Ravnborg
Add declaration to silence following warning: arch/arm/mach-at91/sama5d4_devices.c:487:24: warning: no previous prototype for ‘at91_configure_usart6’ Signed-off-by: Sam Ravnborg --- arch/arm/mach-at91/include/mach/board.h | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v2 6/9] clk: at91: add at91sam9x5

2019-02-17 Thread Sam Ravnborg
Add at91sam9x5 as part of supporting the PMC bindings for ARM at91. The file will be wired into the build in a follow-up patch. The file is a copy from kernel 5.0-rc6 modified to build with barebox. Signed-off-by: Sam Ravnborg --- drivers/clk/at91/at91sam9x5.c | 315

[PATCH v2 8/9] clk: at91: add sama5d4

2019-02-17 Thread Sam Ravnborg
Add sama5d4 as part of supporting the PMC bindings for ARM at91. The file will be wired into the build in a follow-up patch. The file is a copy from kernel 5.0-rc6 modified to build with barebox. Signed-off-by: Sam Ravnborg --- drivers/clk/at91/sama5d4.c | 270

[PATCH v2 7/9] clk: at91: add sama5d2

2019-02-17 Thread Sam Ravnborg
Add sama5d2 as part of supporting the PMC bindings for ARM at91. The file will be wired into the build in a follow-up patch. The file is a copy from kernel 5.0-rc6 modified to build with barebox. Signed-off-by: Sam Ravnborg --- drivers/clk/at91/sama5d2.c | 342

[PATCH v2 5/9] clk: at91: add at91sam9rl

2019-02-17 Thread Sam Ravnborg
Add at91sam9rl as part of supporting the PMC bindings for ARM at91. The file will be wired into the build in a follow-up patch. The file is a copy from kernel 5.0-rc6 modified to build with barebox. Signed-off-by: Sam Ravnborg --- drivers/clk/at91/at91sam9rl.c | 177

[PATCH v2 4/9] clk: at91: add at91sam9260

2019-02-17 Thread Sam Ravnborg
Add at91sam9260 as part of supporting the PMC bindings for ARM at91. The file will be wired into the build in a follow-up patch. The file is a copy from kernel 5.0-rc6 modified to build with barebox. Signed-off-by: Sam Ravnborg --- drivers/clk/at91/at91sam9260.c | 497

[PATCH v2 3/9] arm: at91: add SOC_SAMA5{D3,D4}

2019-02-17 Thread Sam Ravnborg
This split allows us to distingush between the two SOC types. The SOC_SAMA5D3 and SOC_SAMA5D4 symbols will be used in following patches. Signed-off-by: Sam Ravnborg --- arch/arm/mach-at91/Kconfig | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git

[PATCH v2 9/9] clk: at91: update to new bindings

2019-02-17 Thread Sam Ravnborg
Based on kernel 5.0-rc6 update at91 clk support to match the new PMC bindings. Manually added all changes done in the kernel from 4.9-rc3 to 5.0-rc6. New drivers required was added as seperate commits. The kernel has a dt-compat file for all the backward compatibility code. As barebox has only a

Re: [PATCH v2 0/9] at91: Support PMC clock bindings

2019-02-17 Thread Ladislav Michl
Hi Sam, On Sun, Feb 17, 2019 at 07:44:15PM +0100, Sam Ravnborg wrote: > Hi all. > > > Sam Ravnborg (9): > > clocksource: Do not mix depends and select for ATMEL_PIT > > arm: at91: fix at91_configure_usart6 warning > > arm: at91: add SOC_SAMA5{D3,D4} > > clk: at91: add

Re: [PATCH v2 0/9] at91: Support PMC clock bindings

2019-02-17 Thread Sam Ravnborg
Hi Ladislav On Sun, Feb 17, 2019 at 10:32:55PM +0100, Ladislav Michl wrote: > Hi Sam, > > On Sun, Feb 17, 2019 at 07:44:15PM +0100, Sam Ravnborg wrote: > > Hi all. > > > > > Sam Ravnborg (9): > > > clocksource: Do not mix depends and select for ATMEL_PIT > > > arm: at91: fix

[PATCH v2] Documentation: add watchdog documentation

2019-02-17 Thread Oleksij Rempel
Signed-off-by: Oleksij Rempel --- Documentation/user/user-manual.rst | 1 + Documentation/user/watchdog.rst| 116 + 2 files changed, 117 insertions(+) create mode 100644 Documentation/user/watchdog.rst diff --git a/Documentation/user/user-manual.rst

[PATCH v1 3/4] MIPS: relocation: do not use configurable memory layout

2019-02-17 Thread Oleksij Rempel
The relocator is not able to patch properly new location of the stack. To make it work properly it is better to disable HAVE_CONFIGURABLE_MEMORY_LAYOUT. Signed-off-by: Oleksij Rempel --- arch/mips/Kconfig | 1 - arch/mips/boot/main_entry-pbl.c| 4 ++--

[PATCH v1 1/4] MIPS: relocation: pass ram size to pbl_main_entry

2019-02-17 Thread Oleksij Rempel
From: Oleksij Rempel To make barebox dynamically relocatable it should know the RAM size to be able to calculate proper new location. Signed-off-by: Oleksij Rempel --- arch/mips/boards/8devices-lima/lowlevel.S | 3 ++- arch/mips/boards/black-swift/lowlevel.S | 3 ++-

[PATCH v1 2/4] MIPS: relocation: add relocation support

2019-02-17 Thread Oleksij Rempel
From: Oleksij Rempel this patch i a port of following patch from u-boot with some additional integration changes and fixes of original code: | Subject: [PATCH] MIPS: Stop building position independent code | | U-Boot has up until now built with -fpic for the MIPS architecture, | producing

[PATCH v1 4/4] MIPS: remove request_sdram_region "fdt"

2019-02-17 Thread Oleksij Rempel
It is actually not needed at barebox runtime Signed-off-by: Oleksij Rempel --- arch/mips/boot/dtb.c | 4 1 file changed, 4 deletions(-) diff --git a/arch/mips/boot/dtb.c b/arch/mips/boot/dtb.c index ea30e16f21..5e316270f6 100644 --- a/arch/mips/boot/dtb.c +++ b/arch/mips/boot/dtb.c @@

Re: [PATCH v2] Documentation: add watchdog documentation

2019-02-17 Thread Oleksij Rempel
On 18.02.19 08:05, Oleksij Rempel wrote: Signed-off-by: Oleksij Rempel --- Documentation/user/user-manual.rst | 1 + Documentation/user/watchdog.rst| 116 + 2 files changed, 117 insertions(+) create mode 100644 Documentation/user/watchdog.rst diff

[PATCH v3] Documentation: add watchdog documentation

2019-02-17 Thread Oleksij Rempel
Signed-off-by: Oleksij Rempel --- Documentation/user/user-manual.rst | 1 + Documentation/user/watchdog.rst| 116 + 2 files changed, 117 insertions(+) create mode 100644 Documentation/user/watchdog.rst diff --git a/Documentation/user/user-manual.rst

Re: [PATCH v3] Documentation: add watchdog documentation

2019-02-17 Thread Tomaž Šolc
On 18. 02. 19 08:12, Oleksij Rempel wrote: +A watchdog is the last line of defense on misbehaving systems. Thus, proper +hardware and watchdog design considerations should be made to be able to reduce +the impact of failing systems in the field. In the best case, the bootloader +should not touch