[PATCH] ARM: i.MX: rdu2: Make use of imx_setup_pad()

2018-06-19 Thread Andrey Smirnov
While at it, also remove pinux configuration for RX pin (completely unused) and fix strange setup_uart()'s indentation. Signed-off-by: Andrey Smirnov --- arch/arm/boards/zii-imx6q-rdu2/lowlevel.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git

[PATCH] ARM: i.MX: babbage: Make use of imx_setup_pad()

2018-06-19 Thread Andrey Smirnov
Signed-off-by: Andrey Smirnov --- arch/arm/boards/freescale-mx51-babbage/lowlevel.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/arch/arm/boards/freescale-mx51-babbage/lowlevel.c b/arch/arm/boards/freescale-mx51-babbage/lowlevel.c index 1c20b6a7a..216576ca2

Re: [PATCH] MIPS: dts: drop skeleton.dtsi

2018-06-19 Thread Oleksij Rempel
Tested-by Oleksij Rempel on dpt board. Am 19.06.2018 um 19:14 schrieb Antony Pavlov: > Based on feedback from Sascha: > > http://lists.infradead.org/pipermail/barebox/2018-April/032694.html > " > skeleton.dtsi should no longer be used > " > > Several reasons to remove

[PATCH] MIPS: dts: drop skeleton.dtsi

2018-06-19 Thread Antony Pavlov
Based on feedback from Sascha: http://lists.infradead.org/pipermail/barebox/2018-April/032694.html " skeleton.dtsi should no longer be used " Several reasons to remove skeleton.dtsi ares explained in the linux commit 3ebee5a2e141 ("arm64: dts: kill skeleton.dtsi"). Unit number

Re: [PATCH 1/2] ARM: babbage: Make PMIC initialization shareable

2018-06-19 Thread Andrey Smirnov
On Tue, Jun 19, 2018 at 1:51 AM Lucas Stach wrote: > > Am Montag, den 18.06.2018, 22:43 -0700 schrieb Andrey Smirnov: > > Some board designs copy i.MX51 Babbadge board's PMIC design and so > > require exactly the same initialization. Move correspoding code into a > > separate file, add new

Re: [PATCH 2/2] ARM: i.MX: Add support for ZII RDU1 board

2018-06-19 Thread Andrey Smirnov
On Tue, Jun 19, 2018 at 1:51 AM Lucas Stach wrote: > > Am Montag, den 18.06.2018, 22:43 -0700 schrieb Andrey Smirnov: > > ZII RDU1 is a i.MX51 based, Babbade board derivative supported by > > upstream kernel. This commit adds support for it to Barebox. > > > > > Signed-off-by: Nikita Yushchenko

Re: [PATCH] mmc_extcsd command: Add cmd option to set bkops-enable

2018-06-19 Thread Sascha Hauer
On Mon, Jun 18, 2018 at 12:03:58PM +0200, Christoph Fritz wrote: > This patch is for convenience to set bkops-enable (EXT_CSD_BKOPS_EN[163]) > on devices which have it not yet activated. > > Signed-off-by: Christoph Fritz > --- Applied, thanks Sascha > commands/mmc_extcsd.c | 26

Re: [PATCH] ARM: dts: advantech-rom-7421: add hog pinctrl node

2018-06-19 Thread Sascha Hauer
On Sun, Jun 17, 2018 at 03:28:41PM +0200, Christoph Fritz wrote: > The Advantech ROM-7421 has a custom watchdog reset i2c chip that has > some control gpios. This watchdog is currently not used, therefore mux > its control pins as pull-downs to be sure that the watchdog is disabled > after e.g. a

Re: [PATCH 2/2] ARM: i.MX: Add support for ZII RDU1 board

