[PATCH v11 1/2] board: riscv: add openpiton-riscv64 SoC support

2021-06-30 Thread Tianrui Wei
This patch adds openpiton-riscv64 SOC support. In particular, this board supports a standard bootflow through zsbl->u-boot SPL-> opensbi->u-boot proper->Linux. There are separate defconfigs for building u-boot SPL and u-boot proper Signed-off-by: Tianrui Wei Signed-off-by: Jonathan Balkind

[PATCH v11 2/2] mmc: openpiton: add piton_mmc driver

2021-06-30 Thread Tianrui Wei
This commit adds support to piton_mmc driver for OpenPiton-riscv64 This driver has many things set as preconfigured because the hardware automatically configures most of the settings during startup. Signed-off-by: Tianrui Wei Signed-off-by: Jonathan Balkind Reviewed-by: Jaehoon Chung ---

[PATCH v11 0/2] Add OpenPiton-riscv64 Board Support

2021-06-30 Thread Tianrui Wei
This patch set is to add OpenPiton board support. Patches are split into several parts: - [PATCH 1/2] add OpenPiton support to mmc driver - [PATCH 2/2] add support for OpenPiton board Description - for mmc driver, it's settings are automatically configured at hardware level. We only need to

[PATCH 4/4] NSA310S : Add DM SATA configs

2021-06-30 Thread Tony Dinh
Enable DM SATA, removed IDE driver, and add SATA MV driver. Signed-off-by: Tony Dinh --- include/configs/nsa310s.h | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/include/configs/nsa310s.h b/include/configs/nsa310s.h index e38c65a485..94f293de90 100644 ---

[PATCH 3/4] NSA310S : Use Ethernet PHY name from device tree

2021-06-30 Thread Tony Dinh
In DM Ethernet, the old "egiga0" name is no longer valid, so replace it with Ethernet PHY name from device tree. Signed-off-by: Tony Dinh --- board/zyxel/nsa310s/nsa310s.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/board/zyxel/nsa310s/nsa310s.c

[PATCH 2/4] NSA310S : Add DM USB, DM Ethernet, and DM SATA configs

2021-06-30 Thread Tony Dinh
Convert to Driver Model. - Add DM USB, DM Ethernet, and DM SATA configs to nsa310s_defconfig - Add CONFIG_DEFAULT_DEVICE_TREE to nsa310s_defconfig - Move CONFIG_ENV_SECT_SIZE from board file to nsa310s_defconfig - Add CONFIG_IDENT_STRING, and CONFIG_NET_RANDOM_ETHADDR to nsa310s_defconfig

[PATCH 1/4] NSA310S : Add device tree DTS for Zyxel NSA310S board

2021-06-30 Thread Tony Dinh
Add device tree kirkwood-nsa310s.dts for Zyxel NSA310S board to convert to Driver Model. Signed-off-by: Tony Dinh --- arch/arm/dts/Makefile | 1 + arch/arm/dts/kirkwood-nsa310s.dts | 318 ++ 2 files changed, 319 insertions(+) create mode 100644

[PATCH 0/4] Zyxel NSA310S NAS : convert to Driver Model.

2021-06-30 Thread Tony Dinh
- Add device tree kirkwood-nsa310s.dts - Add DM_USB, DM_ETH, DM_SATA and associated configs to nsa310s_defconfig - Move some miscellaneous configs from board file to nsa310s_defconfig - Replace old device name "egiga0" with Ethernet PHY name from device tree kirkwood.dtsi - Removed IDE, and add

Suggestion: When flash is uninitialized, *silently* fall back to default environment

2021-06-30 Thread Zack Weinberg
Consider a boot ROM that looks for u-boot in several places (SPI flash, eMMC flash, etc) and loads the first one it finds, and then u-boot repeats the same search to find its own configuration. If there is _nothing_ on the SPI flash and u-boot and all its configuration is on the eMMC, this will

Re: [PATCH v2 1/2] efi_loader: fix set_capsule_result()

2021-06-30 Thread AKASHI Takahiro
On Thu, Jul 01, 2021 at 03:20:48AM +0200, Heinrich Schuchardt wrote: > Am 1. Juli 2021 02:49:09 MESZ schrieb AKASHI Takahiro > : > >NAK. For example, > >On Wed, Jun 30, 2021 at 05:31:15PM +0200, Heinrich Schuchardt wrote: > >> The log category must be LOG_CATEGORY LOGC_EFI. This one above and

Re: [PATCH v2 1/2] efi_loader: fix set_capsule_result()

2021-06-30 Thread Heinrich Schuchardt
Am 1. Juli 2021 02:49:09 MESZ schrieb AKASHI Takahiro : >NAK. > >On Wed, Jun 30, 2021 at 05:31:15PM +0200, Heinrich Schuchardt wrote: >> The log category must be LOG_CATEGORY LOGC_EFI. >> >> efi_set_variable() should be called with EFI_CALL(). Use >> efi_set_variable_int() instead. >> >> A log

Re: [PATCH v2 1/2] efi_loader: fix set_capsule_result()

2021-06-30 Thread AKASHI Takahiro
NAK. On Wed, Jun 30, 2021 at 05:31:15PM +0200, Heinrich Schuchardt wrote: > The log category must be LOG_CATEGORY LOGC_EFI. > > efi_set_variable() should be called with EFI_CALL(). Use > efi_set_variable_int() instead. > > A log text "Updating ..." if SetVariable() fails does not make sense for

[PATCH 4/5] board: gateworks: venice: add ftd_file env vars on boot

