Re: [PATCH v2 1/5] arm: mach-k3: j721e: Fix clk-data parenting for postdiv PLL clocks

2021-09-17 Thread Tom Rini
On Tue, Sep 07, 2021 at 05:16:54PM -0500, Dave Gerlach wrote: > From: Suman Anna > > The TI K3 Fractional PLLs use two programmable POSTDIV1 and POSTDIV2 > divisors to generate the final FOUTPOSTDIV clock. These are in sequence > with POSTDIV2 following the POSTDIV1 clock. The current J721E

Re: [PATCH v2 2/5] arm: mach-k3: j7200: Fix clk-data parenting for postdiv PLL clocks

2021-09-17 Thread Tom Rini
On Tue, Sep 07, 2021 at 05:16:55PM -0500, Dave Gerlach wrote: > From: Suman Anna > > The TI K3 Fractional PLLs use two programmable POSTDIV1 and POSTDIV2 > divisors to generate the final FOUTPOSTDIV clock. These are in sequence > with POSTDIV2 following the POSTDIV1 clock. The current J7200

Re: [PATCH v2 5/5] clk: ti: k3: Update driver to account for divider flags

2021-09-17 Thread Tom Rini
On Tue, Sep 07, 2021 at 05:16:58PM -0500, Dave Gerlach wrote: > From: Suman Anna > > The K3 SoCs have some PLL output clocks (POSTDIV clocks) which in > turn serve as inputs to other HSDIV output clocks. These clocks use > the actual value to compute the divider clock rate, and need to be >

Re: [PATCH V2] arm: mach-k3: am6_init: Prioritize MSMC traffic over DDR in NAVSS Northbridge

2021-09-17 Thread Tom Rini
On Wed, Sep 08, 2021 at 03:28:59PM -0500, Nishanth Menon wrote: > From: Roger Quadros > > NB0 is bridge to SRAM and NB1 is bridge to DDR. > > To ensure that SRAM transfers are not stalled due to delays during DDR > refreshes, SRAM traffic should be higher priority (threadmap=2) than > DDR

Re: [PATCH v2 4/5] clk: ti: k3-pll: Change DIV_CTRL programming to read-modify-write

2021-09-17 Thread Tom Rini
On Tue, Sep 07, 2021 at 05:16:57PM -0500, Dave Gerlach wrote: > There are three different divider values in the DIV_CTRL register > controlled by the k3-pll driver. Currently the ti_pll_clk_set_rate > function writes the entire register when programming plld, even though > plld only resides in

Re: [PATCH v2 3/5] arm: mach-k3: Add note to auto-generated files

2021-09-17 Thread Tom Rini
On Tue, Sep 07, 2021 at 05:16:56PM -0500, Dave Gerlach wrote: > Add a note to the automatically generated clk-data and dev-data files > for j721e and j7200 to indicate that they are in fact auto-generated and > should not be hand edited. > > Also adjust TI URL to use https instead of http and

Re: [PATCH 2/2] arm: mach-k3: common: Add a release_resources_for_core_shutdown() stub

2021-09-17 Thread Tom Rini
On Tue, Jul 27, 2021 at 06:24:40PM -0500, Suman Anna wrote: > Add a weak release_resources_for_core_shutdown() stub implementation > that can be overridden by actual implementation if a SoC supports that > function. > > Signed-off-by: Suman Anna > Reviewed-by: Nishanth Menon Applied to

Question about extension board used in U-boot

2021-09-17 Thread Ying-Chun Liu (PaulLiu)
Hi all, I have some questions about how to implement extension board usage. My case is on imx8mm-cl-iot-gate. It can add three different types of extension boards. One of the extension boards is SPI extension which have 3 empty slots. And you can add some small boards onto it. One of them is a

Re: [PATCH 1/2] arm: mach-k3: common: Make sure firmware sections are loaded prior to armv8 startup

2021-09-17 Thread Tom Rini
On Tue, Aug 31, 2021 at 01:20:48PM -0500, Nishanth Menon wrote: > With Device Manager firmware in an elf file form, we cannot load the FIT > image to the exact same address as any of the executable sections of the > elf file itself is located. > > However, the device tree descriptions for the

Re: [PATCH 1/2] firmware: ti_sci: Include linux/err.h in ti_sci_protocol.h

2021-09-17 Thread Tom Rini
On Tue, Jul 27, 2021 at 06:24:39PM -0500, Suman Anna wrote: > The common TI SCI header file uses some macros from err.h and these > get exercised when CONFIG_TI_SCI_PROTOCOL is not defined. Include > the linux/err.h header file in this header file directly rather > than relying on source files to

Re: [PATCH] arm: rpi: perform XHCI firmware upload only once

2021-09-17 Thread nicolas saenz julienne
On Fri, 2021-09-17 at 10:19 +0200, Marek Szyprowski wrote: > XHCI firmware upload must be performed only once after initializing the > PCI bridge. This fixes USB stack initialization after calling "usb stop; > usb start" on Raspberry Pi 4B. > > Signed-off-by: Marek Szyprowski > --- Reviewed-by:

[PATCH] net: update NXP copyright text

2021-09-17 Thread Vladimir Oltean
NXP Legal insists that the following are not fine: - Saying "NXP Semiconductors" instead of "NXP", since the company's registered name is "NXP" - Putting a "(c)" sign in the copyright string - Putting a comma in the copyright string The only accepted copyright string format is "Copyright

Re: [systemd-devel] Systemd-boot not properly loading device tree, when loaded by U-boot (ARM64, tested on RK3399)

