Re: [PATCH 4/4] i2c: gpio: Run deblock sequence on probe

2020-02-17 Thread Heiko Schocher
pio.c | 15 +++ 1 file changed, 15 insertions(+) Nitpick: I see no entry in doc/device-tree-bindings/i2c/i2c-gpio.txt for the new dts binding ... please send a follow up patch which adds it, or a v2 for this one, thanks! Reviewed-by: Heiko Schocher bye, Heiko diff --git a/drivers/i2c/

Re: [PATCH 3/4] i2c: Add option to send start condition after deblocking

2020-02-17 Thread Heiko Schocher
(-) Reviewed-by: Heiko Schocher diff --git a/drivers/i2c/i2c-uclass.c b/drivers/i2c/i2c-uclass.c index 86f529241f..e9ec388576 100644 --- a/drivers/i2c/i2c-uclass.c +++ b/drivers/i2c/i2c-uclass.c @@ -504,9 +504,10 @@ static int i2c_gpio_get_pin(struct gpio_desc *pin) int i2c_deblock_gpio_loop(struct

Re: [PATCH 2/4] i2c: Export i2c_deblock_gpio_loop()

2020-02-17 Thread Heiko Schocher
as GPIOs again. Signed-off-by: Marek Vasut --- drivers/i2c/i2c-uclass.c | 8 include/i2c.h| 16 2 files changed, 20 insertions(+), 4 deletions(-) Reviewed-by: Heiko Schocher bye, Heiko -- DENX Software Engineering GmbH, Managing Director

Re: [PATCH 1/4] i2c: Make deblock delay and SCL clock configurable

2020-02-17 Thread Heiko Schocher
+++-- 1 file changed, 11 insertions(+), 10 deletions(-) Reviewed-by: Heiko Schocher bye, Heiko -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: h

Re: use invd instead of wbinvd in real mode start code

2020-02-17 Thread Heiko Schocher
Hello Andy, Am 17.02.2020 um 17:04 schrieb Wolfgang Denk: Dear Andy, In message you wrote: On Mon, Feb 17, 2020 at 5:09 PM Wolfgang Denk wrote: In message you wrote: git bisect is the usual way to figure out the culprit. Too much work to do this way. If you find bisecting is too m

Re: [U-Boot] Sharing a hardware lab

2020-02-12 Thread Heiko Schocher
Hello Simon, Am 12.02.2020 um 18:14 schrieb Simon Glass: Hi Heiko, On Wed, 12 Feb 2020 at 01:50, Heiko Schocher wrote: Hello Simon, Am 05.02.2020 um 15:10 schrieb Simon Glass: Hi Tom, On Wed, 4 Dec 2019 at 15:30, Tom Rini wrote: On Fri, Nov 29, 2019 at 09:23:43PM -0700, Simon Glass

Re: [U-Boot] Sharing a hardware lab

2020-02-12 Thread Heiko Schocher
Hello Simon, Am 05.02.2020 um 15:10 schrieb Simon Glass: Hi Tom, On Wed, 4 Dec 2019 at 15:30, Tom Rini wrote: On Fri, Nov 29, 2019 at 09:23:43PM -0700, Simon Glass wrote: Hi Tom, I have been meaning to have a crack at setting up a little hardware lab for a while. I made some progress rec

Re: dm, serial: problem with using ns16550 driver before relocation on mpc83xx

2020-02-11 Thread Heiko Schocher
Hello Mario, Simon, Am 10.02.2020 um 07:16 schrieb Mario Six: Hi Heiko, On Fri, Feb 7, 2020 at 6:53 AM Heiko Schocher wrote: Hi Simon, removed Dirk from cc and added Mario Six @Mario: Dirk is maintainer of the gazerbeam board: https://gitlab.denx.de/u-boot/u-boot/blob/master/board/gdsys

Re: net: porting qe driver to DM

2020-02-10 Thread Heiko Schocher
From: Heiko Schocher Sent: Monday, February 03, 2020 16:11 To: u-boot@lists.denx.de Cc: Mario Six ; York Sun ; Ran Wang Subject: net: porting qe driver to DM Hello all, somebody working on porting the drivers/qe to DM ? Thanks! bye, Heiko -- DENX Software Engineering GmbH, Managing Dire

Re: dm, serial: problem with using ns16550 driver before relocation on mpc83xx

2020-02-09 Thread Heiko Schocher
Hello Mario, Am 10.02.2020 um 07:16 schrieb Mario Six: Hi Heiko, On Fri, Feb 7, 2020 at 6:53 AM Heiko Schocher wrote: Hi Simon, removed Dirk from cc and added Mario Six @Mario: Dirk is maintainer of the gazerbeam board: https://gitlab.denx.de/u-boot/u-boot/blob/master/board/gdsys/mpc8308

Re: dm, serial: problem with using ns16550 driver before relocation on mpc83xx

2020-02-06 Thread Heiko Schocher
board? May you can try, if current U-Boot mainline works (in special serial console) on it? thanks! Am 06.02.2020 um 18:46 schrieb Simon Glass: Hi Heiko, On Wed, 5 Feb 2020 at 22:19, Heiko Schocher wrote: Hello Simon, Am 05.02.2020 um 18:59 schrieb Simon Glass: Hi Heiko, On Wed, 5 Feb 2020 at

Re: dm, serial: problem with using ns16550 driver before relocation on mpc83xx

2020-02-05 Thread Heiko Schocher
Hello Simon, Am 05.02.2020 um 18:59 schrieb Simon Glass: Hi Heiko, On Wed, 5 Feb 2020 at 02:04, Heiko Schocher wrote: Hello Bin, Simon, I just porting the mpc83xx based kmcoge5ne board support DTS and got problems using the serial ns16550 driver. I need the serial driver before rolcation

dm, serial: problem with using ns16550 driver before relocation on mpc83xx

2020-02-05 Thread Heiko Schocher
Hello Bin, Simon, I just porting the mpc83xx based kmcoge5ne board support DTS and got problems using the serial ns16550 driver. I need the serial driver before rolcation, so I enabled "u-boot,dm-pre-reloc;" as usual in the device tree, but board does not boot ... I found the commit: commit 46

[PATCH v3 2/2] gpio: search for gpio label if gpio is not found through bank name

2020-02-04 Thread Heiko Schocher
different board versions. If dm_gpio_lookup_name() searches also for the gpio labels, you can give the gpio an unique label name and search for this label, and do not need to differ between board revisions. Signed-off-by: Heiko Schocher --- Example on the aristainetos board: => gpio cl

[PATCH v3 0/2] gpio: add possibility to search for gpio label name

2020-02-04 Thread Heiko Schocher
comment from Simon Glass move code into seperate function dm_gpio_lookup_label() add test if dm_gpio_lookup_label() works Heiko Schocher (2): sandbox, test: add test for GPIO_HOG function gpio: search for gpio label if gpio is not found through bank name arch/sandbox/dts/test.dts

[PATCH v3 1/2] sandbox, test: add test for GPIO_HOG function

2020-02-04 Thread Heiko Schocher
currently gpio hog function is not tested with "ut dm gpio" so add some basic tests for gpio hog functionality. For this enable GPIO_HOG in sandbox_defconfig, add in DTS some gpio hog entries, and add testcase in "ut dm gpio" command. Signed-off-by: Heiko Schocher ---

Re: [RFC PATCH 03/10] i2c: mmc: add nexell driver (gpio, i2c, mmc, pwm)

2020-02-03 Thread Heiko Schocher
Hello Stefan, Am 03.02.2020 um 21:40 schrieb Stefan Bosch: Changes in relation to FriendlyARM's U-Boot nanopi2-v2016.01: - i2c/nx_i2c.c: Some adaptions mainly because of changes in "struct udevice". - mmc: nexell_dw_mmc.c changed to nexell_dw_mmc_dm.c (switched to DM). Signed-off-by: Stefan

Re: [PATCH v2 04/17] tegra: i2c: Change driver to use helper function

2020-02-03 Thread Heiko Schocher
/tegra_i2c.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) Reviewed-by: Heiko Schocher bye, Heiko -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-52 Fax: +49-8142