2021-06-30 Thread Tim Harvey
The ftd_file* vars can be used by bootscripts to look for appropriate dtb's Signed-off-by: Tim Harvey --- board/gateworks/venice/imx8mm_venice.c | 19 --- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/board/gateworks/venice/imx8mm_venice.c

[PATCH 5/5] board: gateworks: venice: remove forced enable of GSC thermal protection

2021-06-30 Thread Tim Harvey
The Gateworks System Controller thermal protection feature will disable the board primary power supply if the on-board temperature sensor reaches 86C. In many cases this could occur before the temperature critical components such as CPU, DRAM, eMMC, and power supplies have reached their max

[PATCH 2/5] board: gateworks: venice: gsc: fix voltage offset

2021-06-30 Thread Tim Harvey
The voltage offset property is in microvolts so must be scaled accordingly. Signed-off-by: Tim Harvey --- board/gateworks/venice/gsc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/gateworks/venice/gsc.c b/board/gateworks/venice/gsc.c index 23ad58094c..9a6712ec88

[PATCH 3/5] board: gateworks: venice: display DTB used

2021-06-30 Thread Tim Harvey
Display the DTB file used for U-Boot. Signed-off-by: Tim Harvey --- board/gateworks/venice/imx8mm_venice.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/board/gateworks/venice/imx8mm_venice.c b/board/gateworks/venice/imx8mm_venice.c index 1d51b6ea9b..cb00f532bf

[PATCH 1/5] board: gateworks: venice: gsc: fix typo

2021-06-30 Thread Tim Harvey
Fix typo in error message. Signed-off-by: Tim Harvey --- board/gateworks/venice/gsc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/gateworks/venice/gsc.c b/board/gateworks/venice/gsc.c index d2490e6063..23ad58094c 100644 --- a/board/gateworks/venice/gsc.c +++

[PATCH 9/9] configs: imx8mm_venice_defconfig: add support for gbe switch

2021-06-30 Thread Tim Harvey
The imx8mm-venice-gw7901 board has an I2C connected KSZ9897S GbE switch with an IMX8MM FEC MAC master connected via RGMII_ID. Signed-off-by: Tim Harvey --- configs/imx8mm_venice_defconfig | 4 1 file changed, 4 insertions(+) diff --git a/configs/imx8mm_venice_defconfig

[PATCH 8/9] arm: dts: imx8mm-venice-gw7901.dts: fix dsa switch configuration

2021-06-30 Thread Tim Harvey
Fix the dsa switch config: - remove the unnecessary phy-mode from the switch itself - added the necessary fixed-link node to the non-cpu ports required for U-Boot DSA Signed-off-by: Tim Harvey --- arch/arm/dts/imx8mm-venice-gw7901.dts | 37 ++- 1 file changed, 36

[PATCH 7/9] net: add support for KSZ9477/KSZ9897/KSZ9567 GbE switch

2021-06-30 Thread Tim Harvey
The Microchip KSZ9477/KSZ9897/KSZ9567 7-Port Gigabit Ethernet Switches support SGMII/RGMII/MII/RMII with register access via SPI, I2C, or MDIO. This driver currently supports I2C register access but SPI or MDIO register access can be easily added at a later time. Tagging is not implemented and

[PATCH 6/9] net: dsa: enable master promisc mode if available and needed

2021-06-30 Thread Tim Harvey
If ports have their own unique MAC addrs and master has a set_promisc function, call it so that packets will be received for ports. Signed-off-by: Tim Harvey --- net/dsa-uclass.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/net/dsa-uclass.c b/net/dsa-uclass.c

[PATCH 5/9] net: fec: add set_promisc function

2021-06-30 Thread Tim Harvey
Enabling promiscuous mode is necessary if FEC is the master of a DSA switch driver where each port has their own MAC address. Signed-off-by: Tim Harvey --- drivers/net/fec_mxc.c | 13 + drivers/net/fec_mxc.h | 1 + 2 files changed, 14 insertions(+) diff --git

[PATCH 4/9] net: add set_promisc function to enable/disable Promiscuous mode

2021-06-30 Thread Tim Harvey
Enabling promiscuous mode can be useful for DSA switches where each port has its own MAC address. Signed-off-by: Tim Harvey --- include/net.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/net.h b/include/net.h index b95d6a6f60..cec8c98618 100644 --- a/include/net.h +++

[PATCH 3/9] net: fec: set phy_of_node properly for fixed-link phy

2021-06-30 Thread Tim Harvey
If the FEC is connected to a fixed-link (upstream switch port for example) the phy_of_node should be set to the fixed-link node so that speed and other properties can be found properly. In addition fix a typo in the debug string. Signed-off-by: Tim Harvey --- drivers/net/fec_mxc.c | 6 +-

[PATCH 2/9] net: fec: use device sequence vs index when fetching fec

2021-06-30 Thread Tim Harvey
When using uclass_get_device* to get the FEC device we need to use device sequence instead of index into UCLASS_ETH. In systems where for example a I2C based DSA switch exists it will probe before the FEC master and its ports will be registered first and have the first indexes yet the FEC's

[PATCH 1/9] board: gateworks: venice: add imx8mm-gw7901 support

2021-06-30 Thread Tim Harvey
The Gateworks GW7901 is an ARM based single board computer (SBC) featuring: - i.MX8M Mini SoC - LPDDR4 DRAM - eMMC FLASH - SPI FRAM - Gateworks System Controller (GSC) - Atmel ATECC Crypto Authentication - USB 2.0 - Microchip GbE Switch - Multiple multi-protocol RS232/RS485/RS422 Serial

