[PATCH v1 0/1] Fix clk-gpio driver

2023-11-16 Thread Svyatoslav Ryhel
Existing gpio-gate-clock driver acts like a simple GPIO switch without any effect on gated clock. Add actual clock actions into enable/disable ops and implement get_rate op by passing gated clock if it is enabled. Testing current driver implementation shows that it is not fully capable and lacks g

[PATCH v1 1/1] clk: clk-gpio: add actual gated clock

2023-11-16 Thread Svyatoslav Ryhel
Existing gpio-gate-clock driver acts like a simple GPIO switch without any effect on gated clock. Add actual clock actions into enable/disable ops and implement get_rate op by passing gated clock if it is enabled. Signed-off-by: Svyatoslav Ryhel --- drivers/clk/clk-gpio.c | 47 ++

Re: [PATCH v3 4/5] spmi: msm: fix register range names

2023-11-16 Thread Sumit Garg
On Tue, 14 Nov 2023 at 19:18, Caleb Connolly wrote: > > The core and chnl register ranges were swapped on SDM845. Fix it, and > fetch the register ranges by name instead of by index. > You haven't updated qcs404-evb.dts to provide register names, so this change alone will break that platform. >

Re: [PATCH v3 3/5] gpio: qcom_pmic: fix support for upstream DT

2023-11-16 Thread Sumit Garg
On Tue, 14 Nov 2023 at 19:18, Caleb Connolly wrote: > > Linux devicetrees use the "gpio-ranges" property, add support for > parsing it instead of "gpio-count" so that upstream DTs can be used with > U-Boot. > > Signed-off-by: Caleb Connolly > --- > arch/arm/dts/dragonboard410c.dts | 3 +-- > ar

Re: [PATCH 1/2] arm: dts: k3-binman: Add support for FIT templates

2023-11-16 Thread Neha Malcom Francis
Hi Marcel, On 16/11/23 22:13, Marcel Ziswiler wrote: Hi Simon On Thu, 2023-11-16 at 09:03 -0700, Simon Glass wrote: Hi Neha, On Wed, 15 Nov 2023 at 03:10, Neha Malcom Francis wrote: Add templates for FIT images used extensively across K3 boards with most of the code common. This includes t

[PATCH 2/2] arm: dts: k3-am68*: Sync with kernel v6.7-rc1

2023-11-16 Thread Manorit Chawdhry
Sync devicetree with kernel v6.7-rc1 Signed-off-by: Manorit Chawdhry --- arch/arm/dts/k3-am68-sk-base-board.dts | 56 + arch/arm/dts/k3-am68-sk-som.dtsi | 208 + arch/arm/dts/k3-serdes.h | 2 +- 3 files changed, 265 insertions(+), 1

[PATCH 0/2] J721S2/AM68 DT Sync with Linux DT v6.7-rc1

2023-11-16 Thread Manorit Chawdhry
The series syncs the DT from Linux v6.7-rc1 to U-boot. Boot Logs: https://gist.github.com/manorit2001/4f810a2a84fd3acf3a58d40e50120c53 Signed-off-by: Manorit Chawdhry --- Manorit Chawdhry (2): arm: dts: k3-j721s2*: Sync with kernel v6.7-rc1 arm: dts: k3-am68*: Sync with kernel v6.7-r

[PATCH 1/2] arm: dts: k3-j721s2*: Sync with kernel v6.7-rc1

2023-11-16 Thread Manorit Chawdhry
Sync devicetree with kernel v6.7-rc1 Signed-off-by: Manorit Chawdhry --- arch/arm/dts/k3-j721s2-main.dtsi | 232 - arch/arm/dts/k3-j721s2-mcu-wakeup.dtsi | 82 +++- arch/arm/dts/k3-j721s2-som-p0.dtsi | 208 + 3 files

Re: [PATCH v3 2/5] gpio: qcom_pmic: rework pwrkey driver into a button driver

2023-11-16 Thread Sumit Garg
On Tue, 14 Nov 2023 at 19:18, Caleb Connolly wrote: > > The power and resin keys were implemented as GPIOs here, but their only > use would be as buttons. Avoid the additional layer of introspection and > rework this driver into a button driver. > > While we're here, replace the "qcom,pm8998-pwrke

Re: [PATCH v3 2/5] gpio: qcom_pmic: rework pwrkey driver into a button driver

2023-11-16 Thread Sumit Garg
On Tue, 14 Nov 2023 at 19:18, Caleb Connolly wrote: > > The power and resin keys were implemented as GPIOs here, but their only > use would be as buttons. Avoid the additional layer of introspection and > rework this driver into a button driver. > > While we're here, replace the "qcom,pm8998-pwrke

Re: [PATCH v3 1/5] gpio: qcom_pmic: fix silent dev_read_addr downcast

2023-11-16 Thread Sumit Garg
On Tue, 14 Nov 2023 at 19:18, Caleb Connolly wrote: > > priv->pid is uint32_t, but dev_read_addr() returns a uint64_t on arm64, > with the upper bits being used for error codes. Do error checking before > downcasting to u32 to prevent errors being silently ignored. > > Signed-off-by: Caleb Connoll

Re: [PATCH v4 00/16] Introduce initial TI's J784S4 and AM69 support

2023-11-16 Thread Kumar, Udit
On 11/17/2023 4:26 AM, Enric Balletbo i Serra wrote: Hi Maxime On Wed, Nov 15, 2023 at 2:54 PM Maxime Ripard wrote: Hi, On Sun, Oct 01, 2023 at 10:25:29PM +0530, Apurva Nandan wrote: This series will introduce basic support (SD and UART) support for Texas Instruments J784S4 EVM. The J784

[PATCH v2] net: designware: Add bitbang feature for designware driver