2021-09-17 Thread Qu Wenruo
On 2021/9/17 19:45, Lennart Poettering wrote: On Fr, 17.09.21 19:25, Qu Wenruo (w...@suse.com) wrote: Hi, I'm recently testing booting my RK3399 boards with the following boot sequence: U-boot -> systemd-boot (EFI payload) -> kernel Which provides much more flex than plain extlinux conf

RE: [PATCH] test/py: tpm2: Skip tpm pytest based on env variable

2021-09-17 Thread T Karthik Reddy
Hi Tom, > -Original Message- > From: Tom Rini > Sent: Thursday, August 5, 2021 6:53 PM > To: T Karthik Reddy > Cc: Ashok Reddy Soma ; u-boot@lists.denx.de; > miquel.ray...@bootlin.com; git > Subject: Re: [PATCH] test/py: tpm2: Skip tpm pytest based on env variable > > On Thu, Aug 05,

Re: [PATCH] arm: rpi: perform XHCI firmware upload only once

2021-09-17 Thread Matthias Brugger
On 17/09/2021 10:42, Matthias Brugger wrote: On 17/09/2021 10:19, Marek Szyprowski wrote: XHCI firmware upload must be performed only once after initializing the PCI bridge. This fixes USB stack initialization after calling "usb stop; usb start" on Raspberry Pi 4B. Signed-off-by: Marek

Re: [PATCH v3 2/4] mtd: spi-nor-core: Adding different type of command extension in Soft Reset

2021-09-17 Thread Pratyush Yadav
On 13/09/21 01:42PM, JaimeLiao wrote: > Power-on-Reset is a method to restore flash back to 1S-1S-1S mode from > 8D-8D-8D > in the begging of probe. Typo: begging -> beginning > > Command extension type is not standardized across flash vendors in DTR mode. > > For suiting different vendor

[PATCH] distro_bootcmd: change the default dtb search path to include default kernel dtbs directory

2021-09-17 Thread Qu Wenruo
When booting using U-boot -> systemd-boot (EFI payload) -> kernel on RK3399, systemd-boot by some bug can't execute its "devicetree" key correctly to load its proper dtb from files. In that case, it will use fallback dtb from U-boot, which can be out-of-date, and on RK3399, even the latest U-boot

Systemd-boot not properly loading device tree, when loaded by U-boot (ARM64, tested on RK3399)

2021-09-17 Thread Qu Wenruo
Hi, I'm recently testing booting my RK3399 boards with the following boot sequence: U-boot -> systemd-boot (EFI payload) -> kernel Which provides much more flex than plain extlinux conf from U-boot. (More choice, easier to write config, runtime kernel change). So far "kernel" and "initramfs"

Re: [PATCH 2/3] efi_loader: GOP: Add 30bpp support

2021-09-17 Thread Heinrich Schuchardt
On 9/17/21 11:23 AM, Mark Kettenis wrote: From: Heinrich Schuchardt Date: Fri, 17 Sep 2021 04:56:31 +0200 Hi Heinrich, On 9/16/21 3:01 PM, Mark Kettenis wrote: Provide correct framebuffer information for 30bpp modes. This is not enough to get a correct GOP implementation for the 30bpp

Re: [PATCH] distro_bootcmd: change the default dtb search path to include default kernel dtbs directory

2021-09-17 Thread Mark Kettenis
> From: Qu Wenruo > Date: Fri, 17 Sep 2021 19:02:35 +0800 > > When booting using U-boot -> systemd-boot (EFI payload) -> kernel on > RK3399, systemd-boot by some bug can't execute its "devicetree" key > correctly to load its proper dtb from files. > > In that case, it will use fallback dtb from

Re: [PATCH] distro_bootcmd: change the default dtb search path to include default kernel dtbs directory

2021-09-17 Thread Qu Wenruo
On 2021/9/17 19:34, Mark Kettenis wrote: From: Qu Wenruo Date: Fri, 17 Sep 2021 19:02:35 +0800 When booting using U-boot -> systemd-boot (EFI payload) -> kernel on RK3399, systemd-boot by some bug can't execute its "devicetree" key correctly to load its proper dtb from files. In that case,

Re: [PATCH 2/3] efi_loader: GOP: Add 30bpp support

2021-09-17 Thread Mark Kettenis
> From: Heinrich Schuchardt > Date: Fri, 17 Sep 2021 04:56:31 +0200 Hi Heinrich, > On 9/16/21 3:01 PM, Mark Kettenis wrote: > > Provide correct framebuffer information for 30bpp modes. > > This is not enough to get a correct GOP implementation for the 30bpp mode. > > Have a look at

Re: [PATCH v2 3/3] mx7ulp_com: add support for SPL

2021-09-17 Thread Oleksandr Suvorov
Hi Fabio, On Thu, Sep 16, 2021 at 10:27 PM Fabio Estevam wrote: > > Hi Oleksandr, > > On Thu, Sep 16, 2021 at 3:50 PM Oleksandr Suvorov wrote: > > > The SPL for this board is built with prepended DCD which includes DDR > > training data (defined in imximage.cfg). So that the bootrom initializes

Re: [PATCH v3 1/2] mtd: cfi_flash: use cfi_flash_num_flash_banks only when supported

2021-09-17 Thread Patrick DELAUNAY
Hi Marek, > Marek VasutSept. 16, 2021, 5:24 p.m. UTC | #1 > On 9/16/21 4:01 PM, Patrick Delaunay wrote: >> When CONFIG_SYS_MAX_FLASH_BANKS_DETECT is activated, >> CONFIG_SYS_MAX_FLASH_BANKS is replaced by cfi_flash_num_flash_banks, >> but this variable is defined in drivers/mtd/cfi_flash.c,

