Re: [PATCH] drivers: Drop dummy_porbe()

2019-02-27 Thread Sascha Hauer
On Wed, Feb 27, 2019 at 10:19:06AM +0100, Uwe Kleine-König wrote: > $Subject ~= s/porbe/probe/ Yes, I fixed that. Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8,

Re: [PATCH] ARM: i.MX6UL: liteSOM: depend on DDR controller settings

2019-02-27 Thread Marcin Niestrój
Sascha Hauer writes: > On Tue, Feb 26, 2019 at 02:05:29PM +0100, Marcin Niestroj wrote: >> Initially we depended on DDR controller settings for liteSOM and liteboard. >> With >> 33fdc89d4cbd ("dts: update to v5.0-rc1") a `device_type = "memory";` property >> was added to imx6ul-litesom.dtsi

Re: [PATCH 5/7] ARM: imx8mq-zii-ultra: Enable PCIE1 and PCIE2

2019-02-27 Thread Lucas Stach
Am Dienstag, den 26.02.2019, 19:16 -0800 schrieb Andrey Smirnov: > Enable PCIE1 and PCIE2 used on both Zest and RMB3 boards. > > > Signed-off-by: Andrey Smirnov > --- >  arch/arm/dts/imx8mq-zii-ultra.dtsi | 62 ++ >  1 file changed, 62 insertions(+) > > diff --git

Re: [PATCH 7/7] ARM: imx8mq-zii-ultra: Add USB related nodes

2019-02-27 Thread Lucas Stach
Am Dienstag, den 26.02.2019, 19:16 -0800 schrieb Andrey Smirnov: > Add nodes for exposed USB ports as well as USB hub connected to one of > them. > > > Signed-off-by: Andrey Smirnov > --- >  arch/arm/dts/imx8mq-zii-ultra-rmb3.dts |  4 +++ >  arch/arm/dts/imx8mq-zii-ultra.dtsi | 34

[PATCH v2 2/3] ARM: rpi: save fdt that was passed from VideoCore

2019-02-27 Thread Tomaz Solc
On Raspberry Pi, VideoCore firmware creates a device tree that contains information about peripherals that were initialized by VideoCore based on settings in config.txt. Normally this device tree is passed to the Linux kernel via a pointer in the r2 register. A bootloader needs to pass this device

[PATCH v2 3/3] ARM: rpi: save bootargs from VC FDT to vc.bootargs

2019-02-27 Thread Tomaz Solc
When booting a Raspberry Pi, it is useful to extract bootargs from the device tree that was created by the VideoCore firmware. These bootargs contain for example settings for the framebuffer that the kernel needs to properly set the video output. This commit extracts the bootargs in the board

[PATCH v2 1/3] ARM: start: save end of memory passed to start.

2019-02-27 Thread Tomaz Solc
Knowing the address of the end of the memory area used by Barebox is useful if PBL stores some extra data after it, so that board init code can later retrieve it from there. --- arch/arm/cpu/start.c | 8 arch/arm/include/asm/barebox-arm.h | 1 + 2 files changed, 9

[PATCH v2 0/3] VideoCore FDT interop for Raspberry Pi

2019-02-27 Thread Tomaz Solc
Changes from the first patch series: - Drop of_bootargs command in favour of automatically extracting VideoCore bootargs to vc.bootargs global in board initialization. Sorry for forgetting to update the copyright header in of_bootargs.c. This file is gone now. - Replace printf() with

[PATCH 3/5] i2c: i.MX: Track stopped status in I2CR_MSTA bit

2019-02-27 Thread Sascha Hauer
We can track the stopped status in the I2CR_MSTA bit, no need for an extra variable. Also we can call i2c_fsl_stop() instead of open coding it in i2c_fsl_read(). Signed-off-by: Sascha Hauer --- drivers/i2c/busses/i2c-imx.c | 43 +--- 1 file changed, 15

[PATCH 0/5] i2c: i.MX driver some cleanup

2019-02-27 Thread Sascha Hauer
Some small improvements for the i.MX I2C driver. Sascha Hauer (5): i2c: i.MX: Do not call i2c_fsl_bus_busy twice i2c: i.MX: move disabling of controller out of i2c_fsl_stop i2c: i.MX: Track stopped status in I2CR_MSTA bit i2c: i.MX: consolidate code i2c: i.MX: fix variable name