net: porting qe driver to DM

2020-02-03 Thread Heiko Schocher
Hello all, somebody working on porting the drivers/qe to DM ? Thanks! bye, Heiko -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: h...@denx.de

Re: [PATCH v2 2/2] gpio: search for gpio label if gpio is not found through bank name

2020-02-02 Thread Heiko Schocher
Hello Simon, Am 03.02.2020 um 01:04 schrieb Simon Glass: On Sat, 1 Feb 2020 at 01:03, Heiko Schocher wrote: dm_gpio_lookup_name() searches for a gpio through the bank name. But we have also gpio labels, and it makes sense to search for a gpio also in the labels we have defined, if no gpio is

[PATCH v2 2/2] gpio: search for gpio label if gpio is not found through bank name

2020-02-01 Thread Heiko Schocher
different board versions. If dm_gpio_lookup_name() searches also for the gpio labels, you can give the gpio an unique label name and search for this label, and do not need to differ between board revisions. Signed-off-by: Heiko Schocher --- Example on the aristainetos board: => gpio cl

[PATCH v2 1/2] sandbox, test: add test for GPIO_HOG function

2020-02-01 Thread Heiko Schocher
currently gpio hog function is not tested with "ut dm gpio" so add some basic tests for gpio hog functionality. For this enable GPIO_HOG in sandbox_defconfig, add in DTS some gpio hog entries, and add testcase in "ut dm gpio" command. Signed-off-by: Heiko Schocher ---

[PATCH v2 0/2] gpio: add possibility to search for gpio label name

2020-02-01 Thread Heiko Schocher
test functions in seperate patch. Travis build: https://travis-ci.org/hsdenx/u-boot-test/builds/644219338 Changes in v2: - add basic gpio hog test functions - add comment from Simon Glass move code into seperate function dm_gpio_lookup_label() add test if dm_gpio_lookup_label() works Heiko

[PATCH] imx6: aristainetos: fix NAND detection with latest mainline

2020-01-30 Thread Heiko Schocher
commit 88718be30010 ("mtd: rename CONFIG_NAND -> CONFIG_MTD_RAW_NAND") moved CONFIG_NAND -> CONFIG_MTD_RAW_NAND. Adapt board code to this change, as last merge did not respect the above commit. Signed-off-by: Heiko Schocher --- board/aristainetos/aristainetos.c | 2 +- 1