[PATCH 0/9] Add support for imx8mm-venice-gw7901 and DSA switch

2021-06-30 Thread Tim Harvey
The GW7901 is an IMX8M Mini based board with a KSZ9897 switch hanging off the IMX8M FEC. In order to support a fixed-link connection to a U-Boot DSA switch some changes need to be made to the FEC driver. Additionally, in order to support per-port unique MAC addrs for DSA we must introduce a

Re: [PATCH 1/2] spl: mmc: Factor out eMMC boot partition selection code

2021-06-30 Thread Jaehoon Chung
Hi Marek, On 7/1/21 8:08 AM, Marek Vasut wrote: > Factor out eMMC boot partition selection code into > default_spl_mmc_emmc_boot_partition() function and implement > weak spl_mmc_emmc_boot_partition(), so that architecture or > board code can override the eMMC boot partition selection. > >

[PATCH 2/2] ARM: imx: Pick correct eMMC boot partition from ROM log

2021-06-30 Thread Marek Vasut
In case the iMX8M boot from eMMC boot partition and the primary image is corrupted, the BootROM is capable of starting a secondary image in the other eMMC boot partition as a fallback. However, the BootROM leaves the eMMC BOOT_PARTITION_ENABLE setting as it was, i.e. pointing to the boot

[PATCH 1/2] spl: mmc: Factor out eMMC boot partition selection code

2021-06-30 Thread Marek Vasut
Factor out eMMC boot partition selection code into default_spl_mmc_emmc_boot_partition() function and implement weak spl_mmc_emmc_boot_partition(), so that architecture or board code can override the eMMC boot partition selection. Signed-off-by: Marek Vasut Cc: Faiz Abbas Cc: Harald Seiler Cc:

Re: [PATCH] board: ti: j721e: README: Add documentation for eMMC boot

2021-06-30 Thread Tom Rini
On Wed, Jun 30, 2021 at 11:34:29AM +0530, Aswath Govindraju wrote: > Add instructions for flashing eMMC with bootloader images from SD. > > Signed-off-by: Aswath Govindraju > --- > board/ti/j721e/README | 59 +++ > 1 file changed, 59 insertions(+) This

[PATCH v3 3/3] test/py: rewrite sqfsls command test suite

2021-06-30 Thread Joao Marcos Costa
Add more details to test cases by comparing each expected line with the command's output. Add new test cases: - sqfsls at an empty directory - sqfsls at a sub-directory Signed-off-by: Joao Marcos Costa --- .../test_fs/test_squashfs/test_sqfs_ls.py | 140 +++--- 1 file changed,

[PATCH v3 2/3] test/py: rewrite sqfsload command test suite

2021-06-30 Thread Joao Marcos Costa
The previous strategy to know if a file was correctly loaded was to check for how many bytes were read and compare it against the file's original size. Since this is not a good solution, replace it by comparing the checksum of the loaded bytes against the original file's checksum. Add more test

[PATCH v3 1/3] test/py: rewrite common tools for SquashFS tests

2021-06-30 Thread Joao Marcos Costa
Remove the previous OOP approach, which was confusing and incomplete. Add more test cases by making SquashFS images with various options, concerning file fragmentation and its compression. Add comments to properly document the code. Signed-off-by: Joao Marcos Costa ---

[PATCH v3 0/3] test/py: Rewrite SquashFS commands test suite

2021-06-30 Thread Joao Marcos Costa
Hello, This patch series fixes the following issues: - poor strategy to check if files were properly loaded - wrong quoting style for strings - tests failing at the second run because of a wrong clean-up strategy Finally, it improves: - code overall documentation level, with more comments and

Re: Pull request: u-boot-spi/next for next

2021-06-30 Thread Tom Rini
On Wed, Jun 30, 2021 at 05:35:03PM +0530, Jagan Teki wrote: > Hi Tom, > > Please pull this PR for next. > > Summary: > - Cypress s25hl-t/s25hs-t support (Takahiro Kuwano) > > CI: > https://source.denx.de/u-boot/custodians/u-boot-spi/-/pipelines/7979 > > thanks, > Jagan. > > The following

Re: [PATCH v10 2/2] mmc: openpiton: add piton_mmc driver

2021-06-30 Thread Jaehoon Chung
On 6/30/21 8:10 PM, Tianrui Wei wrote: > This commit adds support to piton_mmc driver for OpenPiton-riscv64 > This driver has many things set as preconfigured because the hardware > automatically configures most of the settings during startup. > > Signed-off-by: Tianrui Wei > Signed-off-by:

Building U-Boot for Compulab's imx8mm-cl-iot-gate board

2021-06-30 Thread Fabio Estevam
Hi Paul, I am trying to build U-Boot 2021.07-rc5 for the imx8mm-cl-iot-gate_defconfig target and I am following the imx8mm-evk readme: doc/board/freescale/imx8mm_evk.rst for the build instructions and this is the output: make[1]: Nothing to be done for 'SPL'. BINMAN all Image 'main-section'

Re: [PATCH v2 2/2] efi_loader: clear OsIndications

2021-06-30 Thread Ilias Apalodimas
Hi Heinrich, > if (IS_ENABLED(CONFIG_EFI_CAPSULE_ON_DISK) && [...] > !IS_ENABLED(CONFIG_EFI_CAPSULE_ON_DISK_EARLY)) > ret = efi_launch_capsules(); > + if (ret != EFI_SUCCESS) > + goto out; > + I think OsIndications should be cleared reagrdless of

Setting serverip from DHCP server

