Re: [PATCH 7/7] doc: imx8mp-evk: update after using binman

2021-04-05 Thread Peter Bergin
Hi, On 2021-04-06 05:59, Peng Fan (OSS) wrote: Burn the flash.bin to the MicroSD card at offset 32KB: .. code-block:: bash $sudo dd if=build/flash.bin of=/dev/sd[x] bs=1K seek=32 conv=notrunc; sync + $sudo dd if=build/u-boot.itb of=/dev/sd[x] bs=1K seek=384 conv=notrunc; sync

[PATCH] xilinx: common: Fix boot script address

2021-04-05 Thread Michal Simek
From: T Karthik Reddy Currently u-boot supports addresses upto 39-bits only. If anybody wants to use addresses of more than 39-bits in Linux they will have a separate memory node in DT. In such cases they will have multiple memory nodes. Currently u-boot selects and runs on lower memory bank regi

Re: [PATCH] mmc: sdhci: Write to HOST_CONTROL2 register for HS400 speed mode

2021-04-05 Thread Aswath Govindraju
Hi Jaehoon, On 06/04/21 3:48 am, Jaehoon Chung wrote: > Hi, > > On 4/5/21 11:44 PM, Aswath Govindraju wrote: >> From: Faiz Abbas >> >> Enable HS400 speed mode by writing to HOST_CONTROL2 register. > > I didn't find HS400 bit at HOST_CONTROL2 register. (I have checked SD > Specific v4.20) > If

Re: [PATCH 2/3] test: Allow tests to run on any board

2021-04-05 Thread Simon Glass
On 3/24/21 5:44 PM, Simon Glass wrote: > Due to a recent change, tests are limited to running on sandbox only. > Correct this so that any architecture can run them. > > Signed-off-by: Simon Glass > Reported-by: Sean Anderson > Fixes: c79705ea938 ("test: Move dm_test_init() into test-main.c") > --

Re: [PATCH v3 3/9] usb: Return -ENOSYS when system call is not available

2021-04-05 Thread Simon Glass
Update usb_gadget_release() to use -ENOSYS, which is the correct error code for U-Boot. Signed-off-by: Simon Glass --- (no changes since v1) drivers/usb/gadget/udc/udc-uclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Applied to u-boot-dm, thanks!

Re: [PATCH v2 2/6] dtoc: Adjust detection of 64-bit properties

2021-04-05 Thread Simon Glass
At present an empty size is considered to be a 64-bit value. This does not seem useful and wastes space. Limit the 64-bit detection to where one or both of the addr/size is two cells or more. Signed-off-by: Simon Glass --- Changes in v2: - Add new patch to adjust detection of 64-bit properties

Re: [PATCH] dtc: Update the build rule for pylibfdt

2021-04-05 Thread Simon Glass
Some versions of make complain about using a grouped target without a recipe: .../pylibfdt/Makefile:36: *** grouped targets must provide a recipe. Stop. Fix this by adding a dummy recipe. Signed-off-by: Simon Glass --- scripts/dtc/pylibfdt/Makefile | 1 + 1 file changed, 1 insertion(+) Appl

Re: [PATCH v3 6/9] clk: Update drivers to use -EINVAL

2021-04-05 Thread Simon Glass
At present some drivers use -ENOSUPP to indicate that an unknown or unsupported clock is used. Most use -EINVAL, indicating an invalid value, so convert everything to that. Signed-off-by: Simon Glass Acked-by: Sean Anderson Reviewed-by: Stefan Roese --- (no changes since v2) Changes in v2: -

Re: [PATCH v3 2/9] dm: core: Use -ENOSPC in acpi_get_path()

2021-04-05 Thread Simon Glass
Update this function to use -ENOSPC which is more commly used when a buffer runs out of space. Signed-off-by: Simon Glass --- (no changes since v2) Changes in v2: - Add new patch for acpi_get_path() drivers/core/acpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Applied to u-boot-d

Re: [PATCH] patman: Continue on if warnings are found outside a commit

2021-04-05 Thread Simon Glass
While we cannot know which commit the warning relates to, this should not be fatal. Print the warning and carry on. Signed-off-by: Simon Glass --- tools/patman/patchstream.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Applied to u-boot-dm, thanks!

Re: [PATCH v3 1/9] dm: core: Document the common error codes

2021-04-05 Thread Simon Glass
On 3/24/21 5:26 PM, Simon Glass wrote: > Driver model uses quite strong conventions on error codes, but these are > currently not clearly documented. Add a description of the commonly used > errors. > > Signed-off-by: Simon Glass > --- > > Changes in v3: > - Add updates based on feedback from Sean

Re: [PATCH v3 5/9] tlv_eeprom: Return -ENOSYS when system call is not available

2021-04-05 Thread Simon Glass
When CMD_TLV_EEPROM is not enabled, use -ENOSYS, which is the correct error code for U-Boot. Signed-off-by: Simon Glass --- (no changes since v1) include/tlv_eeprom.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) Applied to u-boot-dm, thanks!

Re: [PATCH v3 4/9] spi: Return -ENOSYS when system call is not available

2021-04-05 Thread Simon Glass
Update spi_controller_dma_map_mem_op_data() to use -ENOSYS, which is the correct error code for U-Boot. Signed-off-by: Simon Glass --- (no changes since v1) include/spi-mem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Applied to u-boot-dm, thanks!

Re: [PATCH v3 7/9] clk: Return -ENOSYS when system call is not available

