[U-Boot] [PATCHv3 3/3] travis: Split and rename xilinx ARM in to two jobs

2019-10-15 Thread Tom Rini
Split the ARMv7 and AArch64 platforms into separate jobs, to avoid them taking too long to build overall. Also rename them from "Xilinx" to "Zynq*" to reflect slightly better what is being built and to pull in a few more board matches. Cc: Michal Simek Signed-off-by: Tom Rini --- .travis.yml

Re: [U-Boot] [PATCH 26/34] binman: Correct symbol calculation with non-zero image base

2019-10-15 Thread Simon Glass
Hi Stephen, On Mon, 14 Oct 2019 at 09:49, Stephen Warren wrote: > > On 9/26/19 6:38 PM, s...@google.com wrote: > > At present binman adds the image base address to the symbol value before > > it writes it to the binary. This is not correct since the symbol value > > itself (e.g. image position)

Re: [U-Boot] [PATCH 3/3] board: tbs2910: Convert eth to driver model

2019-10-15 Thread Soeren Moch
On 14.10.19 14:40, sba...@denx.de wrote: >> So we can remove lots of legacy config code. >> Signed-off-by: Soeren Moch > Applied to u-boot-imx, master, thanks ! > Thanks, Stefano. The build system still complaints about missing DM_VIDEO conversion for this board. Are there any examples

Re: [U-Boot] [PATCHv3 3/3] travis: Split and rename xilinx ARM in to two jobs

2019-10-15 Thread Michal Simek
On 15. 10. 19 15:53, Tom Rini wrote: > Split the ARMv7 and AArch64 platforms into separate jobs, to avoid them > taking too long to build overall. Also rename them from "Xilinx" to > "Zynq*" to reflect slightly better what is being built and to pull in a > few more board matches. > > Cc: Michal

[U-Boot] [RFC PATCH v2 14/18] arm: socfpga: gen5: move clock initialization to CLK driver

2019-10-15 Thread Simon Goldschmidt
This moves setting initial clock values (as defined by Quartus handoff files) from ad-hoc code in arch to CM_CLK driver. TODO: CONFIG_CLOCKS and cmd 'clocks' must be fixed for dts access. Signed-off-by: Simon Goldschmidt --- Changes in v2: None arch/arm/mach-socfpga/Makefile|

[U-Boot] [RFC PATCH v2 05/18] arm: socfpga: gen5: move initial reset handling to reset driver

2019-10-15 Thread Simon Goldschmidt
This moves disabling all peripherals from ad-hoc code in arch/arm to the socfpga reset driver. To do this, DM initialization and UCLASS_RESET probing has to be done earlier in the SPL. Also, the gen5 devicetrees need an added property that tells the reset driver which bits to set and which need

[U-Boot] [RFC PATCH v2 11/18] ddr: socfpga: gen5: read handoff information from devicetree

2019-10-15 Thread Simon Goldschmidt
Instead of reading SDRAM handoff data from 'qts' files, read it from devicetree. Signed-off-by: Simon Goldschmidt --- Changes in v2: None drivers/ddr/altera/sdram_gen5.c | 61 - 1 file changed, 53 insertions(+), 8 deletions(-) diff --git

[U-Boot] [RFC PATCH v2 10/18] ddr: socfpga: gen5: fetch handoff information from 'of_to_platdata'

2019-10-15 Thread Simon Goldschmidt
In preparation to move handoff data from 'qts' files to devicetree, fetch SDRAM config in 'of_to_platdata' DM callback. That way, this callback can be changed to fetch the data from devicetree. Signed-off-by: Simon Goldschmidt --- Changes in v2: None drivers/ddr/altera/sdram_gen5.c | 45

[U-Boot] [RFC PATCH v2 13/18] arm: socfpga: gen5: enable DM CLK

2019-10-15 Thread Simon Goldschmidt
Enable CLK and SPL_CLK so that the new readonly clock driver is used. Signed-off-by: Simon Goldschmidt --- Changes in v2: None arch/arm/mach-socfpga/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-socfpga/Kconfig b/arch/arm/mach-socfpga/Kconfig index

[U-Boot] [RFC PATCH v2 07/18] arm: dts: socfpga: make clock nodes available in SPL

2019-10-15 Thread Simon Goldschmidt
The socfpga gen5 clock driver will need some of the clock nodes to be preserved in the SPL devicetree. Mark them appropriately. Signed-off-by: Simon Goldschmidt --- Changes in v2: - split this patch from v1 5/6 arch/arm/dts/socfpga-common-u-boot.dtsi | 70 + 1 file

[U-Boot] [RFC PATCH v2 08/18] socfpga: gen5: add new tool to create handoff dtsi files

2019-10-15 Thread Simon Goldschmidt
This new tool converts handoff information from quartus to "*_handoff.dtsi" devicetree files. This is in preparation to move from ad-hoc code in arch that parses the 'qts' header files to drivers parsing the same information from devicetree. Converting existing U-Boot 'qts' files is also

[U-Boot] [RFC PATCH v2 09/18] sdram: socfpga: gen5: make config structs dts compatible

2019-10-15 Thread Simon Goldschmidt
In preparation of moving SDRAM config from 'qts' files to devicetree, make the config structs compatible to devicetree by keeping all struct members of the same type (u8 or u32). That way, these structs can be stored to devicetree as simple array. Signed-off-by: Simon Goldschmidt --- Changes in

[U-Boot] [RFC PATCH v2 04/18] timer: dw-apb: add reset handling