2021-06-30 Thread Gregory Anders
Hi all, I am running U-Boot on an embedded device that is connected via Ethernet to my workstation. The workstation is running dhcpd and U-Boot is able to successfully obtain an IP address via DHCP from the server. However, the `serverip` environment variable is not being set which prevents

[RFC PATCH v1] phy: rockchip: add basic rk3328 support to phy-rockchip-inno-usb2.c

2021-06-30 Thread Johan Jonker
The rk3328 uses a usb phy simulair to rk3399 with only 1 instead of 2 usb ports. Reuse existing U-boot driver and add basic rk3328 support to phy-rockchip-inno-usb2.c Signed-off-by: Johan Jonker --- drivers/phy/rockchip/phy-rockchip-inno-usb2.c | 29 +++ 1 file changed,

[RFC PATCH v1 3/6] arm: dts: rockchip: move mmc aliases to board files

2021-06-30 Thread Johan Jonker
In the Linux DT the recently introduced async probe on mmc devices can shuffle block IDs. Pin them to fixed values to ease booting in environments where UUIDs are not practical. The newly added mmc aliases should be board specific, so move them from the general dtsi to the individual boards. Sort

[RFC PATCH v1 5/6] rockchip: rk3318: add a95x-z2-rk3318_defconfig file

2021-06-30 Thread Johan Jonker
This commit adds the default configuration file and relevant description for A95X Z2 board Signed-off-by: Johan Jonker --- board/rockchip/evb_rk3328/MAINTAINERS | 6 ++ configs/a95x-z2-rk3318_defconfig | 102 ++ doc/board/rockchip/rockchip.rst | 2

[RFC PATCH v1 6/6] arm: dts: rockchip: add rk3318 A95X Z2 board

2021-06-30 Thread Johan Jonker
The rk3318 A95X Z2 boards are sold as TV box. No further documentation is given, but from the dts files extracted it seems that the rk3318 processor is simulair to the rk3328. This dts file contains only the basic nodes that have support in the mainline kernel. Included extra dtsi file for U-boot

[RFC PATCH v1 4/6] arm: dts: rockchip: move spi0 u-boot, dm-pre-reloc and alias to rk3328 board files

2021-06-30 Thread Johan Jonker
The spi0 node has a common u-boot,dm-pre-reloc property and an alias in rk3328-u-boot.dtsi, so all boards contain this as well in u-boot-tpl.dtb. Clean it up a bit and move it to only boards that use it. Signed-off-by: Johan Jonker --- arch/arm/dts/rk3328-rock64-u-boot.dtsi | 6 ++

[RFC PATCH v1 2/6] arm: dts: rockchip: remove usb_host0_xhci node from rk3328-u-boot.dtsi

2021-06-30 Thread Johan Jonker
The rk3328.dtsi file was updated with a usbdrd3 node. Remove the usb_host0_xhci node from rk3328-u-boot.dtsi, because it's deprecated now the driver is removed. Add usbdrd3 as place holder in existing dtsi files. Signed-off-by: Johan Jonker --- arch/arm/dts/rk3328-evb-u-boot.dtsi | 2 +-

[RFC PATCH v1 1/6] arm: dts: rockchip: update rk3328.dtsi

2021-06-30 Thread Johan Jonker
In the Linux DT the file rk3328.dtsi has recently had some updates. Update this for U-boot as well. The rk3328 usb3 port has now support in the Linux DT. Rename node names ending on 'gpio' to 'pin' or 'pins'. Signed-off-by: Johan Jonker --- arch/arm/dts/rk3328-evb.dts| 2 +-

[RFC PATCH v1 0/6] add rk3318 A95X Z2 board

2021-06-30 Thread Johan Jonker
With a new board from a recent Linux DT the U-boot rk3328.dtsi is in need for an update. Please advise what to do with usb3 regulators, aliases and other stuff that has to change. Also some of the U-boot board files could use some dtbs_check for bogus properties and restyling... ;) rk3328 USB2

[PATCH v2] cmd:Elaborate 'blkcache' cmd HELP statement

2021-06-30 Thread opensource . kab
From: Adarsh Babu Kalepalli HELP description is provided for ‘configure’ sub-command of ‘blkcache’. Signed-off-by: Adarsh Babu Kalepalli --- (no changes since v1) cmd/blkcache.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/blkcache.c b/cmd/blkcache.c index

Re: [PATCH 0/3] cmd: setexpr: add fmt format string operation

2021-06-30 Thread Marek Behún
On Wed, 30 Jun 2021 12:17:47 -0400 Sean Anderson wrote: > On 6/29/21 11:13 AM, Wolfgang Denk wrote: > > Dear Sean, > > > > In message <19b6eeea-2aad-972b-aeeb-8959aab17...@gmail.com> you > > wrote: > >> > >> The issue with this is twofold. First, there is no portable way to > >> construct a

Re: [PATCH V2] spi: Update speed/mode on change

2021-06-30 Thread Tom Rini
On Thu, Jun 10, 2021 at 02:00:00PM +0200, Marek Vasut wrote: > The spi_get_bus_and_cs() may be called on the same bus and chipselect > with different frequency or mode. This is valid usecase, but the code > fails to notify the controller of such a configuration change. Call > spi_set_speed_mode()

Re: [PATCH v2] efi_loader: Improve the parameter check for QueryVariableInfo()

2021-06-30 Thread Heinrich Schuchardt
On 6/30/21 5:49 PM, Masami Hiramatsu wrote: Improve efi_query_variable_info() to check the parameter settings and return correct error code according to the UEFI Specification 2.9, and the Self Certification Test (SCT) II Case Specification, June 2017, chapter 4.1.4 QueryVariableInfo().