2018-06-19 Thread Lucas Stach
Am Dienstag, den 19.06.2018, 14:34 +0300 schrieb Nikita Yushchenko: > > > > > > + imx51_bbu_internal_spi_i2c_register_handler("spi", > > > > > > + > > > > > > "/dev/dataflash0.barebox", > > > +

Re: [PATCH 2/2] ARM: i.MX: Add support for ZII RDU1 board

2018-06-19 Thread Nikita Yushchenko
>> +imx51_bbu_internal_spi_i2c_register_handler("spi", >> +"/dev/dataflash0.barebox", >> +BBU_HANDLER_FLAG_DEFAULT); > > Did you test that this works? The Barebox partition has an offset and >

Re: [PATCH 2/2] ARM: i.MX: Add support for ZII RDU1 board

2018-06-19 Thread Lucas Stach
Am Montag, den 18.06.2018, 22:43 -0700 schrieb Andrey Smirnov: > ZII RDU1 is a i.MX51 based, Babbade board derivative supported by > upstream kernel. This commit adds support for it to Barebox. > > > Signed-off-by: Nikita Yushchenko > > Signed-off-by: Andrey Smirnov > --- >  

Re: [PATCH 1/2] ARM: babbage: Make PMIC initialization shareable

2018-06-19 Thread Lucas Stach
Am Montag, den 18.06.2018, 22:43 -0700 schrieb Andrey Smirnov: > Some board designs copy i.MX51 Babbadge board's PMIC design and so > require exactly the same initialization. Move correspoding code into a > separate file, add new compatiblity string and make appropriate > Kconfig change to allow

Re: [PATCH 00/27] Console code consolidation

2018-06-19 Thread Sascha Hauer
On Mon, Jun 18, 2018 at 04:26:28PM -0700, Andrey Smirnov wrote: > On Mon, Jun 18, 2018 at 1:49 PM Sascha Hauer wrote: > > > > On Fri, Jun 15, 2018 at 05:11:17AM -0700, Andrey Smirnov wrote: > > Leave them in for now. So far I haven't seen the major selling point for > > this series. It makes some

[PATCH 2/5] console: remove duplicate newline conversion

2018-06-19 Thread Sascha Hauer
When the console is not yet fully initialized then console_puts falls back to print characters using console_putc. console_putc already does newline conversion, so do not repeat it in console_puts. Signed-off-by: Sascha Hauer --- common/console.c | 5 ++--- 1 file changed, 2 insertions(+), 3

[PATCH 5/5] console_simple: add newline conversion for putc_ll case

2018-06-19 Thread Sascha Hauer
When console_putc uses putc_ll for early printing then it must do a newline conversion as putc_ll doesn't do it. Signed-off-by: Sascha Hauer --- common/console_simple.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/console_simple.c b/common/console_simple.c index

[PATCH 3/5] console_simple: Remove duplicated newline conversion

2018-06-19 Thread Sascha Hauer
console_puts uses console_putc for printing which already does newline conversion, so do not do it again in console_puts. Signed-off-by: Sascha Hauer --- common/console_simple.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/common/console_simple.c b/common/console_simple.c index

[PATCH 4/5] console_simple: Fix newline conversion

2018-06-19 Thread Sascha Hauer
Newline should be "\r\n" rather than "\n\r" Signed-off-by: Sascha Hauer --- common/console_simple.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/console_simple.c b/common/console_simple.c index 0825ec07ec..ee87b8c52f 100644 --- a/common/console_simple.c +++

[PATCH 1/5] console: add missing newline conversion for putc_ll

2018-06-19 Thread Sascha Hauer
putc_ll doesn't do newline conversion (and it shouldn't do, as it's a static inline function for early debugging, adding more code there is not nice), so add newline conversion to the console code when it uses putc_ll for printing early messages. Signed-off-by: Sascha Hauer --- common/console.c

[PATCH 3/5] ARM: dts: remove @0 from environment nodes

2018-06-19 Thread Sascha Hauer
The environment nodes do not have a reg property and as such should not have a @0 suffix. Newer dtc warns about this, so remove it. Signed-off-by: Sascha Hauer --- .../devicetree/bindings/barebox/barebox,environment.rst | 2 +- arch/arm/dts/am335x-afi-gf.dts

[PATCH 0/5] fix/quiesce dtc warnings

2018-06-19 Thread Sascha Hauer
Since the dtc update there are tons of new warnings. This series fixes some warnings and disables others (the same that are disabled in the kernel aswell). Sascha Sascha Hauer (5): ARM: dts: use stdout-path property console: Update description for global.linux.bootargs.console ARM: dts:

[PATCH 5/5] dtc: Disable some warnings

2018-06-19 Thread Sascha Hauer
Disable the dtc warnings that are disabled in the kernel aswell. Signed-off-by: Sascha Hauer --- scripts/Makefile.lib | 6 ++ 1 file changed, 6 insertions(+) diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 3024b068ee..3b13086050 100644 --- a/scripts/Makefile.lib +++

[PATCH 1/5] ARM: dts: use stdout-path property

2018-06-19 Thread Sascha Hauer
linx,stdout-path has been deprecated. Use stdout-path instead. Signed-off-by: Sascha Hauer --- arch/arm/dts/am335x-baltos-minimal.dts | 2 +- arch/arm/dts/am335x-bone-common.dtsi | 2 +- arch/arm/dts/am335x-phytec-phycard-som.dtsi| 2 +-

[PATCH 4/5] ARM: dts: imx6q-var-custom: remove some accidently pasted text

2018-06-19 Thread Sascha Hauer
Signed-off-by: Sascha Hauer --- arch/arm/dts/imx6q-var-custom.dts | 7 --- 1 file changed, 7 deletions(-) diff --git a/arch/arm/dts/imx6q-var-custom.dts b/arch/arm/dts/imx6q-var-custom.dts index 9fc364ed9a..ddb220fb0a 100644 --- a/arch/arm/dts/imx6q-var-custom.dts +++

[PATCH 2/5] console: Update description for global.linux.bootargs.console

2018-06-19 Thread Sascha Hauer
Replace linux,stdout-path with stdout-path as the former is deprecated. Signed-off-by: Sascha Hauer --- common/console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/console.c b/common/console.c index ab3d4d397c..d5f93c65df 100644 --- a/common/console.c +++