[PATCH] arm: rpi: perform XHCI firmware upload only once

2021-09-17 Thread Marek Szyprowski
XHCI firmware upload must be performed only once after initializing the PCI bridge. This fixes USB stack initialization after calling "usb stop; usb start" on Raspberry Pi 4B. Signed-off-by: Marek Szyprowski --- arch/arm/mach-bcm283x/msg.c | 6 ++ 1 file changed, 6 insertions(+) diff --git

[PATCH 1/4] rtc: rx8025: drop non-DM support

2021-09-17 Thread Mathew McBride
A search of the tree showed there is only one user of this driver (soon to be two) - board/socrates The second user will be the Traverse Ten64 board. Both these boards have DM_RTC. Signed-off-by: Mathew McBride --- drivers/rtc/Kconfig | 1 + drivers/rtc/rx8025.c | 80

[PATCH v3 07/10] ARM: amlogic: add support for Odroid-HC4 device

2021-09-17 Thread Neil Armstrong
The Odroid-HC4 is a variant of the Odroid-C4 board but with a PCIe-SATA bridge instead of the USB3 ports. Signed-off-by: Neil Armstrong --- arch/arm/dts/meson-sm1-odroid-hc4-u-boot.dtsi | 23 + board/amlogic/odroid-n2/MAINTAINERS | 1 + configs/odroid-hc4_defconfig

[PATCH v3 04/10] ARM: meson-axg: remove local USB nodes

2021-09-17 Thread Neil Armstrong
Drop the local USB nodes after Linux 5.14 sync. Signed-off-by: Neil Armstrong --- arch/arm/dts/meson-axg-s400-u-boot.dtsi | 8 arch/arm/dts/meson-axg-u-boot.dtsi | 62 - 2 files changed, 70 deletions(-) delete mode 100644 arch/arm/dts/meson-axg-u-boot.dtsi

[PATCH v3 03/10] ARM: meson: keep HW order for MMC devices

2021-09-17 Thread Neil Armstrong
Since Linux commmit [1], the order is fixed with aliases, in order to keep the MMC device order, set it back to HW order in U-Boot dtsi files. [1] ab547c4fb39f ("arm64: dts: amlogic: Assign a fixed index to mmc devices") Signed-off-by: Neil Armstrong ---

[PATCH v3 05/10] configs: meson64: add SCSI boot target

2021-09-17 Thread Neil Armstrong
Add SCSI target to be able to boot from the SATA disks on the Odroid HC4 using an on-board AHCI PCIe controller. Signed-off-by: Neil Armstrong Signed-off-by: Mark Kettenis --- include/configs/meson64.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/configs/meson64.h

[PATCH v3 02/10] usb: dwc3: meson-gxl: add AXG compatible

2021-09-17 Thread Neil Armstrong
Upstream Linux uses the "amlogic,meson-axg-usb-ctrl" for AXG SoCs. This adds it to the compatible list for this driver. Reported-by: Vyacheslav Bocharov Signed-off-by: Neil Armstrong --- drivers/usb/dwc3/dwc3-meson-gxl.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v3 06/10] distro_bootcmd: run pci enum for scsi_boot just like it is done for nvme_boot

2021-09-17 Thread Neil Armstrong
The SCSI device can be a PCIe adapter, so run pcie enum if enabled. Signed-off-by: Mark Kettenis Signed-off-by: Neil Armstrong --- include/config_distro_bootcmd.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/config_distro_bootcmd.h b/include/config_distro_bootcmd.h index

Re: [PATCH] riscv: Fix setting no-map in reserved memory nodes

2021-09-17 Thread Rick Chen
> From: Samuel Holland > Sent: Monday, September 13, 2021 12:06 AM > To: Rick Jian-Zhi Chen(陳建志) ; Leo Yu-Chi Liang(梁育齊) > > Cc: u-boot@lists.denx.de; Samuel Holland ; Atish Patra > ; Bin Meng ; Etienne Carriere > ; Sean Anderson ; Simon Glass > > Subject: [PATCH] riscv: Fix setting no-map

Re: [PATCH] arm: rpi: perform XHCI firmware upload only once

2021-09-17 Thread Matthias Brugger
On 17/09/2021 10:19, Marek Szyprowski wrote: XHCI firmware upload must be performed only once after initializing the PCI bridge. This fixes USB stack initialization after calling "usb stop; usb start" on Raspberry Pi 4B. Signed-off-by: Marek Szyprowski Looks good to me. I'll wait a bit

Re: [ANN] U-Boot v2021.10-rc4 released

2021-09-17 Thread Christophe Leroy
Hi Tom, Le 15/09/2021 à 01:01, Tom Rini a écrit : Hey all, Alright, I'm a day late, but, here's v2021.10-rc4. We've had a few regressions pop up of late, unfortunately. I've pushed the fix for (what I believe are) existing FIT images showing a problem where we calculated the crc32 wrong.

[PATCH 0/4] Add EPSON RX8035 RTC support

2021-09-17 Thread Mathew McBride
This patchset adds support for the EPSON RX8035 real time clock to the rx8025 driver. The two devices are very similar and with only minor differences for basic real time clock functions. Some issues have been identified with the handling of date setting and clock reset with the U-Boot driver

[PATCH 3/4] rtc: rx8025: set date in a single i2c transaction