Re: [PATCH 0/3] cmd: setexpr: add fmt format string operation

2021-06-30 Thread Sean Anderson
On 6/29/21 11:13 AM, Wolfgang Denk wrote: Dear Sean, In message <19b6eeea-2aad-972b-aeeb-8959aab17...@gmail.com> you wrote: The issue with this is twofold. First, there is no portable way to construct a va_list from C code. So the likely way to do this would be to set an arbitrary limit, and

Re: [PATCH 1/2] DM_USB: allow building without OF_CONTROL

2021-06-30 Thread Simon Glass
Hi Tom, On Wed, 30 Jun 2021 at 09:49, Tom Rini wrote: > > On Wed, Jun 30, 2021 at 05:31:44PM +0300, Ivaylo Dimitrov wrote: > > Hi, > > > > On 30.06.21 г. 16:33 ч., Tom Rini wrote: > > > On Wed, Jun 30, 2021 at 10:30:20AM +0300, Ivaylo Dimitrov wrote: > > > > Hi, > > > > > > > > On 26.06.21 г.

[PATCH v6 4/5] mtd: spi-nor-ids: Add XTX XT25F128B

2021-06-30 Thread Jon Lin
From: Chris Morgan Adds support for XT25F128B used on Odroid Go Advance. Unfortunately this chip uses a continuation code which I cannot seem to parse, so there are possibly going to be collisions with chips that use the same manufacturer/ID. Signed-off-by: Chris Morgan Signed-off-by: Jon Lin

[PATCH v6 5/5] rockchip: px30: add support for SFC for Odroid Go Advance

2021-06-30 Thread Jon Lin
From: Chris Morgan The Odroid Go Advance uses a Rockchip Serial Flash Controller with an XT25F128B SPI NOR flash chip. This adds support for both. Note that while both the controller and chip support quad mode, only two lines are connected to the chip. Changing the pinctrl to bus2 and setting tx

[PATCH v6 3/5] rockchip: px30: add the serial flash controller

2021-06-30 Thread Jon Lin
From: Chris Morgan Add the serial flash controller to the devicetree for the PX30. Signed-off-by: Chris Morgan Signed-off-by: Jon Lin --- (no changes since v5) Changes in v5: - px30 use "rockchip, sfc" as compatible id arch/arm/dts/px30.dtsi | 38 ++ 1

[PATCH v6 2/5] rockchip: px30: Add support for using SFC

2021-06-30 Thread Jon Lin
From: Chris Morgan This patch adds support for setting the correct pin configuration for the Rockchip Serial Flash Controller found on the PX30. Signed-off-by: Chris Morgan Signed-off-by: Jon Lin --- (no changes since v1) arch/arm/mach-rockchip/px30/px30.c | 64

[PATCH v6 1/5] spi: rockchip_sfc: add support for Rockchip SFC

2021-06-30 Thread Jon Lin
From: Chris Morgan This patch adds support for the Rockchip serial flash controller found on the PX30 SoC. It should work for versions 3-5 of the SFC IP, however I am only able to test it on v3. This is adapted from the WIP SPI-MEM driver for the SFC on mainline Linux. Note that the main

[PATCH v6 0/5] rockchip_sfc: add support for Rockchip SFC

2021-06-30 Thread Jon Lin
Changes in v6: - Fix dma transfer logic - Fix the error of the way to wait for dma transfer finished status Changes in v5: - Support dma transfer - Add CONFIG_IS_ENABLED(CLK) limitation - Support spinand devices - Support SFC ver4 ver5 - Using "rockchip, sfc" as compatible id - Get clock from

[PATCH 5/6] riscv: dts: add dts for unmatched rev1

2021-06-30 Thread Zong Li
The difference between unmatched rev3 and rev1 is DDR timing, the rev3 uses 1866 MT/s for 16GiB, and rev1 uses 2133 MT/s for 8GiB. Signed-off-by: Zong Li --- arch/riscv/dts/Makefile |2 +- .../fu740-hifive-unmatched-a00-ddr-rev1.dtsi | 1489 +

[PATCH 6/6] board: sifive: support spl multi-dtb on unmatched board

2021-06-30 Thread Zong Li
There are two revisions of unmatched board with different DDR timing, we'd like to support multi-dtb mechanism in SPL, then it selects the right DTB at runtime according to PCB revision in I2C EEPROM. Signed-off-by: Zong Li --- board/sifive/unmatched/spl.c | 28

[PATCH 4/6] board: sifive: Add an interface to get PCB revision

2021-06-30 Thread Zong Li
There are different DDR parameter settings for different board revisions. Add a new interface to get the PCB revision to determine which DT should be selected at runtime. Signed-off-by: Zong Li --- arch/riscv/include/asm/arch-fu740/eeprom.h| 15 +

[PATCH 3/6] riscv: sifive: fu740: Support i2c in spl

2021-06-30 Thread Zong Li
Enable SPL_I2C_SUPPORT for fu740, and add 'u-boot,dm-spl' property in i2c node. Signed-off-by: Zong Li --- arch/riscv/cpu/fu740/Kconfig | 1 + arch/riscv/dts/fu740-c000-u-boot.dtsi | 4 2 files changed, 5 insertions(+) diff --git a/arch/riscv/cpu/fu740/Kconfig

[PATCH 1/6] board: sifive: unmatched: add initial support for a platform ID EEPROM

