Re: [RESEND RFC PATCH 04/10] FWU: Add metadata access functions for GPT partitioned block devices

2021-12-02 Thread Sughosh Ganu
hi Simon, On Wed, 1 Dec 2021 at 23:32, Simon Glass wrote: > Hi Sughosh, > > On Thu, 25 Nov 2021 at 00:13, Sughosh Ganu > wrote: > > > > In the FWU Multi Bank Update feature, the information about the > > updatable images is stored as part of the metadata, on a separate > > partition. Add functi

Please pull u-boot-net/master

2021-12-02 Thread Ramon Fried
Hi Tom, The below contains two fixes from Marek for designware and mdio. The following changes since commit 4a14bfffd42f968ed9d72a780a8d44a9053c5b95: Merge https://source.denx.de/u-boot/custodians/u-boot-marvell (2021-11-30 08:59:22 -0500) are available in the Git repository at: https://sou

Please pull u-boot-net/next

2021-12-02 Thread Ramon Fried
Hi Tom, This pull request contains: * New Broadcom NetXtreme driver * Support for socat for netconsole * Felix switch soft reset fix The following changes since commit fc47dbb26e9d86a688e69e198b2ed0749db16756: Merge branch '2021-12-01-Kconfig-migrations' into next (2021-12-01 13:32:35 -0500) a

Re: [PATCH v2 1/5] net: macb: Remove Microchip compatible string

2021-12-02 Thread Leo Liang
On Wed, Nov 17, 2021 at 06:21:15PM +0530, Padmarao Begari wrote: > Remove the microchip compatible string and default compatible "cdns,macb" > support both 32-bit and 64-bit DMA access. > > Signed-off-by: Padmarao Begari > --- > drivers/net/macb.c | 18 +++--- > 1 file changed, 7 ins

Re: [PATCH v3 1/2] riscv: Support booting SiFive Unmatched from SPI.

2021-12-02 Thread Leo Liang
On Wed, Nov 24, 2021 at 02:32:09PM -0800, Thomas Skibo wrote: > Configure SPI flash devices into SPL. Add SPI boot option to spl.c. > Document how to format flash for booting. > > Signed-off-by: Thomas Skibo > --- > .../dts/hifive-unmatched-a00-u-boot.dtsi | 11 +++ > board/sifive/unma

Re: [PATCH v3 2/2] riscv: Enable SPI flash env for SiFive Unmatched.

2021-12-02 Thread Leo Liang
On Wed, Nov 24, 2021 at 02:32:10PM -0800, Thomas Skibo wrote: > Enable saving environment to SPI flash memory on SiFive > Unmatched. > > Signed-off-by: Thomas Skibo > --- > arch/riscv/cpu/fu740/Kconfig | 13 + > board/sifive/unmatched/Kconfig | 1 + > 2 files changed, 14 insertion

Re: [PATCH] mtd: cqspi: Wait for transfer completion

2021-12-02 Thread Pratyush Yadav
Hi Marek, On 25/10/21 10:25PM, Marek Vasut wrote: > On 10/25/21 9:53 PM, Pratyush Yadav wrote: > > On 08/10/21 06:06PM, Jagan Teki wrote: > > > On Wed, Sep 15, 2021 at 2:05 PM Marek Vasut wrote: > > > > > > > > On 9/15/21 10:28 AM, Pratyush Yadav wrote: > > > > > On 14/09/21 08:22PM, Marek Vasut

Re: [PATCH] mtd: sf: Set SF parameters as env variables

2021-12-02 Thread Pratyush Yadav
Hi Marek, On 28/11/21 10:56PM, Marek Vasut wrote: > On 10/7/21 2:46 PM, Marek Vasut wrote: > > On 10/7/21 2:40 PM, Pratyush Yadav wrote: > > > On 23/09/21 10:00PM, Marek Vasut wrote: > > > > On 9/23/21 8:53 PM, Pratyush Yadav wrote: > > > > > On 14/09/21 05:28AM, Marek Vasut wrote: > > > > > > Set

Re: [PATCH 5/5] clk: Add clk_get_by_name_optional

2021-12-02 Thread Neil Armstrong
On 01/12/2021 19:43, Sean Anderson wrote: > This adds a helper function for clk_get_by_name in cases where the clock is > optional. Hopefully this helps point driver writers in the right direction. > Also convert some existing users. > > Signed-off-by: Sean Anderson > --- > > drivers/clk/clk_zy

Re: [PATCH 0/2] binman: Add support for ATF Firmware Image Package (FIP)

2021-12-02 Thread Sandrine Bailleux
Hi Simon, On 12/1/21 5:51 PM, Simon Glass wrote: > Hi Sandrine, > > On Wed, 1 Dec 2021 at 03:32, Sandrine Bailleux > wrote: >> >> Hi everyone, >> >> I am Sandrine Bailleux, from the Trusted Firmware-A project. Ilias >> Apalodimas CC'ed me on this thread. >> >> First of all, thanks for involving t

Re: [PATCH] spl: fit: Skip attempting to load 0 length image

2021-12-02 Thread Tom Rini
On Tue, Oct 19, 2021 at 12:32:29PM -0500, Nishanth Menon wrote: > When, for various reasons, a bad FIT image is used where a loadable > image is marked as 0 length, attempt is made for a 0 length allocation and > read of 0 byte read operation. > > Instead provide warning in log and skip attemptin

Re: [PATCH 1/2] scripts: remove CONFIG_IS_ENABLED and CONFIG_VAL in generated u_boot.cfg

2021-12-02 Thread Tom Rini
On Mon, Nov 08, 2021 at 10:21:21AM +0100, Patrick Delaunay wrote: > The two helpers macros CONFIG_IS_ENABLED and CONFIG_VAL are defined in > include/linux/kconfig.h but they are not real configurations; they can > be safely removed in the generated configuration file "u-boot.cfg". > > This patch