2023-11-16 Thread Jim Liu
Add bb_miiphy_bus function for designware bitbang feature. Signed-off-by: Jim Liu --- Changes for v2: - add bitbang delay dts read - modify printf to debug --- drivers/net/designware.c | 105 +++ drivers/net/designware.h | 5 ++ 2 files changed, 110 in

[PATCH v5 5/5] fdt: Fix compile error for !OFNODE_MULTI_TREE

2023-11-16 Thread seanedmond
From: Sean Edmond Required to fix the following compile error when building sandbox: /tmp/cci9ibby.ltrans21.ltrans.o: In function `do_cedit_load': :(.text+0x601d): undefined reference to `oftree_dispose' Signed-off-by: Sean Edmond --- drivers/core/ofnode.c | 12 ++-- 1 file changed, 6

[PATCH v5 3/5] cmd: kaslrseed: Use common API to fixup FDT

2023-11-16 Thread seanedmond
From: Sean Edmond Use the newly introduced common API fdt_fixup_kaslr_seed() in the kaslrseed command. Signed-off-by: Sean Edmond --- cmd/kaslrseed.c | 22 -- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/cmd/kaslrseed.c b/cmd/kaslrseed.c index 9acb8e16386.

[PATCH v5 4/5] dm: core: Modify default for OFNODE_MULTI_TREE

2023-11-16 Thread seanedmond
From: Sean Edmond There is a preference to use the "ofnode" API for FDT fixups moving forward. The FDT fixup will usually be for the kernel FDT. To fixup the kernel FDT with the ofnode API, it's required to set the OFNODE_MULTI_TREE option. To ensure existing users of kaslr fdt fixup are not i

[PATCH v5 0/5] Populate kaslr seed with RNG

2023-11-16 Thread seanedmond
From: Sean Edmond This patch series creates a common API (fdt_fixup_kaslr_seed()) for populating the kaslr seed in the DTB. Existing users (kaslrseed, and ARMv8 sec firmware) have been updated to use this common API. New functionality has been introduced to populate the kaslr using the RNG. T

[PATCH v5 1/5] fdt: common API to populate kaslr seed

2023-11-16 Thread seanedmond
From: Dhananjay Phadke fdt_fixup_kaslr_seed() will update given ofnode with random seed value. Source for random seed can be TPM or RNG driver in u-boot or sec firmware (ARM). Signed-off-by: Dhananjay Phadke Signed-off-by: Sean Edmond --- arch/arm/cpu/armv8/sec_firmware.c | 39 +++

[PATCH v5 2/5] fdt: kaslr seed from RNG device

2023-11-16 Thread seanedmond
From: Dhananjay Phadke Add support for KASLR seed from the RNG device. Invokes dm_rng_read() API to read 8-bytes of random bytes. Performs the FDT fixup using event spy. To enable use CONFIG_KASLR_RNG_SEED Signed-off-by: Dhananjay Phadke Signed-off-by: Drew Kluemke Signed-off-by: Sean Edmond

Re: [PATCH] bootstd: Avoid freeing a non-allocated buffer

2023-11-16 Thread Simon Glass
Hi Shantur, On Thu, 16 Nov 2023 at 09:45, Shantur Rathore wrote: > > Hi Simon, > > > > [please can you avoid top-posting as it makes it had for people to read > > later] > > > > Sure thing. Thanks! > > > There is a pending series there which I haven't got to yet. > > > I can add that change to

Re: [PATCH] arm64: imx: imx8mp-beacon: Add support for 4GB Variant

2023-11-16 Thread Fabio Estevam
On Thu, Nov 16, 2023 at 10:32 PM Adam Ford wrote: > > A new variant of the i.MX8MP System-on-module from Beacon is > available which contains 4GB of RAM vs 6GB. The memory > timings are slightly different, so a different config is necessary > to build the different timing file. > > Signed-off-by:

[PATCH] arm64: imx: imx8mp-beacon: Add support for 4GB Variant

2023-11-16 Thread Adam Ford
A new variant of the i.MX8MP System-on-module from Beacon is available which contains 4GB of RAM vs 6GB. The memory timings are slightly different, so a different config is necessary to build the different timing file. Signed-off-by: Adam Ford diff --git a/board/beacon/imx8mp/Kconfig b/board/be

Re: [PATCH 1/1] cmd: eficonfig: create shortened boot options

2023-11-16 Thread Masahisa Kojima
On Fri, 17 Nov 2023 at 08:08, Heinrich Schuchardt wrote: > > The boot options created by eficonfig should use shortened device-paths to > avoid problems if drives are enumerated in a different sequence. > > Signed-off-by: Heinrich Schuchardt > --- > cmd/eficonfig.c | 1 + > 1 file changed, 1 ins

Re: [PATCH] bootstd: Avoid freeing a non-allocated buffer

2023-11-16 Thread Shantur Rathore
On Thu, Nov 16, 2023 at 1:35 AM Simon Glass wrote: > > EFI applications can be very large and thus used to cause boot failures > when malloc() space was exhausted. > > A recent changed fixed this by using the kernel_addr_r environment var > as the address of the buffer. However, it still frees the

Re: [PATCH] fs: btrfs: fix reading when length specified

2023-11-16 Thread Sam Edwards
On 11/15/23 21:43, Qu Wenruo wrote: I'm not sure why this happend for the EFI environment. Doesn't the EFI runtime should also try to read the whole file? Or that EFI environment has specified the length to read instead? Hi Qu, The Linux EFISTUB file loading routine (handle_cmdline_files) r

Re: [RESEND PATCH v3] serial: ns16550: Enable clocks during probe