2019-10-15 Thread Simon Goldschmidt
To use this timer on socfpga as system tick, it needs to take itself out of reset. Signed-off-by: Simon Goldschmidt --- Changes in v2: None drivers/timer/dw-apb-timer.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/timer/dw-apb-timer.c

[U-Boot] [PATCH 1/1] disk: part_dos: correctly detect DOS PBR

2019-10-15 Thread Heinrich Schuchardt
The signature 0x55 0xAA in bytes 510 and 511 of the first sector can either indicate a DOS partition table of the first sector of a FAT file system. The current code tries to check if the partition table is valid by looking at the boot indicator of the partition entries. But first of all it does

[U-Boot] [PATCH v2 1/2] lib: errno: check for unsupported error number

2019-10-15 Thread Heinrich Schuchardt
If errno_str() is called with an unsupported error number, do not return a random pointer but a reasonable text. Signed-off-by: Heinrich Schuchardt Reviewed-by: Simon Glass --- v2: no change --- lib/errno_str.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git

[U-Boot] [RFC PATCH v2 18/18] socfpga: gen5: move CLK and SDRAM to DM

2019-10-15 Thread Simon Goldschmidt
- removed wrapper files for sdram & pll - fix freeze_controller to not depend on OSC1 speed - remove unused function definitions - add autogenerated handoff dtsi for socfpga_socrates Signed-off-by: Simon Goldschmidt --- Changes in v2: None .../dts/socfpga_cyclone5_socrates-u-boot.dtsi | 1 +

[U-Boot] [RFC PATCH v2 16/18] spi: cadence_qspi: support DM_CLK

2019-10-15 Thread Simon Goldschmidt
Support loading clk speed via DM instead of requiring ad-hoc code. Signed-off-by: Simon Goldschmidt --- Changes in v2: None drivers/spi/cadence_qspi.c | 20 ++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/drivers/spi/cadence_qspi.c

[U-Boot] [RFC PATCH v2 17/18] arm: socfpga: gen5: parse qspi clock from devictree

2019-10-15 Thread Simon Goldschmidt
Remove the need for ad-hoc code for qspi speed. Signed-off-by: Simon Goldschmidt --- Changes in v2: None include/configs/socfpga_common.h | 5 - 1 file changed, 5 deletions(-) diff --git a/include/configs/socfpga_common.h b/include/configs/socfpga_common.h index d1034ac280..e4a5dfc5ef

[U-Boot] [RFC PATCH v2 15/18] arm: socfpga: gen5: load CLK config from devicetree

2019-10-15 Thread Simon Goldschmidt
Instead of using ad-hoc code in arch/arm, load clock config from devicetree. Signed-off-by: Simon Goldschmidt --- Changes in v2: None drivers/clk/altera/clk-gen5.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/clk/altera/clk-gen5.c

[U-Boot] [PATCH] lib: time: Add microsecond timer

2019-10-15 Thread Marek Vasut
Add get_timer_us(), which is useful e.g. when we need higher precision timestamps. Signed-off-by: Marek Vasut Cc: Tom Rini Cc: Simon Glass --- include/time.h | 1 + lib/time.c | 14 ++ 2 files changed, 15 insertions(+) diff --git a/include/time.h b/include/time.h index

Re: [U-Boot] [BUG] cmd : 'env exists envvar' does not display the existence of environment variable

2019-10-15 Thread Wolfgang Denk
Dear Adarsh, In message you wrote: > > Could you *please clarify* couple of my queries* regarding posting > questions* to the mailing list. I can try... > + Most of the postings in the mailing list are observed to be code patches. > Could we also post our observations/opinions on the

[U-Boot] [PATCH v2 2/2] test: provide test for errno_str()

2019-10-15 Thread Heinrich Schuchardt
Provide a unit test for errno_str(). Test that known and unknown error numbers are handled correctly. Signed-off-by: Heinrich Schuchardt --- v2: Do no use constants for strings. --- test/lib/Makefile | 1 + test/lib/test_errno_str.c | 46 +++

[U-Boot] [PATCH v2 0/2] lib: errno: check for unsupported error number

2019-10-15 Thread Heinrich Schuchardt
errno_str() should not return a random pointer for unknown error codes. Provide a unit test for errno_str(). v2: Do not use constants for error messages in unit test. Heinrich Schuchardt (2): lib: errno: check for unsupported error number test: provide test for errno_str()

[U-Boot] [RFC PATCH v2 03/18] arm: socfpga: gen5: increase SPL_SYS_MALLOC_F_LEN

2019-10-15 Thread Simon Goldschmidt
In preparation to adding more DM based drivers, increase the SPL pre-relocation heap just enough to allow those new drivers to run. Signed-off-by: Simon Goldschmidt --- Changes in v2: None arch/arm/mach-socfpga/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[U-Boot] [RFC PATCH v2 12/18] arm: socfpga: gen5: add readonly clk driver

2019-10-15 Thread Simon Goldschmidt
This adds clk-gen5 as a readonly DM_CLK driver that can return clocks for the peripherals. Signed-off-by: Simon Goldschmidt --- Changes in v2: None MAINTAINERS | 1 + drivers/clk/altera/Makefile | 1 + drivers/clk/altera/clk-gen5.c | 338

[U-Boot] [RFC PATCH v2 06/18] arm: dts: socfpga: add settings for gen5 clk driver

2019-10-15 Thread Simon Goldschmidt
For some clocks, the socfpga gen5 clock driver in preparation needs a source register, which is used to select the parent clock. Add these to the socfpga gen5 base device tree. Signed-off-by: Simon Goldschmidt --- Changes in v2: - split this patch from v1 5/6 arch/arm/dts/socfpga.dtsi | 5

