[PATCH] fixup! clk: at91: update to PMC bindings

2019-02-18 Thread Ahmad Fatoum
As the sama5d3 based microchip-ksz9477-evb board still uses the old bindings, the dt-compat.c code is ported as well. This can be removed when all in-kernel at91 boards have been ported to the new bindings. Signed-off-by: Ahmad Fatoum --- drivers/clk/at91/Makefile| 2 +- drivers/clk/at91/d

Re: [PATCH v3 9/9] clk: at91: update to PMC bindings

2019-02-18 Thread Ahmad Fatoum
Hello Sam, On 18/2/19 20:47, Sam Ravnborg wrote: > 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 f

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

2019-02-18 Thread Sam Ravnborg
Hi Sascha > > Applied, thanks. Since AT91 is broken currently I applied it to master. I did not see it in master yet so I sent a full v3 with build fixes and Tested-by: annotations. It this is too late for master I will do a follow-up with only the build fix changes. Sam __

[PATCH] ARM: dts: imx6*phytec*: switch to new partitioning scheme

2019-02-18 Thread Uwe Kleine-König
Both Linux and barebox support this new scheme and it's the actually the recommended one. Signed-off-by: Uwe Kleine-König --- .../dts/imx6dl-phytec-phycore-som-emmc.dts| 21 + .../dts/imx6dl-phytec-phycore-som-nand.dts| 21 + arch/arm/dts/imx6q-phytec-pcaaxl3.dtsi

[PATCH v3 9/9] clk: at91: update to PMC bindings

2019-02-18 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

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

2019-02-18 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 v3 7/9] clk: at91: add sama5d2

2019-02-18 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 v3 4/9] clk: at91: add at91sam9260

2019-02-18 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 Tested-by: Ladislav Michl --- drivers/clk/at91/at91sam9260.c | 497

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

2019-02-18 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 v3 3/9] arm: at91: add SOC_SAMA5{D3,D4}

2019-02-18 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 Tested-by: Ladislav Michl --- arch/arm/mach-at91/Kconfig | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) di

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

2019-02-18 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 w

[PATCH v3 1/9] arm: at91: fix at91_configure_usart6 warning

2019-02-18 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 a/arch/arm/mach-at91/in

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

2019-02-18 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 v3 2/9] clocksource: Do not mix depends and select for ATMEL_PIT

2019-02-18 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 Tested-by: Ladislav Michl --- drivers/clocksource/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/clocksource/Kconfig

[PATCH] genenv: create a gcc-like .d file for depenencies.

2019-02-18 Thread Tomaz Solc
Commit 658af1ca mentions that environment build dependencies are not tracked and the complete environment is rebuilt on every build. However commit 105201e0 added if_changed to the make rule, so this is currently not the case. Environment is only rebuilt if barebox_default_env is missing or if CON

Re: [PATCH] LICENSES: adopt Linux-like LICENSES directory structure

2019-02-18 Thread Sam Ravnborg
Hi Ahmad. On Mon, Feb 18, 2019 at 09:31:05AM +0100, Sascha Hauer wrote: > On Fri, Feb 15, 2019 at 09:56:10AM +0100, Ahmad Fatoum wrote: > > On 11/2/19 09:00, Sascha Hauer wrote: > > >> diff --git a/LICENSES/exceptions/u-boot-exception-2.0 > > >> b/LICENSES/exceptions/u-boot-exception-2.0 > > >> n

[PATCH v2 3/8] pinctrl: bcm2835: move existing code from gpio.

2019-02-18 Thread Tomaz Solc
--- arch/arm/configs/rpi_defconfig | 2 +- drivers/gpio/Kconfig | 4 drivers/gpio/Makefile | 1 - drivers/pinctrl/Kconfig| 6 ++ drivers/pinctrl/Makef

[PATCH v2 7/8] ARM: rpi: Add device tree for Compute Module 3.

2019-02-18 Thread Tomaz Solc
Compute Module needs "no-sd" property on the MMC interface otherwise mci-bcm2835 hangs on SD card probe. --- arch/arm/boards/raspberry-pi/lowlevel.c | 10 ++ arch/arm/dts/Makefile | 1 + arch/arm/dts/bcm2837-rpi-cm3.dts| 18 ++ arch/arm/mach-bcm28

[PATCH v2 0/8] Fixing MMC access on Raspberry Pi CM3

2019-02-18 Thread Tomaz Solc
Changes from the first patch series: - Base Compute Module 3 device tree off upstream device tree for CM3 + IO3 dev board, instead of R. Pi 3B. - Keep Makefile.bcm283x without a newline at the end of file. - Make mci init before pinctrl by moving mci-bcm2835 to device_initcall() instead o

[PATCH v2 2/8] Kconfig: add pin controllers submenu.