Re: [PATCH] global_data: remove unused mxc_i2c specific field

2020-01-28 Thread Heiko Schocher
Hello Baruch, Am 25.12.2019 um 16:57 schrieb Baruch Siach: The srdata field is unused since commit 71204e95ce13228 ("i2c: mxc: refactor i2c driver and support dm"). Cc: Peng Fan Signed-off-by: Baruch Siach Reviewed-by: Peng Fan --- include/asm-generic/global_data.h | 3 --- 1 file changed

Re: [PATCH v3 00/23] i2c: designware_ic2: Improvements to timing and general cleanup

2020-01-28 Thread Heiko Schocher
Hello Simon, Am 23.01.2020 um 19:48 schrieb Simon Glass: This series updates the Designware I2C driver to support reading its timing from the device tree and handling it in units of nanoseconds instead of clock cycles. A new function converts from nanoseconds to the units used by the I2C contro

[U-Boot] Please pull from u-boot-i2c

2020-01-28 Thread Heiko Schocher
Hello Tom, please pull from u-boot-i2c master branch: The following changes since commit c05b38df477a50c3918b50c5f986592411785859: common: fix regression on block cache init (2020-01-26 13:36:14 -0500) are available in the Git repository at: https://gitlab.denx.de/u-boot/custodians/u-boot

Re: [PATCH] dm: i2c-gpio: add support for clock stretching

2020-01-26 Thread Heiko Schocher
(indicating that the I2C slave is no longer pulling it low). Signed-off-by: Michael Auchter Cc: Heiko Schocher --- drivers/i2c/i2c-gpio.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/drivers/i2c/i2c-gpio.c b/drivers/i2c/i2c-gpio.c index 4e8fa21473..80ac26e583

Re: [PATCH] i2c: gpio: Add custom deblock sequence

2020-01-26 Thread Heiko Schocher
Hello Marek, Am 24.01.2020 um 19:12 schrieb Marek Vasut: Add custom deblock dequence for the I2C bus, needed on some devices. This sequence is issued once, when probing the driver, and is controlled by DT property, "i2c-gpio,deblock". Signed-off-by: Marek Vasut --- drivers/i2c/i2c-gpio.c | 6

Re: [PATCH] bootcount: make i2c version ready for DM driver

2020-01-26 Thread Heiko Schocher
Hello Holger, Am 22.01.2020 um 09:33 schrieb Holger Brunck: If the board already uses DM_I2C we need to use the dm i2c calls. Signed-off-by: Holger Brunck CC: Heiko Schocher CC: Marek Vasut --- drivers/bootcount/bootcount_i2c.c | 21 + 1 file changed, 21 insertions

imx6ull: random crashes when setting REFTOP_SELBIASOFF

2020-01-23 Thread Heiko Schocher
Hello Fabio, Peng, I have here an imx6ull based board from DH electronics [1] which has the IMX_THERMAL driver enabled in U-Boot and Linux. We see on Linux boot random crashes (random means not on every boot, also not even the same crash dump/reason in linux). My first suggestion was instable RMA

Re: [PATCH] [FS] Print error message for unknown device type

2020-01-22 Thread Heiko Schocher
make clear what happens, and why. Signed-off-by: Wolfgang Denk --- disk/part.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) Tested on wandboard. Tested-by: Heiko Schocher diff --git a/disk/part.c b/disk/part.c index 8982ef3bae..14000835c8 100644 --- a/disk/part.c +++ b/disk/

Re: [PATCH v2 19/19] i2c: Update drivers to use enum for speed

2020-01-15 Thread Heiko Schocher
/i2c/omap24xx_i2c.c | 3 ++- drivers/i2c/rcar_i2c.c | 2 +- drivers/i2c/rcar_iic.c | 2 +- drivers/i2c/s3c24x0_i2c.c| 4 ++-- drivers/i2c/sandbox_i2c.c| 3 ++- 14 files changed, 30 insertions(+), 26 deletions(-) Reviewed-by: Heiko Schocher bye, Heiko -- DENX

Re: [PATCH v2 18/19] i2c: stm32: Update to use standard enums for speed

2020-01-15 Thread Heiko Schocher
+++ 1 file changed, 16 insertions(+), 27 deletions(-) Reviewed-by: Heiko Schocher bye, Heiko -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: h

Re: [PATCH v2 16/19] i2c: kona_i2c: Update to use standard enums for speed

2020-01-15 Thread Heiko Schocher
changed, 11 insertions(+), 17 deletions(-) Reviewed-by: Heiko Schocher bye, Heiko -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: h...@denx.de

Re: [PATCH v2 17/19] i2c: omap: Update to use standard enums for speed

2020-01-15 Thread Heiko Schocher
2 files changed, 1 insertion(+), 5 deletions(-) Reviewed-by: Heiko Schocher bye, Heiko -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: h

Re: [PATCH v2 15/19] i2c: designware_i2c: Update to use standard enums for speed

2020-01-15 Thread Heiko Schocher
insertions(+), 18 deletions(-) Reviewed-by: Heiko Schocher bye, Heiko -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: h...@denx.de

Re: [PATCH v2 14/19] i2c: ast_i2c: Update to use standard enums for speed