2021-04-05 Thread Simon Glass
Update clk_composite_set_parent() to use -ENOSYS, which is the correct error code for U-Boot. Also rearrange the code so that the error condition is clearly indicated and the function runs to the end in the normal case, since this is the common style in U-Boot. Signed-off-by: Simon Glass Reviewed

Re: [PATCH v3 9/9] pinctrl: Return -ENOSYS when system call is not available

2021-04-05 Thread Simon Glass
Update the code to use -ENOSYS, which is the correct error code for an unimplemented system call in U-Boot. Also we should not check for a missing operations array as this is not permitted. For now this can be covered by an assert(). Signed-off-by: Simon Glass --- (no changes since v1) driver

Re: [PATCH v3 8/9] simple-pm-bus: Use -ENOSYS for checking missing system call

2021-04-05 Thread Simon Glass
We don't need to check -ENOTSUPP since this is not used for this purpose in U-Boot. Update the code accordingly. Signed-off-by: Simon Glass Reviewed-by: Sean Anderson --- (no changes since v1) drivers/core/simple-pm-bus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Applied to

Re: [PATCH] buildman: Add an encoding to the out-env file

2021-04-05 Thread Simon Glass
The environment may contain some unicode characters. At least that is what seemed to happen on one commit: Building current source for 1 boards (0 threads, 64 jobs per thread) 000 /1 -1 (starting) Traceback (most recent call last): File ".../tools/buildman/buildman", line

Re: [PATCH v2 1/6] dtoc: Show driver warnings once at the end

2021-04-05 Thread Simon Glass
At present warnings are shown as soon as they are discovered in the source scannner. But the function that detects them may be called multiple times. Collect all the warnings and show them at the end. Signed-off-by: Simon Glass --- (no changes since v1) tools/dtoc/dtb_platdata.py | 6 --

Re: [PATCH v2 3/6] dtoc: Improve handling of reg properties

2021-04-05 Thread Simon Glass
This existing code assumes that a reg property is larger than one cell, but this is not always the case. Fix this assumption. Also if a node's parent is missing the #address-cells and #size-cells properties we use 2 as a default for each. But this should not happen in practice. More likely the pro

Re: [PATCH v2 4/6] log: Fix up debug_cond() when LOG is enabled

2021-04-05 Thread Simon Glass
At present debug() statements can cause debuf output to appear when LOG is enabled but DEBUG is not. This is not intended and it seems that the condition is wrong. Fix it. Signed-off-by: Simon Glass --- (no changes since v1) include/log.h | 11 +++ 1 file changed, 7 insertions(+), 4 d

Re: [PATCH v2 6/6] Convert CONFIG_MISC_INIT_F to Kconfig

2021-04-05 Thread Simon Glass
This converts the following to Kconfig: CONFIG_MISC_INIT_F Signed-off-by: Simon Glass Reviewed-by: Stefan Roese --- (no changes since v1) common/Kconfig | 6 ++ configs/MPC8349ITXGP_defconfig | 1 + configs/MPC8349ITX_LOWBOOT_defconfig | 1 + configs/MPC8349

Re: [PATCH v2 5/6] moveconfig: Handle binary files cleanly

2021-04-05 Thread Simon Glass
Some files are not actually source code and thus can produce unicode errors. Report this and continue. Signed-off-by: Simon Glass --- (no changes since v1) tools/moveconfig.py | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) Applied to u-boot-dm, thanks!

Re: [PATCH 1/1] sandbox: document parameters of os_realloc()

2021-04-05 Thread Simon Glass
On Sun, 28 Mar 2021 at 22:05, Heinrich Schuchardt wrote: > > Avoid 'make htmldocs' build warnings: > > ./include/os.h:139: warning: > Function parameter or member 'ptr' not described in 'os_realloc' > ./include/os.h:139: warning: > Function parameter or member 'length' not describe

[PATCH 4/4] sf: Provide a command to access memory-mapped SPI

2021-04-05 Thread Simon Glass
Add a new 'sf mmap' function to show the address of a SPI offset, if the hardware supports it. This is useful on x86 systems. Signed-off-by: Simon Glass --- arch/Kconfig | 2 ++ cmd/Kconfig | 8 cmd/sf.c | 35 + doc/usage/sf.rst | 50 +

[PATCH 3/4] sf: doc: Add documentation for the 'sf' command

2021-04-05 Thread Simon Glass
This command is fairly complicated so documentation is useful. Unfortunately I an not sure how the MTD side of things works and cannot find information about that. Signed-off-by: Simon Glass --- doc/usage/index.rst | 1 + doc/usage/sf.rst| 238

[PATCH 2/4] sf: Tidy up code to avoid #ifdef

2021-04-05 Thread Simon Glass
Update this code to use IS_ENABLED() instead. Signed-off-by: Simon Glass --- cmd/sf.c | 32 ++-- 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/cmd/sf.c b/cmd/sf.c index 46346fb9d43..d4f5ecee38c 100644 --- a/cmd/sf.c +++ b/cmd/sf.c @@ -384,7 +384,6 @

[PATCH 1/4] command: Use a constant pointer for the help

2021-04-05 Thread Simon Glass
This text should never change during execution, so it makes sense to use a const char * so that it can be declared as const in the code. Update struct cmd_tbl with a const char * pointer for 'help'. Signed-off-by: Simon Glass --- include/command.h | 2 +- 1 file changed, 1 insertion(+), 1 delet

[PATCH 0/4] sf: Add documentation and an 'sf mmap' command

2021-04-05 Thread Simon Glass
This little series adds documentation and a few other tidy-ups to the 'sf' command. It also provides a way to access memory-mapped SPI via the command line. Simon Glass (4): command: Use a constant pointer for the help sf: Tidy up code to avoid #ifdef sf: doc: Add documentation for the 'sf

