Re: [PATCH v3 6/6] arm: dts: k3-j721e: Sync with v6.6-rc1

2023-09-26 Thread Neha Malcom Francis
Hi Manorit On 27/09/23 09:45, Manorit Chawdhry wrote: Hi Neha, On 19:03-20230926, Neha Malcom Francis wrote: Hi Nishanth [..] diff --git a/arch/arm/dts/k3-j721e-r5-sk.dts b/arch/arm/dts/k3-j721e-r5-sk.dts index 1cc64d07f7..0274465fa4 100644 --- a/arch/arm/dts/k3-j721e-r5-sk.dts +++ b/arch

Re: [RFC PATCH v2 0/8] ATF and OP-TEE Firewalling for K3 devices.

2023-09-26 Thread Manorit Chawdhry
Hi Andrew, On 09:25-20230926, Andrew Davis wrote: > On 9/26/23 2:58 AM, Manorit Chawdhry wrote: > > K3 devices have firewalls that are used to prevent illegal accesses to > > memory regions that are deemed secure. The series prevents the illegal > > accesses to A

Re: [PATCH v3 6/6] arm: dts: k3-j721e: Sync with v6.6-rc1

2023-09-26 Thread Manorit Chawdhry
Hi Neha, On 19:03-20230926, Neha Malcom Francis wrote: > Hi Nishanth > [..] > > > diff --git a/arch/arm/dts/k3-j721e-r5-sk.dts > > > b/arch/arm/dts/k3-j721e-r5-sk.dts > > > index 1cc64d07f7..0274465fa4 100644 > > > --- a/arch/arm/dts/k3-j721e-r5-s

Re: [PATCH 2/3] net: bootp: BOOTP/DHCPv4 retransmission improvements

2023-09-26 Thread Lothar Waßmann
Hi, On Mon, 25 Sep 2023 13:29:34 -0700 seanedm...@linux.microsoft.com wrote: > From: Sean Edmond > > This patch introduces 3 improvements to align with RFC 951: > - retransmission backoff interval maximum is configurable > - initial retranmission backoff interval is configurable > - transaction

[PATCH v2 2/2] DONOTMERGE: arm: dts: k3-j7200-binman: Enable split mode for MCU R5

2023-09-26 Thread Neha Malcom Francis
Set boot core-opts to enable split mode for MCU R5 cluster by default. This patch serves to demonstrate how this can be done. Signed-off-by: Neha Malcom Francis --- arch/arm/dts/k3-j7200-binman.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/dts/k3-j7200-binman.dtsi

[PATCH v2 1/2] binman: openssl: x509: ti_secure_rom: Add support for bootcore_opts

2023-09-26 Thread Neha Malcom Francis
According to the TRMs of K3 platform of devices, the ROM boot image format specifies a "Core Options Field" that provides the capability to set the boot core in lockstep when set to 0 or to split mode when set to 2. Add support for providing the same from the binman DTS. Also modify existing test

[PATCH v2 0/2] Enable split mode in binman

2023-09-26 Thread Neha Malcom Francis
This series extends the functionality of ti-secure-rom entry type in binman to support enabling of split mode vs. the default lockstep mode via changing the field in the x509 certificate. A DONOTMERGE patch is added to give an example of how this can be done via the binman.dtsi Changes since v2:

Re: [PATCH 2/2] configs: rockchip: add DOS_PARTITION to RK3308 boards defconfig

2023-09-26 Thread Kever Yang
Hi Massimo,     This patch is fine to me, but you can merge these two patch into one, because they are all rk3308 boards.     And if you have more than one patch, it'd better to use --in-reply-to for follow up patches so that the mail system know this is a patch set and grab them

Re: [PATCH 7/7] configs: rockchip: Enable ethernet driver on RK3588 boards

2023-09-26 Thread Kever Yang
On 2023/8/7 08:08, Jonas Karlman wrote: Enable DWC_ETH_QOS_ROCKCHIP and related PHY driver on RK3588 boards that have an enabled gmac node and drop ETH_DESIGNWARE and GMAC_ROCKCHIP for remaining RK3588 boards. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang Thanks, - Kever ---

Re: [PATCH 6/7] configs: rockchip: Enable ethernet driver on RK356x boards

2023-09-26 Thread Kever Yang
On 2023/8/7 08:08, Jonas Karlman wrote: Enable DWC_ETH_QOS_ROCKCHIP and related PHY driver on RK356x boards that have an enabled gmac node. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang Thanks, - Kever --- configs/evb-rk3568_defconfig | 5 +++--

Re: [PATCH 5/7] net: dwc_eth_qos_rockchip: Add support for RK3588