2020-01-15 Thread Heiko Schocher
for cleaning this up! Reviewed-by: Heiko Schocher bye, Heiko -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: h...@denx.de

Re: [PATCH v2 13/19] i2c: Add enums for i2c speed and address size

2020-01-15 Thread Heiko Schocher
to have an enum for the mode. Add these as well as an enum for the address mode. Signed-off-by: Simon Glass --- Changes in v2: None include/i2c.h | 26 ++ 1 file changed, 26 insertions(+) Reviewed-by: Heiko Schocher bye, Heiko -- DENX Software Engineering GmbH

Re: [PATCH v2 12/19] i2c: designware_i2c: Add spike supression

2020-01-15 Thread Heiko Schocher
+- drivers/i2c/designware_i2c.h | 2 ++ drivers/i2c/designware_i2c_pci.c | 2 ++ 3 files changed, 13 insertions(+), 1 deletion(-) Reviewed-by: Heiko Schocher bye, Heiko -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5

Re: [PATCH v2 11/19] i2c: designware_i2c: Rewrite timing calculation

2020-01-15 Thread Heiko Schocher
ons(+), 22 deletions(-) Reviewed-by: Heiko Schocher bye, Heiko -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: h...@denx.de

Re: [PATCH v2 10/19] i2c: designware_i2c: Put hold config in a struct

2020-01-15 Thread Heiko Schocher
1 file changed, 55 insertions(+), 27 deletions(-) Reviewed-by: Heiko Schocher bye, Heiko -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-52

Re: [PATCH v2 09/19] i2c: designware_i2c: Drop scl_sda_cfg parameter

2020-01-15 Thread Heiko Schocher
d-off-by: Simon Glass --- Changes in v2: None drivers/i2c/designware_i2c.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) Reviewed-by: Heiko Schocher bye, Heiko -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchen

Re: [PATCH v2 08/19] i2c: designware_i2c: Read device-tree properties

2020-01-15 Thread Heiko Schocher
| 15 +++ drivers/i2c/designware_i2c_pci.c | 2 +- 3 files changed, 22 insertions(+), 3 deletions(-) Reviewed-by: Heiko Schocher bye, Heiko -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell

Re: [PATCH v2 07/19] i2c: designware_i2c: Bring in the binding file

2020-01-15 Thread Heiko Schocher
++ 1 file changed, 73 insertions(+) create mode 100644 doc/device-tree-bindings/i2c/i2c-designware.txt Reviewed-by: Heiko Schocher bye, Heiko -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone

Re: [PATCH v2 06/19] i2c: designware_i2c: Use an accurate bus clock instead of MHz

2020-01-15 Thread Heiko Schocher
changed, 10 insertions(+), 12 deletions(-) Reviewed-by: Heiko Schocher bye, Heiko -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: h

Re: [PATCH v2 05/19] i2c: designware_i2c: Use an enum for selected speed mode

2020-01-15 Thread Heiko Schocher
+++--- 2 files changed, 8 insertions(+), 4 deletions(-) Reviewed-by: Heiko Schocher bye, Heiko -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: h

Re: [PATCH v2 04/19] i2c: designware_i2c: Rename 'max' speed to 'high' speed

2020-01-15 Thread Heiko Schocher
None drivers/i2c/designware_i2c.c | 10 +- drivers/i2c/designware_i2c.h | 8 2 files changed, 9 insertions(+), 9 deletions(-) Reviewed-by: Heiko Schocher bye, Heiko -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5,

Re: [PATCH v2 03/19] i2c: designware_i2c: Include clk.h in the header file

2020-01-15 Thread Heiko Schocher
v2: None drivers/i2c/designware_i2c.c | 2 +- drivers/i2c/designware_i2c.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) Reviewed-by: Heiko Schocher bye, Heiko -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194

Re: [PATCH v2 02/19] i2c: designware_i2c: Don't allow changing IC_CLK

2020-01-15 Thread Heiko Schocher
file changed, 2 deletions(-) Reviewed-by: Heiko Schocher bye, Heiko -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: h...@denx.de

Re: [PATCH v2 01/19] i2c: designware_i2c: Add more registers

2020-01-15 Thread Heiko Schocher
#x27; typo drivers/i2c/designware_i2c.h | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) please add the gap Jun Chen reported, beside of this: Reviewed-by: Heiko Schocher bye, Heiko -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Muni

Re: [PATCH v2 2/2] env: Access Environment in SPI flashes before relocation

2020-01-15 Thread Heiko Schocher
Hello Simon, Am 16.01.2020 um 01:10 schrieb Simon Glass: Hi Heiko, On Wed, 15 Jan 2020 at 23:13, Heiko Schocher wrote: Hello Simon, Am 10.12.2019 um 13:39 schrieb Simon Glass: Hi Heiko, On Fri, 15 Nov 2019 at 00:28, Heiko Schocher wrote: Enable the new Kconfig option ENV_SPI_EARLY if

Re: [RFC WIP PATCH v1 7/7] wandboard: in SPL use only D1 DTB

2020-01-15 Thread Heiko Schocher
Hello Fabio, Am 15.01.2020 um 20:54 schrieb Fabio Estevam: Hi Heiko, On Tue, Jan 14, 2020 at 3:14 AM Heiko Schocher wrote: +#if defined(CONFIG_SPL_BUILD) + /* in SPL we use only revision D1 DTB */ + if (1) { +#else if (is_revd1()) { +#endif Is there a way to improve