2021-06-30 Thread Zong Li
Add initial support for the PCB description EEPROM for SiFive HiFive Unmatched boards. This implementation is refactored based on Paul Walmsley's porting and adopt the suggestions from David Abdurachmanov. Signed-off-by: Paul Walmsley Signed-off-by: David Abdurachmanov Signed-off-by: Zong Li

[PATCH 2/6] riscv: sifive: fu740: kconfig: Enable support for Opencores I2C controller

2021-06-30 Thread Zong Li
Enable the Opencores I2C controller on FU740 Signed-off-by: Zong Li --- arch/riscv/cpu/fu740/Kconfig | 2 ++ board/sifive/unmatched/Kconfig | 1 + 2 files changed, 3 insertions(+) diff --git a/arch/riscv/cpu/fu740/Kconfig b/arch/riscv/cpu/fu740/Kconfig index 3a5f6e47f5..1dc052ba31 100644 ---

[PATCH 0/6] Support multi-dtb in SPL on Unmatched board

2021-06-30 Thread Zong Li
This patch set contains the support I2C platform EEPROM and multi-dtb mechanism on Unmatched board. There are two revisions of Unmatched with different DDR timing respectively, so we'd like to support multi-dtb in SPL, then it can select the right DTB at runtime according to PCB revision in I2C

Re: [PATCH] armv8: fsl : fix bootcmd and mcinitcmd default value

2021-06-30 Thread Bedel, Alban
On Wed, 2021-06-30 at 12:44 +, Wasim Khan (OSS) wrote: > > > > -Original Message- > > From: Bedel, Alban > > Sent: Wednesday, June 30, 2021 6:03 PM > > To: Priyanka Jain ; Varun Sethi < > > v.se...@nxp.com>; > > Wasim Khan ; Wasim Khan (OSS) > > > > Cc: u-boot@lists.denx.de > >

Re: [PATCH] armv8: fsl : fix bootcmd and mcinitcmd default value

2021-06-30 Thread Bedel, Alban
On Wed, 2021-06-30 at 11:12 +, Priyanka Jain wrote: > > > > -Original Message- > > From: Wasim Khan > > Sent: Friday, June 25, 2021 2:40 PM > > To: Bedel, Alban ; Priyanka Jain > > ; Varun Sethi ; Wasim Khan > > (OSS) > > > > Cc: u-boot@lists.denx.de > > Subject: RE: [PATCH] armv8:

[PATCH v2] efi_loader: Improve the parameter check for QueryVariableInfo()

2021-06-30 Thread Masami Hiramatsu
Improve efi_query_variable_info() to check the parameter settings and return correct error code according to the UEFI Specification 2.9, and the Self Certification Test (SCT) II Case Specification, June 2017, chapter 4.1.4 QueryVariableInfo(). Signed-off-by: Masami Hiramatsu Reported-by:

Re: [PATCH 1/2] DM_USB: allow building without OF_CONTROL

2021-06-30 Thread Tom Rini
On Wed, Jun 30, 2021 at 05:31:44PM +0300, Ivaylo Dimitrov wrote: > Hi, > > On 30.06.21 г. 16:33 ч., Tom Rini wrote: > > On Wed, Jun 30, 2021 at 10:30:20AM +0300, Ivaylo Dimitrov wrote: > > > Hi, > > > > > > On 26.06.21 г. 17:58 ч., Tom Rini wrote: > > > > On Sat, Jun 26, 2021 at 12:59:21PM

Re: [PATCH] efi_loader: Improve the parameter check for QueryVariableInfo()

2021-06-30 Thread Masami Hiramatsu
2021年7月1日(木) 0:30 Heinrich Schuchardt : > > On 6/30/21 5:07 PM, Masami Hiramatsu wrote: > > Hi Heinrich, > > > > 2021年6月30日(水) 23:55 Heinrich Schuchardt : > > > This does not catch attributes == EFI_VARIABLE_NON_VOLATILE where test > case 5.2.1.4.5 requires EFI_INVALID_PARAMETER. > >>> >

Re: buildman error

2021-06-30 Thread Alper Nebi Yasak
On 30/06/2021 14:07, Wasim Khan wrote: > I am using latest u-boot code and trying to run buildman with my local patch > for lx2160 platform on master branch. > Getting below error . > > u-boot$ ./tools/buildman/buildman --list-tool-chains > aarch64 : >

[PATCH v2 2/2] efi_loader: clear OsIndications

2021-06-30 Thread Heinrich Schuchardt
After each reboot we must clear flag EFI_OS_INDICATIONS_FILE_CAPSULE_DELIVERY_SUPPORTED in variable OsIndications. Signed-off-by: Heinrich Schuchardt --- v2: update OsIndications after handling all capsules --- lib/efi_loader/efi_setup.c | 33 + 1 file

[PATCH v2 1/2] efi_loader: fix set_capsule_result()

2021-06-30 Thread Heinrich Schuchardt
The log category must be LOG_CATEGORY LOGC_EFI. efi_set_variable() should be called with EFI_CALL(). Use efi_set_variable_int() instead. A log text "Updating ..." if SetVariable() fails does not make sense for a variable that is not required to be preexisting. CapsuleLast should always be

[PATCH v2 0/2] efi_loader: indicating capsule update results

2021-06-30 Thread Heinrich Schuchardt
When creating the Capsule variable we should immediately update CapsuleLast. After each reboot we must clear flag EFI_OS_INDICATIONS_FILE_CAPSULE_DELIVERY_SUPPORTED in variable OsIndications. Heinrich Schuchardt (2): efi_loader: fix set_capsule_result() efi_loader: clear OsIndications