[PATCH 4/5] i2c: i.MX: consolidate code

2019-02-27 Thread Sascha Hauer
We have to write to FSL_I2C_I2DR and wait for completion/ack three times in the code. Instead of open coding it each time create a helper function for it. Signed-off-by: Sascha Hauer --- drivers/i2c/busses/i2c-imx.c | 54 ++-- 1 file changed, 21 insertions(+), 33

Re: [PATCH] drivers: Drop dummy_porbe()

2019-02-27 Thread Uwe Kleine-König
$Subject ~= s/porbe/probe/ Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-König| Industrial Linux Solutions | http://www.pengutronix.de/ | ___ barebox mailing list barebox@lists.infradead.org

[PATCH 2/5] i2c: i.MX: move disabling of controller out of i2c_fsl_stop

2019-02-27 Thread Sascha Hauer
Move disabling of the controller out of i2c_fsl_stop(). This makes the function reusable in other places in the next patch. Signed-off-by: Sascha Hauer --- drivers/i2c/busses/i2c-imx.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/i2c/busses/i2c-imx.c

[PATCH 5/5] i2c: i.MX: fix variable name

2019-02-27 Thread Sascha Hauer
i2c_fsl_write() and i2c_fsl_read() take exactly one i2c message, not multiple ones, hence rename the variable from "msgs" to "msg". Signed-off-by: Sascha Hauer --- drivers/i2c/busses/i2c-imx.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git

[PATCH 1/5] i2c: i.MX: Do not call i2c_fsl_bus_busy twice

2019-02-27 Thread Sascha Hauer
In i2c_fsl_stop() we call i2c_fsl_bus_busy() a second time when it fails. If it fails once it won't succeed the second time, so drop the second call. Signed-off-by: Sascha Hauer --- drivers/i2c/busses/i2c-imx.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/i2c/busses/i2c-imx.c

Re: [PATCH 5/7] ARM: imx8mq-zii-ultra: Enable PCIE1 and PCIE2

2019-02-27 Thread Andrey Smirnov
On Wed, Feb 27, 2019 at 3:18 AM Lucas Stach wrote: > > Am Dienstag, den 26.02.2019, 19:16 -0800 schrieb Andrey Smirnov: > > Enable PCIE1 and PCIE2 used on both Zest and RMB3 boards. > > > > > Signed-off-by: Andrey Smirnov > > --- > > arch/arm/dts/imx8mq-zii-ultra.dtsi | 62

Re: [PATCH 7/7] ARM: imx8mq-zii-ultra: Add USB related nodes

2019-02-27 Thread Andrey Smirnov
On Wed, Feb 27, 2019 at 3:10 AM Lucas Stach wrote: > > Am Dienstag, den 26.02.2019, 19:16 -0800 schrieb Andrey Smirnov: > > Add nodes for exposed USB ports as well as USB hub connected to one of > > them. > > > > > Signed-off-by: Andrey Smirnov > > --- > > arch/arm/dts/imx8mq-zii-ultra-rmb3.dts

[PATCH 2/2] fixup! ARM: imx8mq-zii-ultra: Add USB related nodes

2019-02-27 Thread Andrey Smirnov
--- arch/arm/dts/imx8mq-zii-ultra-rmb3.dts | 2 +- arch/arm/dts/imx8mq-zii-ultra.dtsi | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/arm/dts/imx8mq-zii-ultra-rmb3.dts b/arch/arm/dts/imx8mq-zii-ultra-rmb3.dts index 78280029b..dd4379bd5 100644 ---

[PATCH 1/2] fixup! ARM: imx8mq-zii-ultra: Enable PCIE1 and PCIE2

2019-02-27 Thread Andrey Smirnov
--- arch/arm/dts/imx8mq-zii-ultra.dtsi | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/arch/arm/dts/imx8mq-zii-ultra.dtsi b/arch/arm/dts/imx8mq-zii-ultra.dtsi index d46a26d81..0c124a5ec 100644 --- a/arch/arm/dts/imx8mq-zii-ultra.dtsi +++