[U-Boot] [RFC PATCH v2 02/18] dts: arm: socfpga: add label for clkmgr

2019-10-15 Thread Simon Goldschmidt
In preparation for moving socfpga gen5 clock handoff data to devicetree, add a label to the base devicetree so that dts files including this base tree can reference clkmgr by label. Signed-off-by: Simon Goldschmidt --- Changes in v2: None arch/arm/dts/socfpga.dtsi | 2 +- 1 file changed, 1

[U-Boot] [PATCH 02/37] board: ge: bx50v3: Fix run-time warning

2019-10-15 Thread Robert Beckett
From: Ian Ray Fix GPIO reservation warning on code paths that do not need LVDS power. Signed-off-by: Ian Ray Signed-off-by: Robert Beckett --- board/ge/bx50v3/bx50v3.c | 23 +-- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/board/ge/bx50v3/bx50v3.c

[U-Boot] [PATCH 00/37] convert GE boards to DM

2019-10-15 Thread Robert Beckett
This patch series converts GE boards to use DM features. Most of the patches are GE board specific to modify the board code to use the DM drivers, or modify the device tree. There are a few new features: patch 11 & 12: Add i2c_eeprom partitioning via device tree patch 16 & 17: Add an i2c chip

[U-Boot] [PATCH 26/37] board: ge: mx53ppd: move uart initialisation to own function

2019-10-15 Thread Robert Beckett
From: Ian Ray Move UART initialisation to a stand-alone function for consistency with other boards. Drop PPD_UART_PAD_CTRL since it matches defaults. Signed-off-by: Ian Ray Signed-off-by: Robert Beckett --- board/ge/mx53ppd/mx53ppd.c | 11 +++ board/ge/mx53ppd/ppd_gpio.h | 6

[U-Boot] [PATCH 27/37] board: ge: mx53ppd: enable DM_VIDEO