2021-09-17 Thread Mathew McBride
The RX8025/RX8035 does not like having it's time registers set byte-by-byte in separate I2C transactions. >From the note at the top of the file, it appears target-dependent workarounds have been used in the past for this. Resolve this by setting the time registers in a single I2C transaction.

[PATCH 2/4] rtc: rx8025: add support for EPSON RX8035.

2021-09-17 Thread Mathew McBride
The RX8035 is a newer model from EPSON which is very similar in operation to the RX8025. The changes mirror similar ones that will be in Linux 5.15: https://lore.kernel.org/all/20210709044518.28769-2-m...@traverse.com.au/ The UBOOT_DRIVER ID has also been corrected, previously it declared itself

[PATCH 4/4] rtc: rx8025: revise single register write to use offset

2021-09-17 Thread Mathew McBride
Writing of individual registers was not functioning correctly as a 0 'offset' byte under DM-managed I2C was being appended in front of register we wanted to access. Signed-off-by: Mathew McBride --- drivers/rtc/rx8025.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff

Re: [PATCH v2] board: sifive: Fix a potential build warning in board_fdt_blob_setup()

2021-09-17 Thread Rick Chen
> From: Bin Meng > Sent: Saturday, September 11, 2021 10:31 PM > To: Zong Li ; Leo Yu-Chi Liang(梁育齊) > ; Rick Jian-Zhi Chen(陳建志) ; > u-boot@lists.denx.de > Subject: [PATCH v2] board: sifive: Fix a potential build warning in > board_fdt_blob_setup() > > Commit 47d73ba4f4a4 ("board: sifive:

[PATCH v3 01/10] ARM: meson: Sync Amlogic DT from Linux 5.14

2021-09-17 Thread Neil Armstrong
Import Amlogic DT changes from Linux commit 7d2a07b76933 ("Linux 5.14"), dt-bindings clock changes and new meson-g12b-gsking-x.dts, meson-sm1-bananapi-m5 & odroid-hc4 boards. Signed-off-by: Neil Armstrong --- arch/arm/dts/Makefile | 3 + arch/arm/dts/meson-axg-s400.dts

[PATCH v3 10/10] ARM: amlogic: add Banana Pi M5

2021-09-17 Thread Neil Armstrong
Banana Pi BPI-M5 is a credit card format SBC with the following features: - Amlogic S905X3 quad core Cortex-A55 - Mali-G31 GPU - 4GB LPDDR4 - 16GB eMMC flash - 4 USB 3.0 - 1 GbE ethernet - HDMI output - 2x LEDS - SDCard - 2.5mm Jack with Stereo Audio + CVBS - Infrared Received - ADC Button - GPIO

[PATCH v3 09/10] ARM: meson: add Beelink GS-King X board

2021-09-17 Thread Neil Armstrong
The Beelink GS-King X is a variant of the GS King boards but with an internal USB to SATA bridge and advanced audio features. Signed-off-by: Neil Armstrong --- arch/arm/dts/meson-g12b-gsking-x-u-boot.dtsi | 7 ++ board/amlogic/beelink-s922x/MAINTAINERS | 1 +

[PATCH v3 08/10] doc: boards: amlogic: update for Odroid HC4

2021-09-17 Thread Neil Armstrong
Add documentation bits for the Odroid-HC4. Signed-off-by: Neil Armstrong --- doc/board/amlogic/index.rst | 2 +- doc/board/amlogic/odroid-c4.rst | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/board/amlogic/index.rst b/doc/board/amlogic/index.rst index

Re: [PATCH] xtensa: Put U-Boot version string at correct place by linker script

2021-09-17 Thread Tom Rini
On Thu, Sep 16, 2021 at 10:14:03PM -0700, Max Filippov wrote: > On Thu, Sep 16, 2021 at 10:30 AM Tom Rini wrote: > > > > Update the linker script macros to know that we need to include the > > .text_version_string section now as well. > > > > Signed-off-by: Tom Rini > > --- > >

Re: [systemd-devel] Systemd-boot not properly loading device tree, when loaded by U-boot (ARM64, tested on RK3399)

2021-09-17 Thread Lennart Poettering
On Fr, 17.09.21 19:25, Qu Wenruo (w...@suse.com) wrote: > Hi, > > I'm recently testing booting my RK3399 boards with the following boot > sequence: > > U-boot -> systemd-boot (EFI payload) -> kernel > > Which provides much more flex than plain extlinux conf from U-boot. > (More choice, easier to

Re: [PATCH] test/py: tpm2: Skip tpm pytest based on env variable

2021-09-17 Thread Tom Rini
On Fri, Sep 17, 2021 at 11:49:51AM +, T Karthik Reddy wrote: > Hi Tom, > > > -Original Message- > > From: Tom Rini > > Sent: Thursday, August 5, 2021 6:53 PM > > To: T Karthik Reddy > > Cc: Ashok Reddy Soma ; u-boot@lists.denx.de; > > miquel.ray...@bootlin.com; git > > Subject: Re:

[PATCH] board: freescale: lx216x : increase fdt blob size

2021-09-17 Thread Wasim Khan
From: Wasim Khan Increase fdt blob size for lx2160 and lx2162 series to fix below errors/warnings during device tree fixup. Unable to update property /soc/spi@210:status, err=FDT_ERR_NOSPACE Unable to update property /soc/spi@211:status, err=FDT_ERR_NOSPACE Unable to update property

Re: [PATCH] xtensa: Put U-Boot version string at correct place by linker script

2021-09-17 Thread Max Filippov
On Fri, Sep 17, 2021 at 5:04 AM Tom Rini wrote: > So this is in context with: > https://patchwork.ozlabs.org/project/uboot/list/?series=256258 > and specifically: > https://patchwork.ozlabs.org/project/uboot/patch/20210802131838.21097-7-p...@kernel.org/ Yes, I've found that series and the

Re: [PATCH v3 2/2] mtd: spi: nor: force mtd name to "nor%d"

2021-09-17 Thread Patrick DELAUNAY
Hi Marek, > Marek VasutSept. 16, 2021, 5:27 p.m. UTC | #3 > On 9/16/21 4:01 PM, Patrick Delaunay wrote: > [...] > > @@ -3664,6 +3666,11 @@ int spi_nor_scan(struct spi_nor *nor) > >       struct mtd_info *mtd = >mtd; > >       struct spi_slave *spi = nor->spi; > >       int ret; > > +    int

[PATCH 08/11] pci: _dm_pci_phys_to_bus can be static

2021-09-17 Thread Vladimir Oltean
To avoid W=1 build warnings, declare this function as static, since it is not used outside of this translation module. Signed-off-by: Vladimir Oltean --- drivers/pci/pci-uclass.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/pci/pci-uclass.c

[PATCH 09/11] pci: layerscape: ls_pcie_conf_address can be static

2021-09-17 Thread Vladimir Oltean
To avoid W=1 build warnings, declare this function as static, since it is not used outside of this translation module. Signed-off-by: Vladimir Oltean --- drivers/pci/pcie_layerscape_rc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pci/pcie_layerscape_rc.c

[PATCH 04/11] pci: pci_header_show can be static

2021-09-17 Thread Vladimir Oltean
To avoid W=1 build warnings, declare this function as static, since it is not used outside of this translation module. Signed-off-by: Vladimir Oltean --- cmd/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/pci.c b/cmd/pci.c index ebe7c0fc5377..7febff497c54 100644

[PATCH 11/11] pci: pcie_layerscape_fixup_common: lx2_board_fix_fdt can be static

2021-09-17 Thread Vladimir Oltean
To avoid W=1 build warnings, declare this function as static, since it is not used outside of this translation module. Signed-off-by: Vladimir Oltean --- drivers/pci/pcie_layerscape_fixup_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 07/11] pci: pci_read_config can be static