Re: [RFC WIP PATCH v1 6/7] wandboard: add u-boot specific *wandboard-revd1-u-boot.dtsi

2020-01-15 Thread Heiko Schocher
Hello Fabio, Am 15.01.2020 um 20:52 schrieb Fabio Estevam: Hi Heiko, On Tue, Jan 14, 2020 at 3:14 AM Heiko Schocher wrote: we want to access PMIC before relocation, so we need to add u-boot specific "u-boot,dm-pre-reloc" properties. Signed-off-by: Heiko Schocher --- arch/arm/

Re: [PATCH v2 2/2] env: Access Environment in SPI flashes before relocation

2020-01-15 Thread Heiko Schocher
Hello Simon, Am 10.12.2019 um 13:39 schrieb Simon Glass: Hi Heiko, On Fri, 15 Nov 2019 at 00:28, Heiko Schocher wrote: Enable the new Kconfig option ENV_SPI_EARLY if you want to use Environment in SPI flash before relocation. Call env_init() and than you can use env_get_f() for accessing

Re: [PATCH] gpio: search for gpio label if gpio is not found through bank name

2020-01-14 Thread Heiko Schocher
Hello Simon, Am 10.12.2019 um 13:39 schrieb Simon Glass: Hi Heiko, On Wed, 30 Oct 2019 at 04:29, Heiko Schocher wrote: dm_gpio_lookup_name() searches for a gpio through the bank name. But we have also gpio labels, and it makes sense to search for a gpio also in the labels we have defined

[RFC WIP PATCH v1 5/7] wandboard: use imx6dl-wandboard-revd1 as default DTB

2020-01-13 Thread Heiko Schocher
we detect revision D1 board by searching for pmic, as revision D1 only has a pmic on board. For this we need to have pmic in DTB, so use imx6dl-wandboard-revd1 as default device tree, not imx6dl-wandboard-revb1 Signed-off-by: Heiko Schocher --- configs/wandboard_defconfig | 2 +- 1 file

[RFC WIP PATCH v1 6/7] wandboard: add u-boot specific *wandboard-revd1-u-boot.dtsi

2020-01-13 Thread Heiko Schocher
we want to access PMIC before relocation, so we need to add u-boot specific "u-boot,dm-pre-reloc" properties. Signed-off-by: Heiko Schocher --- arch/arm/dts/imx6dl-wandboard-revd1-u-boot.dtsi | 11 +++ arch/arm/dts/imx6q-wandboard-revd1-u-boot.dtsi | 11 +++ 2 fil

[RFC WIP PATCH v1 7/7] wandboard: in SPL use only D1 DTB

2020-01-13 Thread Heiko Schocher
Signed-off-by: Heiko Schocher --- board/wandboard/wandboard.c | 5 + 1 file changed, 5 insertions(+) diff --git a/board/wandboard/wandboard.c b/board/wandboard/wandboard.c index ae4ad765a83..6b7210c0992 100644 --- a/board/wandboard/wandboard.c +++ b/board/wandboard/wandboard.c @@ -489,7

[RFC WIP PATCH v1 2/7] wandboard: Handle the imx6dl and imx6q revd1 boards

2020-01-13 Thread Heiko Schocher
From: Fabio Estevam Currently the only supported revd1 variant is imx6qp. Add logic for supporting imx6dl and imx6q revd1 boards as well. Reported-by: Heiko Schocher Signed-off-by: Fabio Estevam Signed-off-by: Heiko Schocher --- board/wandboard/wandboard.c | 16 +--- configs

[RFC WIP PATCH v1 1/7] wandboard: Import the dts files for the other revd1 variants

2020-01-13 Thread Heiko Schocher
From: Fabio Estevam Import the imx6dl-wandboard-revd1.dts and imx6q-wandboard-revd1.dts from kernel 5.4.8 so that these variants can also be supported. Signed-off-by: Fabio Estevam Signed-off-by: Heiko Schocher --- arch/arm/dts/Makefile | 2 ++ arch/arm/dts/imx6dl

[RFC WIP PATCH v1 3/7] wandboard: reorder board_fit_config_name_match

2020-01-13 Thread Heiko Schocher
revb1" is not dependend on is_revd1(). Signed-off-by: Heiko Schocher --- board/wandboard/wandboard.c | 29 - 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/board/wandboard/wandboard.c b/board/wandboard/wandboard.c index 05f36b7f5d5..4cb9bf6f8c2 100644

[RFC WIP PATCH v1 4/7] wandboard: enable CONFIG_DTB_RESELECT

2020-01-13 Thread Heiko Schocher
we have to reselect the DTB, as we need to start with DTB for revision D1 boards, as there is a PMIC which is not on other board revisions. If we do not find the PMIC, we are not on D1 revision board. Signed-off-by: Heiko Schocher --- board/wandboard/wandboard.c | 21

[RFC WIP PATCH v1 0/7] wandboard: add imx6dl rev d1 support

2020-01-13 Thread Heiko Schocher
y on imx6dl revision d1 boards. Fabio Estevam (2): wandboard: Import the dts files for the other revd1 variants wandboard: Handle the imx6dl and imx6q revd1 boards Heiko Schocher (5): wandboard: reorder board_fit_config_name_match wandboard: enable CONFIG_DTB_RESELECT wandboard: use im