2023-11-16 Thread Tom Rini
On Tue, Oct 31, 2023 at 12:06:09AM -0500, Samuel Holland wrote: > If the UART bus or baud clock has a gate, it must be enabled before the > UART can be used. > > Reviewed-by: Stefan Roese > Signed-off-by: Samuel Holland > --- > > Changes in v3: > - Switch back to the original patch, now that

Re: [PATCH] net: designware: Support high memory nodes

2023-11-16 Thread Andre Przywara
On Sat, 11 Nov 2023 16:26:14 +0100 Nils Le Roux wrote: Hi Nils, > Some platforms (such as the Lichee Pi 4A) have their dwmac device > addressable only in high memory space. Storing the node's base address > on 32 bits is not possible in such case. That's indeed true, so thanks for the patch. So

[PATCH 1/1] cmd: eficonfig: create shortened boot options

2023-11-16 Thread Heinrich Schuchardt
The boot options created by eficonfig should use shortened device-paths to avoid problems if drives are enumerated in a different sequence. Signed-off-by: Heinrich Schuchardt --- cmd/eficonfig.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/eficonfig.c b/cmd/eficonfig.c index e6e8a0a48

Re: [PATCH v4 00/16] Introduce initial TI's J784S4 and AM69 support

2023-11-16 Thread Enric Balletbo i Serra
Hi Maxime On Wed, Nov 15, 2023 at 2:54 PM Maxime Ripard wrote: > > Hi, > > On Sun, Oct 01, 2023 at 10:25:29PM +0530, Apurva Nandan wrote: > > This series will introduce basic support (SD and UART) support for Texas > > Instruments J784S4 EVM. > > > > The J784S4 SoC device tree patches are taken

Re: [PATCH] arm: Enable SYS_THUMB_BUILD on AT91

2023-11-16 Thread Eugen Hristev
On 11/16/23 20:47, Tom Rini wrote: On Sat, Nov 04, 2023 at 10:27:42PM -0400, Sean Anderson wrote: Several AT91 boards are quite close to their SPL size limit. For example, sama5d27_wlsom1_ek_mmc is just 173 bytes short of its limit and doesn't even fit with older GCCs. All AT91 processors shou

Re: [PATCH 6/6] configs: defconfig for QEMU RISC-V with ACPI

2023-11-16 Thread Tom Rini
On Thu, Nov 16, 2023 at 09:04:27PM +0100, Heinrich Schuchardt wrote: > On 11/16/23 19:37, Tom Rini wrote: > > On Wed, Nov 15, 2023 at 03:23:55PM +0100, Heinrich Schuchardt wrote: > > > > > Provide a defconfig for testing ACPI on RISC-V. > > > > > > Signed-off-by: Heinrich Schuchardt > > > --- >

Re: [PATCH 3/6] risc-v: add support for QEMU provided ACPI tables

2023-11-16 Thread Tom Rini
On Thu, Nov 16, 2023 at 08:54:44PM +0100, Heinrich Schuchardt wrote: > On 11/16/23 19:35, Tom Rini wrote: > > On Wed, Nov 15, 2023 at 03:23:52PM +0100, Heinrich Schuchardt wrote: > > > If U-Boot provides ACPI tables on RISC-V QEMU, we need to copy what QEMU > > > provides. > > > > > > Provide the

Re: [PATCH 6/6] configs: defconfig for QEMU RISC-V with ACPI

2023-11-16 Thread Heinrich Schuchardt
On 11/16/23 19:37, Tom Rini wrote: On Wed, Nov 15, 2023 at 03:23:55PM +0100, Heinrich Schuchardt wrote: Provide a defconfig for testing ACPI on RISC-V. Signed-off-by: Heinrich Schuchardt --- board/emulation/qemu-riscv/MAINTAINERS| 1 + configs/qemu-riscv64_acpi_smode_defconfig | 27 ++

Re: [PATCH 3/6] risc-v: add support for QEMU provided ACPI tables

2023-11-16 Thread Heinrich Schuchardt
On 11/16/23 19:35, Tom Rini wrote: On Wed, Nov 15, 2023 at 03:23:52PM +0100, Heinrich Schuchardt wrote: If U-Boot provides ACPI tables on RISC-V QEMU, we need to copy what QEMU provides. Provide the qfw command to retrieve information from the QEMU firmware. Signed-off-by: Heinrich Schuchardt

Re: [PATCH 1/6] acpi: do not write ACPI tables on TARGET_QEMU_VIRT

2023-11-16 Thread Heinrich Schuchardt
On 11/16/23 19:33, Tom Rini wrote: On Wed, Nov 15, 2023 at 03:23:50PM +0100, Heinrich Schuchardt wrote: RISC-V QEMU provides the ACPI tables. We do not need to generate them ourselves. Signed-off-by: Heinrich Schuchardt --- lib/acpi/Makefile | 2 +- lib/acpi/acpi_writer.c | 2 +- 2 f

Re: [PATCH] arm: Enable SYS_THUMB_BUILD on AT91

2023-11-16 Thread Tom Rini
On Sat, Nov 04, 2023 at 10:27:42PM -0400, Sean Anderson wrote: > Several AT91 boards are quite close to their SPL size limit. For example, > sama5d27_wlsom1_ek_mmc is just 173 bytes short of its limit and doesn't > even fit with older GCCs. > > All AT91 processors should have thumb support. Enabl

Re: bootstd: Support for distro specific EFI folders

2023-11-16 Thread Shantur Rathore
On Thu, Nov 16, 2023 at 6:15 PM Heinrich Schuchardt wrote: > > On 11/16/23 17:52, Shantur Rathore wrote: > > Hi Simon, > > > > Currently bootstd - bootmethod_efi only looks for the default > > bootxx64.efi in /EFI/boot folder only. > > Generally many distros end up putting their bootloaders in > >

Re: [PATCH v1 2/2] imx: spl_imx_romapi: fix emmc fast boot mode case