Re: [PATCH] efi_loader: Improve the parameter check for QueryVariableInfo()

2021-06-30 Thread Heinrich Schuchardt
On 6/30/21 5:07 PM, Masami Hiramatsu wrote: Hi Heinrich, 2021年6月30日(水) 23:55 Heinrich Schuchardt : This does not catch attributes == EFI_VARIABLE_NON_VOLATILE where test case 5.2.1.4.5 requires EFI_INVALID_PARAMETER. Hmm, but this could pass the SCT runtime test. So attributes ==

Re: [PATCH] efi_loader: Improve the parameter check for QueryVariableInfo()

2021-06-30 Thread Masami Hiramatsu
Hi Heinrich, 2021年6月30日(水) 23:55 Heinrich Schuchardt : > >> This does not catch attributes == EFI_VARIABLE_NON_VOLATILE where test > >> case 5.2.1.4.5 requires EFI_INVALID_PARAMETER. > > > > Hmm, but this could pass the SCT runtime test. > > So attributes == EFI_VARIABLES_NON_VOLATILE should

Re: [PATCH] efi_loader: Improve the parameter check for QueryVariableInfo()

2021-06-30 Thread Heinrich Schuchardt
On 6/30/21 11:32 AM, Masami Hiramatsu wrote: Hi Heinrich, Thanks for the review! 2021年6月30日(水) 16:06 Heinrich Schuchardt : On 6/30/21 7:51 AM, Masami Hiramatsu wrote: Improve efi_query_variable_info() to check the parameter settings and return correct error code according to the UEFI spec

Re: [PATCH 1/2] DM_USB: allow building without OF_CONTROL

2021-06-30 Thread Ivaylo Dimitrov
Hi, On 30.06.21 г. 16:33 ч., Tom Rini wrote: On Wed, Jun 30, 2021 at 10:30:20AM +0300, Ivaylo Dimitrov wrote: Hi, On 26.06.21 г. 17:58 ч., Tom Rini wrote: On Sat, Jun 26, 2021 at 12:59:21PM +0200, Merlijn Wajer wrote: Hi Tom, Marek, On 25/06/2021 23:59, Tom Rini wrote: On Fri, Jun 25,

Re: [PATCH 0/6] Call phy_config at port probe time for the Felix DSA driver

2021-06-30 Thread Michael Walle
Am 2021-06-29 19:08, schrieb Vladimir Oltean: From: Vladimir Oltean This series makes the Felix DSA driver initialize all its connected PHYs regardless of whether those will be used for networking or not. This is in order to satisfy the expectations of some software in later boot stages. To

Re: [PATCH 1/2] DM_USB: allow building without OF_CONTROL

2021-06-30 Thread Tom Rini
On Wed, Jun 30, 2021 at 10:30:20AM +0300, Ivaylo Dimitrov wrote: > Hi, > > On 26.06.21 г. 17:58 ч., Tom Rini wrote: > > On Sat, Jun 26, 2021 at 12:59:21PM +0200, Merlijn Wajer wrote: > > > Hi Tom, Marek, > > > > > > On 25/06/2021 23:59, Tom Rini wrote: > > > > On Fri, Jun 25, 2021 at 11:51:51PM

RE: [PATCH] armv8: fsl : fix bootcmd and mcinitcmd default value

2021-06-30 Thread Wasim Khan (OSS)
> -Original Message- > From: Bedel, Alban > Sent: Wednesday, June 30, 2021 6:03 PM > To: Priyanka Jain ; Varun Sethi ; > Wasim Khan ; Wasim Khan (OSS) > > Cc: u-boot@lists.denx.de > Subject: Re: [PATCH] armv8: fsl : fix bootcmd and mcinitcmd default value > > On Wed, 2021-06-30 at

Re: [PATCH V4] clk: clk_versaclock: Add support for versaclock driver

2021-06-30 Thread Adam Ford
On Fri, Jun 4, 2021 at 12:27 PM Sean Anderson wrote: > > > > On 6/4/21 1:26 PM, Adam Ford wrote: > > The driver is based on the Versaclock driver from the Linux code, but > > due differences in the clock API between them, some pieces had to be > > changed. > > > > This driver creates a mux, pfd,

Re: Pull request for efi-2021-07-rc5-2

2021-06-30 Thread Tom Rini
On Mon, Jun 28, 2021 at 09:47:53PM +0200, Heinrich Schuchardt wrote: > Dear Tom, > > I have removed the one patch for better EFI/DM integration that caused > sandbox test problems on my last pull request. This topic needs more > coordination with Simon. > > Gitlab CI showed no problems: >

Pull request: u-boot-spi/next for next

2021-06-30 Thread Jagan Teki
Hi Tom, Please pull this PR for next. Summary: - Cypress s25hl-t/s25hs-t support (Takahiro Kuwano) CI: https://source.denx.de/u-boot/custodians/u-boot-spi/-/pipelines/7979 thanks, Jagan. The following changes since commit f6adec1af4b2f5d3012480c6cdce7743b74a6156: mtd: spi-nor-core: Allow

Re: [PATCH v9 1/9] mtd: spi-nor: Add Cypress manufacturer ID

2021-06-30 Thread Jagan Teki
On Tue, Jun 29, 2021 at 11:31 AM wrote: > > From: Takahiro Kuwano > > This patch adds Cypress manufacturer ID (34h) definition. > > Signed-off-by: Takahiro Kuwano > Reviewed-by: Pratyush Yadav > --- Applied all to u-boot-spi/next

Re: [PATCH v2] board: sl28: add DSA support for variant 2