Re: U-Boot: wandboard ethernet problem with newest mainline

2020-01-09 Thread Heiko Schocher
Hello Fabio, Am 09.01.2020 um 12:14 schrieb Fabio Estevam: Hi Heiko, On Thu, Jan 9, 2020 at 5:26 AM Heiko Schocher wrote: Hmm.. I wonder ... if you want to detect the revd1, you must access the pmic in SPL, so you need a DTS in which it is configured, also DM PMIC support in SPL ... which

Re: U-Boot: wandboard ethernet problem with newest mainline

2020-01-09 Thread Heiko Schocher
Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: h...@denx.de >From d05b5fa725b9cc2feef6e15ce84e2891d71e099b Mon Sep 17 00:00:00 2001 From: Heiko Schocher Date: Thu, 9 Jan 2020 07:58:57 +0100 Subject: [PATCH 4/5]

Re: U-Boot: wandboard ethernet problem with newest mainline

2020-01-08 Thread Heiko Schocher
Hello Fabio, Am 08.01.2020 um 11:11 schrieb Heiko Schocher: Hello Stefano, Fabio, Am 08.01.2020 um 10:54 schrieb Stefano Babic: Hi Fabio, Heiko, On 08/01/20 10:31, Fabio Estevam wrote: Hi Heiko, On Wed, Jan 8, 2020 at 2:41 AM Heiko Schocher wrote: Hi Fabio! happy new year! Hope you are

Re: U-Boot: wandboard ethernet problem with newest mainline

2020-01-08 Thread Heiko Schocher
Hello Stefano, Fabio, Am 08.01.2020 um 10:54 schrieb Stefano Babic: Hi Fabio, Heiko, On 08/01/20 10:31, Fabio Estevam wrote: Hi Heiko, On Wed, Jan 8, 2020 at 2:41 AM Heiko Schocher wrote: Hi Fabio! happy new year! Hope you are fine? I just builded the newest mainline U-Boot code for the

U-Boot: wandboard ethernet problem with newest mainline

2020-01-07 Thread Heiko Schocher
Hi Fabio! happy new year! Hope you are fine? I just builded the newest mainline U-Boot code for the wandboard, and I get: U-Boot SPL 2020.01-tbot-00271-gd8a3f52 (Jan 08 2020 - 06:33:42 +0100) Trying to boot from MMC1 U-Boot 2020.01-tbot-00271-gd8a3f52 (Jan 08 2020 - 06:33:42 +0100) CPU: Fr

[U-Boot] Please pull from u-boot-i2c next

2019-12-17 Thread Heiko Schocher
Hello Tom, please pull from uboot-i2c next branch: The following changes since commit 553cb06887825314e74a9bdac337467c77d1db88: Merge tag 'dm-next-13dec19' of https://gitlab.denx.de/u-boot/custodians/u-boot-dm into next (2019-12-12 08:18:59 -0500) are available in the Git repository at:

Re: [U-Boot][PATCH 1/2] misc: i2c_eeprom: add fixed partitions support

2019-12-17 Thread Heiko Schocher
Hello Robert, Am 28.10.2019 um 19:29 schrieb 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(+) Applied to u-boot-i2c next branc

Re: [U-Boot][PATCH 2/2] misc: i2c_eeprom: add size query

2019-12-17 Thread Heiko Schocher
Hello Robert, Am 28.10.2019 um 19:29 schrieb 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 inser

Re: [U-Boot][PATCH 3/3] dm: i2c: EEPROM simulator add tests for addr offset mask

2019-12-17 Thread Heiko Schocher
Hello Robert, Am 28.10.2019 um 18:44 schrieb Robert Beckett: Add support for setting the chip address offset mask to EEPROM sumulator and add tests to test it. Signed-off-by: Robert Beckett --- arch/sandbox/include/asm/test.h | 3 ++ drivers/misc/i2c_eeprom_emul.c | 19 +++--- test/

Re: [U-Boot][PATCH 2/3] dm: i2c: EEPROM simulator allow tests visibility of addr and offset

2019-12-17 Thread Heiko Schocher
Hello Robert, Am 28.10.2019 um 18:44 schrieb Robert Beckett: Improve i2c EEPROM simulator testing by providing access functions to check the previous chip addr and offset. Given that we can now directly test the offsets, also simplified the offset mapping and allow for wrapping acceses. Signed

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

2019-12-17 Thread Heiko Schocher
Hello Robert, Am 28.10.2019 um 18:44 schrieb 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

Re: [PATCH] cmd/eeprom.c: prepend 0x to hex numbers in output message format

2019-12-15 Thread Heiko Schocher
| 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Thanks! Reviewed-by: Heiko Schocher bye, Heiko -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-52 Fax: +49-8142-6698

[U-Boot] Please pull from u-boot-i2c

2019-12-11 Thread Heiko Schocher
Hello Tom, please pull an i2c fix for 2020.01 from u-boot-i2c.git master The following changes since commit 520f9559020894950d4e962aba52220c8a1d6bfe: Merge branch 'master' of https://gitlab.denx.de/u-boot/custodians/u-boot-riscv (2019-12-09 21:53:23 -0500) are available in the Git reposito