2023-11-16 Thread Tom Rini
On Thu, Nov 16, 2023 at 10:57:27AM +, Marcel Ziswiler wrote: > Hi Tom > > On Thu, 2023-11-02 at 08:09 +0100, Marcel Ziswiler wrote: > > Hi Stefano > > > > On Thu, 2023-10-26 at 10:36 +0200, Stefano Babic wrote: > > > On 26.10.23 10:29, Rasmus Villemoes wrote: > > > > On 26/10/2023 09.32, Marc

Re: [PATCH RFC 10/10] board: ti: j721e: Enable ESM initialization for J7200

2023-11-16 Thread Tom Rini
On Thu, Nov 16, 2023 at 11:43:50AM +0530, Neha Malcom Francis wrote: > Hi Tom, > > Trying to bring back this series here. > > On 03/10/23 20:40, Tom Rini wrote: > > On Tue, Oct 03, 2023 at 07:57:04PM +0530, Kumar, Udit wrote: > > > > > > On 10/3/2023 1:40 PM, Keerthy wrote: > > > > Enable ESM in

Re: [PATCH v2] fs: Fix SPL build if FS_LOADER is enabled

2023-11-16 Thread Sean Anderson
On 11/16/23 12:16, Mayuresh Chitale wrote: If FS_LOADER is enabled for the SPL then the build fails with the error: fs/fs.o:(.data.rel.fstypes+0x128): undefined reference to `smh_fs_set_blk_dev' fs/fs.o:(.data.rel.fstypes+0x140): undefined reference to `smh_fs_size' fs/fs.o:(.data.rel.fstypes+0x

Re: [PATCH 6/6] configs: defconfig for QEMU RISC-V with ACPI

2023-11-16 Thread Tom Rini
On Wed, Nov 15, 2023 at 03:23:55PM +0100, Heinrich Schuchardt wrote: > Provide a defconfig for testing ACPI on RISC-V. > > Signed-off-by: Heinrich Schuchardt > --- > board/emulation/qemu-riscv/MAINTAINERS| 1 + > configs/qemu-riscv64_acpi_smode_defconfig | 27 +++ > 2 f

Re: [PATCH 3/6] risc-v: add support for QEMU provided ACPI tables

2023-11-16 Thread Tom Rini
On Wed, Nov 15, 2023 at 03:23:52PM +0100, Heinrich Schuchardt wrote: > If U-Boot provides ACPI tables on RISC-V QEMU, we need to copy what QEMU > provides. > > Provide the qfw command to retrieve information from the QEMU firmware. > > Signed-off-by: Heinrich Schuchardt > --- > board/emulation/

Re: [PATCH v2] fs: Fix SPL build if FS_LOADER is enabled

2023-11-16 Thread Tom Rini
On Thu, Nov 16, 2023 at 10:46:12PM +0530, Mayuresh Chitale wrote: > If FS_LOADER is enabled for the SPL then the build fails with the error: > > fs/fs.o:(.data.rel.fstypes+0x128): > undefined reference to `smh_fs_set_blk_dev' > fs/fs.o:(.data.rel.fstypes+0x140): > undefined reference to `smh_fs_s

Re: [PATCH 1/6] acpi: do not write ACPI tables on TARGET_QEMU_VIRT

2023-11-16 Thread Tom Rini
On Wed, Nov 15, 2023 at 03:23:50PM +0100, Heinrich Schuchardt wrote: > RISC-V QEMU provides the ACPI tables. We do not need to generate them > ourselves. > > Signed-off-by: Heinrich Schuchardt > --- > lib/acpi/Makefile | 2 +- > lib/acpi/acpi_writer.c | 2 +- > 2 files changed, 2 insertion

Re: bootstd: Support for distro specific EFI folders

2023-11-16 Thread Heinrich Schuchardt
On 11/16/23 17:52, Shantur Rathore wrote: Hi Simon, Currently bootstd - bootmethod_efi only looks for the default bootxx64.efi in /EFI/boot folder only. Generally many distros end up putting their bootloaders in EFI/ folders like EFI/ubuntu and EFI/debian etc. In x86 worlds, the NVRAM is modifi

[PATCH v6 2/3] dt-bindings: mtd: binman-partition: Add binman compatibles

2023-11-16 Thread Simon Glass
Add two compatible for binman entries, as a starting point for the schema. Note that, after discussion on v2, we decided to keep the existing meaning of label so as not to require changes to existing userspace software when moving to use binman nodes to specify the firmware layout. Signed-off-by:

[PATCH v6 1/3] dt-bindings: mtd: partitions: Add binman compatible

2023-11-16 Thread Simon Glass
Add a compatible string for binman, so we can extend fixed-partitions in various ways. Signed-off-by: Simon Glass --- (no changes since v5) Changes in v5: - Add #address/size-cells and parternProperties - Drop $ref to fixed-partitions.yaml - Drop 'select: false' Changes in v4: - Change subject

[PATCH v6 3/3] dt-bindings: mtd: binman-partitions: Add alignment properties

2023-11-16 Thread Simon Glass
Add three properties for controlling alignment of partitions, aka 'entries' in binman. For now there is no explicit mention of hierarchy, so a 'section' is just the 'binman' node. These new properties are inputs to the packaging process, but are also needed if the firmware is repacked, to ensure

[PATCH v2] fs: Fix SPL build if FS_LOADER is enabled

2023-11-16 Thread Mayuresh Chitale
If FS_LOADER is enabled for the SPL then the build fails with the error: fs/fs.o:(.data.rel.fstypes+0x128): undefined reference to `smh_fs_set_blk_dev' fs/fs.o:(.data.rel.fstypes+0x140): undefined reference to `smh_fs_size' fs/fs.o:(.data.rel.fstypes+0x148): undefined reference to `smh_fs_read' fs