Re: [PATCH 2/2] scripts: remove CONFIG_IS_ENABLED and CONFIG_VAL in config_whitelist.txt

2021-12-02 Thread Tom Rini
On Mon, Nov 08, 2021 at 10:21:22AM +0100, Patrick Delaunay wrote: > The helper macro CONFIG_IS_ENABLED and CONFIG_VAL are not real > configurations and they are no more present in u-boot.cfg so they can > be removed in config_whitelist.txt. > > Signed-off-by: Patrick Delaunay > Acked-by: Simon G

Re: [RESEND PATCH 1/2] pinctrl: change result for unsupported API

2021-12-02 Thread Tom Rini
On Fri, Nov 19, 2021 at 10:02:26AM +0100, Patrick Delaunay wrote: > Use the return value ENOSYS for unsupported API > - pinctrl_generic_set_state > - pinctrl_select_state > > Signed-off-by: Patrick Delaunay > Reviewed-by: Simon Glass Applied to u-boot/next, thanks! -- Tom signature.asc Des

Re: [RESEND PATCH 2/2] dm: add debug message when failed to select the default pinctrl

2021-12-02 Thread Tom Rini
On Fri, Nov 19, 2021 at 10:02:27AM +0100, Patrick Delaunay wrote: > Add a message on probe in driver model core when the default > pinctrl selection failed. > > This message is displayed only when the pinctrl API is > implemented, i.e. when result is not ENOSYS. > > Signed-off-by: Patrick Delaun

Re: [PATCH] treewide: invaild -> invalid

2021-12-02 Thread Simon Glass
On Wed, 1 Dec 2021 at 12:27, Sean Anderson wrote: > > Somewhere along the way, someone misspelt "invalid" and it got copied > everywhere. Fix it. > > Signed-off-by: Sean Anderson > --- > > drivers/clk/clk-uclass.c | 2 +- > drivers/clk/clk_stm32f.c | 2 +- > drivers/c

Re: [PATCH] clk: Remove no-op request and rfree callbacks

2021-12-02 Thread Simon Glass
On Wed, 1 Dec 2021 at 12:51, Sean Anderson wrote: > > These callbacks are optional. Remove ones which do nothing. > > Signed-off-by: Sean Anderson > --- > > drivers/clk/ics8n3qv01.c | 6 -- > drivers/clk/tegra/tegra-car-clk.c | 9 - > drivers/clk/ti/clk-sci.c | 14

Re: [RESEND RFC PATCH 04/10] FWU: Add metadata access functions for GPT partitioned block devices

2021-12-02 Thread Simon Glass
Hi Sughosh, On Thu, 2 Dec 2021 at 01:05, Sughosh Ganu wrote: > > hi Simon, > > On Wed, 1 Dec 2021 at 23:32, Simon Glass wrote: >> >> Hi Sughosh, >> >> On Thu, 25 Nov 2021 at 00:13, Sughosh Ganu wrote: >> > >> > In the FWU Multi Bank Update feature, the information about the >> > updatable image

Re: [PATCH 07/40] efi: Correct call to write_acpi_tables()

2021-12-02 Thread Simon Glass
Hi Heinrich, On Wed, 1 Dec 2021 at 22:00, Heinrich Schuchardt wrote: > > Am 1. Dezember 2021 22:12:09 MEZ schrieb Simon Glass : > >Hi Heinrich, > > > >On Wed, 1 Dec 2021 at 12:57, Heinrich Schuchardt wrote: > >> > >> > >> > >> On 12/1/21 20:32, Simon Glass wrote: > >> > Hi Heinrich, > >> > > >>

Re: [PATCH 5/5] clk: Add clk_get_by_name_optional

2021-12-02 Thread Simon Glass
Hi Sean, On Wed, 1 Dec 2021 at 11:43, Sean Anderson wrote: > > This adds a helper function for clk_get_by_name in cases where the clock is > optional. Hopefully this helps point driver writers in the right direction. > Also convert some existing users. > > Signed-off-by: Sean Anderson > --- > >

Re: [PATCH 5/5] clk: Add clk_get_by_name_optional

2021-12-02 Thread Sean Anderson
Hi Simon, On 12/2/21 8:43 AM, Simon Glass wrote: Hi Sean, On Wed, 1 Dec 2021 at 11:43, Sean Anderson wrote: This adds a helper function for clk_get_by_name in cases where the clock is optional. Hopefully this helps point driver writers in the right direction. Also convert some existing users

[PATCH 00/15] Sync NXP LS1028A-RDB device trees between U-Boot and Linux

2021-12-02 Thread Vladimir Oltean
The changes were intended to be minimal, but unfortunately I discovered some other stuff as well: - we need to make some changes to the compatible strings of RTC devices and I2C muxes. This has ramifications to other NXP boards which were also updated. - I broke Ethernet on LS1028A boards throu

[PATCH 01/15] i2c: muxes: pca954x: add PCA9847 variant

2021-12-02 Thread Vladimir Oltean
This seems to be very similar to the already existing PCA9547, save for the fact that it supports 0.8V and doesn't support 5V. In fact, it is so similar to the PCA9547 that the NXP LS1028A-RDB board has been driving this chip using a "nxp,pca9547" compatible string. Create a new compatible for the

[PATCH 02/15] rtc: pcf2127: sync with Linux compatible strings

2021-12-02 Thread Vladimir Oltean
Allow this driver to be used by boards which inherit their device trees from Linux. Compatibility is temporarily retained with the old compatible string which is U-Boot specific, and will be removed after a few changes. Cc: Simon Glass Signed-off-by: Vladimir Oltean --- drivers/rtc/pcf2127.c |

[PATCH 03/15] arm: dts: ls1028a-qds: use Linux compatible string for RTC