Re: [PATCH 1/3] riscv: mpfs-icicle-kit: Increase SYS_MALLOC_F_LEN

2021-04-05 Thread Bin Meng
On Wed, Mar 31, 2021 at 3:25 PM Bin Meng wrote: > > The RISC-V architecture default value of CONFIG_SYS_MALLOC_F_LEN > (0x1000) would not provide enough memory for devices like mpfs > clock and ns16550 serial to bind well before relocation. > > Signed-off-by: Bin Meng > --- > > configs/microchip

[PATCH 7/7] doc: imx8mp-evk: update after using binman

2021-04-05 Thread Peng Fan (OSS)
From: Peng Fan update doc after using binman to pack images Signed-off-by: Peng Fan --- doc/board/freescale/imx8mp_evk.rst | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/doc/board/freescale/imx8mp_evk.rst b/doc/board/freescale/imx8mp_evk.rst index 796a7611d0..

[PATCH 5/7] doc: imx8mn_evk: update doc after using binman

2021-04-05 Thread Peng Fan (OSS)
From: Peng Fan Update doc after using binman to pack images Signed-off-by: Peng Fan --- doc/board/freescale/imx8mn_evk.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/board/freescale/imx8mn_evk.rst b/doc/board/freescale/imx8mn_evk.rst index 375e0bb761..9fbb947032

[PATCH 6/7] imx8mp-evk: switch to use binman

2021-04-05 Thread Peng Fan (OSS)
From: Peng Fan Use binman to pack images Signed-off-by: Peng Fan --- arch/arm/dts/imx8mp-evk-u-boot.dtsi | 106 ++ arch/arm/mach-imx/imx8m/Kconfig | 1 + .../imx8mp_evk/imximage-8mp-lpddr4.cfg| 10 ++ configs/imx8mp_evk_defconfig

[PATCH 3/7] imx8mn-ddr4-evk: switch to use binman

2021-04-05 Thread Peng Fan (OSS)
From: Peng Fan Use binman to pack images Signed-off-by: Peng Fan --- arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi | 106 ++ arch/arm/mach-imx/imx8m/Kconfig | 1 + .../imx8mn_evk/imximage-8mn-ddr4.cfg | 10 ++ configs/imx8mn_ddr4_evk_defconfig

[PATCH 4/7] imx8mn-evk: switch to use binman

2021-04-05 Thread Peng Fan (OSS)
From: Peng Fan Use binman to pack images. Signed-off-by: Peng Fan --- arch/arm/dts/imx8mn-evk-u-boot.dtsi | 102 arch/arm/mach-imx/imx8m/Kconfig | 1 + configs/imx8mn_evk_defconfig| 4 +- 3 files changed, 105 insertions(+), 2 deletions(-) diff --gi

[PATCH 2/7] doc: imx8mm_evk: update doc after using binman

2021-04-05 Thread Peng Fan (OSS)
From: Peng Fan Update doc after switch to binman to pack images Signed-off-by: Peng Fan --- doc/board/freescale/imx8mm_evk.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/board/freescale/imx8mm_evk.rst b/doc/board/freescale/imx8mm_evk.rst index a9ccdb7850..7fd3d7

[PATCH 1/7] imx8mm_evk: switch to use binman to pack images

2021-04-05 Thread Peng Fan (OSS)
From: Peng Fan Use binman to pack images Signed-off-by: Peng Fan --- arch/arm/dts/imx8mm-evk-u-boot.dtsi | 106 ++ arch/arm/mach-imx/imx8m/Kconfig | 1 + .../imx8mm_evk/imximage-8mm-lpddr4.cfg| 9 ++ configs/imx8mm_evk_defconfig

Re: [PATCH v5 10/10] mtd: spi-nor-tiny: Add fixups for Cypress s25hl-t/s25hs-t

2021-04-05 Thread Takahiro Kuwano
On 2/24/2021 9:43 PM, Pratyush Yadav wrote: > On 19/02/21 10:56AM, tkuw584...@gmail.com wrote: >> From: Takahiro Kuwano >> >> Fixes mode clocks for SPINOR_OP_READ_FAST_4B and volatile QE bit in tiny. >> The volatile QE bit function, spansion_quad_enable_volatile() supports >> dual/quad die package

Re: Chromium OS verified boot 2018 with U-Boot