bootstd: Support for distro specific EFI folders

2023-11-16 Thread Shantur Rathore
Hi Simon, Currently bootstd - bootmethod_efi only looks for the default bootxx64.efi in /EFI/boot folder only. Generally many distros end up putting their bootloaders in EFI/ folders like EFI/ubuntu and EFI/debian etc. In x86 worlds, the NVRAM is modified and new boot entries are added to support

[PATCH v3 1/2] pci: xilinx: Fix "reg" not found error

2023-11-16 Thread Mayuresh Chitale
Fix the driver to use the dev_read_addr_size API to fetch the reg property from the DT. Signed-off-by: Mayuresh Chitale --- drivers/pci/pcie_xilinx.c | 29 - 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/drivers/pci/pcie_xilinx.c b/drivers/pci/pcie_x

[PATCH v3 2/2] pci: xilinx: Enable MMIO region

2023-11-16 Thread Mayuresh Chitale
The host bridge MMIO region is disabled by default due to which MMIO accesses cause an exception. Fix it by setting the bridge enable bit. This change is ported from the linux pcie-xilinx driver. Signed-off-by: Mayuresh Chitale Reviewed-by: Michal Simek --- drivers/pci/pcie_xilinx.c | 8 +++

[PATCH v3 0/2] Xilinx PCI driver fixes

2023-11-16 Thread Mayuresh Chitale
This series fixes couple issues with the Xilinx PCIe host controller driver. Changes in v3: - Add error checking and improve commit title of patch 1 - Rebase patch 2 on modified patch 1 Mayuresh Chitale (2): pci: xilinx: Fix "reg" not found error pci: xilinx: Enable MMIO region drivers/pci/

Re: [PATCH] bootstd: Avoid freeing a non-allocated buffer

2023-11-16 Thread Shantur Rathore
Hi Simon, > [please can you avoid top-posting as it makes it had for people to read later] > Sure thing. > There is a pending series there which I haven't got to yet. > I can add that change to my bootmeth_efi dhcp fixes patch series if you want. > BTW, for this patch we need a test which cove

[PATCH v2 0/3] Xilinx SPI driver enhancements

2023-11-16 Thread Mayuresh Chitale
This series makes the Xilinx XPS SPI driver compatible with the MMC_SPI driver and also includes an enhacement from the corresponding Linux driver. Changes in v2: - Improve comment and add reviewed-by tag in patch 3 Mayuresh Chitale (3): drivers: xilinx_spi: Use udevice in start_tranfer drive

[PATCH v2 3/3] drivers: xilinx_spi: Probe fifo_depth at runtime

2023-11-16 Thread Mayuresh Chitale
If the fifo-size DT parameter is not provided then probe the controller's fifo depth at runtime. This is ported from a patch in the Linux Xilinx SPI driver. Signed-off-by: Mayuresh Chitale Reviewed-by: Michal Simek Link: https://lore.kernel.org/r/1422029330-10971-5-git-send-email-ricardo.riba..

[PATCH v2 2/3] drivers: xilinx_spi: Add xfer callback

2023-11-16 Thread Mayuresh Chitale
Add the xfer callback which is used by the MMC_SPI driver and generally by the dm_spi_xfer callback. Signed-off-by: Mayuresh Chitale --- drivers/spi/xilinx_spi.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/spi/xilinx_spi.c b/drivers/spi/xilinx_spi.c index d9faceec1

[PATCH v2 1/3] drivers: xilinx_spi: Use udevice in start_tranfer

2023-11-16 Thread Mayuresh Chitale
Modify start_transfer and related functions to take a udevice parameter as input instead of spi_slave. This is needed so that start_transfer can be used directly via the xfer callback. Also fix a compiler warning. Signed-off-by: Mayuresh Chitale --- drivers/spi/xilinx_spi.c | 32

Re: [PATCH 1/2] arm: dts: k3-binman: Add support for FIT templates

2023-11-16 Thread Marcel Ziswiler
Hi Simon On Thu, 2023-11-16 at 09:03 -0700, Simon Glass wrote: > Hi Neha, > > On Wed, 15 Nov 2023 at 03:10, Neha Malcom Francis wrote: > > > > Add templates for FIT images used extensively across K3 boards with most > > of the code common. This includes the FIT portions of: > >     - tispl.

[PATCH v2] net: axi_emac: Use reg property for DMA registers

2023-11-16 Thread Mayuresh Chitale
As per the xlnx,axi-ethernet-1.00.a DT documentation in linux, the AXI DMA registers can be obtained via the reg property or via a separate node for the axistream DMA controller. Currently only the latter is supported, so add support to fetch the DMA controller registers from the "reg" property. S

Re: [PATCH] test/py: i2c: Add tests for i2c command

2023-11-16 Thread Tom Rini
On Wed, Nov 15, 2023 at 12:08:38PM +0530, Love Kumar wrote: > Add below test cases for i2c commands: > i2c_bus - To show i2c bus info, > i2c_dev - To set or show the current bus, > i2c_probe - To probe the i2c device, > i2c_eeprom - To test i2c eeprom device, > i2c_probe_all_buses - To list down a

Re: [PATCH 2/3] board: rockchip: Add Maskrom Mode for Anbernic RGxx3

2023-11-16 Thread Chris Morgan
On Wed, Oct 25, 2023 at 02:15:57PM -0500, Chris Morgan wrote: > On Mon, Oct 23, 2023 at 07:12:14PM +0200, Jonas Karlman wrote: > > Hi Chris, > > > > On 2023-10-23 17:18, Chris Morgan wrote: > > > On Mon, Oct 23, 2023 at 06:10:07PM +0800, Kever Yang wrote: > > >> Hi Chris, > > >> > > >> On 2023/10/