2019-02-18 Thread Tomaz Solc
--- drivers/pinctrl/Kconfig | 4 1 file changed, 4 insertions(+) diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig index 12fff4f01..de83c124a 100644 --- a/drivers/pinctrl/Kconfig +++ b/drivers/pinctrl/Kconfig @@ -1,3 +1,5 @@ +menu "Pin controllers" + config PINCTRL bool

[PATCH v2 6/8] mci: bcm2835: parse other device tree properties.

2019-02-18 Thread Tomaz Solc
The driver was missing a call to mci_of_parse() which fills in properties such as "bus-width", "no-sd" into the mci_host struct. --- drivers/mci/mci-bcm2835.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mci/mci-bcm2835.c b/drivers/mci/mci-bcm2835.c index e7dbb4f1d..2ed125167 100

[PATCH v2 4/8] pinctrl: bcm2835: register the pin controller.

2019-02-18 Thread Tomaz Solc
This adds hooks for the pin controller driver to the existing bcm2835_set_function(). --- drivers/pinctrl/pinctrl-bcm2835.c | 52 ++- 1 file changed, 51 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl-bcm2835.c b/drivers/pinctrl/pinctrl-bcm28

[PATCH v2 5/8] mci: bcm2835: use device_initcall(), not coredev.

2019-02-18 Thread Tomaz Solc
pinctrl driver needs to be initialized before mci driver on Raspberry Pi. Otherwise the pinctrl device tree properties in the mci node are ignored. pinctrl is initialized by coredevice_initcall(), so moving mci-bcm2835 to device_initcall() ensures that it is initialized later. There is no reason f

[PATCH v2 8/8] ARM: rpi: add CONFIG_PINCTRL to rpi_defconfig.

2019-02-18 Thread Tomaz Solc
Required for emmc pin function switching on Raspberry Pi 3. --- arch/arm/configs/rpi_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/configs/rpi_defconfig b/arch/arm/configs/rpi_defconfig index 35943e025..f167625c9 100644 --- a/arch/arm/configs/rpi_defconfig

[PATCH v2 1/8] ARM: rpi: switch emmc from sdhost to sdhci

2019-02-18 Thread Tomaz Solc
BCM2837 has two mmc interfaces: sdhost and sdhci. On Raspberry Pi 3, sdhost is normally used for SD card/MMC flash and sdhci for the wireless interface. Barebox currently only has a driver for sdhci, so we disable the sdhost interface and remap the pins so that the sdhci has access to the SD card/M

Re: [PATCH 5/7] mci: move after pinctrl in link order.

2019-02-18 Thread Tomaž Šolc
On 18. 02. 19 09:42, Sascha Hauer wrote: On Thu, Feb 14, 2019 at 02:24:27PM +0100, Tomaz Solc wrote: pinctrl driver needs to be initialized before mci driver or the pinctrl device tree properties in the mci node are ignored. Since mci is already initialized by the coredevice_initcall(), changing

Re: [PATCH v3] Documentation: add watchdog documentation

2019-02-18 Thread Oleksij Rempel
On 18.02.19 09:56, Tomaž Šolc wrote: On 18. 02. 19 09:06, Oleksij Rempel wrote: On 18.02.19 08:56, Tomaž Šolc wrote: On 18. 02. 19 08:12, Oleksij Rempel wrote: +In case the bootloader is responsible for watchdog activation, the system can +be considered as failed by design. I think this is

Re: [PATCH] commands: nandtest: provide readonly test

2019-02-18 Thread Sascha Hauer
On Wed, Feb 13, 2019 at 03:17:46PM +0100, Jan Remmet wrote: > Test will read the device and report the corrected or failed ECC states. > > Signed-off-by: Jan Remmet > --- > commands/nandtest.c | 125 > ++-- > 1 file changed, 83 insertions(+), 42 d

Re: [PATCH v3] Documentation: add watchdog documentation

2019-02-18 Thread Tomaž Šolc
On 18. 02. 19 09:06, Oleksij Rempel wrote: On 18.02.19 08:56, Tomaž Šolc wrote: On 18. 02. 19 08:12, Oleksij Rempel wrote: +In case the bootloader is responsible for watchdog activation, the system can +be considered as failed by design. I think this is too strongly worded and I would leave

Re: [PATCH v2] ARM: i.MX8MQ: Add code to report HDMI/eDP firmware version

2019-02-18 Thread Sascha Hauer
On Tue, Feb 12, 2019 at 05:09:07PM -0800, Andrey Smirnov wrote: > Port code found in cdn_dp_load_firmware() in Linux kernel to check if > HDMI firmware is running and, if so, report its version. > > Signed-off-by: Andrey Smirnov > --- > > Changes since [v1]: > > - Added CPU type check to pr

Re: [PATCH] ARM: i.MX8MQ: Check CPU type in imx8mq_init_syscnt_frequency()