2021-09-17 Thread Vladimir Oltean
To avoid W=1 build warnings, declare this function as static, since it is not used outside of this translation module. Signed-off-by: Vladimir Oltean --- drivers/pci/pci-uclass.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pci/pci-uclass.c

[PATCH v3 2/2] spi: rockchip_sfc: Using read_poll

2021-09-17 Thread Jon Lin
Using read_poll logic. Tested-by: Chris Morgan Signed-off-by: Jon Lin --- (no changes since v2) Changes in v2: - Fix assigned but never used return error codes drivers/spi/rockchip_sfc.c | 67 -- 1 file changed, 35 insertions(+), 32 deletions(-) diff

[PATCH v3 1/2] spi: rockchip_sfc: Implement set_speed logic

2021-09-17 Thread Jon Lin
Set clock related processing into set_speed logic. And Optimize printing format. Tested-by: Chris Morgan Signed-off-by: Jon Lin --- Changes in v3: - Remove useless headfile - Fix misspelling drivers/spi/rockchip_sfc.c | 82 ++ 1 file changed, 39

Re: [ANN] U-Boot v2021.10-rc4 released

2021-09-17 Thread Tom Rini
On Fri, Sep 17, 2021 at 08:29:07AM +0200, Christophe Leroy wrote: > Hi Tom, > > Le 15/09/2021 à 01:01, Tom Rini a écrit : > > Hey all, > > > > Alright, I'm a day late, but, here's v2021.10-rc4. We've had a few > > regressions pop up of late, unfortunately. I've pushed the fix for > > (what I

Re: [PATCH v3 2/2] mtd: spi: nor: force mtd name to "nor%d"

2021-09-17 Thread Marek Vasut
On 9/17/21 3:06 PM, Patrick DELAUNAY wrote: Hi Marek, > Marek VasutSept. 16, 2021, 5:27 p.m. UTC | #3 > On 9/16/21 4:01 PM, Patrick Delaunay wrote: > [...] > > @@ -3664,6 +3666,11 @@ int spi_nor_scan(struct spi_nor *nor) > >       struct mtd_info *mtd = >mtd; > >       struct spi_slave

Re: [PATCH v3 1/2] mtd: cfi_flash: use cfi_flash_num_flash_banks only when supported

2021-09-17 Thread Marek Vasut
On 9/17/21 12:55 PM, Patrick DELAUNAY wrote: Hi Marek, > Marek VasutSept. 16, 2021, 5:24 p.m. UTC | #1 > On 9/16/21 4:01 PM, Patrick Delaunay wrote: >> When CONFIG_SYS_MAX_FLASH_BANKS_DETECT is activated, >> CONFIG_SYS_MAX_FLASH_BANKS is replaced by cfi_flash_num_flash_banks, >> but this

Re: [PATCH] distro_bootcmd: change the default dtb search path to include default kernel dtbs directory

2021-09-17 Thread Mark Kettenis
> Date: Fri, 17 Sep 2021 19:42:29 +0800 > Content-Language: en-US > > On 2021/9/17 19:34, Mark Kettenis wrote: > >> From: Qu Wenruo > >> Date: Fri, 17 Sep 2021 19:02:35 +0800 > >> > >> When booting using U-boot -> systemd-boot (EFI payload) -> kernel on > >> RK3399, systemd-boot by some bug

Re: [PATCH] distro_bootcmd: change the default dtb search path to include default kernel dtbs directory

2021-09-17 Thread Qu Wenruo
On 2021/9/17 22:25, Mark Kettenis wrote: Date: Fri, 17 Sep 2021 19:42:29 +0800 Content-Language: en-US On 2021/9/17 19:34, Mark Kettenis wrote: From: Qu Wenruo Date: Fri, 17 Sep 2021 19:02:35 +0800 When booting using U-boot -> systemd-boot (EFI payload) -> kernel on RK3399, systemd-boot

[PATCH 10/11] pci: pcie_layerscape_fixup_common: include fdt_support.h for ft_pci_setup

2021-09-17 Thread Vladimir Oltean
The function prototype for ft_pci_setup is inside fdt_support.h, we need to include that header. Signed-off-by: Vladimir Oltean --- drivers/pci/pcie_layerscape_fixup_common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/pcie_layerscape_fixup_common.c

RE: [PATCH] configs: lx2162a: Enable CONFIG_SPI_FLASH_MT35XU for lx2162a-qds

2021-09-17 Thread Wasim Khan
> -Original Message- > From: U-Boot On Behalf Of Kuldeep Singh > Sent: Wednesday, September 15, 2021 3:34 PM > To: u-boot@lists.denx.de > Cc: Priyanka Jain ; Kuldeep Singh > > Subject: [PATCH] configs: lx2162a: Enable CONFIG_SPI_FLASH_MT35XU for > lx2162a-qds > > LX2162A-QDS has

Re: [systemd-devel] Systemd-boot not properly loading device tree, when loaded by U-boot (ARM64, tested on RK3399)

2021-09-17 Thread Qu Wenruo
On 2021/9/17 19:45, Lennart Poettering wrote: On Fr, 17.09.21 19:25, Qu Wenruo (w...@suse.com) wrote: Hi, I'm recently testing booting my RK3399 boards with the following boot sequence: U-boot -> systemd-boot (EFI payload) -> kernel Which provides much more flex than plain extlinux conf

Re: [PATCH] xtensa: Put U-Boot version string at correct place by linker script

2021-09-17 Thread Tom Rini
On Thu, Sep 16, 2021 at 10:21:29PM -0700, Max Filippov wrote: > On Thu, Sep 16, 2021 at 12:42 PM Tom Rini wrote: > > We also don't have qemu support for it > > I'm curious what happened to it and what I should do to update it? > > xtensa is still supported in the QEMU and AFAIK nothing has

[PATCH 01/11] pci: provide prototype for pci_skip_dev outside of #if defined(CONFIG_DM_PCI_COMPAT)

2021-09-17 Thread Vladimir Oltean
The weak definition of pci_skip_dev from drivers/pci/pci_common.c is not under CONFIG_DM_PCI_COMPAT, and that definition needs a previous function prototype declaration to avoid W=1 build warnings. That prototype is not available due to it being under CONFIG_DM_PCI_COMPAT, so move it outside of

[PATCH 06/11] pci: pci_write_config can be static

2021-09-17 Thread Vladimir Oltean
To avoid W=1 build warnings, declare this function as static, since it is not used outside of this translation module. Signed-off-by: Vladimir Oltean --- drivers/pci/pci-uclass.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pci/pci-uclass.c

[PATCH 05/11] pci: pciinfo_header can be static

2021-09-17 Thread Vladimir Oltean
To avoid W=1 build warnings, declare this function as static, since it is not used outside of this translation module. Signed-off-by: Vladimir Oltean --- cmd/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/pci.c b/cmd/pci.c index 7febff497c54..cfabdc0f3012 100644

[PATCH 03/11] pci: pci_bar_show can be static

2021-09-17 Thread Vladimir Oltean
To avoid W=1 build warnings, declare this function as static, since it is not used outside of this translation module. Signed-off-by: Vladimir Oltean --- cmd/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/pci.c b/cmd/pci.c index af75a6cfff4a..ebe7c0fc5377 100644

[PATCH 00/11] Drive-by PCI W=1 cleanups

2021-09-17 Thread Vladimir Oltean
These are some trivial cleanup patches I made after compiling U-Boot for ls1028ardb_tfa_defconfig with W=1. Vladimir Oltean (11): pci: provide prototype for pci_skip_dev outside of #if defined(CONFIG_DM_PCI_COMPAT) pci: include pci_internal.h inside pci_auto.c pci: pci_bar_show can be

[PATCH 02/11] pci: include pci_internal.h inside pci_auto.c

2021-09-17 Thread Vladimir Oltean
To avoid a build warning with W=1, provide a function prototype for dm_pciauto_prescan_setup_bridge, which is a non-static function whose definition is inside pci_auto.c. Signed-off-by: Vladimir Oltean --- drivers/pci/pci_auto.c | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH 2/3] efi_loader: GOP: Add 30bpp support