2021-04-05 Thread Simon Glass
Hi, On Wed, 17 Feb 2021 at 06:12, Simon Glass wrote: > > Hi, > > Just a note that the U-Boot / vboot integration has been updated with > the 2018 version of vboot and it makes full use of driver model. > > If it available at [1] > > Documentation for running it on coral (2018 Intel Apollo Lake >

[PATCH v7 1/2] arm: dts: add imx8mm-cl-iot-gate dts file

2021-04-05 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" Add board dts for imx8mm-cl-iot-gate Signed-off-by: Kirill Kapranov Signed-off-by: Uri Mashiach Signed-off-by: Valentin Raevsky Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Peter Robinson --- v2: Rename iot-gate-imx8 -> imx8mm-cl-iot-gate v4: Re-sent for adding

[PATCH v7 0/2] arm: imx8m: add support for Compulab iot-gate-imx8 (imx8mm-cl-iot-gate)

2021-04-05 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" Add initial support for Compulab iot-gate-imx8 board (imx8mm-cl-iot-gate). The initial support includes: - MMC - eMMC - I2C - FEC - Serial console Ying-Chun Liu (PaulLiu) (2): arm: dts: add imx8mm-cl-iot-gate dts file arm: imx8m: add support for Compulab

Re: [PATCH v8 26/28] mtd: spi-nor-core: Add non-uniform erase for Spansion/Cypress

2021-04-05 Thread Takahiro Kuwano
On 4/2/2021 4:31 AM, Pratyush Yadav wrote: > From: Takahiro Kuwano > > Some of Spansion/Cypress chips have overlaid 4KB sectors at top and/or > bottom, depending on the device configuration, while U-Boot supports > uniform sector layout only. > > The spansion_erase_non_uniform() erases overlaid

[PATCH] xhci-brcm.c compile errors: undefined reference to 'dev_err'

2021-04-05 Thread David Caputo
Submitting for consideration to address multiple compile errors: undefined reference to `dev_err' diff --git a/drivers/usb/host/xhci-brcm.c b/drivers/usb/host/xhci-brcm.c index 27c4bbfcba..b42da6818c 100644 --- a/drivers/usb/host/xhci-brcm.c +++ b/drivers/usb/host/xhci-brcm.c @@ -9,6 +9,7 @@ #inc

Re: [PATCH v2 13/19] video: sunxi: de2: read address from DT node

2021-04-05 Thread Andre Przywara
On Sat, 6 Mar 2021 20:54:31 +0100 Jernej Skrabec wrote: > Currently DE2 uses hardcoded address based on SoC for which U-Boot is > built. Read it from DT instead so there is no need to specify it when > support for new SoC is added. > > Signed-off-by: Jernej Skrabec Looks alright. Since this w

Re: [PATCH v2 11/19] video: sunxi: dw-hdmi: read address from DT node

2021-04-05 Thread Andre Przywara
On Sat, 6 Mar 2021 20:54:29 +0100 Jernej Skrabec wrote: > Currently HDMI controller MMIO address is hardcoded. Change that so > address is read from DT node. That will make adding support for new > variants a bit easier. > > Signed-off-by: Jernej Skrabec Checked the transformations, and it's

Re: [PATCH v2 12/19] video: sunxi: de2: switch to DT probing

2021-04-05 Thread Andre Przywara
On Sat, 6 Mar 2021 20:54:30 +0100 Jernej Skrabec wrote: Hi Jernej, (CC:ing Simon for some DM issues below) > Currently DE2 driver is probed via driver info. Switch probing to device > tree compatible string method. > > Display is now searched via driver name which has same limitation as > pre

Pull request: rockchip-for-v2021.07

2021-04-05 Thread Kever Yang
Hi Tom, Please pull the rockchip updates/fixes: - Fix rk3368 lion board support; - Fix px30 odroid-go2 board support; - Add rk3399 NanoPi R4s and NanoPi M4B board support; Gitlab ci: https://source.denx.de/u-boot/custodians/u-boot-rockchip/-/pipelines/6988 Thanks, - Kever The following changes

Re: [PATCH 05/11] arm: dts: imx6qdl-gw*: add dr_mode prop to dt to avoid error

2021-04-05 Thread Tim Harvey
On Mon, Apr 5, 2021 at 2:27 PM Peter Robinson wrote: > > On Mon, Mar 1, 2021 at 10:34 PM Tim Harvey wrote: > > > > The fsl-usb dt bindings in Linux default dr_mode to 'host' for > > backward compatibility however U-Boot prints an error if > > this property does not exist. Declare it in the Gatewo

Re: imxrt1020 EVK u-boot doesn't run.

2021-04-05 Thread Nicolás Muratore
Hi Giulio, hope this email finds you well, many thanks for your support. After the modification that you proposed, the result was the following: [image: imagen.png] yes it's the same message. Please let me know when you have finished the timer driver. Many thanks. El dom, 4 abr 2021 a las 15:5

Re: [PATCH] mmc: sdhci: Write to HOST_CONTROL2 register for HS400 speed mode

2021-04-05 Thread Jaehoon Chung
Hi, On 4/5/21 11:44 PM, Aswath Govindraju wrote: > From: Faiz Abbas > > Enable HS400 speed mode by writing to HOST_CONTROL2 register. I didn't find HS400 bit at HOST_CONTROL2 register. (I have checked SD Specific v4.20) If I missed something, let me know, plz. In include/sdhci.h, it mentioned

Re: [PATCH 05/11] arm: dts: imx6qdl-gw*: add dr_mode prop to dt to avoid error

2021-04-05 Thread Peter Robinson
On Mon, Mar 1, 2021 at 10:34 PM Tim Harvey wrote: > > The fsl-usb dt bindings in Linux default dr_mode to 'host' for > backward compatibility however U-Boot prints an error if > this property does not exist. Declare it in the Gateworks > Ventana device-trees to avoid the error. Is there any reaso

Re: [PATCH 1/1] requirements.txt: pin docutils

2021-04-05 Thread Simon Glass
On Tue, 6 Apr 2021 at 05:48, Tom Rini wrote: > > On Tue, Apr 06, 2021 at 05:23:45AM +1200, Simon Glass wrote: > > Hi Heinrich, > > > > On Mon, 5 Apr 2021 at 08:09, Heinrich Schuchardt wrote: > > > > > > Building make htmldocs fails with docutils 0.17 due to non-ASCII > > > characters. Pin docutil

Re: [ANN] U-Boot v2021.04 released

2021-04-05 Thread Tom Rini
On Mon, Apr 05, 2021 at 11:03:58AM -0400, Tom Rini wrote: > Hey all, > > It is release day and here is the v2021.04 release. With this release > we are now at the first of our 2 years past a DM migration deadline. > This will be the last release for a number of boards that will be > removed shor

Re: SAMA5D3 Xplained: SPL broken after panic added to /lib/time.c:94

2021-04-05 Thread Eugen.Hristev
On 4/5/21 6:42 PM, Manuel Luís Reis wrote: > Hi Eugen, > > > Does the node have the property > > > > u-boot,dm-pre-reloc; > > > > Maybe try to add this and see if it changes anything ? > > Thanks. Indeed it didn't have those properties. I have added them and > also had to remove the udelay

Re: SAMA5D3 Xplained: SPL broken after panic added to /lib/time.c:94

2021-04-05 Thread Eugen.Hristev
On 4/5/21 3:47 PM, Manuel Luís Reis wrote: > Hi Eugen, > >> As Sean Anderson pointed out : the call to timer must have not worked at >> all before this change that now breaks things. >> Have you tried removing the call to the timer from this mem_init, to see >> if this makes the board boot corre

Re: SAMA5D3 Xplained: SPL broken after panic added to /lib/time.c:94

2021-04-05 Thread Manuel Luís Reis
> Okay, I am glad that you somehow found a solution. > I am not sure why the ddr2_init call to udelay fails. Maybe we should > initialize something (timer) before calling ddr2_init ? > Or timers are initialized just after ddr2 , in which case we need to > revert the order ? I don't really understa

Re: [PATCH 1/1] requirements.txt: pin docutils

2021-04-05 Thread Tom Rini
On Tue, Apr 06, 2021 at 05:23:45AM +1200, Simon Glass wrote: > Hi Heinrich, > > On Mon, 5 Apr 2021 at 08:09, Heinrich Schuchardt wrote: > > > > Building make htmldocs fails with docutils 0.17 due to non-ASCII > > characters. Pin docutils to version 0.16. > > > > Is this a bug that will be fixed

[PATCH] add u-boot properties to sama5d3 pit timer

2021-04-05 Thread Manuel Reis
pit timer node requires u-boot properties to be recognized Signed-off-by: Manuel Reis CC: Eugen Hristev --- arch/arm/dts/sama5d3.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/sama5d3.dtsi b/arch/arm/dts/sama5d3.dtsi index 6ed218eaad..3cd30d574d 100644 --- a/arch/arm/dts/

Re: Locking down U-Boot env with ENV_WRITEABLE_LIST

2021-04-05 Thread Marek Vasut
On 4/5/21 6:27 PM, Tim Harvey wrote: On Sat, Apr 3, 2021 at 12:09 PM Marek Vasut wrote: On 4/3/21 6:43 PM, Tim Harvey wrote: Hi, [...] And those config options I had enabled in u-boot defconfig: CONFIG_CMD_ENV_CALLBACK=y CONFIG_CMD_ENV_FLAGS=y CONFIG_ENV_IS_NOWHERE=y CONFIG_ENV_IS_IN_MMC=

Re: [PATCH 1/1] requirements.txt: pin docutils

2021-04-05 Thread Simon Glass
Hi Heinrich, On Mon, 5 Apr 2021 at 08:09, Heinrich Schuchardt wrote: > > Building make htmldocs fails with docutils 0.17 due to non-ASCII > characters. Pin docutils to version 0.16. > Is this a bug that will be fixed in a future version, or something we will eventually need to fix in the U-Boot

Re: SAMA5D3 Xplained: SPL broken after panic added to /lib/time.c:94

2021-04-05 Thread Eugen.Hristev
On 4/4/21 7:25 PM, Manuel Reis wrote: > Hi again, > > I guess I misunderstood things a bit. Apologies for that. > Nevertheless, timer_init in board_init_f is pointing to the weak > timer_init in /lib/time.c, which is empty. > > Is there a way we can force start the pit timer? > Any pointer would

Re: [ANN] U-Boot v2021.04 released

2021-04-05 Thread Trevor Woerner
On Mon, Apr 5, 2021 at 12:37 PM Tom Rini wrote: > On Mon, Apr 05, 2021 at 12:34:42PM -0400, Trevor Woerner wrote: > > On Mon 2021-04-05 @ 11:03:58 AM, Tom Rini wrote: > > > It is release day and here is the v2021.04 release. With this release > > > we are now at the first of our 2 years past a DM

Re: [ANN] U-Boot v2021.04 released

2021-04-05 Thread Tom Rini
On Mon, Apr 05, 2021 at 12:34:42PM -0400, Trevor Woerner wrote: > On Mon 2021-04-05 @ 11:03:58 AM, Tom Rini wrote: > > It is release day and here is the v2021.04 release. With this release > > we are now at the first of our 2 years past a DM migration deadline. > > This will be the last release fo

Re: [ANN] U-Boot v2021.04 released

2021-04-05 Thread Trevor Woerner
On Mon 2021-04-05 @ 11:03:58 AM, Tom Rini wrote: > It is release day and here is the v2021.04 release. With this release > we are now at the first of our 2 years past a DM migration deadline. > This will be the last release for a number of boards that will be > removed shortly, so that we can be d

Re: Locking down U-Boot env with ENV_WRITEABLE_LIST

2021-04-05 Thread Tim Harvey
On Sat, Apr 3, 2021 at 12:09 PM Marek Vasut wrote: > > On 4/3/21 6:43 PM, Tim Harvey wrote: > > Hi, > > [...] > > And those config options I had enabled in u-boot defconfig: > > CONFIG_CMD_ENV_CALLBACK=y > CONFIG_CMD_ENV_FLAGS=y > CONFIG_ENV_IS_NOWHERE=y > CONFIG_ENV_

Re: [PATCH V3] env: Fix invalid env handling in env_init()

2021-04-05 Thread Tim Harvey
On Wed, Jan 20, 2021 at 6:45 AM Marek Vasut wrote: > > This fixes the case where there are multiple environment drivers, one of > them is the default environment one, and it is followed by an environment > driver which does not implement .init() callback. The default environment > driver sets gd->

Re: SAMA5D3 Xplained: SPL broken after panic added to /lib/time.c:94

2021-04-05 Thread Manuel Luís Reis
Hi Eugen, > Does the node have the property > > u-boot,dm-pre-reloc; > > Maybe try to add this and see if it changes anything ? Thanks. Indeed it didn't have those properties. I have added them and also had to remove the udelay call in ddr2_init for the fix to work. The udelay call in ddr2_init w

Re: imxrt1020 EVK u-boot doesn't run.

2021-04-05 Thread Giulio Benetti
Hi Nicolas, > Il giorno 5 apr 2021, alle ore 16:34, Nicolás Muratore > ha scritto: > >  > Hi Giulio, hope this email finds you well, many thanks for your support. > > After the modification that you proposed, the result was the following: > > > yes it's the same message. Ok, well, > > P

[ANN] U-Boot v2021.04 released

2021-04-05 Thread Tom Rini
Hey all, It is release day and here is the v2021.04 release. With this release we are now at the first of our 2 years past a DM migration deadline. This will be the last release for a number of boards that will be removed shortly, so that we can be done with the migration and perform some cleanup

Re: [PATCH v8 01/28] spi: spi-mem: allow specifying whether an op is DTR or not

2021-04-05 Thread Tom Rini
On Mon, Apr 05, 2021 at 07:27:56PM +0530, Pratyush Yadav wrote: > On 05/04/21 09:12AM, Sean Anderson wrote: > > > > On 4/5/21 7:47 AM, Tom Rini wrote: > > > On Mon, Apr 05, 2021 at 01:55:06PM +0530, Pratyush Yadav wrote: > > > > On 02/04/21 06:21PM, Sean Anderson wrote: > > > > > > > > > > On 4/1

[PATCH] mmc: sdhci: Write to HOST_CONTROL2 register for HS400 speed mode

2021-04-05 Thread Aswath Govindraju
From: Faiz Abbas Enable HS400 speed mode by writing to HOST_CONTROL2 register. Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju --- drivers/mmc/sdhci.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c index d9ab6a0a839e..eea4701d8af5 1

Re: [PATCH v8 01/28] spi: spi-mem: allow specifying whether an op is DTR or not

2021-04-05 Thread Pratyush Yadav
On 05/04/21 09:12AM, Sean Anderson wrote: > > On 4/5/21 7:47 AM, Tom Rini wrote: > > On Mon, Apr 05, 2021 at 01:55:06PM +0530, Pratyush Yadav wrote: > > > On 02/04/21 06:21PM, Sean Anderson wrote: > > > > > > > > On 4/1/21 3:31 PM, Pratyush Yadav wrote: > > > > > Each phase is given a separate 'd

Re: SAMA5D3 Xplained: SPL broken after panic added to /lib/time.c:94

2021-04-05 Thread Manuel Luís Reis
Hi Eugen, > As Sean Anderson pointed out : the call to timer must have not worked at > all before this change that now breaks things. > Have you tried removing the call to the timer from this mem_init, to see > if this makes the board boot correctly ? > > In mem_init I guess there are multiple ca

Re: [PATCH v8 00/28] mtd: spi-nor-core: add xSPI Octal DTR support

2021-04-05 Thread Sean Anderson
On 4/5/21 3:43 AM, Pratyush Yadav wrote: On 02/04/21 06:28PM, Sean Anderson wrote: On 4/1/21 3:31 PM, Pratyush Yadav wrote: Hi, This series adds support for octal DTR flashes in the SPI NOR framework, As an overall question, is this the same as "DDR" mode? Sort of... DDR is "Double Data

Re: [PATCH v8 04/28] spi: spi-mem: add spi_mem_dtr_supports_op()

2021-04-05 Thread Sean Anderson
On 4/5/21 3:40 AM, Pratyush Yadav wrote: On 02/04/21 06:31PM, Sean Anderson wrote: On 4/1/21 3:31 PM, Pratyush Yadav wrote: spi_mem_default_supports_op() rejects DTR ops by default to ensure that the controller drivers that haven't been updated with DTR support continue to reject them. It also

Re: [PATCH v8 01/28] spi: spi-mem: allow specifying whether an op is DTR or not

2021-04-05 Thread Sean Anderson
On 4/5/21 7:47 AM, Tom Rini wrote: On Mon, Apr 05, 2021 at 01:55:06PM +0530, Pratyush Yadav wrote: On 02/04/21 06:21PM, Sean Anderson wrote: On 4/1/21 3:31 PM, Pratyush Yadav wrote: Each phase is given a separate 'dtr' field so mixed protocols like 4S-4D-4D can be supported. Signed-off-by:

Re: [PATCH] imx8mn_ddr4_evk: Allow booting the kernel by default

2021-04-05 Thread Tom Rini
On Mon, Apr 05, 2021 at 02:27:35PM +0200, Stefano Babic wrote: > Hi Fabio, Tom, > > On 05.04.21 13:54, Fabio Estevam wrote: > > Hi Stefano, > > > > On Sat, Mar 20, 2021 at 3:18 PM Stefano Babic wrote: > > > > > > Please consider applying this one for 2021.04 as it allows imx8mn-evk > > > > boot

Re: Out of bounds access in service_tx_status_request() in musb_gadget_ep0.c

2021-04-05 Thread Marek Vasut
On 4/5/21 2:38 AM, Heinrich Schuchardt wrote: Hello Marek, Hi, &musb->endpoints[epnum].ep_out may be accessed out of bounds if a device sends a malformed message with ctrlrequest->wIndex = 0x10. Where? The Linux code avoids this issue. Please send a fix, thanks.

Re: [RFC] musb_bulk_rx_nak_timeout()

2021-04-05 Thread Marek Vasut
On 4/5/21 2:06 AM, Heinrich Schuchardt wrote: Hello Marek, Hi, the code in musb_bulk_rx_nak_timeout() looks fishy: dma may be set to NULL and dereferenced afterwards. The following change would avoid the NULL dereference but I am not deep enough into the code to evaluate what is intended he

Re: [RFC] usb_scan_device() only considers first interface

2021-04-05 Thread Marek Vasut
On 4/5/21 1:04 AM, Heinrich Schuchardt wrote: Hello Marek, Hi, I have a USB HID device with two interfaces: 2: Human Interface,  USB Revision 1.0 - WCH.CN 7    Serial To HID 12345678 - Class: (from Interface) Human Interface - PacketSize: 8  Configurations: 1 - Vendor: 0x1a86  Produ

Re: [PATCH] imx8mn_ddr4_evk: Allow booting the kernel by default

2021-04-05 Thread Stefano Babic
Hi Fabio, Tom, On 05.04.21 13:54, Fabio Estevam wrote: Hi Stefano, On Sat, Mar 20, 2021 at 3:18 PM Stefano Babic wrote: Please consider applying this one for 2021.04 as it allows imx8mn-evk booting Linux by default. Thanks for fixing it. I pick it up for release. It seems this one is st

Re: [PATCH] imx8mn_ddr4_evk: Allow booting the kernel by default

2021-04-05 Thread Tom Rini
On Thu, Mar 04, 2021 at 08:07:16AM -0300, Fabio Estevam wrote: > Currently it is not possible to boot Linux from the SD card > by default. > > Make the necessary adjustments to allow it. > > Reported-by: Peter Bergin > Signed-off-by: Fabio Estevam > Tested-by: Andrey Zhizhikin # imx8mn_ddr4_e

Re: [PATCH] imx8mn_ddr4_evk: Allow booting the kernel by default

2021-04-05 Thread Fabio Estevam
Hi Stefano, On Sat, Mar 20, 2021 at 3:18 PM Stefano Babic wrote: > > Please consider applying this one for 2021.04 as it allows imx8mn-evk > > booting Linux by default. > > > > Thanks for fixing it. I pick it up for release. It seems this one is still missing. Could it be applied for 2021.04?

Re: [PATCH v8 01/28] spi: spi-mem: allow specifying whether an op is DTR or not

2021-04-05 Thread Tom Rini
On Mon, Apr 05, 2021 at 01:55:06PM +0530, Pratyush Yadav wrote: > On 02/04/21 06:21PM, Sean Anderson wrote: > > > > On 4/1/21 3:31 PM, Pratyush Yadav wrote: > > > Each phase is given a separate 'dtr' field so mixed protocols like > > > 4S-4D-4D can be supported. > > > > > > Signed-off-by: Pratyus

Re: [PATCH 06/13] pci: synquacer: Add SynQuacer ECAM based PCIe driver

2021-04-05 Thread Masami Hiramatsu
Hi, Kojima-san found a stability issue on this driver. Let me fix that. Thank you, 2021年4月5日(月) 11:09 Masami Hiramatsu : > > Add ECAM based SynQuacer PCIe RC driver. This driver configures the > PCIe RC and filter out a ghost pcie config. > > Since the Linux kernel expects "socionext,synquacer-p

[PATCH v2 17/17] configs: j7200_evm_a72: Enhance bootcmd to configure ethernet PHY

2021-04-05 Thread Kishon Vijay Abraham I
Update the default BOOTCOMMAND to provide an automatic and easier way to configure ethernet PHY before loading the firmware. Signed-off-by: Kishon Vijay Abraham I --- configs/j7200_evm_a72_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/j7200_evm_a72_defconf

[PATCH v2 16/17] env: ti: j721e-evm: Add env variable to power on & reset QSGMII PHY in J7200 EVM

2021-04-05 Thread Kishon Vijay Abraham I
MAIN CPSW0 requires the PHY to be powered on and reset for QSGMII operation. Add a env variable to configure driving "0" on ENET_EXP_PWRDN controlled by GPIO EXPANDER2 (I2C Addr: 0x22), PIN: 17 and driving "1" on ENET_EXP_RESETZ controlled by GPIO EXPANDER2 (I2C Addr: 0x22), PIN: 18. Signed-off-by

[PATCH v2 15/17] configs: j7200_evm_a72_defconfig: Add config for torrent serdes and common clock framework

2021-04-05 Thread Kishon Vijay Abraham I
From: Aswath Govindraju Add config for torrent serdes and common clock framework. Signed-off-by: Aswath Govindraju Signed-off-by: Kishon Vijay Abraham I --- configs/j7200_evm_a72_defconfig | 7 +++ 1 file changed, 7 insertions(+) diff --git a/configs/j7200_evm_a72_defconfig b/configs/j72

[PATCH v2 14/17] configs: j721e_evm_a72: Enable the drivers required for the USB3 support

2021-04-05 Thread Kishon Vijay Abraham I
From: Jean-Jacques Hiblot Enable the mmio mux driver, the J721E-wiz PHy driver and the cadence sierra phy driver. All of them are required for USB3 support Signed-off-by: Jean-Jacques Hiblot Signed-off-by: Vignesh Raghavendra Signed-off-by: Kishon Vijay Abraham I --- configs/j721e_evm_a72_de

[PATCH v2 13/17] arm: dts: k3-j7200-common-proc-board-u-boot: Add u-boot tags for torrent serdes

2021-04-05 Thread Kishon Vijay Abraham I
From: Aswath Govindraju Add u-boot tags for torrent serdes. Signed-off-by: Aswath Govindraju Signed-off-by: Kishon Vijay Abraham I --- arch/arm/dts/k3-j7200-common-proc-board-u-boot.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/dts/k3-j7200-common-proc-board-

[PATCH v2 12/17] arm: dts: k3-j7200-common-proc-board: Enable SERDES DT

2021-04-05 Thread Kishon Vijay Abraham I
From: Aswath Govindraju Add default lane function for torrent serdes. Signed-off-by: Aswath Govindraju Signed-off-by: Kishon Vijay Abraham I --- arch/arm/dts/k3-j7200-common-proc-board.dts | 23 + 1 file changed, 23 insertions(+) diff --git a/arch/arm/dts/k3-j7200-common-

[PATCH v2 11/17] arm: dts: k3-j7200-main: Add DT node for torrent serdes

2021-04-05 Thread Kishon Vijay Abraham I
From: Aswath Govindraju Add DT node for torrent serdes. Signed-off-by: Aswath Govindraju Signed-off-by: Kishon Vijay Abraham I --- arch/arm/dts/k3-j7200-main.dtsi | 63 + 1 file changed, 63 insertions(+) diff --git a/arch/arm/dts/k3-j7200-main.dtsi b/arch/arm/

[PATCH v2 10/17] ARM: dts: k3-j721e: Add the entries required for USB3 support on USB0

2021-04-05 Thread Kishon Vijay Abraham I
Partially sync with Linux's dts to add the entries required for USB3 support on USB0. Note that the default mode is still "peripheral" not "host". USB3 is supported only for the host mode. Signed-off-by: Jean-Jacques Hiblot Signed-off-by: Vignesh Raghavendra Signed-off-by: Kishon Vijay Abraham I

[PATCH v2 09/17] board: ti: j721e: Add support for probing and configuring Torrent serdes on J7200

2021-04-05 Thread Kishon Vijay Abraham I
From: Aswath Govindraju Add support for probing and configuring Torrent serdes on J7200. Signed-off-by: Aswath Govindraju Signed-off-by: Kishon Vijay Abraham I --- board/ti/j721e/evm.c | 34 +- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/board

[PATCH v2 06/17] phy: cadence: Add driver for Torrent SERDES

2021-04-05 Thread Kishon Vijay Abraham I
From: Aswath Govindraju Add driver for Torrent SERDES. Signed-off-by: Aswath Govindraju Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/cadence/Kconfig |6 + drivers/phy/cadence/Makefile |1 + drivers/phy/cadence/phy-cadence-torrent.c | 2456 ++

[PATCH v2 07/17] phy: ti: j721e-wiz: Add support for WIZ module present in TI J721E SoC

2021-04-05 Thread Kishon Vijay Abraham I
From: Jean-Jacques Hiblot Add support for WIZ module present in TI's J721E SoC. WIZ is a SERDES wrapper used to configure some of the input signals to the SERDES. It is used with both Sierra(16G) and Torrent(10G) SERDES. This driver configures three clock selects (pll0, pll1, dig) and supports re

[PATCH v2 08/17] usb: cdns3: cdns3-ti: Fix clk_get_by_name() to get the correct name

2021-04-05 Thread Kishon Vijay Abraham I
Upstream device tree got updated to use clock name as "ref" instead of "usb2_refclk". Fix cdns3-ti.c to use the correct name. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/cdns3/cdns3-ti.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/cdns3/cdns3-ti.c b/

[PATCH v2 05/17] phy: cadence: Add driver for Sierra PHY

2021-04-05 Thread Kishon Vijay Abraham I
From: Alan Douglas Add a Sierra PHY driver with PCIe and USB support. This driver is a port from the mainline linux driver. The PHY has multiple lanes, which can be configured into groups, and a generic PHY device is created for each group. There are two resets controlling the overall PHY block

[PATCH v2 04/17] dt-bindings: phy: Add definitions for additional phy types

2021-04-05 Thread Kishon Vijay Abraham I
From: Aswath Govindraju Add definitions for additional phy types that's used specifically for Torrent SERDES. Signed-off-by: Aswath Govindraju Signed-off-by: Kishon Vijay Abraham I --- include/dt-bindings/phy/phy.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-bindings/phy/ph

[PATCH v2 03/17] drivers: reset: Handle gracefully NULL pointers

2021-04-05 Thread Kishon Vijay Abraham I
From: Jean-Jacques Hiblot The reset framework provides devm_reset_control_get_optional() which can return NULL (not an error case). So all the other reset_ops should handle NULL gracefully. Prepare the way for a managed reset API by handling NULL pointers without crashing nor failing. Signed-off

[PATCH v2 02/17] dm: test: Add test case to check node name ignoring unit address

2021-04-05 Thread Kishon Vijay Abraham I
Add test to check node name ignoring unit address. Signed-off-by: Kishon Vijay Abraham I --- test/dm/core.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/test/dm/core.c b/test/dm/core.c index 35ca689d64..b88b1966fd 100644 --- a/test/dm/core.c +++ b/test/dm/core.c @@ -178,6

  1   2   >