2023-09-26 Thread Kever Yang
On 2023/8/7 08:08, Jonas Karlman wrote: Add rk_gmac_ops and other special handling that is needed for GMAC to work on RK3588. rk_gmac_ops was ported from linux commits: 2f2b60a0ec28 ("net: ethernet: stmmac: dwmac-rk: Add gmac support for rk3588") 88619e77b33d ("net: stmmac: rk3588: Allow

Re: [PATCH 4/7] net: dwc_eth_qos: Add glue driver for GMAC on Rockchip RK3568

2023-09-26 Thread Kever Yang
On 2023/8/7 08:08, Jonas Karlman wrote: Add a new glue driver for Rockchip SoCs, i.e RK3568, with a GMAC based on Synopsys DWC Ethernet QoS IP. rk_gmac_ops was ported from linux commit: 3bb3d6b1c195 ("net: stmmac: Add RK3566/RK3568 SoC support") Signed-off-by: Jonas Karlman Reviewed-by:

Re: [PATCH 3/7] net: dwc_eth_qos: Stop spam of RX packet not available message

2023-09-26 Thread Kever Yang
On 2023/8/7 08:08, Jonas Karlman wrote: Remove spam of RX packet not available debug messages when waiting to receive a packet. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang Thanks, - Kever --- drivers/net/dwc_eth_qos.c | 8 +++- 1 file changed, 3 insertions(+), 5

Re: [PATCH 2/7] net: dwc_eth_qos: Return error code when start fails

2023-09-26 Thread Kever Yang
On 2023/8/7 08:08, Jonas Karlman wrote: Return error code when phy_connect fails or no link can be established. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang Thanks, - Kever --- drivers/net/dwc_eth_qos.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

Re: [PATCH 1/7] net: dwc_eth_qos: Drop unused rx_pkt from eqos_priv

2023-09-26 Thread Kever Yang
On 2023/8/7 08:08, Jonas Karlman wrote: rx_pkt is allocated and not used for anything, remove it. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang Thanks, - Kever --- drivers/net/dwc_eth_qos.c | 11 --- drivers/net/dwc_eth_qos.h | 1 - 2 files changed, 12 deletions(-)

Re: [PATCH 2/2] rockchip: rk356x-u-boot: Add bootph-all to i2c0_xfer pinctrl node

2023-09-26 Thread Kever Yang
On 2023/8/4 05:02, Jonas Karlman wrote: A RK8XX PMIC is typically using i2c0 on RK356x devices. Add bootph-all to required pinctrl nodes to simplify use of the prevent booting on power plug-in option in SPL. With the following Kconfig options and nodes in u-boot.dtsi the prevent booting on

Re: [PATCH 2/2] rockchip: rk3568-nanopi-r5: Enable PCIe on NanoPi R5C and R5S

2023-09-26 Thread Kever Yang
On 2023/8/3 03:49, Jonas Karlman wrote: Enable missing PCIe Kconfig options now that PCIe bifurcation is fixed to make use of the two on-board RTL8125B and the M.2 slot on NanoPi R5C and NanoPi R5S. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang Thanks, - Kever ---

Re: [PATCH 1/2] rockchip: rk3568-nanopi-r5: Update defconfig for NanoPi R5C and R5S

2023-09-26 Thread Kever Yang
On 2023/8/3 03:49, Jonas Karlman wrote: Update and sync Kconfig options for NanoPi R5C and NanoPi R5S with other RK3568 boards. SPL_FIT_SIGNATURE is enabled to add a checksum validation of the FIT payload, also add LEGACY_IMAGE_FORMAT to keep boot scripts working. OF_SPL_REMOVE_PROPS,

Re: [PATCH v2 5/5] rockchip: board: Add minimal generic RK3566/RK3568 board

2023-09-26 Thread Kever Yang
On 2023/8/22 06:30, Jonas Karlman wrote: Add a minimal generic RK3566/RK3568 board that only have eMMC and SDMMC enabled. This defconfig can be used to boot from eMMC or SD-card on most RK3566/RK3568 boards that follow reference board design. Signed-off-by: Jonas Karlman Reviewed-by: Kever

Re: [PATCH v2 4/5] rockchip: Port IO-domain driver for RK3568 from linux

2023-09-26 Thread Kever Yang
On 2023/8/22 06:30, Jonas Karlman wrote: Port the Rockchip IO-domain driver for RK3568 from linux. The driver auto probe after bind to configure IO-domain based on the regulator voltage. Compared to the linux driver this driver is not notified about regulator voltage changes and only

Re: [PATCH v2 3/5] regulator: rk8xx: Return correct voltage for switchout converters

2023-09-26 Thread Kever Yang
On 2023/8/22 06:30, Jonas Karlman wrote: From: shengfei Xu The voltage value for switchout converters is always reported as 0 uV. When the switch is enabled, it's voltage is same as input supply. Fix this by implementing get_value for switchout converters. Fixes: ee30068fa574 ("power:

Re: [PATCH v2 2/5] regulator: rk8xx: Return correct voltage for buck converters

2023-09-26 Thread Kever Yang
On 2023/8/22 06:30, Jonas Karlman wrote: From: Joseph Chen Information from the first range group is always used to calculate the voltage returned for buck converters. This may result in wrong voltage reported back to the regulator_get_value caller. Traverse all the possible BUCK ranges to

Re: [PATCH v2 1/5] power: regulator: Only run autoset once for each regulator

2023-09-26 Thread Kever Yang
On 2023/8/22 06:30, Jonas Karlman wrote: With the commit 4fcba5d556b4 ("regulator: implement basic reference counter"), keeping regulator enablement in balance become more important. Calling regulator_autoset multiple times on a fixed regulator increase the enable count for each call,

Re: [PATCH v2 7/7] rockchip: rk3568-radxa-e25: Enable pcie3x1 node

2023-09-26 Thread Kever Yang
On 2023/8/3 03:04, Jonas Karlman wrote: Enable mini PCIe slot, pcie3x1 node, now that the PCIe PHY driver support bifurcation. A pinctrl is assigned for reset-gpios or the device may freeze running pci enum and nothing is connected to the mini PCIe slot. Also drop the AHCI_PCI Kconfig option

Re: [PATCH v2 6/7] phy: rockchip: naneng-combphy: Use signal from comb PHY on RK3588

2023-09-26 Thread Kever Yang
On 2023/8/3 03:04, Jonas Karlman wrote: Route signal from comb PHY instead of PCIe3 PHY to PCIe1l0 and PCIe1l1. Fixes use of pcie2x1l0 on ROCK 5B. Code imported from mainline linux driver. Fixes: c5b4a012bca8 ("phy: rockchip: naneng-combphy: Support rk3588") Signed-off-by: Jonas Karlman

Re: [PATCH v2 5/7] phy: rockchip: snps-pcie3: Add support for RK3588

2023-09-26 Thread Kever Yang
On 2023/8/3 03:04, Jonas Karlman wrote: Add support for the RK3588 variant to the driver. Code imported almost 1:1 from mainline linux driver. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang Thanks, - Kever --- v2: - No change .../phy/rockchip/phy-rockchip-snps-pcie3.c| 85

Re: [PATCH v2 4/7] phy: rockchip: snps-pcie3: Add bifurcation support for RK3568

2023-09-26 Thread Kever Yang
On 2023/8/3 03:04, Jonas Karlman wrote: Configure aggregation or bifurcation mode on RK3568 based on the value of data-lanes property. Code imported almost 1:1 from mainline linux driver. Fixes: 6ec62b6ca698 ("phy: rockchip: Add Rockchip Synopsys PCIe 3.0 PHY") Signed-off-by: Jonas Karlman

Re: [PATCH v2 3/7] phy: rockchip: snps-pcie3: Refactor to use a phy_init ops

2023-09-26 Thread Kever Yang
On 2023/8/3 03:04, Jonas Karlman wrote: Add a phy_init ops in preparation for upcoming support of a RK3588 variant in the driver. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang Thanks, - Kever --- v2: - No change .../phy/rockchip/phy-rockchip-snps-pcie3.c| 40

Re: [PATCH v2 2/7] phy: rockchip: snps-pcie3: Refactor to use clk_bulk API

2023-09-26 Thread Kever Yang
On 2023/8/3 03:04, Jonas Karlman wrote: Change to use clk_bulk API and syscon_regmap_lookup_by_phandle to simplify in preparation for upcoming support of a RK3588 variant. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang Thanks, - Kever --- v2: - No change

Re: [PATCH 1/1] riscv: enable CONFIG_DEBUG_UART by default

2023-09-26 Thread Leo Liang
Hi Heinrich, On Tue, Sep 26, 2023 at 10:38:48AM +0200, Heinrich Schuchardt wrote: > On 9/26/23 09:53, Leo Liang wrote: > > Hi Heinrich, > > > > On Sat, Sep 23, 2023 at 01:35:26AM +0200, Heinrich Schuchardt wrote: > > > Most boards don't enable the pre-console buffer. So we will not see any > > >

Re: [PATCH v2 1/7] pci: pcie_dw_rockchip: Configure number of lanes and link width speed

2023-09-26 Thread Kever Yang
On 2023/8/3 03:04, Jonas Karlman wrote: Set number of lanes and link width speed control register based on the num-lanes property. Code imported almost 1:1 from dw_pcie_setup in mainline linux. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang Thanks, - Kever --- v2: - No change

Re: [PATCH v5] board: rockchip: Add Bananapi R2Pro Board

2023-09-26 Thread Kever Yang
On 2023/9/21 02:40, Frank Wunderlich wrote: From: Frank Wunderlich Add Bananapi R2 Pro board. tested: - sdcard - both front usb-ports - sata - wan-port lan-ports are connected to mt7531 switch where driver needs to be separated from mtk ethernet-driver. Signed-off-by: Frank Wunderlich

Re: [PATCH v2 0/7] rockchip: rk3568: Fix use of PCIe bifurcation

2023-09-26 Thread Kever Yang
Hi Jonas,     Basically these patches are feature update and should be merge and send in next MW. I have question about PCIe bifurcation, does this also merged in linux kernel? I do check the status in kernel mailing list but forget to feedback with you, I didn't see the pcie node in

Re: [PATCH] mmc: Add SPL_MMC_PWRSEQ to fix link issue when building SPL

2023-09-26 Thread Kever Yang
On 2023/9/26 05:55, Jonas Karlman wrote: With MMC_PWRSEQ enabled the following link issue may happen when building SPL and SPL_PWRSEQ is not enabled. aarch64-linux-gnu-ld.bfd: drivers/mmc/meson_gx_mmc.o: in function `meson_mmc_probe': drivers/mmc/meson_gx_mmc.c:295: undefined reference

[PATCH v12] Boot var automatic management for removable medias

2023-09-26 Thread Masahisa Kojima
From: Raymond Mao Changes for complying to EFI spec §3.5.1.1 'Removable Media Boot Behavior'. Boot variables can be automatically generated during a removable media is probed. At the same time, unused boot variables will be detected and removed. Please note that currently the function

Re: [PATCH v11] Boot var automatic management for removable medias

2023-09-26 Thread Masahisa Kojima
Hi Ilias, On Wed, 27 Sept 2023 at 03:52, Ilias Apalodimas wrote: > > On Wed, 20 Sept 2023 at 11:41, Masahisa Kojima > wrote: > > > > From: Raymond Mao > > > > Changes for complying to EFI spec §3.5.1.1 > > 'Removable Media Boot Behavior'. > > Boot variables can be automatically generated

Re: [PATCH 09/15] blk: blkmap: Support mapping to device of any block size

2023-09-26 Thread Bin Meng
Hi Tobias, On Wed, Sep 27, 2023 at 3:29 AM Tobias Waldekranz wrote: > > On tis, sep 26, 2023 at 16:43, Bin Meng wrote: > > At present if a device to map has a block size other than 512, > > the blkmap map process just fails. There is no reason why we > > can't just use the block size of the

OF: fdt: Ignoring memory range 0x40000000 - 0x80000000

2023-09-26 Thread Mario Marietto
Hello. The project that I've been working on since 2 years is to enable KVM (with the support of libvirt and virt-manager) on a recent version of Linux and of its kernel on the old but still nice ARM Chromebook model xe303c12. My goal is to virtualize FreeBSD 13.2 for armV7. I've almost completed

Enable thumb on AT91?

2023-09-26 Thread Sean Anderson
Hi Eugen, I noticed that 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 git with older GCCs. I looked at the datasheet for that processor, and noticed that it has thumb support. Have you

[PATCH v7 2/2] schemas: Add some common reserved-memory usages

2023-09-26 Thread Simon Glass
It is common to split firmware into 'Platform Init', which does the initial hardware setup and a "Payload" which selects the OS to be booted. Thus an handover interface is required between these two pieces. Where UEFI boot-time services are not available, but UEFI firmware is present on either

[PATCH v7 1/2] schemas: memory: Add ECC properties

2023-09-26 Thread Simon Glass
Some memories provide ECC detection and/or correction. For software which wants to check memory, it is helpful to see which regions provide this feature. Add this as a property of the /memory nodes, since it presumably follows the hardware-level memory system. Signed-off-by: Simon Glass ---

Re: bootstd: Scanning for USB bootflow will remove existing SCSI bootflow

2023-09-26 Thread Tony Dinh
Hi Simon, On Tue, Sep 26, 2023 at 4:37 AM Simon Glass wrote: > > Hi Tony, > > On Mon, 25 Sept 2023 at 14:02, Tony Dinh wrote: > > > > Hi Simon, > > > > Here is an observation during testing the bootflow command. > > > > If there is a SCSI bootflow, scanning for USB bootflow will remove that >

Re: [PATCH 09/15] blk: blkmap: Support mapping to device of any block size

2023-09-26 Thread Tobias Waldekranz
On tis, sep 26, 2023 at 16:43, Bin Meng wrote: > At present if a device to map has a block size other than 512, > the blkmap map process just fails. There is no reason why we > can't just use the block size of the mapped device. Won't this be very confusing to the user? The blkmap device uses a

Re: Trying to boot custom kernel on Wink Hub (i.MX28)

2023-09-26 Thread Rogan Dawes
WARNING: unmet direct dependencies detected for PL01X_SERIAL Depends on [n]: SERIAL [=y] && DM_SERIAL [=n] Selected by [y]: - TARGET_IMX28WINKHUB [=y] && WARNING: unmet direct dependencies detected for PL01X_SERIAL Depends on [n]: SERIAL [=y] && DM_SERIAL [=n] Selected by [y]: -

Re: [PATCH v11] Boot var automatic management for removable medias

2023-09-26 Thread Ilias Apalodimas
On Wed, 20 Sept 2023 at 11:41, Masahisa Kojima wrote: > > From: Raymond Mao > > Changes for complying to EFI spec §3.5.1.1 > 'Removable Media Boot Behavior'. > Boot variables can be automatically generated during a removable > media is probed. At the same time, unused boot variables will be >

Re: [PATCH v4 13/44] spl: Use SYS_MALLOC_F instead of SYS_MALLOC_F_LEN

2023-09-26 Thread Sean Anderson
On 9/26/23 10:14, Simon Glass wrote: > Use the new SPL/TPL/VPL_SYS_MALLOC_F symbols to determine whether the > malloc pool exists. > > Signed-off-by: Simon Glass > --- > > (no changes since v3) > > Changes in v3: > - Add new patch to use SYS_MALLOC_F instead of SYS_MALLOC_F_LEN > > Kconfig

Re: [PATCH] dt-bindings: mtd: Add a schema for binman

2023-09-26 Thread Rob Herring
On Tue, Sep 26, 2023 at 2:48 AM Miquel Raynal wrote: > > Hello, > > > > > > > These are firmware bindings, as indicated, but I > > > > > > took them out of the /firmware node since that is for a different > > > > > > purpose. Rob suggested that partitions was a good place. We have > > > > > >

Re: Trying to boot custom kernel on Wink Hub (i.MX28)

2023-09-26 Thread Fabio Estevam
Hi Rogan, On Tue, Sep 26, 2023 at 1:01 AM Rogan Dawes wrote: > > Hi Fabio, > > That prints "LLC", but does not print "Pref". What happens if you unselect DM_SERIAL like this: --- a/configs/imx28-wink-hub_defconfig +++ b/configs/imx28-wink-hub_defconfig @@ -58,4 +58,3 @@ CONFIG_DM_REGULATOR=y

Re: [PATCH 0/3] BOOTP/DHCPv4 enhancements

2023-09-26 Thread Peter Robinson
Hi Sean, > In our datacenter application, a single DHCP server is servicing 36000+ > clients. > Improvements are required to the DHCPv4 retransmission behavior to align with > RFC and ensure less pressure is exerted on the server: > - retransmission backoff interval maximum is configurable >

[PATCH v2 3/3] board: Add support for Conclusive KSTR-SAMA5D27

2023-09-26 Thread Artur Rojek
Introduce support for Conclusive KSTR-SAMA5D27 Single Board Computer. Co-developed-by: Jakub Klama Signed-off-by: Jakub Klama Co-developed-by: Marcin Jabrzyk Signed-off-by: Marcin Jabrzyk Signed-off-by: Artur Rojek --- v2: - remove redundant license text from at91-kstr-sama5d27.dts -

[PATCH v2 2/3] arm: dts: at91: sama5: Add flexcom4 node

2023-09-26 Thread Artur Rojek
Set up flexcom4 for Microchip SAMA5D27 SoC and prepare it for usage in I2C mode. Signed-off-by: Artur Rojek --- v2: new patch arch/arm/dts/sama5d2.dtsi | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm/dts/sama5d2.dtsi b/arch/arm/dts/sama5d2.dtsi index

[PATCH v2 1/3] common: add prototype & rename populate_serial_number()

2023-09-26 Thread Artur Rojek
Rename populate_serial_number() to a more descriptive eeprom_read_serial() and provide the missing function prototype. This is useful for boards that wish to read their serial number from EEPROM at init. Signed-off-by: Artur Rojek --- v2: - rename the function - move function documentation

[PATCH v2 0/3] Conclusive KSTR-SAMA5D27 support

2023-09-26 Thread Artur Rojek
Hi all, this is v2 of the Conclusive KSTR-SAMA5D27 support series. Patch [1/3] now also renames the EEPROM serial number function and moves its documentation from .c file to the .h. We should be fine doing that, as - to my knowledge - no other part of U-Boot seems to be using this symbol, as

Re: [PATCH] test/py: sleep: Add a test for the time command

2023-09-26 Thread Tom Rini
On Tue, Sep 26, 2023 at 05:08:35PM +0530, Love Kumar wrote: > Execute "time ", and validate that it gives the approximately > the correct amount of command execution time. > > Signed-off-by: Love Kumar > --- > test/py/tests/test_sleep.py | 20 > 1 file changed, 20

[PATCH v1 6/6] board: st: common: cleanup dfu support

2023-09-26 Thread Patrice Chotard
From: Patrick Delaunay split the file stm32mp_dfu.c in two files to simplify the Makefile - stm32mp_dfu.c: required by CONFIG_SET_DFU_ALT_INFO - stm32mp_dfu_virt.c: required by CONFIG_DFU_VIRT for stm32prog command or VIRT device for PMIC for CONFIG_SET_DFU_ALT_INFO. This patch also remove

[PATCH v1 5/6] configs: stm32mp13: add support of usb boot

2023-09-26 Thread Patrice Chotard
From: Patrick Delaunay Add support of USB key boot in distro boot command. Signed-off-by: Patrick Delaunay Signed-off-by: Patrice Chotard --- include/configs/stm32mp13_common.h | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/include/configs/stm32mp13_common.h

[PATCH v1 1/6] ARM: dts: stm32mp: alignment with v6.6-rc1

2023-09-26 Thread Patrice Chotard
Device tree alignment with Linux kernel v6.6.rc1. Signed-off-by: Patrice Chotard --- arch/arm/dts/stm32mp131.dtsi | 52 +-- arch/arm/dts/stm32mp135f-dk.dts | 68 ++-- arch/arm/dts/stm32mp15-pinctrl.dtsi | 364 +-

[PATCH v1 4/6] configs: stm32mp13: activate command stm32prog

2023-09-26 Thread Patrice Chotard
From: Patrick Delaunay Activate the command stm32prog with CONFIG_CMD_STM32MPROG. The CONFIG_SET_DFU_ALT_INFO is also activated to support the required weak functions for the DFU virtual backen defined in board/st/common/stm32mp_dfu.c. Signed-off-by: Patrick Delaunay Signed-off-by: Patrice

[PATCH v1 3/6] configs: stm32mp13: Enable USB related flags

2023-09-26 Thread Patrice Chotard
Enable USB related flags. Signed-off-by: Patrice Chotard --- configs/stm32mp13_defconfig | 18 ++ 1 file changed, 18 insertions(+) diff --git a/configs/stm32mp13_defconfig b/configs/stm32mp13_defconfig index 82b62744f6d..f962d0eab97 100644 --- a/configs/stm32mp13_defconfig +++

[PATCH v1 2/6] ARM: dts: stm32: force b-session-valid for otg on stm32mp135f-dk board

2023-09-26 Thread Patrice Chotard
From: Fabrice Gasnier stm32mp135f-dk board has a type-c connector to retrieve the connection state. For now, simply force an active peripheral mode in u-boot for flashing. Signed-off-by: Fabrice Gasnier Signed-off-by: Patrice Chotard --- arch/arm/dts/stm32mp135f-dk-u-boot.dtsi | 4 1

[PATCH v1 0/6] stm32mp: DT and config update

2023-09-26 Thread Patrice Chotard
DT synchronization with kernel v6.6-rc1 for stm32mp Enable USB support for stm32mp13 Enable command stm32prog for stm32mp13 Enable USB boot support for stm32mp13 Force b-session-valid for otg on stm32mp135f-dk board Cleanup dfu support for stm32mp Fabrice Gasnier (1): ARM: dts: stm32: force

Re: [PATCH v4 05/44] spl: mx6: powerpc: Drop the condition on timer_init()

2023-09-26 Thread Christophe Leroy
Le 26/09/2023 à 16:14, Simon Glass a écrit : > It doesn't make sense to have some boards do this differently. Drop the > condition in the hope that the maintainers can figure out any run-time > problems. > > This has been tested on qemu-ppce500 > This was added by commit ea8256f072 ("SPL:

Re: [RFC PATCH v2 0/8] ATF and OP-TEE Firewalling for K3 devices.

2023-09-26 Thread Andrew Davis
On 9/26/23 2:58 AM, Manorit Chawdhry wrote: K3 devices have firewalls that are used to prevent illegal accesses to memory regions that are deemed secure. The series prevents the illegal accesses to ATF and OP-TEE regions that are present in different K3 devices. AM62AX and AM64X are currently

Re: [PATCHv10 01/15] submodule: add lwIP as git submodule

2023-09-26 Thread Tom Rini
On Tue, Sep 26, 2023 at 08:16:35AM -0600, Simon Glass wrote: > Hi Tom, > > On Tue, 26 Sept 2023 at 07:41, Tom Rini wrote: > > > > On Tue, Sep 26, 2023 at 05:37:25AM -0600, Simon Glass wrote: > > > Hi Maxim, > > > > > > On Tue, 26 Sept 2023 at 03:43, Maxim Uvarov > > > wrote: > > > > > > > >

Re: [PATCH v2 2/2] test: lmb: Add test for coalescing and overlap range

2023-09-26 Thread Simon Glass
On Tue, 26 Sept 2023 at 05:25, Udit Kumar wrote: > > Add test case for an address range which is coalescing with one of > range and overlapping with next range > > Cc: Simon Glass > Signed-off-by: Udit Kumar > --- > test/lib/lmb.c | 13 - > 1 file changed, 12 insertions(+), 1

Re: [PATCHv10 01/15] submodule: add lwIP as git submodule

2023-09-26 Thread Simon Glass
Hi Tom, On Tue, 26 Sept 2023 at 07:41, Tom Rini wrote: > > On Tue, Sep 26, 2023 at 05:37:25AM -0600, Simon Glass wrote: > > Hi Maxim, > > > > On Tue, 26 Sept 2023 at 03:43, Maxim Uvarov wrote: > > > > > > add external lwIP library as a git submodule. > > > Use STABLE-2_2_0_RELEASE tag. > > > >

[PATCH v4 41/44] spl: Add C-based runtime detection of SPL

2023-09-26 Thread Simon Glass
The spl_phase() function indicates whether U-Boot is in SPL and before or after relocation. But sometimes it is useful to check for SPL with zero code-size impact. Since spl_phase() checks the global_data flags, it does add a few bytes. Add a new spl_in_proper() function to check if U-Boot proper

[PATCH v4 44/44] pci: serial: Support reading PCI-register size with base

2023-09-26 Thread Simon Glass
The PCI helpers read only the base address for a PCI region. In some cases the size is needed as well, e.g. to pass along to a driver which needs to know the size of its register area. Update the functions to allow the size to be returned. For serial, record the information and provided it with

[PATCH v4 35/44] sandbox: Only read the state if we have a state file

2023-09-26 Thread Simon Glass
We should not read this unless requested. Make it conditional on the option being provided. Add some debugging to show the state being written. Signed-off-by: Simon Glass --- (no changes since v1) arch/sandbox/cpu/start.c | 8 +--- arch/sandbox/cpu/state.c | 1 + 2 files changed, 6

[PATCH v4 43/44] dm: core: Tweak device_is_on_pci_bus() for code size

2023-09-26 Thread Simon Glass
This function cannot return true if PCI is not enabled, since no PCI devices will have been bound. Add a check for this to reduce code size where it is used. Signed-off-by: Simon Glass --- Changes in v4: - Add new patch to tweak device_is_on_pci_bus() for code size include/dm/device.h | 3 ++-

[PATCH v4 42/44] serial: Drop ns16550 serial_getinfo() in SPL

2023-09-26 Thread Simon Glass
This is typically not needed in SPL/TPL and increases the code size. Drop it. Signed-off-by: Simon Glass --- Changes in v4: - Add new patch to drop ns16550 serial_getinfo() in SPL drivers/serial/ns16550.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/serial/ns16550.c

[PATCH v4 39/44] fdt: Allow the devicetree to come from a bloblist

2023-09-26 Thread Simon Glass
Standard passage provides for a bloblist to be passed from one firmware phase to the next. That can be used to pass the devicetree along as well. Add an option to support this. Tests for this will be added as part of the Universal Payload work. Signed-off-by: Simon Glass --- Changes in v4: -

[PATCH v4 40/44] command: Include a required header in command.h

2023-09-26 Thread Simon Glass
This uses ARRAY_SIZE() but does not include the header file which declares it. Fix this, so that command.h can be included without common.h Signed-off-by: Simon Glass --- (no changes since v1) include/command.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/command.h

[PATCH v4 38/44] bloblist: Add missing name

2023-09-26 Thread Simon Glass
Add a missing bloblist name. Signed-off-by: Simon Glass --- Changes in v4: - Split all new bloblist names into a separate patch common/bloblist.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common/bloblist.c b/common/bloblist.c index 6f2a4577708d..a22f6c12b0c7 100644 ---

[PATCH v4 37/44] bloblist: Support initing from multiple places

2023-09-26 Thread Simon Glass
Typically the bloblist is set up after the devicetree is present. This makes sense because bloblist may use malloc() to allocate the space it needs. However sometimes the devicetree itself may be present in the bloblist. In that case it is at a known location in memory so we can init the bloblist

[PATCH v4 36/44] sandbox: Move the bloblist down a little in memory

2023-09-26 Thread Simon Glass
Move this down by 4KB so that it is large enough to hold the devicetree. Also fix up the devicetree address in the documetation while we are here. Signed-off-by: Simon Glass --- (no changes since v1) common/Kconfig | 2 +- doc/arch/sandbox/sandbox.rst | 4 ++--

[PATCH v4 34/44] sandbox: Init the EC properly even if no state file is available

2023-09-26 Thread Simon Glass
This currently relies on sandbox attempting to read a state file. At present it always does, even when there is no state file, in which case it fails, but still inits the EC. That is a bug, so update this driver to set the current image always, even if no state is read. Signed-off-by: Simon

[PATCH v4 33/44] sandbox: Move reading the RAM buffer into a better place

2023-09-26 Thread Simon Glass
This should not happen in the argument-parsing function. Move it to the main program. Add some debugging for reading/writing. Signed-off-by: Simon Glass --- (no changes since v1) arch/sandbox/cpu/start.c | 19 +++ arch/sandbox/cpu/state.c | 1 + 2 files changed, 12

[PATCH v4 32/44] dm: core: Add tests for oftree_path()

2023-09-26 Thread Simon Glass
Add a few simple tests for getting the root node, since this is handled as a special case in the implementation. Signed-off-by: Simon Glass --- (no changes since v1) test/dm/ofnode.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/test/dm/ofnode.c b/test/dm/ofnode.c index

[PATCH v4 31/44] dm: core: Support writing a 64-bit value

2023-09-26 Thread Simon Glass
Add support for writing a single 64-bit value into a property. Repurpose the existing tests to handle this case too. Signed-off-by: Simon Glass --- (no changes since v1) drivers/core/ofnode.c | 17 - include/dm/ofnode.h | 10 ++ test/dm/ofnode.c | 15

[PATCH v4 30/44] dm: core: Support writing a boolean

2023-09-26 Thread Simon Glass
Add functions to write a boolean property. This involves deleting it if the value is false. Add a new ofnode_has_property() as well. Add a comment about the behaviour of of_read_property() when the property value is empty. Signed-off-by: Simon Glass --- (no changes since v1)

[PATCH v4 29/44] dm: core: Add a way to convert a devicetree to a dtb

2023-09-26 Thread Simon Glass
Add a way to flatten a devicetree into binary form. For livetree this involves generating the devicetree using fdt_property() and other calls. For flattree it simply involves providing the buffer containing the tree. Signed-off-by: Simon Glass --- (no changes since v1) drivers/core/ofnode.c |

[PATCH v4 28/44] dm: core: Add a way to delete a node

2023-09-26 Thread Simon Glass
Add a function to delete a node in an existing tree. Signed-off-by: Simon Glass --- (no changes since v1) drivers/core/of_access.c | 65 drivers/core/ofnode.c| 23 ++ include/dm/of_access.h | 18 +++ include/dm/ofnode.h |

[PATCH v4 27/44] dm: core: Add a way to copy a node

2023-09-26 Thread Simon Glass
Add a function to copy a node to another place under a new name. This is useful at least for testing, since copying a test node with existing properties is easier than writing the code to generate it all afresh. Signed-off-by: Simon Glass --- (no changes since v1) drivers/core/ofnode.c | 20

[PATCH v4 26/44] dm: core: Add a function to create an empty tree

2023-09-26 Thread Simon Glass
Provide a function to create a new, empty tree. Signed-off-by: Simon Glass --- (no changes since v1) drivers/core/ofnode.c | 56 +++ include/dm/ofnode.h | 9 +++ include/of_live.h | 8 +++ lib/of_live.c | 19 +++

[PATCH v4 25/44] dm: core: Tidy up comments in the ofnode tests

2023-09-26 Thread Simon Glass
Add comments to the functions where the test name does not indicate what is being tested. Rename functions in a few cases, so that a search for the function will also file its test. Signed-off-by: Simon Glass --- (no changes since v1) test/dm/ofnode.c | 46

[PATCH v4 24/44] dm: core: Ensure we run flattree tests on ofnode

2023-09-26 Thread Simon Glass
We need the UT_TESTF_SCAN_FDT flag set for these tests to run with flat tree. In some cases it is missing, so add it. Signed-off-by: Simon Glass --- (no changes since v1) test/dm/ofnode.c | 33 ++--- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git

[PATCH v4 23/44] dm: core: Reverse the argument order in ofnode_copy_props()

2023-09-26 Thread Simon Glass
Follow the order used by memcpy() as it may be less confusing. Signed-off-by: Simon Glass --- (no changes since v1) boot/vbe_request.c| 2 +- boot/vbe_simple_os.c | 2 +- drivers/core/ofnode.c | 2 +- include/dm/ofnode.h | 6 +++--- test/dm/ofnode.c | 9 - 5 files changed,

[PATCH v4 21/44] spl: Use the correct FIT_..._PROP constants

2023-09-26 Thread Simon Glass
Rather than open-coding the property names, use the existing constants provided for this purpose. This better aligns the simple-FIT code with the full FIT implementation. Signed-off-by: Simon Glass --- (no changes since v1) common/spl/spl_fit.c | 11 ++- 1 file changed, 6

[PATCH v4 22/44] spl: Move bloblist writing until the image is known

2023-09-26 Thread Simon Glass
The bloblist should not be finalised until the image is fully set up. This allows any final handoff information to be included in the bloblist. Signed-off-by: Simon Glass --- (no changes since v1) common/spl/spl.c | 24 1 file changed, 12 insertions(+), 12

[PATCH v4 20/44] spl: Move the full FIT code to spl_fit.c

2023-09-26 Thread Simon Glass
For some reason this code was put in the main spl.c file. Move it out to the FIT implementation where it belongs. Signed-off-by: Simon Glass --- (no changes since v1) common/spl/spl.c | 108 +++ common/spl/spl_fit.c | 93

[PATCH v4 19/44] spl: Rename spl_load_fit_image() to load_simple_fit()

2023-09-26 Thread Simon Glass
We have two functions called spl_load_fit_image(), one in spl.c and one in spl_fit.c Rename the second one, to indicate that it relates to simple FIT parsing, rather than the full version. Signed-off-by: Simon Glass --- (no changes since v1) common/spl/spl_fit.c | 21 ++--- 1

[PATCH v4 18/44] spl: Remove #ifdefs with BOOTSTAGE

2023-09-26 Thread Simon Glass
This feature has some helpers in its header file so that its functions resolve to nothing when the feature is disabled. Add a few more and use these to simplify the code. With this there are no more #ifdefs in board_init_r() Signed-off-by: Simon Glass --- Changes in v4: - Take account of

[PATCH v4 17/44] spl: Avoid an #ifdef when printing gd->malloc_ptr

2023-09-26 Thread Simon Glass
Use an accessor in the header file to avoid this. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Rebase on the new patch Changes in v2: - Use the same condition for both pieces to avoid possible problems common/spl/spl.c | 9 +

[PATCH v4 16/44] dm: core: Correct help in TPL_DM and VPL_DM

2023-09-26 Thread Simon Glass
There are copying errors in the help. Fix these. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Add new patch to correct help in TPL_DM and VPL_DM drivers/core/Kconfig | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/core/Kconfig

[PATCH v4 15/44] doc: Clean up SYS_MALLOC_SIMPLE

2023-09-26 Thread Simon Glass
Move the useful help to Kconfig. Drop mention of CONFIG_SYS_MALLOC_SIMPLE since it doesn't exist. Correct a 'CONFIGSYS_MALLOC_F_LEN' typo Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Add new patch to clean up SYS_MALLOC_SIMPLE documentation Kconfig

[PATCH v4 14/44] Tidy up uses of CONFIG_SYS_MALLOC_F_LEN

2023-09-26 Thread Simon Glass
Use CONFIG_SYS_MALLOC_F instead to of CONFIG_SYS_MALLOC_F_LEN to determine whether pre-relocation malloc() is enabled. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Add new patch to tidy up uses of CONFIG_SYS_MALLOC_F_LEN Makefile | 2 +- 1 file changed, 1

[PATCH v4 13/44] spl: Use SYS_MALLOC_F instead of SYS_MALLOC_F_LEN

2023-09-26 Thread Simon Glass
Use the new SPL/TPL/VPL_SYS_MALLOC_F symbols to determine whether the malloc pool exists. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Add new patch to use SYS_MALLOC_F instead of SYS_MALLOC_F_LEN Kconfig | 9 -

[PATCH v4 12/44] tpl: Enable CONFIG_TPL_SYS_MALLOC_F where needed

2023-09-26 Thread Simon Glass
Enable CONFIG_TPL_SYS_MALLOC_F for boards which have a non-zero value for CONFIG_TPL_SYS_MALLOC_F_LEN Note that the default is yes in most cases, so no changes are needed to board defconfig options. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Add new patch to nable

[PATCH v4 11/44] spl: Enable CONFIG_SPL_SYS_MALLOC_F where needed

2023-09-26 Thread Simon Glass
Enable CONFIG_SPL_SYS_MALLOC_F for boards which have a non-zero value for CONFIG_SPL_SYS_MALLOC_F_LEN Note that the default is yes in most cases, so no changes are needed to board defconfig options. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Add new patch to enable

  1   2   3   >