2021-12-02 Thread Vladimir Oltean
The LS1028A-QDS board won't be synced with the Linux device trees right now, since those are currently still in progress (Ethernet is missing). However, while we're at converting the RDB, it can be observed that the same RTC is present on the two boards, and the wrong compatible string is used in

[PATCH 04/15] arm: ls1088a-qds: use Linux compatible string for RTC

2021-12-02 Thread Vladimir Oltean
During the LS1028A-RDB sync with Linux device trees, it was observed that the same RTC is present on the two boards, and the wrong compatible string is used in both places. This change updates the RTC from the LS1088A-QDS to use the compatible string that was established in Linux. Signed-off-by: V

[PATCH 05/15] arm: ls1088a-rdb: use Linux compatible string for RTC

2021-12-02 Thread Vladimir Oltean
During the LS1028A-RDB sync with Linux device trees, it was observed that the same RTC is present on the two boards, and the wrong compatible string is used in both places. This change updates the RTC from the LS1088A-RDB to use the compatible string that was established in Linux. Signed-off-by: V

[PATCH 06/15] arm: lx2160a-qds: use Linux compatible string for RTC

2021-12-02 Thread Vladimir Oltean
During the LS1028A-RDB sync with Linux device trees, it was observed that the same RTC is present on the two boards, and the wrong compatible string is used in both places. This change updates the RTC from the LX2160A-QDS to use the compatible string that was established in Linux. Signed-off-by: V

[PATCH 07/15] arm: dts: lx2160a-rdb: use Linux compatible string for RTC

2021-12-02 Thread Vladimir Oltean
During the LS1028A-RDB sync with Linux device trees, it was observed that the same RTC is present on the two boards, and the wrong compatible string is used in both places. This change updates the RTC from the LX2160A-RDB to use the compatible string that was established in Linux. Signed-off-by: V

[PATCH 09/15] arm: dts: ls1028a-rdb: sort nodes alphabetically

2021-12-02 Thread Vladimir Oltean
The nodes in the NXP LS1028A-RDB device tree are out of order, regroup them alphabetically to have a simple delta when the Linux device tree is brought in. Signed-off-by: Vladimir Oltean --- arch/arm/dts/fsl-ls1028a-rdb.dts | 110 +++ 1 file changed, 55 insertions(+),

[PATCH 10/15] arm: dts: ls1028a-rdb: sync Ethernet device tree nodes with Linux

2021-12-02 Thread Vladimir Oltean
In a bit of a blunder, the blamed commit made the mscc_felix switch driver look at the 'managed = "in-band-status"' device tree property, forgetting that the U-Boot device tree had not been updated to include that property, whereas the Linux one does. The switch is therefore described in the devic

[PATCH 08/15] rtc: pcf2127: remove U-Boot specific compatible string

2021-12-02 Thread Vladimir Oltean
Now that all in-tree boards have been converted to the compatible strings from Linux, delete the support for the ad-hoc "pcf2127-rtc" one. Cc: Simon Glass Signed-off-by: Vladimir Oltean --- drivers/rtc/pcf2127.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/rtc/pcf2127.c b/drivers/

[PATCH 11/15] arm: dts: ls1028a-rdb: disable DSPI nodes

2021-12-02 Thread Vladimir Oltean
There is no SPI peripheral on the LS1028A-RDB, therefore no reason to enable these nodes in the U-Boot device tree (and Linux does not enable them either). Signed-off-by: Vladimir Oltean --- arch/arm/dts/fsl-ls1028a-rdb.dts | 12 1 file changed, 12 deletions(-) diff --git a/arch/ar

[PATCH 12/15] arm: dts: ls1028a-rdb: disable I2C buses 1 through 7

2021-12-02 Thread Vladimir Oltean
There is no I2C peripheral on these buses on the reference design board, and the Linux device tree does not enable them either. Signed-off-by: Vladimir Oltean --- arch/arm/dts/fsl-ls1028a-rdb.dts | 28 1 file changed, 28 deletions(-) diff --git a/arch/arm/dts/fsl-ls

[PATCH 13/15] arm: dts: ls1028a-rdb: enable PCIe controllers from U-Boot dtsi

2021-12-02 Thread Vladimir Oltean
Reuse the scheme implemented by the Kontron SL28 boards in commit d08011d7f9b4 ("arm: dts: ls1028a: disable the PCIe controller by default") and move the 'status = "okay"' lines for the PCIe controllers inside a separate U-Boot dtsi for the LS1028A-RDB board. This way, the existing Linux device tre

[PATCH 15/15] arm: dts: ls1028a-qds: declare in-band autoneg for Ethernet ports

