[PATCH] arm: socfpga: stratix10: SPI clock support

2023-12-06 Thread dinesh . maniyam
From: Dinesh Maniyam This patch is to add SPI clock support for stratix10. Get clock rate function always returning 0 because the DW-SPI driver get the rate from clock node in dts but Stratix10 does not support device tree clock node.To overcome this spi will get the clock_rate directly from spi

Re: [PATCH v6 4/8] binman: j721e: Add firewall configurations

2023-12-06 Thread Manorit Chawdhry
Hi Andrew, On 10:23-20231206, Andrew Davis wrote: > On 12/6/23 3:51 AM, Manorit Chawdhry wrote: > > The following commits adds the configuration of firewalls required to > > protect ATF and OP-TEE memory region from non-secure reads and > > writes using master and slave fir

Re: [PATCH v6 03/17] arm: mach-k3: Add basic support for J784S4 SoC definition

2023-12-06 Thread Neha Malcom Francis
Hi Apurva, On 06/12/23 18:07, Apurva Nandan wrote: Add J784S4 initialization files for initial SPL boot. Signed-off-by: Hari Nagalla [ add firewall configurations and change the R5 MCU scratchpad ] Signed-off-by: Manorit Chawdhry Signed-off-by: Dasnavis Sabiya Signed-off-by: Apurva Nandan

Re: [PATCH v2 2/2] arm: dts: k3-j7200-r5-common-proc-board: Set parent clock for clock ID 323

2023-12-06 Thread Kumar, Udit
On 12/7/2023 2:47 AM, Reid Tonking wrote: Previously, dynamic frequency scaling supported rates only through fixed divison. This virtual clock mux configuration enables more varied rates on A72 clock ID 202 by setting up the required register. Signed-off-by: Apurva Nandan Signed-off-by:

Re: [PATCH v2 1/2] arm: mach-k3: j72xx: add new 'virtual' mux

2023-12-06 Thread Kumar, Udit
On 12/7/2023 2:47 AM, Reid Tonking wrote: From: Bryan Brattlof In order for the Cortex-A72s to operate at different frequencies other than the default 2GHz, add in a new 'virtual' mux (a mux that does not physically exist in the clock tree) that can be selected. CC: Vishal Mahaveer

[PATCH v2 1/2] arm: mach-k3: j72xx: add new 'virtual' mux

2023-12-06 Thread Reid Tonking
From: Bryan Brattlof In order for the Cortex-A72s to operate at different frequencies other than the default 2GHz, add in a new 'virtual' mux (a mux that does not physically exist in the clock tree) that can be selected. CC: Vishal Mahaveer Signed-off-by: Bryan Brattlof Signed-off-by: Apurva

[PATCH v2 2/2] arm: dts: k3-j7200-r5-common-proc-board: Set parent clock for clock ID 323

2023-12-06 Thread Reid Tonking
Previously, dynamic frequency scaling supported rates only through fixed divison. This virtual clock mux configuration enables more varied rates on A72 clock ID 202 by setting up the required register. Signed-off-by: Apurva Nandan Signed-off-by: Reid Tonking ---

[PATCH v2 0/2] Fix J7200 kernel boot when using upstream u-boot

2023-12-06 Thread Reid Tonking
Since the 09.01.00.002 release of ti-linux-firmware [0] upstream uboot has led to the kernel hanging during boot [1] for the TI J7200 S0C. The issue was found to be a few patches that had be added to ti-u-boot, but not yet upstreamed. This series adds the missing two patches to allow upstream

Re: [PATCH 00/21] Qualcomm generic board support

2023-12-06 Thread Rob Herring
On Tue, Dec 5, 2023 at 11:05 PM Sumit Garg wrote: > > On Tue, 5 Dec 2023 at 15:39, Krzysztof Kozlowski > wrote: > > > > On 05/12/2023 10:45, Sumit Garg wrote: > > > + U-boot custodians list > > > > > > On Tue, 5 Dec 2023 at 12:58, Krzysztof Kozlowski > > > wrote: > > >> > > >> On 05/12/2023

Re: [PATCH v2 15/18] fdt: Allow the devicetree to come from a bloblist

2023-12-06 Thread Raymond Mao
Hi Simon, > The other thing missing here is SPL. The bloblist is designed such > that it can be set up in any phase of U-Boot, then is passed to > following phases. So using IS_ENABLED(BLOBLIST) doesn't do what we > need. As I noted, it breaks sandbox_spl. What happens if a board wants > to use

Re: [PATCH v2 02/18] bloblist: Adjust API to align in powers of 2

2023-12-06 Thread Raymond Mao
Hi Simon, I am wondering if I shall put in your review tag as you are one of the authors of many patches... What is the best approach under this situation in the U-Boot community? Thanks and regards, Raymond On Sat, 2 Dec 2023 at 13:33, Simon Glass wrote: > On Mon, 27 Nov 2023 at 12:52,

Re: [PATCH 1/2] arm: mach-k3: j72xx: add new 'virtual' mux