2021-09-17 Thread Mark Kettenis
> From: Heinrich Schuchardt > Date: Fri, 17 Sep 2021 13:29:06 +0200 > > On 9/17/21 11:23 AM, Mark Kettenis wrote: > >> From: Heinrich Schuchardt > >> Date: Fri, 17 Sep 2021 04:56:31 +0200 > > > > Hi Heinrich, > > > >> On 9/16/21 3:01 PM, Mark Kettenis wrote: > >>> Provide correct framebuffer

[PATCH 02/17] x86: Fix qemu condition for arch_cpu_init()

2021-09-17 Thread Simon Glass
This is written incorrectly, since SPL_ should not be used with the CONFIG_IS_ENABLED macro. Fix it by dropping the prefix and inverting the logic, which produces the same result as now. Signed-off-by: Simon Glass --- arch/x86/cpu/qemu/qemu.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 00/17] RFC: Split configs between U-Boot proper and SPL builds

2021-09-17 Thread Simon Glass
At present a single .config file is used to configure the build for all phases, with SPL phases having a SPL_ or TPL_ prefix on each CONFIG to indicate which build it controls. So, for example, we have CONFIG_MISC and CONFIG_SPL_MISC to control the inclusion of MISC drivers in each phase. >From

[PATCH 03/17] acpi: Add a Kconfig for SPL