2021-12-02 Thread Vladimir Oltean
As explained in the previous patch "arm: dts: ls1028a-rdb: sync Ethernet device tree nodes with Linux", the commit below broke traffic through switch ports where the SERDES protocol requires in-band autoneg: SGMII, QSGMII, USXGMII (with 2500Base-X, in-band autoneg isn't supported). The LS1028A-QDS

[PATCH 14/15] arm: dts: ls1028a-rdb: sync device tree with Linux

2021-12-02 Thread Vladimir Oltean
Allow device trees to be reused between Linux and U-Boot. The source for these device trees is today's linux-next plus these changes that have been made so that the sources can be shared. These other patches are currently in flight: https://lore.kernel.org/linux-arm-kernel/20211202141528.2450169-5-

Re: Please pull u-boot-net/next

2021-12-02 Thread Tom Rini
On Thu, Dec 02, 2021 at 10:25:19AM +0200, Ramon Fried wrote: > Hi Tom, > This pull request contains: > * New Broadcom NetXtreme driver > * Support for socat for netconsole > * Felix switch soft reset fix > > The following changes since commit fc47dbb26e9d86a688e69e198b2ed0749db16756: > > Merge

Re: [PATCH] pci: Disable I/O forwarding during autoconfiguration if unsupported

2021-12-02 Thread Stefan Roese
On 12/2/21 00:08, Pali Rohár wrote: On Tuesday 30 November 2021 07:09:36 Stefan Roese wrote: On 11/25/21 11:32, Pali Rohár wrote: If U-Boot does not have any I/O resource for assignment then disable I/O forwarding in PCI bridge autoconfiguration code. Default initial state of PCI bridge IO regi

Re: [PATCH] pci: When disabling pref MEM set all base bits

2021-12-02 Thread Stefan Roese
On 12/2/21 00:12, Pali Rohár wrote: On Tuesday 30 November 2021 07:10:37 Stefan Roese wrote: On 11/25/21 11:34, Pali Rohár wrote: It is common to set all base address bits to one and all limit address bits to zero for disabling address forwarding. Forwarding is disabled when base address is hig

Re: [PATCH 5/5] clk: Add clk_get_by_name_optional

2021-12-02 Thread Simon Glass
Hi Sean, On Thu, 2 Dec 2021 at 07:25, Sean Anderson wrote: > > Hi Simon, > > On 12/2/21 8:43 AM, Simon Glass wrote: > > Hi Sean, > > > > On Wed, 1 Dec 2021 at 11:43, Sean Anderson wrote: > >> > >> This adds a helper function for clk_get_by_name in cases where the clock is > >> optional. Hopefull

[PATCH v6 00/25] fdt: Make OF_BOARD a boolean option

2021-12-02 Thread Simon Glass
With Ilias' efforts we have dropped OF_PRIOR_STAGE and OF_HOSTFILE so there are only three ways to obtain a devicetree: - OF_SEPARATE - the normal way, where the devicetree is built and appended to U-Boot - OF_EMBED - for development purposes, the devicetree is embedded in the EL

[PATCH v6 02/25] arm: qemu: Mention -nographic in the docs

2021-12-02 Thread Simon Glass
Without this option QEMU appears to hang. Add it to avoid confusion. Signed-off-by: Simon Glass --- (no changes since v1) doc/board/emulation/qemu-arm.rst | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/board/emulation/qemu-arm.rst b/doc/board/emulation/qemu-arm.

[PATCH v6 03/25] arm: riscv: qemu: Explain how to extract the generated dt

2021-12-02 Thread Simon Glass
QEMU currently generates a devicetree for use with U-Boot. Explain how to obtain it. Also explain how to merge it to produce a devicetree with the U-Boot features included. Signed-off-by: Simon Glass --- (no changes since v5) Changes in v5: - Merge RISC-V and ARM patches since they are similar

[PATCH v6 01/25] doc: Add documentation about devicetree usage

2021-12-02 Thread Simon Glass
At present some of the ideas and techniques behind devicetree in U-Boot are assumed, implied or unsaid. Add some documentation to cover how devicetree is build, how it can be modified and the rules about using the various CONFIG_OF_... options. Signed-off-by: Simon Glass Reviewed-by: Marcel Ziswi

[PATCH v6 05/25] arm: qemu: Add a devicetree file for qemu_arm64

2021-12-02 Thread Simon Glass
Add this file, generated from QEMU, so there is a reference devicetree in the U-Boot tree. So long as OF_BOARD is enabled, it is overridden at runtime by the QEMU version. However, with this change it becomes possible to run with the U-Boot devicetree, if desired, including any local modifications,

[PATCH v6 04/25] arm: qemu: Add a devicetree file for qemu_arm

2021-12-02 Thread Simon Glass
Add this file, generated from QEMU, so there is a reference devicetree in the U-Boot tree. So long as OF_BOARD is enabled, it is overridden at runtime by the QEMU version. However, with this change it becomes possible to run with the U-Boot devicetree, if desired, including any local modifications,

[PATCH v6 06/25] riscv: qemu: Add devicetree files for qemu_riscv32/64

2021-12-02 Thread Simon Glass
Add these files, generated from qemu, so there is a reference devicetree in the U-Boot tree. Split the existing qemu-virt into two, since we need a different devicetree for 32- and 64-bit machines. Signed-off-by: Simon Glass --- (no changes since v1) arch/riscv/dts/Makefile | 2

[PATCH v6 09/25] arm: xenguest_arm64: Add a fake devicetree file

2021-12-02 Thread Simon Glass
Add an empty file to prevent build errors when building with CONFIG_OF_SEPARATE enabled. The build instructions in U-Boot do not provide enough detail to build a useful devicetree, unfortunately. Signed-off-by: Simon Glass --- (no changes since v1) arch/arm/dts/Makefile| 2 ++ ar

[PATCH v6 07/25] arm: rpi: Add a devicetree file for rpi_4

2021-12-02 Thread Simon Glass
Add this file, obtained from the Raspbian boot disk, so there is a reference devicetree in the U-Boot tree. The same one is used for 32- and 64-bit variants. Note that U-Boot does not normally need this at runtime, since CONFIG_OF_BOARD is enabled. The previous firmware stage provides a devicetree

[PATCH v6 14/25] arm: highbank: Add a fake devicetree file

2021-12-02 Thread Simon Glass
Add an empty file to prevent build errors when building with CONFIG_OF_SEPARATE enabled. Unfortunately there are no build instructions in the U-Boot tree to enable a real file to be created. Signed-off-by: Simon Glass --- (no changes since v1) arch/arm/dts/Makefile | 2 ++ arch/arm/dts/

[PATCH v6 11/25] arm: xilinx_versal_virt: Add a devicetree file

2021-12-02 Thread Simon Glass
Add a devicetree file obtained from qemu for this board. This was obtained with: qemu-system-aarch64 -M xlnx-versal-virt -machine dumpdtb=dtb.dtb Signed-off-by: Simon Glass --- (no changes since v1) arch/arm/dts/Makefile| 3 +- arch/arm/dts/xilinx-versal-virt.dts | 307 +

[PATCH v6 13/25] arm: qemu-ppce500: Add a devicetree file

2021-12-02 Thread Simon Glass
Add a devicetree file obtained from qemu for this board. This was obtained with: qemu-system-ppc64 -machine ppce500 -cpu e6500 -M dumpdtb=dtb.dtb Signed-off-by: Simon Glass --- (no changes since v1) arch/powerpc/dts/Makefile | 1 + arch/powerpc/dts/qemu-ppce500.dts | 264

[PATCH v6 15/25] fdt: Make OF_BOARD a bool option

2021-12-02 Thread Simon Glass
This should not be a separate option from OF_SEPARATE. It is a run-time option to override the devicetree, even if present. Move the option out of the choice. Disable BINMAN_FDT for a few boards which don't actually use it. Signed-off-by: Simon Glass --- (no changes since v1) configs/qemu-pp

[PATCH v6 16/25] Drop CONFIG_BINMAN_STANDALONE_FDT

2021-12-02 Thread Simon Glass
This was added as a hack to work around not having an in-tree devicetree. Now that this is fixed it is not needed. Drop it. Signed-off-by: Simon Glass --- (no changes since v1) Makefile| 3 +-- dts/Kconfig | 18 -- tools/binman/binman.rst | 20

[PATCH v6 17/25] doc: Update info on devicetree update

2021-12-02 Thread Simon Glass
Since OF_BOARD has been corrected to be a run-time option, we can drop the historical info from this documentation. Signed-off-by: Simon Glass --- (no changes since v1) doc/develop/devicetree/dt_update.rst | 74 +++- 1 file changed, 8 insertions(+), 66 deletions(-) dif

[PATCH v6 18/25] fdt: Move MULTI_DTB_FIT handling out of fdtdec_setup()

2021-12-02 Thread Simon Glass
This logic is a bit convoluted for one function. Move the mulit-FIT part into its own function. Signed-off-by: Simon Glass Reviewed-by: Ilias Apalodimas --- (no changes since v1) lib/fdtdec.c | 62 1 file changed, 38 insertions(+), 24 delet

[PATCH v6 22/25] fdt: Use if() for fdtcontroladdr check

2021-12-02 Thread Simon Glass
Change this to use if() instead of #if Signed-off-by: Simon Glass --- (no changes since v1) lib/fdtdec.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/fdtdec.c b/lib/fdtdec.c index 299a2c3a32f..659aeffd82e 100644 --- a/lib/fdtdec.c +++ b/lib/fdtdec.c @@ -1634

[PATCH v6 20/25] fdt: Drop CONFIG_SPL_BUILD check in fdtdec_setup()

2021-12-02 Thread Simon Glass
Move this to the header file to clean up the C code. Signed-off-by: Simon Glass --- (no changes since v1) include/fdtdec.h | 14 ++ lib/fdtdec.c | 6 +- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/include/fdtdec.h b/include/fdtdec.h index 6c7ab887b20..6

[PATCH v6 25/25] fdt: Don't call board_fdt_blob_setup() without OF_BOARD

2021-12-02 Thread Simon Glass
At present this override function is called even when OF_BOARD Is not enabled. This makes it impossible to disable this feature and in fact makes the OF_BOARD option useless. Reinstate its intended purpose, so that it is possible to switch between the appended devicetree and one provided by the bo

[PATCH v6 19/25] fdt: Drop #ifdefs with MULTI_DTB_FIT

2021-12-02 Thread Simon Glass
Refactor the code to drop the #ifdefs for this feature. Signed-off-by: Simon Glass --- (no changes since v1) dts/Kconfig | 1 - include/asm-generic/global_data.h | 8 lib/fdtdec.c | 31 +++ 3 files changed, 19 in

[PATCH v6 10/25] arm: octeontx: Add a fake devicetree file

2021-12-02 Thread Simon Glass
Add an empty file to prevent build errors when building with CONFIG_OF_SEPARATE enabled. Unfortunately there are no build instructions in the U-Boot tree to enable a real file to be created. Signed-off-by: Simon Glass --- (no changes since v1) arch/arm/dts/Makefile| 3 +++ arch/a

[PATCH v6 08/25] arm: vexpress: Add a devicetree file for juno

2021-12-02 Thread Simon Glass
Add this file, obtained from the Linaro website[1], so there is a reference file in the U-Boot tree. Note that U-Boot does not normally need this at runtime, since CONFIG_OF_BOARD is enabled. The previous firmware stage provides a devicetree at runtime. [1] https://releases.linaro.org/android/re

[PATCH v6 12/25] arm: bcm7xxx: Add a devicetree file

2021-12-02 Thread Simon Glass
Add a dummy devicetree file for these boards. It seems to be possible to obtain a real one from another bootloader called 'bolt' but I will leave this to the maintainer. Signed-off-by: Simon Glass --- (no changes since v1) arch/arm/dts/Makefile | 2 ++ arch/arm/dts/bcm7xxx.dts | 15 +

[PATCH v6 21/25] fdt: Drop #ifdef around board_fdt_blob_setup()

2021-12-02 Thread Simon Glass
This serves no purpose. Drop it. Signed-off-by: Simon Glass --- (no changes since v1) lib/fdtdec.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/fdtdec.c b/lib/fdtdec.c index fbdc92c0813..299a2c3a32f 100644 --- a/lib/fdtdec.c +++ b/lib/fdtdec.c @@ -1203,7 +1203,6 @@ static int uncom

Re: [PATCH] drivers: core: lists: fix for loop index type

2021-12-02 Thread Simon Glass
On Sat, 6 Nov 2021 at 09:11, wrote: > > From: Alexander Preißner > > * fixes the bug in function bind_drivers_pass that for > CONFIG_CC_OPTIMIZE_FOR_SIZE=n and no entries in the driver_info list, > i.e. n_ents == 0, the processor steps into the first loop iteration > despite the loop condition be

Question/issues about i.MX6 DDR configuration

2021-12-02 Thread Francesco Dolcini
Hello Fabio, Tim and all, in the last few weeks I have been debugging some sporadic i.MX6 board boot failures (2020.07 U-Boot, if that matters) and we have some loose indication that they could be RAM related. The effect is that SPL is not able to load U-Boot from the eMMC to DDR and dqs|write_leve

Re: [PATCH v6 03/25] arm: riscv: qemu: Explain how to extract the generated dt

2021-12-02 Thread Heinrich Schuchardt
On 12/2/21 16:58, Simon Glass wrote: QEMU currently generates a devicetree for use with U-Boot. Explain how to obtain it. Also explain how to merge it to produce a devicetree with the U-Boot features included. Information like the number of CPUs and the memory must be accurate in the devicetre

Re: [PATCH v6 00/25] fdt: Make OF_BOARD a boolean option

2021-12-02 Thread François Ozog
Hi Simon Le jeu. 2 déc. 2021 à 17:00, Simon Glass a écrit : > With Ilias' efforts we have dropped OF_PRIOR_STAGE and OF_HOSTFILE so > there are only three ways to obtain a devicetree: > >- OF_SEPARATE - the normal way, where the devicetree is built and > appended to U-Boot >- OF_EM

Re: [PATCH v6 00/25] fdt: Make OF_BOARD a boolean option

2021-12-02 Thread Tom Rini
On Thu, Dec 02, 2021 at 05:33:53PM +0100, François Ozog wrote: > Hi Simon > > Le jeu. 2 déc. 2021 à 17:00, Simon Glass a écrit : > > > With Ilias' efforts we have dropped OF_PRIOR_STAGE and OF_HOSTFILE so > > there are only three ways to obtain a devicetree: > > > >- OF_SEPARATE - the normal

Re: [PATCH v6 00/25] fdt: Make OF_BOARD a boolean option

2021-12-02 Thread Simon Glass
Hi François, On Thu, 2 Dec 2021 at 09:34, François Ozog wrote: > > Hi Simon > > Le jeu. 2 déc. 2021 à 17:00, Simon Glass a écrit : >> >> With Ilias' efforts we have dropped OF_PRIOR_STAGE and OF_HOSTFILE so >> there are only three ways to obtain a devicetree: >> >>- OF_SEPARATE - the normal

Re: [PATCH] mtd: sf: Set SF parameters as env variables

2021-12-02 Thread Sean Anderson
On 10/7/21 8:40 AM, Pratyush Yadav wrote: On 23/09/21 10:00PM, Marek Vasut wrote: On 9/23/21 8:53 PM, Pratyush Yadav wrote: > On 14/09/21 05:28AM, Marek Vasut wrote: > > Set the SF page size, erase block size and total size as an environment > > variable after "sf probe". This lets us discer

Re: [PATCH v6 00/25] fdt: Make OF_BOARD a boolean option

2021-12-02 Thread Heinrich Schuchardt
On 12/2/21 16:58, Simon Glass wrote: With Ilias' efforts we have dropped OF_PRIOR_STAGE and OF_HOSTFILE so there are only three ways to obtain a devicetree: - OF_SEPARATE - the normal way, where the devicetree is built and appended to U-Boot - OF_EMBED - for development purposes,

Re: [PATCH v6 00/25] fdt: Make OF_BOARD a boolean option

2021-12-02 Thread Simon Glass
Hi Tom, On Thu, 2 Dec 2021 at 09:38, Tom Rini wrote: > > On Thu, Dec 02, 2021 at 05:33:53PM +0100, François Ozog wrote: > > Hi Simon > > > > Le jeu. 2 déc. 2021 à 17:00, Simon Glass a écrit : > > > > > With Ilias' efforts we have dropped OF_PRIOR_STAGE and OF_HOSTFILE so > > > there are only thr

Re: [PATCH v6 00/25] fdt: Make OF_BOARD a boolean option

2021-12-02 Thread Simon Glass
Hi Heinrich, On Thu, 2 Dec 2021 at 09:47, Heinrich Schuchardt wrote: > > On 12/2/21 16:58, Simon Glass wrote: > > With Ilias' efforts we have dropped OF_PRIOR_STAGE and OF_HOSTFILE so > > there are only three ways to obtain a devicetree: > > > > - OF_SEPARATE - the normal way, where the devic

Re: [PATCH v6 03/25] arm: riscv: qemu: Explain how to extract the generated dt

2021-12-02 Thread Simon Glass
Hi Heinrich, On Thu, 2 Dec 2021 at 09:35, Heinrich Schuchardt wrote: > > On 12/2/21 16:58, Simon Glass wrote: > > QEMU currently generates a devicetree for use with U-Boot. Explain how to > > obtain it. > > > > Also explain how to merge it to produce a devicetree with the U-Boot > > features incl

Re: [PATCH v6 00/25] fdt: Make OF_BOARD a boolean option

2021-12-02 Thread Peter Maydell
On Thu, 2 Dec 2021 at 16:40, Simon Glass wrote: > The word 'fake' applies to only three of the boards (highbank, bcm7xxx > and octeontx), where I could not even figure out where to get a > devicetree. One might think this would be a significant problem! Isn't highbank https://github.com/torvalds/

Re: [PATCH v6 00/25] fdt: Make OF_BOARD a boolean option

2021-12-02 Thread François Ozog
Hi Simon Le jeu. 2 déc. 2021 à 17:40, Simon Glass a écrit : > Hi François, > > On Thu, 2 Dec 2021 at 09:34, François Ozog > wrote: > > > > Hi Simon > > > > Le jeu. 2 déc. 2021 à 17:00, Simon Glass a écrit : > >> > >> With Ilias' efforts we have dropped OF_PRIOR_STAGE and OF_HOSTFILE so > >> th

Re: [PATCH v6 00/25] fdt: Make OF_BOARD a boolean option

2021-12-02 Thread Tom Rini
On Thu, Dec 02, 2021 at 09:49:51AM -0700, Simon Glass wrote: > Hi Tom, > > On Thu, 2 Dec 2021 at 09:38, Tom Rini wrote: > > > > On Thu, Dec 02, 2021 at 05:33:53PM +0100, François Ozog wrote: > > > Hi Simon > > > > > > Le jeu. 2 déc. 2021 à 17:00, Simon Glass a écrit : > > > > > > > With Ilias' e

Re: [PATCH v6 03/25] arm: riscv: qemu: Explain how to extract the generated dt

2021-12-02 Thread Tom Rini
On Thu, Dec 02, 2021 at 05:30:20PM +0100, Heinrich Schuchardt wrote: > On 12/2/21 16:58, Simon Glass wrote: > > QEMU currently generates a devicetree for use with U-Boot. Explain how to > > obtain it. > > > > Also explain how to merge it to produce a devicetree with the U-Boot > > features include

Re: [PATCH v6 00/25] fdt: Make OF_BOARD a boolean option

2021-12-02 Thread Ilias Apalodimas
On Thu, 2 Dec 2021 at 18:38, Tom Rini wrote: > > On Thu, Dec 02, 2021 at 05:33:53PM +0100, François Ozog wrote: > > Hi Simon > > > > Le jeu. 2 déc. 2021 à 17:00, Simon Glass a écrit : > > > > > With Ilias' efforts we have dropped OF_PRIOR_STAGE and OF_HOSTFILE so > > > there are only three ways t

Re: [PATCH v6 00/25] fdt: Make OF_BOARD a boolean option

2021-12-02 Thread Simon Glass
Hi Tom, On Thu, 2 Dec 2021 at 09:59, Tom Rini wrote: > > On Thu, Dec 02, 2021 at 09:49:51AM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Thu, 2 Dec 2021 at 09:38, Tom Rini wrote: > > > > > > On Thu, Dec 02, 2021 at 05:33:53PM +0100, François Ozog wrote: > > > > Hi Simon > > > > > > > > Le je

Re: [PATCH v6 00/25] fdt: Make OF_BOARD a boolean option

2021-12-02 Thread Simon Glass
Hi Ilias, On Thu, 2 Dec 2021 at 10:04, Ilias Apalodimas wrote: > > On Thu, 2 Dec 2021 at 18:38, Tom Rini wrote: > > > > On Thu, Dec 02, 2021 at 05:33:53PM +0100, François Ozog wrote: > > > Hi Simon > > > > > > Le jeu. 2 déc. 2021 à 17:00, Simon Glass a écrit : > > > > > > > With Ilias' efforts

Re: [PATCH v6 07/25] arm: rpi: Add a devicetree file for rpi_4

2021-12-02 Thread Mark Kettenis
> From: Simon Glass > Date: Thu, 2 Dec 2021 08:59:01 -0700 > > Add this file, obtained from the Raspbian boot disk, so there is a > reference devicetree in the U-Boot tree. The same one is used for > 32- and 64-bit variants. > > Note that U-Boot does not normally need this at runtime, since > C

Re: [PATCH v6 09/25] arm: xenguest_arm64: Add a fake devicetree file

2021-12-02 Thread Oleksandr Andrushchenko
Hi, Simon! Sorry for being late to the party On 02.12.21 17:59, Simon Glass wrote: > Add an empty file to prevent build errors when building with > CONFIG_OF_SEPARATE enabled. > > The build instructions in U-Boot do not provide enough detail to build a > useful devicetree, unfortunately. Xen gues

Re: [PATCH v6 09/25] arm: xenguest_arm64: Add a fake devicetree file

2021-12-02 Thread Tom Rini
On Thu, Dec 02, 2021 at 05:40:46PM +, Oleksandr Andrushchenko wrote: > Hi, Simon! > > Sorry for being late to the party > > On 02.12.21 17:59, Simon Glass wrote: > > Add an empty file to prevent build errors when building with > > CONFIG_OF_SEPARATE enabled. > > > > The build instructions in

Re: [PATCH v6 09/25] arm: xenguest_arm64: Add a fake devicetree file

2021-12-02 Thread Simon Glass
Hi Oleksandr, On Thu, 2 Dec 2021 at 10:40, Oleksandr Andrushchenko wrote: > > Hi, Simon! > > Sorry for being late to the party > > On 02.12.21 17:59, Simon Glass wrote: > > Add an empty file to prevent build errors when building with > > CONFIG_OF_SEPARATE enabled. > > > > The build instructions

Re: [PATCH v6 00/25] fdt: Make OF_BOARD a boolean option

2021-12-02 Thread Tom Rini
On Thu, Dec 02, 2021 at 10:07:13AM -0700, Simon Glass wrote: > Hi Tom, > > On Thu, 2 Dec 2021 at 09:59, Tom Rini wrote: > > > > On Thu, Dec 02, 2021 at 09:49:51AM -0700, Simon Glass wrote: > > > Hi Tom, > > > > > > On Thu, 2 Dec 2021 at 09:38, Tom Rini wrote: > > > > > > > > On Thu, Dec 02, 2021

Re: [PATCH v6 09/25] arm: xenguest_arm64: Add a fake devicetree file

2021-12-02 Thread Simon Glass
Hi Tom, On Thu, 2 Dec 2021 at 10:56, Tom Rini wrote: > > On Thu, Dec 02, 2021 at 05:40:46PM +, Oleksandr Andrushchenko wrote: > > Hi, Simon! > > > > Sorry for being late to the party > > > > On 02.12.21 17:59, Simon Glass wrote: > > > Add an empty file to prevent build errors when building wi

Re: [PATCH v6 09/25] arm: xenguest_arm64: Add a fake devicetree file

2021-12-02 Thread Tom Rini
On Thu, Dec 02, 2021 at 11:05:16AM -0700, Simon Glass wrote: > Hi Tom, > > On Thu, 2 Dec 2021 at 10:56, Tom Rini wrote: > > > > On Thu, Dec 02, 2021 at 05:40:46PM +, Oleksandr Andrushchenko wrote: > > > Hi, Simon! > > > > > > Sorry for being late to the party > > > > > > On 02.12.21 17:59, Si

Re: [PATCH v6 00/25] fdt: Make OF_BOARD a boolean option

2021-12-02 Thread Mark Kettenis
> From: Ilias Apalodimas > Date: Thu, 2 Dec 2021 19:03:46 +0200 > > On Thu, 2 Dec 2021 at 18:38, Tom Rini wrote: > > > > On Thu, Dec 02, 2021 at 05:33:53PM +0100, François Ozog wrote: > > > Hi Simon > > > > > > Le jeu. 2 déc. 2021 à 17:00, Simon Glass a écrit : > > > > > > > With Ilias' efforts

Re: [PATCH v6 09/25] arm: xenguest_arm64: Add a fake devicetree file

2021-12-02 Thread François Ozog
Hi Simon On Thu, 2 Dec 2021 at 19:05, Simon Glass wrote: > Hi Tom, > > On Thu, 2 Dec 2021 at 10:56, Tom Rini wrote: > > > > On Thu, Dec 02, 2021 at 05:40:46PM +, Oleksandr Andrushchenko wrote: > > > Hi, Simon! > > > > > > Sorry for being late to the party > > > > > > On 02.12.21 17:59, Simo

Re: [PATCH v6 00/25] fdt: Make OF_BOARD a boolean option

2021-12-02 Thread Simon Glass
Hi Tom, On Thu, 2 Dec 2021 at 11:03, Tom Rini wrote: > > On Thu, Dec 02, 2021 at 10:07:13AM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Thu, 2 Dec 2021 at 09:59, Tom Rini wrote: > > > > > > On Thu, Dec 02, 2021 at 09:49:51AM -0700, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On Thu,

Re: [PATCH v6 07/25] arm: rpi: Add a devicetree file for rpi_4

2021-12-02 Thread François Ozog
Hi Mark, On Thu, 2 Dec 2021 at 18:34, Mark Kettenis wrote: > > From: Simon Glass > > Date: Thu, 2 Dec 2021 08:59:01 -0700 > > > > Add this file, obtained from the Raspbian boot disk, so there is a > > reference devicetree in the U-Boot tree. The same one is used for > > 32- and 64-bit variants

Re: [PATCH v6 00/25] fdt: Make OF_BOARD a boolean option

2021-12-02 Thread Simon Glass
Hi Mark, On Thu, 2 Dec 2021 at 11:15, Mark Kettenis wrote: > > > From: Ilias Apalodimas > > Date: Thu, 2 Dec 2021 19:03:46 +0200 > > > > On Thu, 2 Dec 2021 at 18:38, Tom Rini wrote: > > > > > > On Thu, Dec 02, 2021 at 05:33:53PM +0100, François Ozog wrote: > > > > Hi Simon > > > > > > > > Le je

[PATCH v4 3/6] ARM: dts: sync Actions Semi S700 DT from Linux v5.16-rc3

2021-12-02 Thread Amit Singh Tomar
From: Amit Singh Tomar This Synchronizes the Actions Semi S700 SoC DT changes from commit "g58e1100fdc59" ("Linux v5.16-rc3"). Signed-off-by: Amit Singh Tomar --- arch/arm/dts/s700.dtsi| 17 - .../dt-bindings/power/owl-s700-powergate.h| 19 ++

Re: [PATCH v6 07/25] arm: rpi: Add a devicetree file for rpi_4

2021-12-02 Thread Simon Glass
Hi Mark, On Thu, 2 Dec 2021 at 10:34, Mark Kettenis wrote: > > > From: Simon Glass > > Date: Thu, 2 Dec 2021 08:59:01 -0700 > > > > Add this file, obtained from the Raspbian boot disk, so there is a > > reference devicetree in the U-Boot tree. The same one is used for > > 32- and 64-bit variant

Re: [PATCH v6 09/25] arm: xenguest_arm64: Add a fake devicetree file

2021-12-02 Thread Simon Glass
Hi François, On Thu, 2 Dec 2021 at 11:17, François Ozog wrote: > > Hi Simon > > On Thu, 2 Dec 2021 at 19:05, Simon Glass wrote: >> >> Hi Tom, >> >> On Thu, 2 Dec 2021 at 10:56, Tom Rini wrote: >> > >> > On Thu, Dec 02, 2021 at 05:40:46PM +, Oleksandr Andrushchenko wrote: >> > > Hi, Simon! >

Re: [PATCH v6 00/25] fdt: Make OF_BOARD a boolean option

2021-12-02 Thread François Ozog
On Thu, 2 Dec 2021 at 19:15, Mark Kettenis wrote: > > From: Ilias Apalodimas > > Date: Thu, 2 Dec 2021 19:03:46 +0200 > > > > On Thu, 2 Dec 2021 at 18:38, Tom Rini wrote: > > > > > > On Thu, Dec 02, 2021 at 05:33:53PM +0100, François Ozog wrote: > > > > Hi Simon > > > > > > > > Le jeu. 2 déc. 2

Re: [PATCH v6 00/25] fdt: Make OF_BOARD a boolean option

2021-12-02 Thread Tom Rini
On Thu, Dec 02, 2021 at 11:17:38AM -0700, Simon Glass wrote: > Hi Tom, > > On Thu, 2 Dec 2021 at 11:03, Tom Rini wrote: > > > > On Thu, Dec 02, 2021 at 10:07:13AM -0700, Simon Glass wrote: > > > Hi Tom, > > > > > > On Thu, 2 Dec 2021 at 09:59, Tom Rini wrote: > > > > > > > > On Thu, Dec 02, 2021

  1   2   >