Re: [PATCH V2] riscv: binman: fix the load field format

2023-11-16 Thread Simon Glass
On Thu, 16 Nov 2023 at 03:18, Randolph wrote: > > Using /bits/64 prefix for 64bits address > > Signed-off-by: Randolph > --- > arch/riscv/dts/binman.dtsi | 14 -- > 1 file changed, 4 insertions(+), 10 deletions(-) > Reviewed-by: Simon Glass It is normally written '/bits/ 64' i.e.

Re: [PATCH 2/2] arm: dts: k3-*-binman: Move to using templated FITs

2023-11-16 Thread Simon Glass
Hi Neha, On Wed, 15 Nov 2023 at 03:10, Neha Malcom Francis wrote: > > Reduce redundancy in code by using templates to generate the A72 boot > binaries (tispl.bin and u-boot.img) as well as R5 boot binary sysfw.itb > (for legacy boot following devices J721E and AM65x). > > Signed-off-by: Neha Malc

Re: [PATCH 1/1] doc: typo fdtaddr_addr_r

2023-11-16 Thread Simon Glass
On Thu, 16 Nov 2023 at 02:10, Heinrich Schuchardt wrote: > > %s/fdtaddr_addr_r/fdt_addr_r/ > > Signed-off-by: Heinrich Schuchardt > --- > doc/develop/bootstd.rst | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Simon Glass

Re: [PATCH] bootstd: Avoid freeing a non-allocated buffer

2023-11-16 Thread Simon Glass
Hi Shantur, On Thu, 16 Nov 2023 at 04:02, Shantur Rathore wrote: > > Hi Simon, > > Thanks for the patch. > Ater this patch, booting off USB works fine over USB disk. > Maybe you need the same flag for dhcp as well just after dhcp_run() here > https://github.com/u-boot/u-boot/blob/master/boot/boot

Re: [PATCH 1/2] arm: dts: k3-binman: Add support for FIT templates

2023-11-16 Thread Simon Glass
Hi Neha, On Wed, 15 Nov 2023 at 03:10, Neha Malcom Francis wrote: > > Add templates for FIT images used extensively across K3 boards with most > of the code common. This includes the FIT portions of: > - tispl.bin > - u-boot.img > - sysfw.itb (in case of legacy boot flow)

Re: [PATCH 7/9] Revert "generic-board: make show_board_info a weak function"

2023-11-16 Thread Tom Rini
On Sun, Nov 12, 2023 at 07:58:27PM -0700, Simon Glass wrote: > We already have: > > - a sysinfo driver-interface which can obtain the model > - a weak function called checkboard() for showing board info > > The current implementation has a weak function on top of a weak > function. Now that all

Re: [PATCH 1/9] board: Move show_board_info() comment to header file

2023-11-16 Thread Tom Rini
On Sun, Nov 12, 2023 at 07:58:21PM -0700, Simon Glass wrote: > Move this comment to its prototype and tidy it up a bit. > > Signed-off-by: Simon Glass Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

Re: [UBOOT PATCH v3] test/py: net: Add dhcp abort test

2023-11-16 Thread Tom Rini
On Tue, Nov 14, 2023 at 02:09:01PM +0530, Love Kumar wrote: > Abort the dhcp request in the middle by pressing ctrl + c on u-boot > prompt and validate the abort status. > > Signed-off-by: Love Kumar > --- > Changes in v2: > - Mark CMD_MII command dependency > > Changes in v3: > - Skip the te

Re: [PATCH v2 03/32] mmc: env: Unify the U_BOOT_ENV_LOCATION conditions

2023-11-16 Thread Tom Rini
On Wed, Nov 15, 2023 at 09:10:03PM -0700, Simon Glass wrote: > The declaration of U_BOOT_ENV_LOCATION() uses a different #ifdef > condition from the code it calls. Use the same condition to avoid a > build warning if CONFIG_CMD_SAVEENV is disabled. > > Signed-off-by: Simon Glass Reviewed-by: To

Re: [PATCH v2 22/32] bootm: Pass image buffer to boot_get_fdt()

2023-11-16 Thread Tom Rini
On Wed, Nov 15, 2023 at 09:10:22PM -0700, Simon Glass wrote: > Rather than having boot_get_fdt() calculate this, move the calculation > into the caller. This removes the access to argv[0] in this function, > so we can later refactor it to just accept argv[2] instead of the whole > argv[]. > > Mov

Re: [PATCH v2 17/32] bootm: Move error printing out of boot_get_kernel()

2023-11-16 Thread Tom Rini
On Wed, Nov 15, 2023 at 09:10:17PM -0700, Simon Glass wrote: > The same error message is printed in two places. Move it out to the > caller so we can avoid passing in the command name. Leave the bootstage > handling where it is. > > Signed-off-by: Simon Glass Reviewed-by: Tom Rini -- Tom s

Re: [PATCH v2 14/32] bootm: Adjust position of unmap_sysmem() in boot_get_kernel()

2023-11-16 Thread Tom Rini
On Wed, Nov 15, 2023 at 09:10:14PM -0700, Simon Glass wrote: > These unmaps should happen regardless of the return value. Move them > before the 'return' statement. > > Signed-off-by: Simon Glass Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

Re: [PATCH v2 11/32] bootm: Reduce arguments to boot_get_kernel()

2023-11-16 Thread Tom Rini
On Wed, Nov 15, 2023 at 09:10:11PM -0700, Simon Glass wrote: > This function only uses one argument and just needs to know the name of > the command which called it. Adjust the function to use only what it > needs. This will make it easier to call from a non-command context. > > Tidy up the funct

Re: [PATCH 1/2] armv8: layerscape: Enable ext4 environment storage