Re: [PATCH] i2c: i2c_cdns: fix write timeout on fifo boundary

2019-12-11 Thread Heiko Schocher
Hello Michael, Am 09.12.2019 um 19:16 schrieb Michael Auchter: This fixes an issue that would cause I2C writes to timeout when the number of bytes is a multiple of the FIFO depth (i.e. 16 bytes). Within the transfer loop, after writing the data register with a new byte to transfer, if the trans

Re: gtlab slow?

2019-12-11 Thread Heiko Schocher
Hello Harald, Am 10.12.2019 um 18:18 schrieb Harald Seiler: Hi Simon, On Tue, 2019-12-10 at 05:48 -0700, Simon Glass wrote: Hi, I sometimes find that gitlab.denx.de is very slow. Just now is is worse than usual - it has taken almost 10 minutes to push a branch and still not finished. I am get

Re: [PATCH] i2c: i2c_cdns: fix write timeout on fifo boundary

2019-12-10 Thread Heiko Schocher
Hello Michael, Am 09.12.2019 um 19:16 schrieb Michael Auchter: This fixes an issue that would cause I2C writes to timeout when the number of bytes is a multiple of the FIFO depth (i.e. 16 bytes). Within the transfer loop, after writing the data register with a new byte to transfer, if the trans

Re: Wandboard - I2C error when booting with HDMI cable

2019-12-09 Thread Heiko Schocher
Hello Fabio, Hope you are fine? Am 10.12.2019 um 01:33 schrieb Fabio Estevam: Hi Anatolij and Heiko, When booting a wandboard with a HDMI cable connected I get the following I2C messages: U-Boot 2020.01-rc4-00151-g8dc20b6ae3-dirty (Dec 09 2019 - 21:07:48 -0300) CPU: Freescale i.MX6QP rev1.

Re: [PATCH v3] warp7: Fix U-Boot corruption after saving the environment

2019-12-03 Thread Heiko Schocher
Hello Fabio, Am 03.12.2019 um 12:56 schrieb Fabio Estevam: Hi Tom, On Tue, Dec 3, 2019 at 12:10 AM Tom Rini wrote: Thanks for the rework. Can you please look at what other i.MX boards are likely fine, or perhaps more clearly if any i.MX5/6 SoCs do have thumb2 related errata that might make

Re: [U-Boot] Sharing a hardware lab

2019-12-01 Thread Heiko Schocher
Hello Simon, Am 30.11.2019 um 05:23 schrieb Simon Glass: Hi Tom, I have been meaning to have a crack at setting up a little hardware lab for a while. I made some progress recently and hooked up a rpi_3 with sdwire for USB/SD, ykush for power and a little computer to control it. It builds U-Boo

[U-Boot] [PATCH v1 20/29] imx6: aristainetos: add i2c eeprom support

2019-12-01 Thread Heiko Schocher
add support for i2c eeprom and add parsing "Rescue" or "DefEnv" at offset 0x1ff0. Signed-off-by: Heiko Schocher --- board/aristainetos/aristainetos.c | 64 ++- 1 file changed, 63 insertions(+), 1 deletion(-) diff --git a/board/aristainetos/ari

[U-Boot] [PATCH v1 25/29] imx6: aristainetos: cleanup default Environment

2019-12-01 Thread Heiko Schocher
sync defaut Envoronment with customer changes. Unfortunately they are not changeable, as already board is in production mode. Get rid of the big bootcommand and set bootcommand through Kconfig option. Signed-off-by: Heiko Schocher --- configs/aristainetos2_defconfig | 2 + include/configs

[U-Boot] [PATCH v1 24/29] imx6: aristainetos: WDT DM conversion enable WDT reset

2019-12-01 Thread Heiko Schocher
enable config symbols: CONFIG_SYSRESET CONFIG_SYSRESET_WATCHDOG Signed-off-by: Heiko Schocher --- configs/aristainetos2_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/aristainetos2_defconfig b/configs/aristainetos2_defconfig index 82fe512098..be5cec96fa 100644 --- a

[U-Boot] [PATCH v1 06/29] imx6: aristainetos: add device tree from linux

2019-12-01 Thread Heiko Schocher
nse-Identifier: (GPL-2.0) +/* + * support for the imx6 based aristainetos2 board + * + * Copyright (C) 2019 Heiko Schocher + * Copyright (C) 2015 Heiko Schocher + * + */ +/dts-v1/; +#include "imx6dl.dtsi" +#include "imx6qdl-aristainetos2.dtsi" + +/ { + model

[U-Boot] [PATCH v1 21/29] imx6: aristainetos: add AUTOBOOT_KEYED

2019-12-01 Thread Heiko Schocher
add stop autobooting via SHA256 encrypted password. Signed-off-by: Heiko Schocher --- configs/aristainetos2_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/aristainetos2_defconfig b/configs/aristainetos2_defconfig index c7416a936a..11b9f2ab1d 100644 --- a/configs

[U-Boot] [PATCH v1 29/29] imx6: aristainetos: add support for rev C board