2019-10-15 Thread Robert Beckett
From: Ian Ray Enable DM_VIDEO for mx53ppd. This also requires DM_REGULATOR_FIXED and DM_PWM for the backlight, and `failbootcmd' is changed to use lcdputs. Remove unused MX53PPD_LCD_POWER. Signed-off-by: Ian Ray Signed-off-by: Robert Beckett --- arch/arm/dts/imx53-ppd.dts | 70

[U-Boot] [PATCH 37/37] board: ge: bx50v3: use DM PMIC driver

2019-10-15 Thread Robert Beckett
Convert the generic i2c PMIC init code to use the new da9063 driver. Signed-off-by: Robert Beckett --- board/ge/bx50v3/bx50v3.c| 81 ++--- configs/ge_bx50v3_defconfig | 3 ++ 2 files changed, 24 insertions(+), 60 deletions(-) diff --git

[U-Boot] [RFC PATCH v2 01/18] ddr: socfpga: gen5: constify altera_gen5_sdram_ops

2019-10-15 Thread Simon Goldschmidt
Make the function pointer struct const, as it does not need to be writable. This doesn't really change anything other than moving this variable to a different section. No functional change. Signed-off-by: Simon Goldschmidt --- Changes in v2: None drivers/ddr/altera/sdram_gen5.c | 2 +- 1 file

[U-Boot] [RFC PATCH v2 00/18] arm: socfpga: gen5: move to DM

2019-10-15 Thread Simon Goldschmidt
This is an RFC series with the target to move SPL code from arch to DM drivers. It is not finished, but I send this here for discussion mainly about the devicetree format with the goal of keeping the various sub- architectures (cyclone5, arria10, etc.) in the same style. Patch 8 adds a C tool to

[U-Boot] [PATCH] ARM: rmobile: Enable CONFIG_ARCH_FIXUP_FDT_MEMORY on Gen3

2019-10-15 Thread Marek Vasut
Enable CONFIG_ARCH_FIXUP_FDT_MEMORY to let U-Boot patch the Linux DT memory entries. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- configs/r8a7795_salvator-x_defconfig | 1 - configs/r8a7795_ulcb_defconfig| 1 - configs/r8a77965_salvator-x_defconfig | 1 -

[U-Boot] [PATCH 31/37] board: ge: mx53ppd: clean up DM PWM video and backlight

2019-10-15 Thread Robert Beckett
Remove old (incorrect) setup_iomux_lcd. Enable backlight via display enable handler. Use cls command to initiate display in HW agnostic manner. Signed-off-by: Robert Beckett --- board/ge/mx53ppd/mx53ppd.c | 1 - board/ge/mx53ppd/mx53ppd_video.c | 118 +--

[U-Boot] [PATCH 29/37] board: ge: mx53ppd: fix RTC compatible definition

2019-10-15 Thread Robert Beckett
From: Ian Ray Fix RTC compatible definition. Signed-off-by: Ian Ray Signed-off-by: Robert Beckett --- arch/arm/dts/imx53-ppd.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dts/imx53-ppd.dts b/arch/arm/dts/imx53-ppd.dts index 947d75b05d..484447af10 100644 ---

[U-Boot] [PATCH 28/37] rtc: s35392a: encode command correctly

2019-10-15 Thread Robert Beckett
From: Ian Ray The 3-bit "command", or register, is encoded within the device address. Configure the device accordingly, and pass command in DM I2C read/write calls correctly. Signed-off-by: Ian Ray Signed-off-by: Robert Beckett --- drivers/rtc/s35392a.c | 27 --- 1

[U-Boot] [PATCH 23/37] board: ge: bx50v3: use DM i2c for PMIC initialization

2019-10-15 Thread Robert Beckett
Use DM i2c for PMIC dc-dc buck converter initialization. Signed-off-by: Robert Beckett --- board/ge/bx50v3/bx50v3.c | 40 ++-- 1 file changed, 26 insertions(+), 14 deletions(-) diff --git a/board/ge/bx50v3/bx50v3.c b/board/ge/bx50v3/bx50v3.c index

[U-Boot] [PATCH 19/37] board: ge: bx50v3: add i2c eeprom bootcount storage

2019-10-15 Thread Robert Beckett
Add bootcount node, linking to i2c eeprom "bootcount" partitions for storage. Enable i2c eeprom bootcount backend storage. Enable bootcount command and use it for failbootcmd. Signed-off-by: Robert Beckett --- arch/arm/dts/imx6q-bx50v3.dts | 7 ++- configs/ge_bx50v3_defconfig | 6 +++---

[U-Boot] [PATCH 17/37] misc: i2c_eeprom: set offset len and chip addr offset mask

2019-10-15 Thread Robert Beckett
Set the correct offset length and chip address offset mask for each device to allow correct access to total capacity of the devices. Signed-off-by: Robert Beckett --- drivers/misc/i2c_eeprom.c | 35 +++ 1 file changed, 35 insertions(+) diff --git

[U-Boot] [PATCH 16/37] i2c: add support for offset overflow in to address

2019-10-15 Thread Robert Beckett
Some devices (2 wire eeproms for example) use some bits from the chip address to represent the high bits of the offset instead of or as well as using multiple bytes for the offset, effectively stealing chip addresses on the bus. Add a chip offset mask that can be set for any i2c chip which gets

[U-Boot] [PATCH 06/37] board: ge: pass rtc_status via device tree

2019-10-15 Thread Robert Beckett
From: Ian Ray Pass rtc_status via the device tree, instead of on kernel command line. Additionally, the 2038 mitigation is reported, if applied successfully. Signed-off-by: Ian Ray Signed-off-by: Robert Beckett --- board/ge/bx50v3/bx50v3.c| 7 ++- board/ge/common/ge_common.c | 20

[U-Boot] [PATCH 30/37] board: ge: bx50v3: Enable DM PWM for backlight

2019-10-15 Thread Robert Beckett
Add backlight and panel devicetree definitions Use UCLASS_PANEL to enable backlight via display enable handler Remove old explicit gpio code for handling backlight Use cls command to initiate display in HW agnostic manner Enable DM regulator and pwm Signed-off-by: Robert Beckett ---

[U-Boot] [PATCH 25/37] board: ge: bx50v3, mx53ppd: disable I2C compatibility API

2019-10-15 Thread Robert Beckett
Now that all i2c drivers are using DM i2c, we can disable the compatibility api. Signed-off-by: Robert Beckett --- configs/ge_bx50v3_defconfig | 1 - configs/mx53ppd_defconfig | 1 - 2 files changed, 2 deletions(-) diff --git a/configs/ge_bx50v3_defconfig b/configs/ge_bx50v3_defconfig index

[U-Boot] [PATCH 21/37] rtc: rx8010sj: fix DM initialization

2019-10-15 Thread Robert Beckett
pass the udevice by reference instead of double ref Signed-off-by: Robert Beckett --- drivers/rtc/rx8010sj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rx8010sj.c b/drivers/rtc/rx8010sj.c index 81560e16ce..2876692a37 100644 --- a/drivers/rtc/rx8010sj.c +++

[U-Boot] [PATCH 15/37] board: ge: convert vpd to use i2c eeprom

2019-10-15 Thread Robert Beckett
convert vpd reader to use DM i2c eeprom driver. remove old VPD definitions. Signed-off-by: Robert Beckett --- board/ge/bx50v3/Kconfig | 2 -- board/ge/common/Kconfig | 14 -- board/ge/common/vpd_reader.c | 37 ++-- board/ge/mx53ppd/Kconfig

Re: [U-Boot] [PATCH 26/34] binman: Correct symbol calculation with non-zero image base

2019-10-15 Thread Stephen Warren
On 10/15/19 8:07 AM, Simon Glass wrote: Hi Stephen, On Mon, 14 Oct 2019 at 09:49, Stephen Warren wrote: On 9/26/19 6:38 PM, s...@google.com wrote: At present binman adds the image base address to the symbol value before it writes it to the binary. This is not correct since the symbol value

[U-Boot] Please pull u-boot-dm

2019-10-15 Thread Simon Glass
Hi Tom, https://gitlab.denx.de/u-boot/custodians/u-boot-dm/pipelines/950 The following changes since commit 6891152a4596d38ac25d2fe1238e3b6a938554b8: Merge branch 'master' of git://git.denx.de/u-boot-socfpga (2019-10-14 21:00:10 -0400) are available in the Git repository at:

[U-Boot] [PATCH 35/37] board: ge: mx53ppd: use DM for uart

2019-10-15 Thread Robert Beckett
Set chose stdout-path in DT Add uart1 and associated pinctrl definitions in DT Remove legacy uart pad and iomux code Enable DM serial and mxc uart Signed-off-by: Robert Beckett --- arch/arm/dts/imx53-ppd.dts | 17 + board/ge/mx53ppd/mx53ppd.c | 14 --

[U-Boot] [PATCH 33/37] board: ge: bx50v3: use DM for uart

2019-10-15 Thread Robert Beckett
Set chosen stdout-path in DT Add uart3 and associated pinctrl definitions in DT Remove legacy uart pad and iomux code Enable DM serial and mxc uart Signed-off-by: Robert Beckett --- arch/arm/dts/imx6q-bx50v3.dts | 20 board/ge/bx50v3/bx50v3.c | 24

[U-Boot] [PATCH 13/37] board: ge: bx50v3: use DM I2C

2019-10-15 Thread Robert Beckett
Remove old (pre-DM) i2c setup code. Enable DM i2c. Enable compat i2c api while we migrate other i2c devices to DM i2c. Signed-off-by: Robert Beckett --- board/ge/bx50v3/bx50v3.c| 43 - configs/ge_bx50v3_defconfig | 5 + include/configs/ge_bx50v3.h |

[U-Boot] [PATCH 08/37] board: ge: mx53ppd: use imx wdt

2019-10-15 Thread Robert Beckett
Enable DM imx WDT Enable SYSRESET_WATCHDOG to maintain WDT based reset ability Signed-off-by: Robert Beckett --- arch/arm/dts/imx53-ppd.dts | 5 + board/ge/mx53ppd/mx53ppd.c | 1 - configs/mx53ppd_defconfig | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git

[U-Boot] [PATCH 12/37] misc: i2c_eeprom: add size query

2019-10-15 Thread Robert Beckett
Add ability to query size of eeprom device and partitions Signed-off-by: Robert Beckett --- drivers/misc/i2c_eeprom.c | 145 +- include/i2c_eeprom.h | 12 2 files changed, 138 insertions(+), 19 deletions(-) diff --git a/drivers/misc/i2c_eeprom.c

Re: [U-Boot] [BUG] cmd : 'env exists envvar' does not display the existence of environment variable

2019-10-15 Thread Adarsh Babu Kalepalli
Hello Wolfgang Denk, It's my mistake to tag this observation as a bug. I will take care such thing does not repeat . Could you *please clarify* couple of my queries* regarding posting questions* to the mailing list. + Most of the postings in the mailing list are observed to be code patches.

Re: [U-Boot] [PATCH] imx: update i.MX8MQ device trees

2019-10-15 Thread Patrick Wildt
On Tue, Oct 15, 2019 at 06:18:27AM +, Peng Fan wrote: > > Subject: [PATCH] imx: update i.MX8MQ device trees > > > > This updates the i.MX8MQ device trees and, necessarily, also the > > i.MX8MQ clock bindings. These are taken verbatim from from the > > Linux kernel version v5.4-rc2, which

[U-Boot] [PATCH 10/37] board: ge: mx53ppd: Add i2c bus descritpion

2019-10-15 Thread Robert Beckett
Add i2c bus devicetree description Signed-off-by: Robert Beckett --- arch/arm/dts/imx53-ppd.dts | 176 + 1 file changed, 176 insertions(+) diff --git a/arch/arm/dts/imx53-ppd.dts b/arch/arm/dts/imx53-ppd.dts index 909a76731b..84b20cdc55 100644 ---

[U-Boot] [PATCH 36/37] dm: pmic: add da9063 PMIC driver and regulators

2019-10-15 Thread Robert Beckett
Add DM driver to support Dialog DA9063. Currently it support binding regulator children. Signed-off-by: Robert Beckett --- drivers/power/pmic/Kconfig | 8 + drivers/power/pmic/Makefile | 1 + drivers/power/pmic/da9063.c | 270 ++

Re: [U-Boot] Using MinGW gcc cross-compiling host tools for Windows broken

2019-10-15 Thread Vladimir Yakovlev
I had used native mkenvimage for board deployment, but since it was replaced by python script. We had some bugs with cross compiled tools, which was not present in native linux tools. Python script like this to make unique mac addresses. ENV_SIZE = 131072 d = env_template % mac_address d =

[U-Boot] [PATCH 11/37] misc: i2c_eeprom: add fixed partitions support

2019-10-15 Thread Robert Beckett
Add ability to partition eeprom via devicetree bindings Signed-off-by: Robert Beckett --- drivers/misc/i2c_eeprom.c | 98 +++ 1 file changed, 98 insertions(+) diff --git a/drivers/misc/i2c_eeprom.c b/drivers/misc/i2c_eeprom.c index 8f2349ad5a..7add8fcc0f

[U-Boot] [PATCH 01/37] configs: bx50v3: Fix boot hang with video

2019-10-15 Thread Robert Beckett
From: Ian Ray Fixes commit: 0b09f7b15052bb419e318e38da453be46e5a13e5, which converted to DM_VIDEO, but requires more memory. [Inspired by 9002e735e71754a90adbb9676c0ffb1964dbc288] Signed-off-by: Ian Ray Signed-off-by: Robert Beckett --- configs/ge_bx50v3_defconfig | 1 + 1 file changed, 1

[U-Boot] [PATCH 14/37] board: ge: mx53ppd: use DM I2C

2019-10-15 Thread Robert Beckett
Remove old (pre-DM) i2c setup code. The old iomux setup was setting up the wrong pins. Enable DM i2c. Enable MXC DM i2c driver. Enable compat i2c api while we migrate other i2c devices to DM i2c. Define CONFIG_SYS_MALLOC_F_LEN so that DM is available in pre-reloc. Make GPIO banks available during

[U-Boot] [PATCH 05/37] board: ge: bx50v3: Enable DM for PCI and ethernet

2019-10-15 Thread Robert Beckett
From: Denis Zalevskiy DM for PCI pulls DM for ethernet that also needs other changes described below to build u-boot and keep existing functionality - ability to update MAC addresses of FEC ethernet adapter and I210 adapter connected to the Marvell switch. - fec_mxc driver with DM needs PHYLIB;

[U-Boot] [PATCH 22/37] board: ge: bx50v3, mx53ppd: use DM rtc

2019-10-15 Thread Robert Beckett
Convert common code to use DM rtc. Remove old (pre-DM) rtc defines and config. Add uboot specific devicetree binding name for bx50v3 rtc Signed-off-by: Robert Beckett --- arch/arm/dts/imx6q-bx50v3.dts | 2 +- board/ge/common/ge_common.c | 17 ++--- configs/ge_bx50v3_defconfig |

[U-Boot] [PATCH 32/37] board: ge: mx53ppd: Use DM for ethernet

2019-10-15 Thread Robert Beckett
Add fec ethernet and pinctrl DT config. Remove legacy iomux setup for fec. Enable phylib and DM fec. Use Kconfig for enabling fec. Signed-off-by: Robert Beckett --- arch/arm/dts/imx53-ppd.dts | 24 board/ge/mx53ppd/mx53ppd.c | 26 --

[U-Boot] [PATCH] arm: mxs: Increase VDDD voltage to match specification

2019-10-15 Thread Marek Vasut
According to IMX28CEC rev. 4, 10/2018, Table 15. Recommended Operating Conditions, page 16, the VDDD should be set to 1.55V when the CPU is operating at 454MHz. This is the case in U-Boot, hence increase the VDDD voltage. This fixes instability when performing TFTP transfers. Increase the brownout

Re: [U-Boot] [PULL] u-boot-usb/master

2019-10-15 Thread Jean-Jacques Hiblot
On 15/10/2019 11:36, Jean-Jacques Hiblot wrote: Hi Marek, On 15/10/2019 03:01, Marek Vasut wrote: On 10/15/19 2:59 AM, Tom Rini wrote: On Tue, Oct 15, 2019 at 01:34:57AM +0200, Marek Vasut wrote: The following changes since commit 44fb0d6c9f5147a41c710032869e5e01b3c9e310:    Merge tag

[U-Boot] [PATCH 07/37] board: ge: bx50v3: use imx wdt

2019-10-15 Thread Robert Beckett
Enable DM imx WDT Enable SYSRESET_WATCHDOG to maintain WDT based reset ability Signed-off-by: Robert Beckett --- arch/arm/dts/imx6q-bx50v3.dts | 4 configs/ge_bx50v3_defconfig | 3 +++ 2 files changed, 7 insertions(+) diff --git a/arch/arm/dts/imx6q-bx50v3.dts

[U-Boot] [PATCH 18/37] bootcount: add a DM i2c eeprom backing store for bootcount

2019-10-15 Thread Robert Beckett
This driver allows the use of i2c eeprom device or partition as backing store for boot counter values with DM enabled. Signed-off-by: Robert Beckett --- drivers/bootcount/Kconfig | 10 drivers/bootcount/Makefile | 1 + drivers/bootcount/i2c-eeprom.c | 95

[U-Boot] [PATCH 03/37] board: ge: bx50v3: Fix message output to video console

2019-10-15 Thread Robert Beckett
From: Ian Ray Use vidconsole for output to the LCD, now that DM_VIDEO is used. Write white text on a black background, like before migrating to DM_VIDEO. Signed-off-by: Ian Ray Signed-off-by: Robert Beckett --- board/ge/bx50v3/bx50v3.c| 21 ++---

Re: [U-Boot] [PULL] u-boot-usb/master

2019-10-15 Thread Marek Vasut
On 10/15/19 6:59 PM, Jean-Jacques Hiblot wrote: > > On 15/10/2019 11:36, Jean-Jacques Hiblot wrote: >> Hi Marek, >> >> On 15/10/2019 03:01, Marek Vasut wrote: >>> On 10/15/19 2:59 AM, Tom Rini wrote: On Tue, Oct 15, 2019 at 01:34:57AM +0200, Marek Vasut wrote: > The following

[U-Boot] [PATCH 34/37] serial: mxc: add imx53 and imx21 compatible string

2019-10-15 Thread Robert Beckett
Add compatible string for imx53 and imx21. Signed-off-by: Robert Beckett --- drivers/serial/serial_mxc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/serial/serial_mxc.c b/drivers/serial/serial_mxc.c index 42abb96a26..8e19a89151 100644 --- a/drivers/serial/serial_mxc.c +++

[U-Boot] [PATCH 20/37] board: ge: mx53ppd: add i2c eeprom bootcount storage

2019-10-15 Thread Robert Beckett
Add bootcount node, linking to i2c eeprom "bootcount" partitions for storage. Enable i2c eeprom bootcount backend storage. Enable bootcount command and use it for failbootcmd. Signed-off-by: Robert Beckett --- arch/arm/dts/imx53-ppd.dts | 5 + configs/mx53ppd_defconfig | 8 +---

[U-Boot] [PATCH 04/37] configs: ppd: DM for USB and regulators PPD

2019-10-15 Thread Robert Beckett
From: Denis Zalevskiy DM should be used for USB since 2019.07, it also requires DM for regulators. Signed-off-by: Denis Zalevskiy Signed-off-by: Robert Beckett --- configs/mx53ppd_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/mx53ppd_defconfig

[U-Boot] [PATCH 09/37] board: ge: bx50v3: Add i2c bus description

2019-10-15 Thread Robert Beckett
Add i2c bus devicetree description Signed-off-by: Robert Beckett --- arch/arm/dts/imx6q-bx50v3.dts | 351 ++ 1 file changed, 351 insertions(+) diff --git a/arch/arm/dts/imx6q-bx50v3.dts b/arch/arm/dts/imx6q-bx50v3.dts index 2e2e3bbc24..4dd2ce3038 100644 ---

[U-Boot] [PATCH 24/37] board: ge: mx53ppd: remove redundant power config

2019-10-15 Thread Robert Beckett
Remove unused power configuration. The code never calls pmic_init, so this was not being used, and stops the build if left enabled when CONFIG_DM_I2C_COMPAT is diabled. Signed-off-by: Robert Beckett --- include/configs/mx53ppd.h | 9 - 1 file changed, 9 deletions(-) diff --git

Re: [U-Boot] [PATCH] ubi: env: fix redundand management

2019-10-15 Thread Heiko Schocher
Hello Philippe, Am 14.10.2019 um 19:41 schrieb Philippe Reynes: We check (with a #if defined()) the config ENV_UBI_VOLUME_REDUND to know if there is a redundant env. But this config is a string and is always defined with env is in ubi, so we always condider typo. that a redundand env is

[U-Boot] problems with building u-boot-fit-dtb.bin

2019-10-15 Thread Heiko Schocher
Hello Tom, I planned to send my patches which convert the imx6 based aristainetos boards to support DM ... building U-Boot works fine on 2 different build machines at home, also on 2 build machines in munich @ denx ... So I startet as usual a travi build and I get:

Re: [U-Boot] [PATCH] lib: time: Add microsecond timer

2019-10-15 Thread Simon Glass
Hi Marek, On Tue, 15 Oct 2019 at 14:43, Marek Vasut wrote: > > Add get_timer_us(), which is useful e.g. when we need higher > precision timestamps. Can we use timer_get_us()? It seems confusing to have two. > > Signed-off-by: Marek Vasut > Cc: Tom Rini > Cc: Simon Glass > --- >

Re: [U-Boot] [PATCH v4 1/6] dm: regulator: support regulator more state

2019-10-15 Thread Kever Yang
Hi Elaine,     This patch can not pass the Travis test(pytest option), please help to update this patch, you can leave other patches as is and update this patch only. Thanks, - Kever On 2019/9/26 下午3:43, Elaine Zhang wrote: From: Joseph Chen support parse regulator standard property:

[U-Boot] [PATCH] imx: imx8m: fix boot when CONFIG_$(SPL_)CLK not defined

2019-10-15 Thread Peng Fan
When CONFIG_$(SPL_)CLK not defined, the clock controller device not exist, so to avoid boot failure for platform not have CONFIG_$(SPL_)CLK, add a check. Reviewed-by: Patrick Wildt Tested-by: Patrick Wildt Signed-off-by: Peng Fan --- V1: Based on pull request

[U-Boot] [PATCH v2 1/9] mpc85xx, socrates: suppress unknown flash warning

2019-10-15 Thread Heiko Schocher
suppress warning: Flash: ## Unknown flash on Bank 1 - Size = 0x = 0 MB Signed-off-by: Heiko Schocher --- Changes in v2: None include/configs/socrates.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/socrates.h b/include/configs/socrates.h index

[U-Boot] [PATCH v2 0/9] powerpc: convert socrates board to DM

2019-10-15 Thread Heiko Schocher
convert the socrates board to use DM. needed pending PCI patch http://patchwork.ozlabs.org/patch/1176108/ fixes compiler warnings: = WARNING == This board does not use CONFIG_DM. CONFIG_DM will be compulsory starting with the v2020.01 release. Failure to

Re: [U-Boot] [PATCH] imx: update i.MX8MQ device trees

2019-10-15 Thread Peng Fan
> Subject: [PATCH] imx: update i.MX8MQ device trees > > This updates the i.MX8MQ device trees and, necessarily, also the > i.MX8MQ clock bindings. These are taken verbatim from from the > Linux kernel version v5.4-rc2, which three small changes which > were already part of the previous device

Re: [U-Boot] [PATCH] nvme: use page-aligned buffer for identify command

2019-10-15 Thread Bin Meng
On Mon, Oct 14, 2019 at 7:10 PM Patrick Wildt wrote: > > Change the stack-allocated buffer for the identification command > to explicitly allocate page-aligned buffers. Even though the spec > seems to allow having admin queue commands on non page-aligned > buffers, it seems to not be possible on

Re: [U-Boot] [PATCH 050/126] x86: timer: Reduce timer code size in TPL on Intel CPUs

2019-10-15 Thread Simon Glass
Hi Bin, On Sun, 13 Oct 2019 at 20:00, Bin Meng wrote: > > Hi Simon, > > On Sun, Oct 13, 2019 at 1:55 AM Simon Glass wrote: > > > > Hi Bin, > > > > On Fri, 11 Oct 2019 at 23:18, Bin Meng wrote: > > > > > > Hi Simon, > > > > > > On Sat, Oct 12, 2019 at 11:38 AM Simon Glass wrote: > > > > > > >

Re: [U-Boot] [PATCH 082/126] x86: Adjust mrccache_get_region() to use livetree

2019-10-15 Thread Simon Glass
Hi Bin, On Thu, 10 Oct 2019 at 00:45, Bin Meng wrote: > > Hi Simon, > > On Wed, Sep 25, 2019 at 10:59 PM Simon Glass wrote: > > > > Change the algorithm to first find the flash device then read the > > properties using the livetree API. With this change the device is not > > probed so this

Re: [U-Boot] [PATCH 000/126] x86: Add initial support for apollolake

2019-10-15 Thread Simon Glass
Hi Bin, On Thu, 10 Oct 2019 at 11:06, Simon Glass wrote: > > Hi Bin, > > On Mon, 7 Oct 2019 at 08:31, Bin Meng wrote: > > > > Hi Simon, > > > > On Wed, Oct 2, 2019 at 8:34 PM Bin Meng wrote: > > > > > > Hi Simon, > > > > > > On Wed, Oct 2, 2019 at 10:15 AM Simon Glass wrote: > > > > > > > >

[U-Boot] [PATCH v2 2/9] mpc85xx: add socrates dts from linux

2019-10-15 Thread Heiko Schocher
add socrates device tree from linux: commit 71ae5fc87c34 ("Merge tag 'linux-kselftest-5.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest") and added SPDX license identifier. Did not fix checkpatch warnings: arch/powerpc/dts/socrates.dts:235: check: Please don't use

[U-Boot] [PATCH v2 4/9] mpc85xx, socrates: add DM support

2019-10-15 Thread Heiko Schocher
enable CONFIG_DM for the socrates board. Signed-off-by: Heiko Schocher --- Changes in v2: None board/socrates/socrates.c | 15 +++ configs/socrates_defconfig | 6 +- include/configs/socrates.h | 13 +++-- 3 files changed, 27 insertions(+), 7 deletions(-) diff --git

[U-Boot] [PATCH v2 9/9] mpc85xx, socrates: add DM PCI support

2019-10-15 Thread Heiko Schocher
add DM PCI support on the socrates board. use PCIE_FSL now. Signed-off-by: Heiko Schocher --- Changes in v2: - use separate PCI driver for mpc85xx as Z.q. Hou mentioned: and drop the patchseries: pci: pcie_fsl: add support for none PCIe devices

[U-Boot] [PATCH v2 5/9] mpc85xx, socrates: get rid of DM_USB warning

2019-10-15 Thread Heiko Schocher
add some defines and get rid of USB warning. Signed-off-by: Heiko Schocher --- Changes in v2: None configs/socrates_defconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configs/socrates_defconfig b/configs/socrates_defconfig index 1730d5793b..2c87ec5134 100644 ---

[U-Boot] [PATCH v2 7/9] mpc85xx, socrates: enable DM I2C

2019-10-15 Thread Heiko Schocher
enable DM I2C support for the socrates board. Signed-off-by: Heiko Schocher --- Changes in v2: None configs/socrates_defconfig | 4 +++- include/configs/socrates.h | 18 +- 2 files changed, 4 insertions(+), 18 deletions(-) diff --git a/configs/socrates_defconfig

Re: [U-Boot] [PATCH v2 2/2] test: provide test for errno_str()

2019-10-15 Thread Simon Glass
On Tue, 15 Oct 2019 at 13:46, Heinrich Schuchardt wrote: > > Provide a unit test for errno_str(). Test that known and unknown error > numbers are handled correctly. > > Signed-off-by: Heinrich Schuchardt > --- > v2: > Do no use constants for strings. > --- > test/lib/Makefile |

Re: [U-Boot] [PATCH 16/37] i2c: add support for offset overflow in to address

2019-10-15 Thread Simon Glass
Hi Robert, On Tue, 15 Oct 2019 at 09:55, Robert Beckett wrote: > > Some devices (2 wire eeproms for example) use some bits from the chip > address to represent the high bits of the offset instead of or as well > as using multiple bytes for the offset, effectively stealing chip > addresses on the

Re: [U-Boot] [PATCH v2] spl: Introduce SPL_DM_GPIO Kconfig define

2019-10-15 Thread Simon Glass
Hi Lukasz, On Mon, 14 Oct 2019 at 06:41, Lukasz Majewski wrote: > > Hi Simon, > > > Hi Lukasz, > > > > On Wed, 9 Oct 2019 at 03:02, Lukasz Majewski wrote: > > > > > > Dear Tom, > > > > > > > This define indicates if DM_GPIO shall be supported in SPL. This > > > > allows proper operation of DM

[U-Boot] [PATCH v2 6/9] mpc85xx, socrates: disable VIDEO

2019-10-15 Thread Heiko Schocher
disable video, as not really needed longer. Signed-off-by: Heiko Schocher --- Changes in v2: None board/socrates/socrates.c | 180 + configs/socrates_defconfig | 3 - include/configs/socrates.h | 15 3 files changed, 2 insertions(+), 196

[U-Boot] [PATCH v2 3/9] mpc85xx, dts, socrates: add u-boot specific dtsi

2019-10-15 Thread Heiko Schocher
add u-boot specific dtsi file for socrates board. Signed-off-by: Heiko Schocher --- Changes in v2: None arch/powerpc/dts/socrates-u-boot.dtsi | 40 +++ board/socrates/MAINTAINERS| 1 + 2 files changed, 41 insertions(+) create mode 100644

[U-Boot] [PATCH v2 8/9] mpc85xx, socrates: enable DM serial

2019-10-15 Thread Heiko Schocher
switch to DM_SERIAL support. Signed-off-by: Heiko Schocher --- Changes in v2: None board/socrates/socrates.c | 5 + configs/socrates_defconfig | 3 +++ include/configs/socrates.h | 12 3 files changed, 8 insertions(+), 12 deletions(-) diff --git

Re: [U-Boot] [PATCH] test/py: hush_if_test: Add tests to cover octal/hex values

2019-10-15 Thread Michal Simek
Hi Simon, On 11. 10. 19 17:53, Simon Glass wrote: > Hi Michal, > > On Fri, 11 Oct 2019 at 01:50, Michal Simek wrote: >> >> On 10. 10. 19 19:06, Simon Glass wrote: >>> Hi Michal, >>> >>> On Thu, 10 Oct 2019 at 05:44, Michal Simek wrote: Extend test suite to cover also automatic

  1   2   >