2019-02-18 Thread Sascha Hauer
On Tue, Feb 12, 2019 at 05:11:04PM -0800, Andrey Smirnov wrote: > Add code to make sure that imx8mq_init_syscnt_frequency() is only > executed on i.MX8MQ. > > Signed-off-by: Andrey Smirnov > --- > arch/arm/mach-imx/imx8mq.c | 3 +++ > 1 file changed, 3 insertions(+) Applied, thanks Sascha --

Re: [PATCH] watchdog: fix WATCHDOG_POLLER menuconfig

2019-02-18 Thread Sascha Hauer
On Fri, Feb 15, 2019 at 10:01:19AM +0100, Oleksij Rempel wrote: > make it properly represented by menuconfig > > Signed-off-by: Oleksij Rempel > --- > drivers/watchdog/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied, thanks Sascha > > diff --git a/drivers/watchdog/Kco

Re: [PATCH v2 0/4] add (U)EFI watchdog

2019-02-18 Thread Sascha Hauer
On Fri, Feb 15, 2019 at 01:43:47PM +0100, Oleksij Rempel wrote: > changes v2: > - efi_wdt_set_timeout() should return error if we get error from (U)EFI > - use device_platform_driver() > - spelling and formatting fixes in the documentation. > > Oleksij Rempel (4): > efi: add prototype and defini

Re: [PATCH v1 3/3] amba: pl011: make locally used functions static

2019-02-18 Thread Sascha Hauer
On Thu, Feb 14, 2019 at 02:51:57PM +0100, Roland Hieber wrote: > Hi Sascha, > > the other two patches in this series are on master now, but this one > seems to have fallen through the cracks. Not really. Your patch indeed isn't applied, but we got the same from Sam: 864fb024cf ("serial: amba-pl01

Re: [PATCH] watchdog: bcm2835: set timeout_max.

2019-02-18 Thread Sascha Hauer
On Thu, Feb 14, 2019 at 02:36:34PM +0100, Tomaz Solc wrote: > BCM2835 watchdog timeout can be set to maximum 15 seconds (0xff >> 16). > --- > drivers/watchdog/bcm2835_wdt.c | 5 + > 1 file changed, 5 insertions(+) Applied, thanks Sascha > > diff --git a/drivers/watchdog/bcm2835_wdt.c b

Re: [PATCH 5/7] mci: move after pinctrl in link order.

2019-02-18 Thread Sascha Hauer
On Thu, Feb 14, 2019 at 02:24:27PM +0100, Tomaz Solc wrote: > pinctrl driver needs to be initialized before mci driver or the pinctrl > device tree properties in the mci node are ignored. Since mci is already > initialized by the coredevice_initcall(), changing the link order is currently > the onl

Re: [PATCH] LICENSES: adopt Linux-like LICENSES directory structure

2019-02-18 Thread Sascha Hauer
On Fri, Feb 15, 2019 at 09:56:10AM +0100, Ahmad Fatoum wrote: > On 11/2/19 09:00, Sascha Hauer wrote: > >> diff --git a/LICENSES/exceptions/u-boot-exception-2.0 > >> b/LICENSES/exceptions/u-boot-exception-2.0 > >> new file mode 100644 > >> index ..c9b3cd981f51 > >> --- /dev/null > >> +

Re: [PATCH 0/8] Bootchooser Documentation Update

2019-02-18 Thread Sascha Hauer
On Fri, Feb 15, 2019 at 01:53:40PM +0100, Enrico Jorns wrote: > This is a collection of some documentation updates, fixes and > clarifications for the bootchooser framework. > > Enrico Jorns (8): > doc: bootchooser: fix typos etc. > doc: bootchooser: explicitly note configuration vs. storage b

Re: [PATCH 0/8] NVME support

2019-02-18 Thread Sascha Hauer
On Mon, Feb 11, 2019 at 10:40:14PM -0800, Andrey Smirnov wrote: > Everyone: > > This series contains all of the changes I made in order to add support > for NVME storage in Barebox. Majority of the code was adapted directly > from Linux kernel and I tried to keep it as close to the original as > p

Re: [PATCH] efi: cleanups

2019-02-18 Thread Sascha Hauer
On Fri, Feb 15, 2019 at 10:00:37AM +0100, Oleksij Rempel wrote: > make local functions static and remove unused code > > Signed-off-by: Oleksij Rempel > --- Applied, thanks Sascha -- Pengutronix e.K. | | Industrial Linux Solutions

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

2019-02-18 Thread Sascha Hauer
On Sun, Feb 17, 2019 at 05:16:00PM +0100, Sam Ravnborg wrote: > 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

Re: [PATCH v3] Documentation: add watchdog documentation

2019-02-18 Thread Oleksij Rempel
On 18.02.19 08:56, Tomaž Šolc wrote: 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