2023-11-16 Thread Tom Rini
On Thu, Nov 16, 2023 at 02:16:29PM +0100, Artur Rojek wrote: > From: Jakub Klama > > Some boards keep their environment on MMC storage within an ext4 > partition. > > Signed-off-by: Jakub Klama > Signed-off-by: Artur Rojek Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP sign

Re: [PATCH 2/2] board: Add support for Conclusive WHLE-LS1046A

2023-11-16 Thread Tom Rini
On Thu, Nov 16, 2023 at 02:16:30PM +0100, Artur Rojek wrote: > Introduce support for Conclusive WHLE-LS1046A Single Board Computer. > > Co-developed-by: Jakub Klama > Signed-off-by: Jakub Klama > Signed-off-by: Artur Rojek [snip] > + fdt_fixup_memory_banks(blob, base, size, 2); > + ft_

Re: [PATCH v2] drivers: pcie_xilinx: Fix "reg" not found error

2023-11-16 Thread mchitale
On Mon, 2023-11-13 at 10:12 +0100, Michal Simek wrote: > one more thing here. > > Subject of your next patch is > [PATCH v2] pci: xilinx: Enable MMIO region > and here you are using drivers: pcie_xilinx: > > Please use one if you target the same code. > I prefer "pci: xilinx:" style. Ok. > > Tha

Re: [PATCH v2] drivers: pcie_xilinx: Fix "reg" not found error

2023-11-16 Thread mchitale
On Mon, 2023-11-13 at 09:10 +0100, Michal Simek wrote: > > On 11/11/23 18:36, Mayuresh Chitale wrote: > > Fix the driver to use the dev_read_addr_size API to fetch the reg > > property from the DT. > > > > Signed-off-by: Mayuresh Chitale > > --- > > Changes in v2: > > > > - Remove global_da

Re: [PATCH v2] net: axi_emac: Use reg property for DMA registers

2023-11-16 Thread mchitale
Hi Michal, On Mon, 2023-11-13 at 10:10 +0100, Michal Simek wrote: > > On 11/11/23 18:36, Mayuresh Chitale wrote: > > As per the xlnx,axi-ethernet-1.00.a DT documentation in linux, the > > AXI > > DMA registers can be obtained via the reg property or via a > > separate > > node for the axistream DM

Re: [PATCH 2/6] led-uclass: honour ->label field populated by driver's own .bind

2023-11-16 Thread Pavel Machek
Hi! > > > > > > diff --git a/drivers/led/led-uclass.c b/drivers/led/led-uclass.c > > > > > > index 5a5d07b9a7..0232fa84de 100644 > > > > > > --- a/drivers/led/led-uclass.c > > > > > > +++ b/drivers/led/led-uclass.c > > > > > > @@ -71,7 +71,9 @@ static int led_post_bind(struct udevice *dev) > > > >

Re: [PATCH v1 3/3] drivers: xilinx_spi: Probe fifo_depth at runtime

2023-11-16 Thread mchitale
On Mon, 2023-11-13 at 10:06 +0100, Michal Simek wrote: > > On 11/11/23 18:31, Mayuresh Chitale wrote: > > If the fifo-size DT parameter is not provided then probe the > > controller's fifo depth at runtime. This is ported from a patch > > in the Linux Xilinx SPI driver. > > > > Signed-off-by: May

[PATCH 2/2] board: Add support for Conclusive WHLE-LS1046A

2023-11-16 Thread Artur Rojek
Introduce support for Conclusive WHLE-LS1046A Single Board Computer. Co-developed-by: Jakub Klama Signed-off-by: Jakub Klama Signed-off-by: Artur Rojek --- arch/arm/Kconfig | 19 ++ arch/arm/dts/Makefile| 1 + arch/arm/dts/fsl-ls1046a-whle

[PATCH 0/2] Conclusive WHLE-LS1046A support

2023-11-16 Thread Artur Rojek
Hi all, this series adds support for Conclusive WHLE-LS1046A, a QorIQ LS1046A SoC based Single Board Computer by Conclusive Engineering. Patch [1/2] adds support for storing U-Boot environment on an ext4 partition of MMC. This is required for whle_ls1046a_emmc_defconfig. Patch [2/2] introduces s

[PATCH 1/2] armv8: layerscape: Enable ext4 environment storage

2023-11-16 Thread Artur Rojek
From: Jakub Klama Some boards keep their environment on MMC storage within an ext4 partition. Signed-off-by: Jakub Klama Signed-off-by: Artur Rojek --- arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/cpu/armv8/fsl-layerscape/cpu.c b/a

[PATCH V3 2/3] spl: riscv: falcon: move fdt blob to specified address

2023-11-16 Thread Randolph
In Falcon Boot mode, the fdt blob should be move to the RAM from kernel BSS section. To avoid being cleared by BSS initialisation. SPL_PAYLOAD_ARGS_ADDR is the address where SPL copies. Signed-off-by: Randolph --- board/AndesTech/ae350/ae350.c | 25 - common/spl/Kconfig

[PATCH V3 3/3] configs: andes: add the fdt blob address for SPL copy to

2023-11-16 Thread Randolph
Add the address where the FDT blob should be moved. Signed-off-by: Randolph --- configs/ae350_rv32_falcon_defconfig | 1 + configs/ae350_rv32_falcon_xip_defconfig | 1 + configs/ae350_rv64_falcon_defconfig | 1 + configs/ae350_rv64_falcon_xip_defconfig | 1 + 4 files changed, 4 insertion

[PATCH V3 1/3] doc: falcon: riscv: Falcon Mode boot on RISC-V

2023-11-16 Thread Randolph
Add documentation to introduce the Falcon Mode on RISC-V. In this mode, the boot sequence is SPL -> OpenSBI -> Linux kernel. Signed-off-by: Randolph --- doc/develop/falcon.rst | 171 + 1 file changed, 171 insertions(+) diff --git a/doc/develop/falcon.rst