2019-12-01 Thread Heiko Schocher
add support for revision C boards. This board has no longer a NAND. Signed-off-by: Heiko Schocher --- arch/arm/dts/Makefile | 2 + .../dts/imx6dl-aristainetos2c_4-u-boot.dtsi | 13 + arch/arm/dts/imx6dl-aristainetos2c_4.dts | 50 .../dts/imx6dl

[U-Boot] [PATCH v1 26/29] imx6: aristainetos: enable HAB boot

2019-12-01 Thread Heiko Schocher
enable IMX_HAB on aristianetos board Signed-off-by: Heiko Schocher --- board/aristainetos/aristainetos2.cfg | 3 ++ configs/aristainetos2_defconfig | 4 +++ include/configs/aristainetos2.h | 51 3 files changed, 58 insertions(+) diff --git a/board

[U-Boot] [PATCH v1 08/29] imx6: aristainetos: remove aristainetos-v2.c

2019-12-01 Thread Heiko Schocher
remove aristainetos-v2.c file, as we now want to switch to DM/DTS support and have all board specific code in one file. Goal is to setup differences through DT. Signed-off-by: Heiko Schocher --- board/aristainetos/aristainetos-v2.c | 686 -- board/aristainetos

[U-Boot] [PATCH v1 17/29] imx6: aristainetos: add DM_I2C support

2019-12-01 Thread Heiko Schocher
enable DM_I2C in defconfig and remove i2c specific board code. Signed-off-by: Heiko Schocher --- board/aristainetos/aristainetos.c | 73 --- configs/aristainetos2_defconfig | 6 ++- include/configs/aristainetos2.h | 11 - 3 files changed, 5 insertions

[U-Boot] [PATCH v1 23/29] imx6: aristainetos: cleanup bootmode settings

2019-12-01 Thread Heiko Schocher
on the aristainetos there are some jumpers for changing behaviour setting up Environment. Clean this up. Signed-off-by: Heiko Schocher --- board/aristainetos/aristainetos.c | 43 +-- 1 file changed, 30 insertions(+), 13 deletions(-) diff --git a/board/aristainetos

[U-Boot] [PATCH v1 05/29] imx6: aristainetos: disable gigabit support

2019-12-01 Thread Heiko Schocher
gigabit support does not work on the aristainetos board, so disable it. Signed-off-by: Heiko Schocher --- include/configs/aristainetos-common.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/aristainetos-common.h b/include/configs/aristainetos-common.h index ab14a1a392

[U-Boot] [PATCH v1 28/29] imx6: aristainetos: add aristainetos 2b csl

2019-12-01 Thread Heiko Schocher
add aristainetso board version CSL. Signed-off-by: Heiko Schocher --- arch/arm/dts/Makefile | 2 + .../imx6dl-aristainetos2b_csl_4-u-boot.dtsi | 13 + arch/arm/dts/imx6dl-aristainetos2b_csl_4.dts | 50 .../imx6dl-aristainetos2b_csl_7-u-boot.dtsi | 19

[U-Boot] [PATCH v1 27/29] imx6: aristainetos: readd aristainetos 2b board

2019-12-01 Thread Heiko Schocher
readd aristainetos 2b board. Signed-off-by: Heiko Schocher --- arch/arm/dts/Makefile | 2 + .../dts/imx6dl-aristainetos2b_4-u-boot.dtsi | 13 + arch/arm/dts/imx6dl-aristainetos2b_4.dts | 50 .../dts/imx6dl-aristainetos2b_7-u-boot.dtsi | 19 ++ arch

[U-Boot] [PATCH v1 22/29] imx6: aristainetos: add version variable

2019-12-01 Thread Heiko Schocher
add VERSION_VARIABLE Signed-off-by: Heiko Schocher --- configs/aristainetos2_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/aristainetos2_defconfig b/configs/aristainetos2_defconfig index 11b9f2ab1d..82fe512098 100644 --- a/configs/aristainetos2_defconfig +++ b/configs

[U-Boot] [PATCH v1 18/29] imx6: aristainetos: convert to DM_PWM/DM_BACKLIGHT

2019-12-01 Thread Heiko Schocher
use DM_PWM and DM_BLACKLIGHT support and remove board code. Signed-off-by: Heiko Schocher --- board/aristainetos/aristainetos.c | 10 -- configs/aristainetos2_defconfig | 1 + 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/board/aristainetos/aristainetos.c b/board

[U-Boot] [PATCH v1 19/29] imx6: aristainetos: get rid of CONFIG_BOARDNAME

2019-12-01 Thread Heiko Schocher
CONFIG_BOARDNAME is not longer needed, as we use the model information from DTS. Signed-off-by: Heiko Schocher --- board/aristainetos/Kconfig| 3 --- board/aristainetos/aristainetos.c | 6 -- board/aristainetos/common/Kconfig | 5 - 3 files changed, 14 deletions(-) diff --git

[U-Boot] [PATCH v1 13/29] imx6: aristainetos: convert to DM_USB

2019-12-01 Thread Heiko Schocher
Drop CONFIG_USB_MAX_CONTROLLER_COUNT and enable DM_USB in defconfig. Signed-off-by: Heiko Schocher --- board/aristainetos/aristainetos.c | 35 --- configs/aristainetos2_defconfig | 4 include/configs/aristainetos2.h | 3 --- 3 files changed, 4 insertions

<    3   4   5   6   7   8   9   10   11   12   >