2021-09-17 Thread Simon Glass
At present we rely on this not existing to avoid building ACPI for SPL. But with the new split configs this does not work. Add a separate Kconfig instead. Signed-off-by: Simon Glass --- drivers/core/Kconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/core/Kconfig

[PATCH 04/17] cmd: Add an SPL Kconfig for CMDLINE and HUSH

2021-09-17 Thread Simon Glass
At present we rely on this not existing to avoid building various command-line features. But with the new split configs this does not work. Add separates Kconfigs instead. Signed-off-by: Simon Glass --- cmd/Kconfig | 10 ++ 1 file changed, 10 insertions(+) diff --git a/cmd/Kconfig

[PATCH 01/17] env: Avoid checking ENV_IS_IN when env disabled

2021-09-17 Thread Simon Glass
This check is not needed when the environment is not enabled, e.g. in SPL. Add a condition to handle this. Signed-off-by: Simon Glass --- cmd/nvedit.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/nvedit.c b/cmd/nvedit.c index ddc715b4f91..1c8d49646e5 100644 --- a/cmd/nvedit.c +++

Re: Problem with U-boot | Configuration Signature not being checked while booting

2021-09-17 Thread Simon Glass
Hi François, On Wed, 15 Sept 2021 at 04:26, François Ozog wrote: > > > > Le mer. 15 sept. 2021 à 12:13, Simon Glass a écrit : >> >> Hi Mark, >> >> On Sat, 11 Sept 2021 at 13:18, Mark Kettenis wrote: >> > >> > > From: Moiz Imtiaz >> > > Date: Sat, 11 Sep 2021 23:19:05 +0500 >> > > >> > > Hi

[PATCH] m68k: Add missing ENTRY entry in linker script

2021-09-17 Thread Tom Rini
Currently, there is no ENTRY() entry in the m68k linker script. However, since they currently contain a version_string symbol, which then overrides the default weak version_string symbol, the linker decides we must keep start.o in the resulting link. Add an ENTRY() line so that the linker will

[PATCH 14/17] Makefile: Use empty SPL_ and SPL_TPL_ vars

2021-09-17 Thread Simon Glass
Now that we include an auto.conf file specific to the phase being built we can make these variables empty. With this done, we can also remove them from U-Boot entirely, dropping them from all Makefiles. That is left for a future clean-up since we cannot apply this series until CONFIG migration is

[PATCH 11/17] kconfig: Refactor code into separate writer functions

2021-09-17 Thread Simon Glass
Separate out the code that writes the Makefile and headers so we can reuse these functions when writing out SPL files. This makes no functional change. Signed-off-by: Simon Glass --- scripts/kconfig/confdata.c | 65 ++ scripts/kconfig/expr.h | 9 ++

[PATCH 10/17] virtio: Add SPL Kconfig for virtio

2021-09-17 Thread Simon Glass
At present we rely on this not existing to avoid building virtio for SPL. But with the new split configs this does not work. Add a separate Kconfig instead. Signed-off-by: Simon Glass --- drivers/virtio/Kconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/virtio/Kconfig

[PATCH 13/17] Makefile: Include the config for the phase being built

2021-09-17 Thread Simon Glass
At present there is only a single auto.conf file used within the makefiles. Update them to use the correct one for each phase. Signed-off-by: Simon Glass --- Makefile | 11 ++- scripts/Makefile.build | 10 +- scripts/Makefile.spl | 8 +++- 3 files changed,

[PATCH 16/17] kconfig: Update CONFIG_IS_ENABLED() for split files

2021-09-17 Thread Simon Glass
Update this file to include the correct autoconf.h or autoconf_spl.h file for each phase. This allows the macros to be simplified. With this, CONFIG_IS_ENABLED() is the same as IS_ENABLED() apart from a migration detail. Signed-off-by: Simon Glass --- include/linux/kconfig.h | 87

[PATCH 09/17] serial: Tidy up the Makefile condition for DM_SERIAL

2021-09-17 Thread Simon Glass
There is no need to check for SPL/TPL build again as the 'ifdef' above does this already. Drop it, so that the build rule works with split configs. Signed-off-by: Simon Glass --- drivers/serial/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/serial/Makefile

[PATCH 05/17] cros_ec: Add SPL Kconfigs for cros_ec features

2021-09-17 Thread Simon Glass
At present we rely on this not existing to avoid building various EC features. But with the new split configs this does not work. Add separates Kconfigs instead. Signed-off-by: Simon Glass --- drivers/i2c/Kconfig | 10 ++ 1 file changed, 10 insertions(+) diff --git

[PATCH 06/17] power: Add SPL Kconfig for sandbox pmc emulator