[PATCH V3 0/3] doc: falcon: riscv: Falcon Mode boot on RISC-V

2023-11-16 Thread Randolph
Changes in v3: - Change by suggestions in falcon.rst - Move the board-related code to arch-specific code, its the issue when enabling LOAD_FIT_OPENSBI_OS_BOOT - Add SPL_PAYLOAD_ARGS_ADDR to defconfig. This is the address that SPL copies into defconfig. Randolph (3): doc: falcon: riscv: Falc

[PATCH] riscv: andes: Fix enable register settings of PLICSW

2023-11-16 Thread Yu Chien Peter Lin
On 32-core platform, hart31 gets stuck at secondary_hart_loop as the corresponding enable bit is not set in enable_ipi(). We should program the next word (0x2f84) which is assigned as the enable register of hart31. It should be done in the same way when we invoke riscv_send_ipi() to trigger softwar

Re: [PATCH v5 2/3] arm: boot: Move the single quotes for image name

2023-11-16 Thread Masahiro Yamada
On Sat, Nov 11, 2023 at 9:29 AM Simon Glass wrote: > > Add quotes where UIMAGE_NAME is used, rather than where it is defined. > This allows the UIMAGE_NAME variable to be set by the user. > > Signed-off-by: Simon Glass > --- I applied this to linux-kbuild/fixes. I changed the subject to "kbuil

Re: [PATCH] bootstd: Avoid freeing a non-allocated buffer

2023-11-16 Thread Shantur Rathore
Hi Simon, Thanks for the patch. Ater this patch, booting off USB works fine over USB disk. Maybe you need the same flag for dhcp as well just after dhcp_run() here https://github.com/u-boot/u-boot/blob/master/boot/bootmeth_efi.c#L356 Kind regards, Shantur On Thu, Nov 16, 2023 at 1:35 AM Simon Gl

Re: [PATCH v1 2/2] imx: spl_imx_romapi: fix emmc fast boot mode case

2023-11-16 Thread Marcel Ziswiler
Hi Tom On Thu, 2023-11-02 at 08:09 +0100, Marcel Ziswiler wrote: > Hi Stefano > > On Thu, 2023-10-26 at 10:36 +0200, Stefano Babic wrote: > > On 26.10.23 10:29, Rasmus Villemoes wrote: > > > On 26/10/2023 09.32, Marcel Ziswiler wrote: > > > > From: Marcel Ziswiler > > > > > > > > This fixes a r

Re: [PATCH 1/1] risc-v: qemu: imply NVME_PCI

2023-11-16 Thread Mark Kettenis
> From: Heinrich Schuchardt > Date: Thu, 16 Nov 2023 11:22:51 +0100 > > CONFIG_NVME=y without CONFIG_NVME_PCI=y does not provide working NVMe > support. Instead of implying CONFIG_NVME we must imply CONFIG_NVME_PCI > which will select CONFIG_NVME. > > Fixes: e64db0d92e32 ("riscv: qemu: Enable e1

[PATCH 1/1] risc-v: qemu: imply NVME_PCI

2023-11-16 Thread Heinrich Schuchardt
CONFIG_NVME=y without CONFIG_NVME_PCI=y does not provide working NVMe support. Instead of implying CONFIG_NVME we must imply CONFIG_NVME_PCI which will select CONFIG_NVME. Fixes: e64db0d92e32 ("riscv: qemu: Enable e1000 and nvme support") Signed-off-by: Heinrich Schuchardt --- board/emulation/qe

[PATCH V2] riscv: binman: fix the load field format

2023-11-16 Thread Randolph
Using /bits/64 prefix for 64bits address Signed-off-by: Randolph --- arch/riscv/dts/binman.dtsi | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/arch/riscv/dts/binman.dtsi b/arch/riscv/dts/binman.dtsi index 6b4eb8dc7b..777b1309d0 100644 --- a/arch/riscv/dts/bin

Re: inconsistent wget behavior

2023-11-16 Thread Paul Liu
Hi Fabio, Yes. I'll look into this problem. Yours, Paul On Thu, 16 Nov 2023 at 08:34, Fabio Estevam wrote: > Hi Paul, > > On Wed, Nov 8, 2023 at 10:24 PM Fabio Estevam wrote: > > > I was not able to see a failure when using "tftp" to transfer the same > > 420MB file. > > > > The number of by

[PATCH 1/1] efi_loader: create memory reservations in ACPI case

2023-11-16 Thread Heinrich Schuchardt
ACPI tables cannot convey memory reservations for least ARM and RISC-V. x86 uses the BIOS E820 table for this purpose. We cannot simply ignore the device-tree when booting via ACPI. We have to assign EfiReservedMemory according to the prior stage device-tree ($fdtaddr) or as fallback the control de

Re: Error building PX30 Ringneck with WDT support

2023-11-16 Thread Stefan Roese
Hi Quentin, On 11/15/23 19:00, Quentin Schulz wrote: Hi all, I'm trying to add watchdog support to the PX30 Ringneck board but it fails to compile: """ diff --git a/configs/ringneck-px30_defconfig b/configs/ringneck-px30_defconfig index b314636b4d9..3dab0dab5d4 100644 --- a/configs/ringnec

[PATCH 1/1] doc: typo fdtaddr_addr_r

2023-11-16 Thread Heinrich Schuchardt
%s/fdtaddr_addr_r/fdt_addr_r/ Signed-off-by: Heinrich Schuchardt --- doc/develop/bootstd.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/develop/bootstd.rst b/doc/develop/bootstd.rst index 51cd573662..496e24bc7a 100644 --- a/doc/develop/bootstd.rst +++ b/doc/develop/b

  1   2   >