2021-06-30 Thread Michael Walle
Am 2021-06-30 12:34, schrieb Vladimir Oltean: On Wed, Jun 30, 2021 at 10:26:57AM +0200, Michael Walle wrote: Can this please go through the net queue? By chance, I've seen this patch: https://patchwork.ozlabs.org/project/uboot/patch/20210629175317.2607470-5-vladimir.olt...@nxp.com/ Now I'm

RE: [PATCH] armv8: fsl : fix bootcmd and mcinitcmd default value

2021-06-30 Thread Priyanka Jain
>-Original Message- >From: Wasim Khan >Sent: Friday, June 25, 2021 2:40 PM >To: Bedel, Alban ; Priyanka Jain >; Varun Sethi ; Wasim Khan (OSS) > >Cc: u-boot@lists.denx.de >Subject: RE: [PATCH] armv8: fsl : fix bootcmd and mcinitcmd default value > >Hi Alban, > >> -Original

[PATCH v10 1/2] board: riscv: add openpiton-riscv64 SoC support

2021-06-30 Thread Tianrui Wei
This patch adds openpiton-riscv64 SOC support. In particular, this board supports a standard bootflow through zsbl->u-boot SPL-> opensbi->u-boot proper->Linux. There are separate defconfigs for building u-boot SPL and u-boot proper Signed-off-by: Tianrui Wei Signed-off-by: Jonathan Balkind

[PATCH v10 2/2] mmc: openpiton: add piton_mmc driver

2021-06-30 Thread Tianrui Wei
This commit adds support to piton_mmc driver for OpenPiton-riscv64 This driver has many things set as preconfigured because the hardware automatically configures most of the settings during startup. Signed-off-by: Tianrui Wei Signed-off-by: Jonathan Balkind --- drivers/mmc/Kconfig | 9

[PATCH v10 0/2] Add OpenPiton-riscv64 Board Support

2021-06-30 Thread Tianrui Wei
This patch set is to add OpenPiton board support. Patches are split into several parts: - [PATCH 1/2] add OpenPiton support to mmc driver - [PATCH 2/2] add support for OpenPiton board Description - for mmc driver, it's settings are automatically configured at hardware level. We only need to

buildman error

2021-06-30 Thread Wasim Khan
Hi, I am using latest u-boot code and trying to run buildman with my local patch for lx2160 platform on master branch. Getting below error . u-boot$ ./tools/buildman/buildman --list-tool-chains aarch64 : /opt/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc arm

Re: [PATCH v2] board: sl28: add DSA support for variant 2

2021-06-30 Thread Vladimir Oltean
On Wed, Jun 30, 2021 at 10:26:57AM +0200, Michael Walle wrote: > Can this please go through the net queue? > > By chance, I've seen this patch: > https://patchwork.ozlabs.org/project/uboot/patch/20210629175317.2607470-5-vladimir.olt...@nxp.com/ > > Now I'm lucky that I have the following chunk,

[PATCH] xilinx: zynqmp: Add support for 67dr silicon

2021-06-30 Thread Michal Simek
From: T Karthik Reddy Add zynqmp 67dr silicon to zynqmp device id table. Signed-off-by: T Karthik Reddy Signed-off-by: Michal Simek --- board/xilinx/zynqmp/zynqmp.c | 5 + 1 file changed, 5 insertions(+) diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c index

Re: [PATCH] efi_loader: Improve the parameter check for QueryVariableInfo()

2021-06-30 Thread Masami Hiramatsu
Hi Heinrich, Thanks for the review! 2021年6月30日(水) 16:06 Heinrich Schuchardt : > > On 6/30/21 7:51 AM, Masami Hiramatsu wrote: > > Improve efi_query_variable_info() to check the parameter settings > > and return correct error code according to the UEFI spec 2.9. > > Detailed requirements can be

Re: [PATCH 0/3] cmd: setexpr: add fmt format string operation

2021-06-30 Thread Roland Gaudig (OSS)
Hello Wolfgang On 29.06.21 10:40, Wolfgang Denk wrote: > > Dear Roland, > > In message you wrote: >> >>> These are two pretty unfortunate restrictions. I guess it should >>> not be too hard to avoid both of these. Can you please give it a >>> try? >> >> I think it is possible to allow more

Re: [PATCH v2] board: sl28: add DSA support for variant 2

2021-06-30 Thread Michael Walle
Am 2021-06-23 13:56, schrieb Michael Walle: Now that u-boot gained DSA support, and it is already enabled for the kontron_sl28 board, add the last missing piece and enable the corresponding devices it in the device tree. Signed-off-by: Michael Walle --- changes since v1: - renamed ethernet

Re: [PATCH v9 1/2] board: riscv: add openpiton-riscv64 SoC support

2021-06-30 Thread Leo Liang
On Wed, Jun 30, 2021 at 03:43:07PM +0800, Tianrui Wei wrote: > This patch adds openpiton-riscv64 SOC support. In particular, this > board supports a standard bootflow through zsbl->u-boot SPL-> > opensbi->u-boot proper->Linux. There are separate defconfigs for > building u-boot SPL and u-boot

Re: [RFC PATCH v2 1/1] cmd: nvedit: Forbid key to be empty.

2021-06-30 Thread Francis Laniel
Hi. Le mercredi 30 juin 2021, 09:38:16 CEST Wolfgang Denk a écrit : > Dear Francis Laniel, > > In message <20210629161859.298630-2-francis.lan...@amarulasolutions.com> you wrote: > > Before this patch, it was possible to do the following using setenv: > > setenv '' foo > > Then, on next

  1   2   >