2023-12-06 Thread reidt
On 09:47-20231205, Kumar, Udit wrote: > > On 12/2/2023 3:03 AM, Reid Tonking wrote: > > From: Bryan Brattlof > > > > In order for the Cortex-A72s to operate at different frequencies other > > than the default 2GHz, add in a new 'virtual' mux (a mux that does not > > physically exist in the

[PATCH v2 2/2] sunxi: reorganize mctl_mem_matches_* functions

2023-12-06 Thread Andrey Skvortsov
mctl_mem_matches and mctl_mem_matches_base identical functions. To avoid code duplication move them to dram_helpers and make mctl_mem_matches use generic mctl_mem_matches_base. Signed-off-by: Andrey Skvortsov --- arch/arm/include/asm/arch-sunxi/dram.h | 1 + arch/arm/mach-sunxi/dram_helpers.c

[PATCH v2 1/2] sunxi: restore modified memory

2023-12-06 Thread Andrey Skvortsov
On A64 with 2G of RAM words at following addresses were modified with 'aa55aa55' value: - 5000 - 6000 - 8400 - 8800 - 9000 - A000 - A200 That made harder to pick memory range for persistent storage in RAM. Signed-off-by: Andrey Skvortsov ---

[PATCH v2 0/2] sunxi: restore modified memory

2023-12-06 Thread Andrey Skvortsov
Changes in v2: - rename temporary variables - fix types for temporary variables Andrey Skvortsov (2): sunxi: restore modified memory sunxi: reorganize mctl_mem_matches_* functions arch/arm/include/asm/arch-sunxi/dram.h | 1 + arch/arm/mach-sunxi/dram_helpers.c | 32

Re: [PATCH] sunxi: restore modified memory

2023-12-06 Thread Andrey Skvortsov
Hi Andre, On 23-11-01 09:50, Andre Przywara wrote: > On Fri, 21 Jul 2023 17:57:21 +0300 > Andrey Skvortsov wrote: > > Hi Andrey, > > sorry for the late reply! > > > On A64 with 2G of RAM words at following addresses were modified with > > 'aa55aa55' value: > > - 5000 > > - 6000 > >

Re: [PATCH v2 01/18] bloblist: Update the tag numbering

2023-12-06 Thread Raymond Mao
Hi Ilias, I will add both TPM_EVLOG and TPM_CRB_BASE. Regards, Raymond On Wed, 6 Dec 2023 at 05:54, Ilias Apalodimas wrote: > On Mon, 4 Dec 2023 at 20:55, Raymond Mao wrote: > > > > Hi Ilias, > > > > What is the difference between the new added XFERLIST_EVLOG and the > existing

Re: [PATCH v2 1/3] mtd: spi-nor: Add support for zBIT ZB25VQ128

2023-12-06 Thread Dragan Simic
Hello Andre, On 2023-12-06 17:24, Andre Przywara wrote: On Mon, 4 Dec 2023 00:59:52 + Andre Przywara wrote: Add support for the zBIT ZB25VQ128 (128M-bit) SPI NOR flash memory chip, as used on the Xunlong Orange Pi Zero 3 board. does anyone have any objections against this patch? I

Re: [PATCH v6 8/8] docs: k3: Add secure booting documentation

2023-12-06 Thread Andrew Davis
On 12/6/23 3:51 AM, Manorit Chawdhry wrote: This commit adds a general flow to explain the usage of firewalls and the chain of trust in K3 devices. Signed-off-by: Manorit Chawdhry --- doc/board/ti/k3.rst | 45 + 1 file changed, 45 insertions(+)

Re: [PATCH v2 1/3] mtd: spi-nor: Add support for zBIT ZB25VQ128

2023-12-06 Thread Andre Przywara
On Mon, 4 Dec 2023 00:59:52 + Andre Przywara wrote: Hi, > Add support for the zBIT ZB25VQ128 (128M-bit) SPI NOR flash memory chip, > as used on the Xunlong Orange Pi Zero 3 board. does anyone have any objections against this patch? I wanted to take this via the sunxi tree, as this blocks

Re: [PATCH v6 4/8] binman: j721e: Add firewall configurations

2023-12-06 Thread Andrew Davis
On 12/6/23 3:51 AM, Manorit Chawdhry wrote: The following commits adds the configuration of firewalls required to protect ATF and OP-TEE memory region from non-secure reads and writes using master and slave firewalls present in our K3 SOCs. Signed-off-by: Manorit Chawdhry ---

Re: [PATCH 2/2 v2] smbios: Fallback to the default DT if sysinfo nodes are missing

2023-12-06 Thread Ilias Apalodimas
Hi Simon, On Sat, 2 Dec 2023 at 20:28, Simon Glass wrote: > > Hi Ilias, > > On Wed, 29 Nov 2023 at 23:50, Ilias Apalodimas > wrote: > > > > Hi Simon, > > > > [...] > > > >> > Changes since v1: > >> > - Tokenize the DT node entry and use the appropriate value instead of > >> > the entire

Re: [PATCH] board: rockchip: add Powkiddy X55

2023-12-06 Thread Chris Morgan
On Tue, Dec 05, 2023 at 11:48:26PM +0100, Jonas Karlman wrote: > Hi Chris, > > On 2023-12-05 22:39, Chris Morgan wrote: > > From: Chris Morgan > > > > The Powkiddy X55 is a Rockchip RK3566 based handheld gaming device. > > UART, ADC, eMMC, and SDMMC are tested to work. > > > > Signed-off-by:

Re: [PATCH 0/7] spi-nor: Add parallel and stacked memories support

2023-12-06 Thread Jagan Teki
On Wed, Dec 6, 2023 at 7:12 PM Michal Simek wrote: > > > > On 12/6/23 14:28, Jagan Teki wrote: > > On Wed, Dec 6, 2023 at 6:11 PM Michal Simek wrote: > >> > >> > >> > >> On 12/6/23 13:24, Jagan Teki wrote: > >>> On Fri, Aug 18, 2023 at 9:51 AM Ashok Reddy Soma > >>> wrote: > > This

[PATCH v2] net: mv88e6xxx: fix missing SMI address initialization

2023-12-06 Thread Marek Mojík
The mv88e6xxx driver does not currently initialize the smi_addr field, but instead keeps the default zero value. This leads to driver being unusable on devices where the switch is not on address zero of the mdio bus. Fix this problem by reading the SMI address from device tree. Signed-off-by:

Re: [PATCH 0/7] spi-nor: Add parallel and stacked memories support

2023-12-06 Thread Michal Simek
On 12/6/23 14:28, Jagan Teki wrote: On Wed, Dec 6, 2023 at 6:11 PM Michal Simek wrote: On 12/6/23 13:24, Jagan Teki wrote: On Fri, Aug 18, 2023 at 9:51 AM Ashok Reddy Soma wrote: This series adds support for Xilinx qspi parallel and stacked memeories. In parallel mode, the current

[PATCH v6 01/17] arm: dts: Introduce j784s4 dts from linux kernel

2023-12-06 Thread Apurva Nandan
Introduce the basic j784s4 SoC dts from the v6.7-rc1 tag of the linux kernel. Signed-off-by: Hari Nagalla Signed-off-by: Apurva Nandan --- arch/arm/dts/Makefile |1 + arch/arm/dts/k3-j784s4-evm.dts | 981 +++ arch/arm/dts/k3-j784s4-main.dtsi | 2068

Re: [PATCH 0/7] spi-nor: Add parallel and stacked memories support

2023-12-06 Thread Jagan Teki
On Wed, Dec 6, 2023 at 6:11 PM Michal Simek wrote: > > > > On 12/6/23 13:24, Jagan Teki wrote: > > On Fri, Aug 18, 2023 at 9:51 AM Ashok Reddy Soma > > wrote: > >> > >> This series adds support for Xilinx qspi parallel and stacked memeories. > >> > >> In parallel mode, the current implementation

Re: [PATCH 06/14] fastboot: Change fastboot_buf_addr to an address

2023-12-06 Thread Mattijs Korpershoek
On Tue, Dec 05, 2023 at 20:54, Simon Glass wrote: > Hi Mattijs, > > On Tue, 5 Dec 2023 at 02:16, Mattijs Korpershoek > wrote: >> >> Hi Simon, >> >> Thank you for your patch. >> >> On dim., déc. 03, 2023 at 17:31, Simon Glass wrote: >> >> > Given the name of this variable, it should be an

Re: [PATCH 00/21] Qualcomm generic board support

2023-12-06 Thread Caleb Connolly
Hi Simon, - gzip u-boot:: gzip u-boot-nodtb.bin - Append dtb to gzipped u-boot:: cat u-boot-nodtb.bin.gz /arch/arm64/boot/dts/qcom/your-board.dtb > u-boot-nodtb.bin.gz-dtb >>> >>> What is this?? Who or what uses a gzipped image with a

Re: [PATCH 0/7] spi-nor: Add parallel and stacked memories support

2023-12-06 Thread Michal Simek
On 12/6/23 13:24, Jagan Teki wrote: On Fri, Aug 18, 2023 at 9:51 AM Ashok Reddy Soma wrote: This series adds support for Xilinx qspi parallel and stacked memeories. In parallel mode, the current implementation assumes that a maximum of two flashes are connected. The QSPI controller splits

[PATCH v6 17/17] board: ti: j784s4: Add MAINTAINERS file

2023-12-06 Thread Apurva Nandan
Add maintainership for new J784S4 files added. Signed-off-by: Apurva Nandan --- board/ti/j784s4/MAINTAINERS | 25 + 1 file changed, 25 insertions(+) create mode 100644 board/ti/j784s4/MAINTAINERS diff --git a/board/ti/j784s4/MAINTAINERS b/board/ti/j784s4/MAINTAINERS

[PATCH v6 16/17] doc: board: ti: k3: Add J784S4 EVM and AM69 SK documentation

2023-12-06 Thread Apurva Nandan
TI K3 J784S4 and AM69 are new additions to the K3 SoC family. Add documentation about the J784S4 EVM and AM69 SK. Signed-off-by: Dasnavis Sabiya Signed-off-by: Apurva Nandan --- doc/board/ti/j784s4_evm.rst | 303 doc/board/ti/k3.rst | 1 + 2 files

[PATCH v6 15/17] configs: Add am69_sk_* defconfig fragments

2023-12-06 Thread Apurva Nandan
From: Dasnavis Sabiya Add config fragments for am69_sk A72 and R5 configuration. This applies on to: j784s4_evm_a72_defconfig -> am69_sk_a72.config j784s4_evm_r5_defconfig -> am69_sk_r5.config The usage model (with the fragment) would be: make j784s4_evm_a72_defconfig am69_sk_a72.config make

[PATCH v6 14/17] configs: j784s4_evm: Add defconfig for j784s4 evm board

2023-12-06 Thread Apurva Nandan
Add defconfigs for building R5 U-Boot SPL and A72 U-Boot. Signed-off-by: Hari Nagalla Signed-off-by: Apurva Nandan --- configs/j784s4_evm_a72_defconfig | 180 +++ configs/j784s4_evm_r5_defconfig | 163 2 files changed, 343 insertions(+)

[PATCH v6 13/17] arm: dts: Add bootph-all for memory node

2023-12-06 Thread Apurva Nandan
memory node is used by fdtdec_setup_mem_size_base() and fdtdec_setup_memory_banksize() during dram_init(), so use bootph-all to enable for all stages. Signed-off-by: Apurva Nandan --- arch/arm/dts/k3-am69-sk-u-boot.dtsi| 6 ++ arch/arm/dts/k3-j784s4-evm-u-boot.dtsi | 6 ++ 2 files

[PATCH v6 12/17] arm: dts: Introduce am69-sk u-boot dts files

2023-12-06 Thread Apurva Nandan
From: Dasnavis Sabiya Introduce the base dts files needed for u-boot or to augment the linux dtbs for use in the u-boot-spl and u-boot binaries. Signed-off-by: Dasnavis Sabiya Signed-off-by: Apurva Nandan --- arch/arm/dts/Makefile | 1 + arch/arm/dts/k3-am69-r5-sk.dts |

[PATCH v6 10/17] board: ti: j784s4: Add boot environment variables

2023-12-06 Thread Apurva Nandan
Add env file with necessary boot variables. Signed-off-by: Apurva Nandan --- board/ti/j784s4/j784s4.env | 18 ++ 1 file changed, 18 insertions(+) create mode 100644 board/ti/j784s4/j784s4.env diff --git a/board/ti/j784s4/j784s4.env b/board/ti/j784s4/j784s4.env new file mode

[PATCH v6 08/17] board: ti: j784s4: Add board support for J784S4 EVM

2023-12-06 Thread Apurva Nandan
Add board files for J784S4 EVM. Signed-off-by: Hari Nagalla [ add env and board specific yaml files for binman ] Signed-off-by: Neha Malcom Francis [ cleaned up the env files ] Signed-off-by: Manorit Chawdhry Signed-off-by: Dasnavis Sabiya Signed-off-by: Apurva Nandan ---

[PATCH v6 07/17] drivers: dma: Add support for J784S4 SoC

2023-12-06 Thread Apurva Nandan
Add support for DMA in J784S4 SoC. Signed-off-by: Jayesh Choudhary Signed-off-by: Hari Nagalla Signed-off-by: Apurva Nandan --- drivers/dma/ti/Makefile | 1 + drivers/dma/ti/k3-psil-j784s4.c | 166 ++ drivers/dma/ti/k3-psil-priv.h | 1 +

[PATCH v6 06/17] arm: mach-k3: j784s4: Add clk and power support

2023-12-06 Thread Apurva Nandan
Add clk and device data which can be used by respective drivers to configure clocks and PSC. Signed-off-by: Hari Nagalla Signed-off-by: Apurva Nandan --- arch/arm/mach-k3/r5/j784s4/Makefile| 7 + arch/arm/mach-k3/r5/j784s4/clk-data.c | 428 +

[PATCH v6 05/17] soc: ti: k3-socinfo: Add entry for J784S4 SoC

2023-12-06 Thread Apurva Nandan
Add support for J784S4 SoC Identification. Signed-off-by: Hari Nagalla Signed-off-by: Apurva Nandan --- arch/arm/mach-k3/include/mach/hardware.h | 1 + drivers/soc/soc_ti_k3.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/arch/arm/mach-k3/include/mach/hardware.h

[PATCH v6 04/17] arm: mach-k3: Sort SoC JTAG_ID entries

2023-12-06 Thread Apurva Nandan
Sort JTAG_IDs for K3 SoCs in hardware.h in alphabetical order. Signed-off-by: Apurva Nandan Reviewed-by: Nishanth Menon --- arch/arm/mach-k3/include/mach/hardware.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-k3/include/mach/hardware.h

[PATCH v6 03/17] arm: mach-k3: Add basic support for J784S4 SoC definition

2023-12-06 Thread Apurva Nandan
Add J784S4 initialization files for initial SPL boot. Signed-off-by: Hari Nagalla [ add firewall configurations and change the R5 MCU scratchpad ] Signed-off-by: Manorit Chawdhry Signed-off-by: Dasnavis Sabiya Signed-off-by: Apurva Nandan --- arch/arm/mach-k3/Kconfig |

[PATCH v6 02/17] arm: dts: Introduce am69-sk dts from linux kernel

2023-12-06 Thread Apurva Nandan
From: Dasnavis Sabiya Introduce the basic am69-sk evm dts from the v6.7-rc1 tag of the linux kernel. Signed-off-by: Dasnavis Sabiya Signed-off-by: Apurva Nandan --- arch/arm/dts/Makefile | 3 +- arch/arm/dts/k3-am69-sk.dts | 900 2 files changed,

[PATCH v6 00/17] Introduce initial TI's J784S4 and AM69 support

2023-12-06 Thread Apurva Nandan
Hello Everyone! This series will introduce basic support (SD and UART) support for Texas Instruments J784S4 EVM. The J784S4 SoC device tree patches are taken from kernel patch submissions and will be updated as they are accepted and merged to the kernel tree. All other patches are specific to

Re: [PATCH] mtd: spi-nor: Add support for Silicon Kaiser sk25lp128

2023-12-06 Thread Jagan Teki
On Thu, Jul 27, 2023 at 3:14 AM Jonas Karlman wrote: > > Add support for Silicon Kaiser sk25lp128 SPI NOR flash found in Pine64 > PinePhone Pro and PineTab2. > > Signed-off-by: Jonas Karlman > --- Applied to u-boot-spi/master

Re: [PATCH] Add support for more XMC series

2023-12-06 Thread Jagan Teki
On Sat, Aug 12, 2023 at 8:37 AM SSunk wrote: > > Add XMC XM25QH128C/XM25QH256C/XM25QU256C/XM25QH512C/XM25QU512C > site: https://www.xmcwh.com/site/product > > Signed-off-by: Kankan Sun > --- > configs/evb-ast2600_defconfig | 1 + > drivers/mtd/spi/spi-nor-ids.c | 4 > 2 files changed, 5

Re: [PATCH] spi: bcm63xx-hsspi: Fix compiler warning

2023-12-06 Thread Jagan Teki
On Sat, Aug 12, 2023 at 7:34 AM William Zhang wrote: > > When build for arm64 target, comipler reports the following warning: > drivers/spi/bcm63xx_hsspi.c: In function ‘bcm63xx_hsspi_xfer_dummy_cs’: > include/linux/kernel.h:184:17: warning: comparison of distinct pointer > types lacks a cast >

Re: [PATCH 0/7] spi-nor: Add parallel and stacked memories support

2023-12-06 Thread Jagan Teki
On Fri, Aug 18, 2023 at 9:51 AM Ashok Reddy Soma wrote: > > This series adds support for Xilinx qspi parallel and stacked memeories. > > In parallel mode, the current implementation assumes that a maximum of > two flashes are connected. The QSPI controller splits the data evenly > between both

Re: bootstd: Support for distro specific EFI folders

2023-12-06 Thread Peter Robinson
On Sun, Nov 19, 2023 at 6:55 PM Mark Kettenis wrote: > > > Date: Sat, 18 Nov 2023 23:52:11 +0100 > > From: Heinrich Schuchardt > > Hi Heinrich, > > > On 11/18/23 22:28, Shantur Rathore wrote: > > > Hi Heinrich, > > > > > > On Fri, Nov 17, 2023 at 3:12 PM Heinrich Schuchardt > > > wrote: > > >>

Re: [PATCH 2/2 v2] smbios: Fallback to the default DT if sysinfo nodes are missing

2023-12-06 Thread Peter Robinson
On Thu, Nov 30, 2023 at 2:45 AM Simon Glass wrote: > > Hi Ilias, > > On Mon, 27 Nov 2023 at 10:11, Ilias Apalodimas > wrote: > > > > In order to fill in the SMBIOS tables U-Boot currently relies on a > > "u-boot,sysinfo-smbios" compatible node. This is fine for the boards > > that already

Re: [PATCH 2/2 v2] smbios: Fallback to the default DT if sysinfo nodes are missing

2023-12-06 Thread Peter Robinson
On Mon, Nov 27, 2023 at 5:11 PM Ilias Apalodimas wrote: > > In order to fill in the SMBIOS tables U-Boot currently relies on a > "u-boot,sysinfo-smbios" compatible node. This is fine for the boards > that already include such nodes. However with some recent EFI changes, > the majority of boards

Re: [PATCH 1/1] efi_loader: boot options should relate to the ESP

2023-12-06 Thread Mark Kettenis
> From: Peter Robinson > Date: Wed, 6 Dec 2023 10:44:59 + > > On Wed, Dec 6, 2023 at 9:31 AM Heinrich Schuchardt > wrote: > > > > On 05.12.23 07:23, Masahisa Kojima wrote: > > > Hi Heinrich, > > > > > > On Tue, 5 Dec 2023 at 11:38, Heinrich Schuchardt > > > wrote: > > >> > > >> * Only

Re: [PATCH 00/21] Qualcomm generic board support

2023-12-06 Thread Caleb Connolly
On 06/12/2023 10:44, Ilias Apalodimas wrote: > Hi Tom, > > On Wed, 22 Nov 2023 at 16:28, Tom Rini wrote: >> >> On Wed, Nov 22, 2023 at 07:44:09PM +0530, Sumit Garg wrote: >>> On Wed, 22 Nov 2023 at 19:31, Tom Rini wrote: On Wed, Nov 22, 2023 at 11:51:29AM +0530, Sumit Garg wrote:

Re: [PATCH v6 6/9] dts: qcom: adjust pmic gpio to use upstream bindings

2023-12-06 Thread Caleb Connolly
Hi Simon, On 06/12/2023 03:54, Simon Glass wrote: > Hi Caleb, > > On Tue, 5 Dec 2023 at 06:48, Caleb Connolly wrote: >> >> Use the upstream gpio-ranges property instead of gpio-count, and drop >> the bank-name property for Qualcomm boards. >> >> Reviewed-by: Neil Armstrong >> Reviewed-by:

Re: [PATCH 00/21] Qualcomm generic board support

2023-12-06 Thread Ilias Apalodimas
Hi Mark, On Wed, 6 Dec 2023 at 13:00, Mark Kettenis wrote: > > > From: Ilias Apalodimas > > Date: Wed, 6 Dec 2023 12:31:15 +0200 > > > > Hi Caleb, > > > > Late to the party, but I'll respond to as much as I can > > > > On Tue, 21 Nov 2023 at 19:09, Caleb Connolly > > wrote: > > > > > >

Re: [PATCH 1/2 v2] smbios: Simplify reporting of unknown values

2023-12-06 Thread Ilias Apalodimas
[...] > >> >> > str = "Unknown"; >> > >> > for (;;) { >> > @@ -151,8 +151,7 @@ static int smbios_add_prop_si(struct smbios_ctx *ctx, >> > const char *prop, >> > const char *str; >> > >> > str = ofnode_read_string(ctx->node, prop); >> > -

Re: [PATCH 00/21] Qualcomm generic board support

2023-12-06 Thread Mark Kettenis
> From: Ilias Apalodimas > Date: Wed, 6 Dec 2023 12:31:15 +0200 > > Hi Caleb, > > Late to the party, but I'll respond to as much as I can > > On Tue, 21 Nov 2023 at 19:09, Caleb Connolly > wrote: > > > > Historically, Qualcomm boards in U-Boot have all had their own > > board/qualcomm/xyz

Re: [PATCH v2 01/18] bloblist: Update the tag numbering

2023-12-06 Thread Ilias Apalodimas
On Mon, 4 Dec 2023 at 20:55, Raymond Mao wrote: > > Hi Ilias, > > What is the difference between the new added XFERLIST_EVLOG and the existing > BLOBLISTT_TPM2_TCG_LOG and BLOBLISTT_TCPA_LOG in U-Boot? > I am not really sure what the existing options are supposed to mean. Having discrete

Re: [PATCH 00/21] Qualcomm generic board support

2023-12-06 Thread Ilias Apalodimas
Hi Tom, On Wed, 22 Nov 2023 at 16:28, Tom Rini wrote: > > On Wed, Nov 22, 2023 at 07:44:09PM +0530, Sumit Garg wrote: > > On Wed, 22 Nov 2023 at 19:31, Tom Rini wrote: > > > > > > On Wed, Nov 22, 2023 at 11:51:29AM +0530, Sumit Garg wrote: > > > > Hi Caleb, > > > > > > > > On Tue, 21 Nov 2023

Re: [PATCH 1/1] efi_loader: boot options should relate to the ESP

2023-12-06 Thread Peter Robinson
On Wed, Dec 6, 2023 at 9:31 AM Heinrich Schuchardt wrote: > > On 05.12.23 07:23, Masahisa Kojima wrote: > > Hi Heinrich, > > > > On Tue, 5 Dec 2023 at 11:38, Heinrich Schuchardt > > wrote: > >> > >> * Only generate removable media entries for EFI system partitions. > >> * Only offer EFI system

Re: [PATHv11 26/43] configs/tbs2910_defconfig inc limit

2023-12-06 Thread Maxim Uvarov
On Wed, 6 Dec 2023 at 13:06, Soeren Moch wrote: > On 05.12.23 21:00, Maxim Uvarov wrote: > > On Wed, 6 Dec 2023 at 00:25, Soeren Moch wrote: > >> On 05.12.23 17:25, Maxim Uvarov wrote: >> >> On Tue, 5 Dec 2023 at 21:49, Soeren Moch wrote: >> >>> On 05.12.23 14:15, Maxim Uvarov wrote: >>> >>> I

Re: [PATCH 00/21] Qualcomm generic board support

2023-12-06 Thread Ilias Apalodimas
Hi Caleb, Late to the party, but I'll respond to as much as I can On Tue, 21 Nov 2023 at 19:09, Caleb Connolly wrote: > > Historically, Qualcomm boards in U-Boot have all had their own > board/qualcomm/xyz directory, their own CONFIG_TARGET_XYZ option, their > own hardcoded sysmap-xyz.c file,

[PATCH v6 8/8] docs: k3: Add secure booting documentation

2023-12-06 Thread Manorit Chawdhry
This commit adds a general flow to explain the usage of firewalls and the chain of trust in K3 devices. Signed-off-by: Manorit Chawdhry --- doc/board/ti/k3.rst | 45 + 1 file changed, 45 insertions(+) diff --git a/doc/board/ti/k3.rst

[PATCH v6 7/8] docs: k3: Cleanup FIT signature documentation

2023-12-06 Thread Manorit Chawdhry
The previous documentation had been very crude so refactor it to make it cleaner and concise. Signed-off-by: Manorit Chawdhry --- doc/board/ti/k3.rst | 270 +--- 1 file changed, 171 insertions(+), 99 deletions(-) diff --git a/doc/board/ti/k3.rst

[PATCH v6 6/8] binman: j7200: Add firewall configurations

2023-12-06 Thread Manorit Chawdhry
The following commits adds the configuration of firewalls required to protect ATF and OP-TEE memory region from non-secure reads and writes using master and slave firewalls present in our K3 SOCs. Signed-off-by: Manorit Chawdhry --- arch/arm/dts/k3-j7200-binman.dtsi | 152

[PATCH v6 5/8] binman: j721s2: Add firewall configurations

2023-12-06 Thread Manorit Chawdhry
The following commits adds the configuration of firewalls required to protect ATF and OP-TEE memory region from non-secure reads and writes using master and slave firewalls present in our K3 SOCs. Signed-off-by: Manorit Chawdhry --- arch/arm/dts/k3-j721s2-binman.dtsi | 217

[PATCH v6 4/8] binman: j721e: Add firewall configurations

2023-12-06 Thread Manorit Chawdhry
The following commits adds the configuration of firewalls required to protect ATF and OP-TEE memory region from non-secure reads and writes using master and slave firewalls present in our K3 SOCs. Signed-off-by: Manorit Chawdhry --- arch/arm/dts/k3-j721e-binman.dtsi | 196

[PATCH v6 3/8] binman: k3: Add k3-security.h and include it in k3-binman.dtsi

2023-12-06 Thread Manorit Chawdhry
For readability during configuring firewalls, adding k3-security.h file and including it in k3-binman.dtsi to be accessible across K3 SoCs Reviewed-by: Simon Glass Signed-off-by: Manorit Chawdhry --- arch/arm/dts/k3-binman.dtsi | 2 ++ arch/arm/dts/k3-security.h | 58

[PATCH v6 2/8] binman: ftest: Add test for ti-secure firewall node

2023-12-06 Thread Manorit Chawdhry
Add test for TI firewalling node in ti-secure. Reviewed-by: Simon Glass Signed-off-by: Manorit Chawdhry --- tools/binman/ftest.py | 23 ++ tools/binman/test/324_ti_secure_firewall.dts | 28 ++

[PATCH v6 1/8] binman: ti-secure: Add support for firewalling entities

2023-12-06 Thread Manorit Chawdhry
We can now firewall entities while loading them through our secure entity TIFS, the required information should be present in the certificate that is being parsed by TIFS. The following commit adds the support to enable the certificates to be generated if the firewall configurations are present

[PATCH v6 0/8] ATF and OP-TEE Firewalling for K3 devices.

2023-12-06 Thread Manorit Chawdhry
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. AM62X, AM62AX and AM64X are currently in hold due to some firewall

[PATCH v2 29/30] mtd: spi-nor: Add support for locking on GIGADEVICE nor flashes

2023-12-06 Thread Tejas Bhumkar
From: Venkatesh Yadav Abbarapu GIGADEVICE nor flashes provide block protection support using BP0, BP1, BP2, BP3 & TB bits in status register. BP(Block Protection) bits defines memory to be software protected against PROGRAM or ERASE operations. When one or more block protect bits are set to 1,

[PATCH v2 30/30] mtd: spi-nor: Add support for locking on Spansion nor flashes

2023-12-06 Thread Tejas Bhumkar
From: Venkatesh Yadav Abbarapu Spansion nor flashes provide block protection support using BP0, BP1, BP2 bits in status register. The top/bottom select is instead done via a bit in the configuration register, which is OTP, so once set to use bottom protect, one cannot use top. On top of that,

[PATCH v2 28/30] mtd: spi-nor: Add support for locking on ISSI nor flashes

2023-12-06 Thread Tejas Bhumkar
From: Venkatesh Yadav Abbarapu ISSI chips implements locking in (power-of-two multiple of) 64K blocks, not as a fraction of the chip's size. Bit 5 in the status register is not a top/bottom select bit, but instead a fourth value bit, allowing locking between 2^0 and 2^14 64K blocks (so up to

[PATCH v2 27/30] mtd: spi-nor: Add support for locking on Macronix nor flashes

2023-12-06 Thread Tejas Bhumkar
From: Venkatesh Yadav Abbarapu Macronix chips implements locking in (power-of-two multiple of) 64K blocks, not as a fraction of the chip's size. Bit 5 in the status register is not a top/bottom select bit, but instead a fourth value bit, allowing locking between 2^0 and 2^14 64K blocks (so up to

[PATCH v2 26/30] mtd: spi-nor: Add block protection support for micron flashes

2023-12-06 Thread Tejas Bhumkar
From: T Karthik Reddy Micron nor flashes provide block protection support using BP0, BP1, BP2, BP3 & TB bits in status register. This patch supports for micron nor flashes with manufacturer id 0x20 and 0x2c. Where BP(Block Protection) bits defines memory to be software protected against PROGRAM

[PATCH v2 25/30] arm64: versal: Enable octal DTR mode

2023-12-06 Thread Tejas Bhumkar
The Cadence driver must switch between SDR and DTR modes based on commands from the SPI-NOR framework and the configuration set by SPI_FLASH_DTR_ENABLE. If SPI_FLASH_DTR_ENABLE is enabled, the driver should transition to DTR mode; if it is not defined, the driver should avoid switching to DTR

[PATCH v2 24/30] arm64: versal: Enable soft reset support for xspi flashes

2023-12-06 Thread Tejas Bhumkar
Activate the xSPI Software Reset support, which will be utilized to transition from octal DTR mode to legacy mode during shutdown and boot (if enabled). Signed-off-by: T Karthik Reddy Signed-off-by: Tejas Bhumkar --- configs/xilinx_versal_virt_defconfig | 2 ++ 1 file changed, 2 insertions(+)

[PATCH v2 23/30] spi: cadence_qspi: Write aligned byte length to ahbbase

2023-12-06 Thread Tejas Bhumkar
From: Ashok Reddy Soma Incase of non-aligned length of flash data, ahbbase address is written directly with byte count. This is causing AHB bus error's sometimes and resulting in kernel crash while booting linux. To avoid this write 4 byte aligned byte count to ahbbase address. Also use a

[PATCH v2 22/30] spi: cadence_qspi: Add spi mem dtr support ops

2023-12-06 Thread Tejas Bhumkar
From: T Karthik Reddy In DDR mode, current default spi_mem_dtr_supports_op() function does not allow mixed DTR operation functionality. So implement cadence specific cadence_spi_mem_dtr_supports_op() function to verifying only the command buswidth and command opcode bytes which satisfies the DTR

[PATCH v2 21/30] spi: cadence_qspi: Enable ECO bit for higher frequencies

2023-12-06 Thread Tejas Bhumkar
From: Ashok Reddy Soma Enable ECO bit for Versal for frequencies above 120Mhz for octal spi to work properly. Signed-off-by: Ashok Reddy Soma Signed-off-by: Tejas Bhumkar --- drivers/spi/cadence_qspi.h | 1 + drivers/spi/cadence_qspi_apb.c | 4 2 files changed, 5 insertions(+) diff

[PATCH v2 18/30] spi: cadence_qspi: Set tshsl_ns to at least one sclk_ns

2023-12-06 Thread Tejas Bhumkar
From: Ashok Reddy Soma tshsl_ns is the clock delay for chip select deassert. This is the delay in master reference clocks for the length that the master mode chip select outputs are de-asserted between transactions. The minimum delay is always SCLK period to ensure the chip select is never

[PATCH v2 17/30] spi: cadence_qspi: Fix versal ospi indirect write timed out issue

2023-12-06 Thread Tejas Bhumkar
To reduce the CPU load in waiting for the OSPI internal SRAM to clear in indirect mode, it's better to use the CQSPI_REG_IRQSTATUS register to check for indirect operation to complete. Enabled interrupt for Indirect Complete and Transfer Watermark Breach interrupt status register bits and using

[PATCH v2 20/30] spi: cadence_qspi: Initialize read and write watermark registers

2023-12-06 Thread Tejas Bhumkar
From: Ashok Reddy Soma Read and Write watermark registers are not initialized. Set read watermark to half of the FIFO and write watermark to 1/8 of the FIFO size. Read watermark indicates if SRAM fill level is above this watermark, interrupt will be generated and read or DMA can be performed.

[PATCH v2 19/30] spi: cadence_qspi: Clean up registers in init

2023-12-06 Thread Tejas Bhumkar
From: Ashok Reddy Soma This patch cleans up the cadence qspi registers in the init. The register contents may be invalid if this controller is used in previous boot and comes to uboot after a softreset (no power on reset). This may cause issues in uboot. Signed-off-by: Ashok Reddy Soma

[PATCH v2 16/30] spi: cadence_ospi_versal: ospi ddr changes in cadence ospi versal driver

2023-12-06 Thread Tejas Bhumkar
From: T Karthik Reddy Set cmd, address & data buswidth to octal. Handle dummy clock cycles incase of reads & writes. Convert odd bytes to even bytes lengths in ddr mode, as we cannot rx/tx odd data in ddr mode. Disable the DMA once the transfer is done to avoid disabling it at other places.

[PATCH v2 14/30] spi: cadence_qspi: Setup ddr mode in cadence qspi driver

2023-12-06 Thread Tejas Bhumkar
From: T Karthik Reddy To switch the OSPI controller from SDR to DDR mode, the RX delay should be configured through flash tuning. Begin by establishing a constant value for the TX delay and then increase the RX delay by inspecting the flash IDs. To fine-tune the RX delay, compare the flash IDs

[PATCH v2 15/30] spi: cadence-qspi: Switch SDR/DTR using SPI_FLASH_DTR_ENABLE config

2023-12-06 Thread Tejas Bhumkar
From: T Karthik Reddy Cadence driver need to switch from SDR to DTR and vice versa based on the commands from spi-nor framework and based on SPI_FLASH_DTR_ENABLE config. If SPI_FLASH_DTR_ENABLE is not defined, do not switch to DTR mode as it represents that controller does not support DTR. Also

[PATCH v2 13/30] mtd: spi-nor: Check SNOR_F_IO_MODE_EN_VOLATILE only if SFDP is enabled

2023-12-06 Thread Tejas Bhumkar
From: Ashok Reddy Soma With 'commit bebdc237507c ("mtd: spi-nor: Parse SFDP SCCR Map")', support for spi_nor_parse_sccr is added under SFDP. But the flag SNOR_F_IO_MODE_EN_VOLATILE in spi_nor_octal_dtr_enable is always checked. Check this flag only if SPI_FLASH_SFDP_SUPPORT enabled.

[PATCH v2 12/30] mtd: spi-nor: Update erase operation function

2023-12-06 Thread Tejas Bhumkar
If the system is in a dual parallel configuration, it's necessary to halve the erase size since the erase command operates on two flashes simultaneously. When dealing with a dual-stacked configuration, determine whether the erase offset refers to the top or bottom flash, and subsequently, adjust

[PATCH v2 11/30] mtd: spi-nor: Send write disable cmd after every write enable

2023-12-06 Thread Tejas Bhumkar
From: Ashok Reddy Soma Write enable(06h) command will be sent to a flash device to set the write enable latch bit before every program, erase, write command. After that write disable command (04h) needs to be sent to clear the write enable latch. This write_disable() is missing at the majority

[PATCH v2 10/30] mtd: spi-nor: program quad enable bit for winbond flashes

2023-12-06 Thread Tejas Bhumkar
From: T Karthik Reddy Added support to program quad enable bit for Winbond flash memory. Previously, the quad enable function from Spansion was used for this purpose. However, for Winbond flash memory, the quad enable bit is configured by programming the Write Status Register-2 (SR-2) rather

[PATCH v2 08/30] mtd: spi-nor: Update block protection flags for flash parts

2023-12-06 Thread Tejas Bhumkar
From: Venkatesh Yadav Abbarapu The block protection flags for Gigadevice, Spansion, and ISSI flash memory have been modified. Additionally, new flags for SPI_NOR_OCTAL_DTR_READ and octal DTR page programming have been introduced for Micron OSPI flashes. Furthermore, the flashes mt35xu01g and

[PATCH v2 09/30] mtd: spi-nor-ids: Add support for W25Q02NW

2023-12-06 Thread Tejas Bhumkar
From: Algapally Santosh Sagar Add support for Winbond 256MB flash W25Q02NW which supports 4byte opcodes and also dual and quad read. Signed-off-by: Algapally Santosh Sagar Signed-off-by: Ashok Reddy Soma Signed-off-by: Tejas Bhumkar --- drivers/mtd/spi/spi-nor-ids.c | 6 ++ 1 file

[PATCH v2 07/30] spi: mtd: Use split reads if multi-die flag is set

2023-12-06 Thread Tejas Bhumkar
From: T Karthik Reddy Some flash devices have multiple dies in it & has die cross over issue. When SPI_NOR_MULTI_DIE flag is set in flash id table use it to enable split reads to avoid above issue. Define SPI_NOR_MULTI_DIE new flag to flash id flags. Remove SPI_FLASH_SPLIT_READ config and

[PATCH v2 06/30] mtd: spi-nor: Enable DTR octal flash program

2023-12-06 Thread Tejas Bhumkar
From: Ashok Reddy Soma Define a flag SPI_NOR_OCTAL_DTR_PP and if enabled in spi-nor-ids table, enable octal DTR page program in the framework. Signed-off-by: Ashok Reddy Soma Signed-off-by: Tejas Bhumkar --- drivers/mtd/spi/sf_internal.h | 1 + drivers/mtd/spi/spi-nor-core.c | 3 ++- 2

[PATCH v2 05/30] mtd: spi-nor: Add support for cross die read in dual flash configuration

2023-12-06 Thread Tejas Bhumkar
From: Ashok Reddy Soma In a dual parallel configuration, halve the read offset. Determine whether the read offset points to the lower or upper flash in a dual stacked configuration and set the corresponding flags accordingly. Include support for cases where the read involves an odd number of

[PATCH v2 04/30] mtd: spi-nor: Enable mt35xu512aba_fixups for all mt35xx flashes

2023-12-06 Thread Tejas Bhumkar
From: Ashok Reddy Soma Enable mt35xu512aba_fixups for all mt35 series flashes to work in DTR mode, and return after nor->fixups is updated, otherwise it will get overwritten with macronix_octal_fixups. This flash works in DTR mode only if CONFIG_SPI_FLASH_MT35XU is enabled and

  1   2   >