2021-09-17 Thread Simon Glass
At present we rely on this not existing to avoid building the emulator for SPL. But with the new split configs this does not work. Add a separate Kconfig instead. Signed-off-by: Simon Glass --- drivers/power/acpi_pmc/Kconfig | 5 + 1 file changed, 5 insertions(+) diff --git

[PATCH 07/17] test: Add SPL Kconfig for compression tests

2021-09-17 Thread Simon Glass
At present we rely on this not existing to avoid building these tests for SPL. But with the new split configs this does not work. Add a separate Kconfig instead. Signed-off-by: Simon Glass --- test/Kconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/test/Kconfig b/test/Kconfig

[PATCH 08/17] sandbox: Enable MISC support for the SPL build

2021-09-17 Thread Simon Glass
At present this is always enabled in SPL by virtue of the Makefile condition, which ignores SPL. Add the required config to tidy this up, so it will works with split configs. Signed-off-by: Simon Glass --- configs/sandbox_noinst_defconfig | 1 + configs/sandbox_spl_defconfig| 1 + 2 files

Re: Problem with U-boot | Configuration Signature not being checked while booting

2021-09-17 Thread Simon Glass
Hi Tom, On Wed, 15 Sept 2021 at 07:35, Tom Rini wrote: > > On Wed, Sep 15, 2021 at 01:51:51PM +0200, Mark Kettenis wrote: > > > From: Simon Glass > > > Date: Wed, 15 Sep 2021 04:13:24 -0600 > > > > Hi Simon, > > > > > Hi Mark, > > > > > > On Sat, 11 Sept 2021 at 13:18, Mark Kettenis > > >

Re: Problem with U-boot | Configuration Signature not being checked while booting

2021-09-17 Thread Simon Glass
Hi Mark, On Wed, 15 Sept 2021 at 05:52, Mark Kettenis wrote: > > > From: Simon Glass > > Date: Wed, 15 Sep 2021 04:13:24 -0600 > > Hi Simon, > > > Hi Mark, > > > > On Sat, 11 Sept 2021 at 13:18, Mark Kettenis > > wrote: > > > > > > > From: Moiz Imtiaz > > > > Date: Sat, 11 Sep 2021 23:19:05

[PATCH 12/17] kconfig: Support writing separate SPL files

2021-09-17 Thread Simon Glass
At present kconfig writes out several files, including: auto.conf - CONFIG settings used by make autoconf.h - header file used by C code This works well but is a bit ugly in places, for example requiring the use of a SPL_TPL_ macro in Makefiles to distinguish between options intended for

[PATCH 17/17] kconfig: Add a new CONFIG() macro

2021-09-17 Thread Simon Glass
It is annoying to have to use IS_ENABLED() and CONFIG_IS_ENABLED(), depending on whether the option being checked has an SPL version. Also we use #ifdef CONFIG_xxx and #if defined(CONFIG_xxx) in some contexts. It would be nice to use a single style consistenty. Add a CONFIG() macro to this end,

[PATCH 15/17] Makefile: Support ad-hoc COMFIX_SPL_IMAGE_SIZE et al

2021-09-17 Thread Simon Glass
Ad-hoc CONFIGs are not supported by the new split-config mechanism. Use the provided work-around for these symbols, just to show the mechanism. Signed-off-by: Simon Glass --- scripts/Makefile.spl | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/Makefile.spl

Re: [PATCH] riscv: Fix setting no-map in reserved memory nodes

2021-09-17 Thread Atish Patra
On Sun, Sep 12, 2021 at 9:05 AM Samuel Holland wrote: > > The no-map property is wrongly skipped if a no-map reserved memory > node follows one without that property. Fix this by not remembering > the absence of a no-map property across loop iterations. > > Fixes: d4ea649f179a ("riscv: Provide a

Re: [PATCH 1/2] mtd: spi-nor-ids: Add support for Spansion S25FL256L

2021-09-17 Thread Pratyush Yadav
On 08/09/21 05:47PM, tkuw584...@gmail.com wrote: > From: Takahiro Kuwano > > The S25FL256L is a part of the S25FL-L family and has the same feature set > as S25FL128L except the density. > > The datasheet can be found in the following link. > https://www.cypress.com/file/316171/download > >

Re: [PATCH] mtd: spi-nor-core: Add fixups for s25fs512s

2021-09-17 Thread Pratyush Yadav
On 15/09/21 12:49PM, tkuw584...@gmail.com wrote: > From: Takahiro Kuwano > > The current S25FS512S support has following issues that need to be fixed. > > - Non-uniform sectors by factory default. The setting needs to be > checked and assign erase hook as needed. > - Page size is

[RFC 2/2] mtd: Add pairing info for Toshiba TC58TEG5DCLTA00 NAND

2021-09-17 Thread Chris Morgan
From: Chris Morgan Add pairing info for the Toshiba TC58TEG5DCLTA00 NAND so that we may utilize slc-mode emulation for enhanced reliability and compatibility with upstream Linux. Signed-off-by: Chris Morgan --- drivers/mtd/nand/raw/nand_base.c | 9 + 1 file changed, 9 insertions(+)

[RFC 1/2] mtd: Add partial support for Linux slc-mode for MLC NAND

2021-09-17 Thread Chris Morgan
From: Chris Morgan Add support for setting the slc-mode parameter for a given MLC NAND device. This allows a given device to write only to the first set of paried pages to help reduce data corruption and increase reliability of the NAND. I haven't tested these patches extensively yet, but thus

  1   2   >