[PATCH FOR TESTING ONLY RFC 4/4] sunxi-d1s-t113: Add D1 and T113 PWM node

2024-05-17 Thread John Watts
This is based on the binding from the as yet unmerged kernel series: https://lore.kernel.org/linux-kernel/20240131125920.2879433-2-privates...@gmail.com/ Signed-off-by: John Watts --- arch/riscv/dts/sunxi-d1s-t113.dtsi | 12 dts/upstream/src/riscv/allwinner/sunxi-

[PATCH RFC 3/4] pwm: sunxi: Add support Allwinner D1 PWM

2024-05-17 Thread John Watts
This driver documents and handles setting up PWM on the D1. Signed-off-by: John Watts --- drivers/pwm/Kconfig| 6 + drivers/pwm/Makefile | 1 + drivers/pwm/sunxi_pwm_d1.c | 542 + 3 files changed, 549 insertions(+) diff --git a/drive

[PATCH RFC 2/4] pinctrl: sunxi: Add PWM7 pinctrl for the D1

2024-05-17 Thread John Watts
This is currently only used for PD22 on the Mango Pi MQ-Dual. Signed-off-by: John Watts --- drivers/pinctrl/sunxi/pinctrl-sunxi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pinctrl/sunxi/pinctrl-sunxi.c b/drivers/pinctrl/sunxi/pinctrl-sunxi.c index 37ea93715d..b3f2568ffe 100644

[PATCH RFC 1/4] clk: sunxi: Add PWM bus clock and reset

2024-05-17 Thread John Watts
This is needed for the D1 PWM driver. Signed-off-by: John Watts --- drivers/clk/sunxi/clk_d1.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/clk/sunxi/clk_d1.c b/drivers/clk/sunxi/clk_d1.c index 9dae761de8..6577d86e0b 100644 --- a/drivers/clk/sunxi/clk_d1.c +++ b/drivers/clk/su

[PATCH RFC 0/4] pwm: sunxi: Add support Allwinner D1 PWM

2024-05-17 Thread John Watts
This patch series adds support for the Allwinner D1, T113 and R329 PWM. This code isn't based on any kernel code but instead written from scratch with the goal of handling the PWM pairs deterministically. I've tested this on T113 hardware and it works very well. Signed-off-by: John Watts --- Jo

Re: [PATCH 1/1] usb: Assimilate usb_get_descriptor() to linux

2024-05-17 Thread Marek Vasut
On 5/17/24 11:18 AM, Philip Oberfichtner wrote: Before this commit, usb_get_descriptor() failed for some flakey USB devices. We hereby adopt the more robust linux implementation [1]. Can you include which exact device fails and how? Details of the failure are valuable for the next person who r

[PATCH 1/1] Added arm64 assembly for examples/api crt0

2024-05-17 Thread Brunham, Kalen
I've encountered a problem when compiling the 'examples/api' directory for ARM64 in U-boot. The problem lies in the assembly code in 'examples/api/crt0.S' where the current CONFIG_ARM code is only 32-bit. When targeting ARM64, a 64-bit version is necessary. I have proposed a fix by including a

Re: [PATCH] Init virtio before loading ENV from EXT4 or FAT

2024-05-17 Thread Tom Rini
On Wed, May 01, 2024 at 10:54:09AM +0200, Fiona Klute wrote: > Specifying a file in an EXT4 or FAT partition on a virtio device as > environment location failed because virtio hadn't been initialized by > the time the environment was loaded. This patch mirrors commit > 54ee5ae84191 ("Add SCSI scan

Re: [PATCH] timer: npcm: Change counter source

2024-05-17 Thread Tom Rini
On Mon, May 13, 2024 at 03:26:03PM +0800, Jim Liu wrote: > From: Stanley Chu > > The counter value read from TDR register may not be correct. > Read SECCNT and CNTR25M instead to get the correct timestamp. > > Signed-off-by: Stanley Chu > --- > arch/arm/dts/nuvoton-common-npcm7xx.dtsi | 12 ++

Re: [PATCH] phy: Use dt-bindig definations for npcm usb phy

2024-05-17 Thread Tom Rini
On Mon, 13 May 2024 15:25:32 +0800, Jim Liu wrote: > Use dt-binding definations for the phy switch connection. > It declares the target usb controller it is connected to. > > Applied to u-boot/master, thanks! -- Tom

Re: [PATCH] pinctrl: Fix pinctrl_gpio_get_pinctrl_and_offset()

2024-05-17 Thread Tom Rini
On Fri, 10 May 2024 19:35:51 +, Jonas Karlman wrote: > Linux kernel Documentation/devicetree/bindings/gpio/gpio.txt define the > format of the gpio-ranges prop as: > > The format is: <[pin controller phandle], [GPIO controller offset], > [pin controller offset], [number of

Re: [PATCH 1/7] MIPS: Implement setjmp

2024-05-17 Thread Jiaxun Yang
在2024年5月17日五月 下午10:11,Heinrich Schuchardt写道: [...] > As the jumpbuffer is only used inside U-Boot we should be able to use > the same register sequence independant of the bitness. Hi Heinrich, I chose to use ABI's stack frame because GDB requires it to perform proper unwinding and it helped d

[PATCH 3/3] sandbox: Use pkg-config to detect and config sdl2

2024-05-17 Thread Jiaxun Yang
sdl2-config is not cross compile friendly, it can only detect and config stuff from build host. Use pkg-config instead, which is a generic way to config libraries on any sane system & cross toolchain should have it ready. The output of pkg-config practically have no difference with sdl2-config.

[PATCH 2/3] EFI: Make EFI loader depend sandbox HOST_ARCH

2024-05-17 Thread Jiaxun Yang
Since EFI loader on sandbox requires some architecture code, make it depend on HOST_ARCH to ensure it's only compiled on desired host. Signed-off-by: Jiaxun Yang --- lib/efi_loader/Kconfig | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/efi_loader/Kconfig b/lib/efi

[PATCH 1/3] sandbox: Move HOST_ARCH detection to Kconfig

2024-05-17 Thread Jiaxun Yang
Move host arch detection to Kconfig so we can make some options depend on HOST_ARCH. Also now we are using compiler macros to detect target arch, which is more robust than looking at uname -a. Signed-off-by: Jiaxun Yang --- Makefile | 24

[PATCH 0/3] sandbox: HOST_ARCH improvements

2024-05-17 Thread Jiaxun Yang
: ad7dce5abd49ef3b5c93da5303e15449c8c162b4 change-id: 20240517-sandbox-hostarch-kconfig-a56a5f80b70d Best regards, -- Jiaxun Yang

Re: [PATCH v1 7/7] MAINTAINERS: Update Starfive visionfive2 maintain files.

2024-05-17 Thread Marek Vasut
On 5/17/24 11:47 AM, Minda Chen wrote: On 5/4/24 5:03 PM, Minda Chen wrote: Add USB related files to Starfive visionfive2 MAINTAINERS. Signed-off-by: Minda Chen --- board/starfive/visionfive2/MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/starfive/visionfive2/M

Re: [PATCH 1/7] MIPS: Implement setjmp

2024-05-17 Thread Heinrich Schuchardt
Am 17. Mai 2024 18:32:52 MESZ schrieb Jiaxun Yang : >Implement setjmp with o32/n64 ABI's standard stack frame. >Note that those two ABIs slightly disagreed on placement of >registers so they are being implemented in two different >files. > >Signed-off-by: Jiaxun Yang >--- > arch/mips/include/as

Re: [PATCH 2/7] efi: Allow runtime relocate to be disabled

2024-05-17 Thread Heinrich Schuchardt
Am 17. Mai 2024 18:32:53 MESZ schrieb Jiaxun Yang : >Allow runtime relocate to be disabled because on MIPS we >never do that. It's guaranteed that OS won't call >set_virtual_address_map and convert_pointer as well. > >On MIPS KSEG0 is always mapped to memory and there is no >way to disable it fo

Re: [PATCH 4/7] Makefile.lib: Enforce EFI CFLAGS/AFLAGS

2024-05-17 Thread Heinrich Schuchardt
Am 17. Mai 2024 18:32:55 MESZ schrieb Jiaxun Yang : >EFI AFLAGS/CFLAGS should be enforced for those runtime >supporting files as well, otherwise EFI applications >will fail to compile on MIPS. > >Signed-off-by: Jiaxun Yang >--- > Makefile | 3 +++ > scripts/Makefile.lib | 8 ++--

Re: [PATCH] env: Invert gd->env_valid for env_mmc_save

2024-05-17 Thread Tom Rini
On Fri, May 10, 2024 at 01:38:34PM +0200, jas...@fancydomain.eu wrote: > From: Jasper Orschulko > > The A/B update strategy of the env's has a gap in the first 2 calls of > saveenv. > The env's are stored twice on the first memory area if: > gd->env_valid == ENV_INVALID. > > u-boot=> saveenv >

[PATCH v3 12/12] mailmap: Update email for Paul Burton

2024-05-17 Thread Jiaxun Yang
Paul had left MIPS a couple of years ago, his email address is no longer valid. Replace it with his kenrel.org email, which has been used in kernel and QEMU, in case we still want to reach him. Signed-off-by: Jiaxun Yang --- .mailmap| 3 ++- board/imgtec/boston/MAINTAINE

[PATCH v3 11/12] MIPS: boston: Migrate to OF_UPSTREAM

2024-05-17 Thread Jiaxun Yang
We can now boot with upstream devicetree. Reviewed-by: Sumit Garg Signed-off-by: Jiaxun Yang --- arch/mips/Kconfig| 1 + arch/mips/dts/Makefile | 1 - arch/mips/dts/boston-u-boot.dtsi | 10 ++ arch/mips/dts/img,boston.dts | 222

[PATCH v3 10/12] dts/upstream: Add Makefile for MIPS

2024-05-17 Thread Jiaxun Yang
It is required to make OF_UPSTREAM work. Reviewed-by: Sumit Garg Signed-off-by: Jiaxun Yang --- dts/upstream/src/mips/Makefile | 14 ++ 1 file changed, 14 insertions(+) diff --git a/dts/upstream/src/mips/Makefile b/dts/upstream/src/mips/Makefile new file mode 100644 index 0

[PATCH v3 09/12] clk: boston: Allow to get regmap from parent device

2024-05-17 Thread Jiaxun Yang
In upstream devicetree, clk_boston is a child of syscon node and there is no "regmap" property for clk_boston node. Try to check parent device first to look for syscon. Signed-off-by: Jiaxun Yang --- v2: Move syscon_get_regmap to probe v3: Move syscon detection code to probe to ensure parent

[PATCH v3 08/12] MIPS: boston: Provide default env vars

2024-05-17 Thread Jiaxun Yang
Provide default environment variables on image loading address to make the board useful. Signed-off-by: Jiaxun Yang --- board/imgtec/boston/Kconfig| 4 board/imgtec/boston/boston.env | 9 + 2 files changed, 13 insertions(+) diff --git a/board/imgtec/boston/Kconfig b/board/imgte

[PATCH v3 07/12] MIPS: boston: Imply various options

2024-05-17 Thread Jiaxun Yang
This is a PC-like platform board. Enable drivers for most on-board devices to make it useful. Signed-off-by: Jiaxun Yang --- arch/mips/Kconfig | 27 +++ 1 file changed, 27 insertions(+) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index eb7f3ad23762..748b5175b2eb 1

[PATCH v3 06/12] MIPS: Provide dummy acpi_table.h

2024-05-17 Thread Jiaxun Yang
Some drivers need this header. Provide this dummy header as riscv did. Signed-off-by: Jiaxun Yang --- arch/mips/include/asm/acpi_table.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/mips/include/asm/acpi_table.h b/arch/mips/include/asm/acpi_table.h new file mode 100644 i

[PATCH v3 05/12] ahci: dwc_ahsata: Generalize the driver

2024-05-17 Thread Jiaxun Yang
Remove hard dependencies to arch headers, get clock from clk subsystem if arch clock function is not available, align compatible strings with devicetree binding. No functional change on existing platforms, just get it build on other platforms. Signed-off-by: Jiaxun Yang --- drivers/ata/dwc_ahsa

[PATCH v3 04/12] ahci: DMA addressing fixes

2024-05-17 Thread Jiaxun Yang
Ensure that we are using correct physical/virtual address for DMA buffer write and hardware register settings. The convention is: in ahci_ioports all pointers are virtual, that will be converted to physical address when writing to hardware registers or into sg/cmd_tbl. Also fixed 64bit physical a

[PATCH v3 03/12] pci: Enable PCI_MAP_SYSTEM_MEMORY when ARCH_MAP_SYSMEM is not set

2024-05-17 Thread Jiaxun Yang
For MIPS we are always looking gd->dram in virtual address so PCI_MAP_SYSTEM_MEMORY should always be enabled. If in future we ever want to make it physical we have to set ARCH_MAP_SYSMEM. Signed-off-by: Jiaxun Yang --- drivers/pci/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/driv

[PATCH v3 02/12] pci: auto: Reduce bridge mem alignment boundary for boston

2024-05-17 Thread Jiaxun Yang
Boston has a very limited memory range for PCI controllers, where 1MB can't easily fit into it. Make alignment boundary of PCI memory resource allocation a Kconfig option and default to 0x1 for boston. Signed-off-by: Jiaxun Yang --- drivers/pci/Kconfig| 9 + drivers/pci/pci_aut

[PATCH v3 01/12] pci: xilinx: Handle size of ecam region properly

2024-05-17 Thread Jiaxun Yang
Probe size of ecam from devicetree properly and cap accessible bus number accorading to ecam region size to ensure we don't go beyond hardware address space. Also disable all interrupts to ensure errors are handled silently. Signed-off-by: Jiaxun Yang --- drivers/pci/pcie_xilinx.c | 53

[PATCH v3 00/12] MIPS: Boston: Various enhancements

2024-05-17 Thread Jiaxun Yang
Hi all, This is a huge series which promoted MIPS/Boston target into a usable state, with fixes to drivers and general framework issues I found in this process. I also converted the target to OF_UPSTREAM. This target is covered by QEMU, to test on QEMU: ``` make boston64r6el_defconfig make qemu-

[v3 2/2] doc: process.rst: Document device tree resync rules

2024-05-17 Thread Tom Rini
Document the logic of when we do a full resync of the device trees used by OF_UPSTREAM as well as that cherry-picking is allowed as needed. Signed-off-by: Tom Rini --- Changes in v3: - Actually commit the changes I intended for v2 Changes in v2: - Address Quentin's feedback Cc: Heinrich Schucha

[v3 1/2] doc: process.rst: Use subsubheading for "Phases of the Development Process"

2024-05-17 Thread Tom Rini
These sections which talk about the different phases of the development process should be using the subsubheading identifier. Signed-off-by: Tom Rini --- Changes in v3: None Changes in v2: None Cc: Heinrich Schuchardt --- doc/develop/process.rst | 8 1 file changed, 4 insertions(+),

Re: [PATCH 0/7] MIPS: Enable EFI support

2024-05-17 Thread Jiaxun Yang
ge_loader.c | 18 ++ >> lib/efi_loader/efi_memory.c | 14 +- >> lib/efi_loader/efi_runtime.c | 11 +- >> lib/efi_loader/efi_var_mem.c | 6 +- >> lib/efi_selftest/Makefile | 2 +- >> lib/efi_selftest/efi_selftest_miniapp_exception.c | 2 + >> scripts/Makefile.lib | 10 +- >> 23 files changed, 734 insertions(+), 18 deletions(-) >>--- >>base-commit: ad7dce5abd49ef3b5c93da5303e15449c8c162b4 >>change-id: 20240517-mips-efi-c9a1ad819c2d >> >>Best regards, -- - Jiaxun

Re: [PATCH v3 4/4] imx: hab: Use nxp_imx8mcst etype for i.MX8M flash.bin signing

2024-05-17 Thread Tim Harvey
On Thu, May 16, 2024 at 6:31 PM Marek Vasut wrote: > > On 5/16/24 11:40 PM, Tim Harvey wrote: > > [...] > > >> -The entire script is available in doc/imx/habv4/csf_examples/mx8m/csf.sh > >> -and can be used as follows to modify flash.bin to be signed > >> -(adjust paths as needed): > >> -``` > >>

Re: [PATCH 0/7] MIPS: Enable EFI support

2024-05-17 Thread Heinrich Schuchardt
| 14 +- > lib/efi_loader/efi_runtime.c | 11 +- > lib/efi_loader/efi_var_mem.c | 6 +- > lib/efi_selftest/Makefile | 2 +- > lib/efi_selftest/efi_selftest_miniapp_exception.c | 2 + > scripts/Makefile.lib | 10 +- > 23 files changed, 734 insertions(+), 18 deletions(-) >--- >base-commit: ad7dce5abd49ef3b5c93da5303e15449c8c162b4 >change-id: 20240517-mips-efi-c9a1ad819c2d > >Best regards,

Re: [PATCH 1/1] defconfig: disable VIDEO_COPY on the sandbox

2024-05-17 Thread Jiaxun Yang
在2024年5月17日五月 下午5:06,Heinrich Schuchardt写道: > Since commit a75cf70d23ac ("efi: Correct handling of frame buffer") the EFI > block image transfer is broken on the sandbox. > > To test build sandbox_defconfig with CONFIG_EFI_SELFTEST=y and execute > > setenv efi_selftest block image transfer >

[PATCH 7/7] MIPS: Implement EFI supporting stuff

2024-05-17 Thread Jiaxun Yang
Implemented crt, ELF and EFI linking, ELF relocation handling and other necessary bits for MIPS EFI. Signed-off-by: Jiaxun Yang --- arch/mips/config.mk| 9 ++ arch/mips/lib/Makefile | 13 +++ arch/mips/lib/crt0_mips_efi.S | 239 + a

[PATCH 6/7] MIPS: Define MIPS EFI related bits everywhere

2024-05-17 Thread Jiaxun Yang
Various file names, instruction defines, magic numbers related to MIPS's EFI implementation. PE magic numbers are from winnt.h, DHCP numbers are from IANA page, boot file names are from other implementations. Signed-off-by: Jiaxun Yang --- include/asm-generic/pe.h | 5

[PATCH 5/7] MIPS: Add smbios_start to arch_global_data

2024-05-17 Thread Jiaxun Yang
This is necessary for SMBIOS to build on MIPS. Signed-off-by: Jiaxun Yang --- arch/mips/include/asm/global_data.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/mips/include/asm/global_data.h b/arch/mips/include/asm/global_data.h index 147a95ecea8b..740bbcdb84e9 100644 --- a/arch/m

[PATCH 4/7] Makefile.lib: Enforce EFI CFLAGS/AFLAGS

2024-05-17 Thread Jiaxun Yang
EFI AFLAGS/CFLAGS should be enforced for those runtime supporting files as well, otherwise EFI applications will fail to compile on MIPS. Signed-off-by: Jiaxun Yang --- Makefile | 3 +++ scripts/Makefile.lib | 8 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a

[PATCH 3/7] Makefile.lib: Preserve .rodata section for EFI file

2024-05-17 Thread Jiaxun Yang
This is required in performing objcopy to MIPS EFI files. Signed-off-by: Jiaxun Yang --- scripts/Makefile.lib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 62f87517c09c..52aed7a65d47 100644 --- a/scripts/Makefile.lib +++ b/s

[PATCH 2/7] efi: Allow runtime relocate to be disabled

2024-05-17 Thread Jiaxun Yang
Allow runtime relocate to be disabled because on MIPS we never do that. It's guaranteed that OS won't call set_virtual_address_map and convert_pointer as well. On MIPS KSEG0 is always mapped to memory and there is no way to disable it for kernel mode. Both EFI runtime and kernel lays in this segme

[PATCH 1/7] MIPS: Implement setjmp

2024-05-17 Thread Jiaxun Yang
Implement setjmp with o32/n64 ABI's standard stack frame. Note that those two ABIs slightly disagreed on placement of registers so they are being implemented in two different files. Signed-off-by: Jiaxun Yang --- arch/mips/include/asm/setjmp.h | 36 +++ arch/mips/lib/Make

[PATCH 0/7] MIPS: Enable EFI support

2024-05-17 Thread Jiaxun Yang
ons(+), 18 deletions(-) --- base-commit: ad7dce5abd49ef3b5c93da5303e15449c8c162b4 change-id: 20240517-mips-efi-c9a1ad819c2d Best regards, -- Jiaxun Yang

[PATCH 1/1] defconfig: disable VIDEO_COPY on the sandbox

2024-05-17 Thread Heinrich Schuchardt
Since commit a75cf70d23ac ("efi: Correct handling of frame buffer") the EFI block image transfer is broken on the sandbox. To test build sandbox_defconfig with CONFIG_EFI_SELFTEST=y and execute setenv efi_selftest block image transfer bootefi selftest Fixes: a75cf70d23ac ("efi: Correct h

Re: [PATCH 1/1] Makefile: add build-sandbox*/ to mrproper target

2024-05-17 Thread Tom Rini
On Fri, May 17, 2024 at 05:51:29PM +0200, Heinrich Schuchardt wrote: > On 5/17/24 17:18, Tom Rini wrote: > > On Fri, May 17, 2024 at 05:15:34PM +0200, Heinrich Schuchardt wrote: > > > > > make mrproper should remove all build artefacts. > > > > > > Running make tests without deleting build-sandbo

Re: [PATCH 1/1] Makefile: add build-sandbox*/ to mrproper target

2024-05-17 Thread Heinrich Schuchardt
On 5/17/24 17:18, Tom Rini wrote: On Fri, May 17, 2024 at 05:15:34PM +0200, Heinrich Schuchardt wrote: make mrproper should remove all build artefacts. Running make tests without deleting build-sandbox led to an error *** No rule to make target '../include/common.h', needed by 'incl

[v2 2/2] doc: process.rst: Document device tree resync rules

2024-05-17 Thread Tom Rini
Document the logic of when we do a full resync of the device trees used by OF_UPSTREAM as well as that cherry-picking is allowed as needed. Signed-off-by: Tom Rini --- Changes in v2: - Address Quentin's feedback Cc: Heinrich Schuchardt Cc: Quentin Schulz --- doc/develop/process.rst | 13 +

[v2 1/2] doc: process.rst: Use subsubheading for "Phases of the Development Process"

2024-05-17 Thread Tom Rini
These sections which talk about the different phases of the development process should be using the subsubheading identifier. Signed-off-by: Tom Rini --- Changes in v2: None Cc: Heinrich Schuchardt --- doc/develop/process.rst | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff

Re: [PATCH 1/1] Makefile: add build-sandbox*/ to mrproper target

2024-05-17 Thread Tom Rini
On Fri, May 17, 2024 at 05:15:34PM +0200, Heinrich Schuchardt wrote: > make mrproper should remove all build artefacts. > > Running make tests without deleting build-sandbox led to an error > > *** No rule to make target '../include/common.h', > needed by 'include/config/auto.conf'. > >

Re: [Agilex7 M-series Platform Enablement v1 16/16] configs: Add defconfig for Agilex7 M-series

2024-05-17 Thread Tom Rini
On Fri, May 17, 2024 at 01:27:01PM +0800, tingting.m...@intel.com wrote: > From: Wan Yee Lau > > Add defconfig for Agilex7 M-series. > > Signed-off-by: Wan Yee Lau > Signed-off-by: Teik Heng Chong > Signed-off-by: Tingting Meng > --- > ...onfig => socfpga_agilex7m_sdmmc_defconfig} | 110

[PATCH 1/1] Makefile: add build-sandbox*/ to mrproper target

2024-05-17 Thread Heinrich Schuchardt
make mrproper should remove all build artefacts. Running make tests without deleting build-sandbox led to an error *** No rule to make target '../include/common.h', needed by 'include/config/auto.conf'. on my machine. Let's add the build-sandbox*/ directories to the mrproper target. Si

Re: [Agilex7 M-series Platform Enablement v1 01/16] arch: arm: dts: Add dts and dtsi for new platform Agilex7 M-series

2024-05-17 Thread Tom Rini
On Fri, May 17, 2024 at 01:26:46PM +0800, tingting.m...@intel.com wrote: > From: Wan Yee Lau > > Add Agilex7 M-series dtsi and dts for new platform Agilex7 M-series. > > Signed-off-by: Wan Yee Lau > Signed-off-by: Teik Heng Chong > Signed-off-by: Tingting Meng > --- > ...tsi => socfpga_agil

Re: [PATCH 2/2] doc: process.rst: Document device tree resync rules

2024-05-17 Thread Tom Rini
On Fri, May 17, 2024 at 10:35:43AM +0200, Quentin Schulz wrote: > Hi Tom, > > On 5/16/24 10:34 PM, Tom Rini wrote: > > Document the logic of when we do a full resync of the device trees used > > by OF_UPSTREAM as well as that cherry-picking is allowed as needed. > > > > Signed-off-by: Tom Rini >

Re: [PATCH v3 4/4] imx: hab: Use nxp_imx8mcst etype for i.MX8M flash.bin signing

2024-05-17 Thread Francesco Dolcini
Hello Marek, On Fri, May 17, 2024 at 03:25:38AM +0200, Marek Vasut wrote: > On 5/16/24 11:40 PM, Tim Harvey wrote: > > [...] > > > > -The entire script is available in doc/imx/habv4/csf_examples/mx8m/csf.sh > > > -and can be used as follows to modify flash.bin to be signed > > > -(adjust paths a

Re: [PATCH v5 01/12] efi: Correct handling of frame buffer

2024-05-17 Thread Jiaxun Yang
在2024年5月17日五月 下午1:46,Heinrich Schuchardt写道: > On 11/19/23 20:11, Simon Glass wrote: >> The efi_gop driver uses private fields from the video uclass to obtain a >> pointer to the frame buffer. Use the platform data instead. >> >> Check the VIDEO_COPY setting to determine which frame buffer to use

[PATCH 1/1] usb: Assimilate usb_get_descriptor() to linux

2024-05-17 Thread Philip Oberfichtner
Before this commit, usb_get_descriptor() failed for some flakey USB devices. We hereby adopt the more robust linux implementation [1]. Signed-off-by: Philip Oberfichtner [1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/drivers/usb/core/message.c?h=v6.9#n781 --- common/

[Agilex7 M-series Platform Enablement v1 16/16] configs: Add defconfig for Agilex7 M-series

2024-05-17 Thread tingting . meng
From: Wan Yee Lau Add defconfig for Agilex7 M-series. Signed-off-by: Wan Yee Lau Signed-off-by: Teik Heng Chong Signed-off-by: Tingting Meng --- ...onfig => socfpga_agilex7m_sdmmc_defconfig} | 110 +- 1 file changed, 54 insertions(+), 56 deletions(-) copy configs/{socfpga_ag

[Agilex7 M-series Platform Enablement v1 15/16] arch: arm: dts: Update Makefile for new platform Agilex7 M-series

2024-05-17 Thread tingting . meng
From: Wan Yee Lau Update Makefile to support Agilex7 M-series platform enablement. Signed-off-by: Wan Yee Lau Signed-off-by: Teik Heng Chong Signed-off-by: Tingting Meng --- arch/arm/dts/Makefile | 1 + arch/arm/mach-socfpga/Makefile | 18 ++ board/intel/a

[Agilex7 M-series Platform Enablement v1 14/16] arch: arm: mach-socfpga: Update kconfig for new platform Agilex7 M-series

2024-05-17 Thread tingting . meng
From: Wan Yee Lau Update Kconfig for new platform Agilex7 M-series. Signed-off-by: Wan Yee Lau Signed-off-by: Teik Heng Chong Signed-off-by: Tingting Meng --- arch/arm/Kconfig | 4 +++- arch/arm/mach-socfpga/Kconfig | 19 +++ 2 files changed, 22 insertions(+), 1

[Agilex7 M-series Platform Enablement v1 13/16] ddr: altera: soc64: Fix dram size calculation in clamshell mode

2024-05-17 Thread tingting . meng
From: Teik Heng Chong This patch is to fix wrong memory size calculation in clamshell mode Signed-off-by: Teik Heng Chong Signed-off-by: Tingting Meng --- drivers/ddr/altera/sdram_soc64.c | 16 +++- drivers/ddr/altera/sdram_soc64.h | 5 + 2 files changed, 20 insertions(+), 1

[Agilex7 M-series Platform Enablement v1 12/16] ddr: altera: soc64: Clean up bit-shift by zero bit

2024-05-17 Thread tingting . meng
From: Teik Heng Chong Clean up bit-shift by zero bit Signed-off-by: Teik Heng Chong Signed-off-by: Tingting Meng --- drivers/ddr/altera/sdram_soc64.h | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/ddr/altera/sdram_soc64.h b/drivers/ddr/alter

[Agilex7 M-series Platform Enablement v1 11/16] ddr: altera: soc64: Restructure SDRAM firewall function

2024-05-17 Thread tingting . meng
From: Sin Hui Kho Restructure SDRAM firewall function. Move the non-F2SDRAM firewall configuration to an individual function, in preparation to support F2SDRAM firewall configuration. Signed-off-by: Sin Hui Kho Signed-off-by: Tingting Meng --- drivers/ddr/altera/sdram_soc64.c | 11 ---

[Agilex7 M-series Platform Enablement v1 10/16] ddr: altera: Add DDR driver for Agilex7 M-series

2024-05-17 Thread tingting . meng
From: Wan Yee Lau This is for new platform enablement for Agilex7 M-series. Add DDR driver for Agilex7 M-series. This driver is designed to support DDR and HBM memory. The official HBM handoff is not ready yet, therefore hardcoded handoff is used for HBM driver validation on mUDV board. Signed-o

[Agilex7 M-series Platform Enablement v1 09/16] ddr: altera: Add uibssm mailbox for Agilex7 M-series

2024-05-17 Thread tingting . meng
From: Teik Heng Chong Add uibssm mailbox driver for Agilex7 M-series. HPS will interact with UIB and HBM subsystem through software defined mailbox interface. HPS can retrieve memory interface calibration status, UIB configuration, memory interfae configuration, trigger calibration and etc with t

[Agilex7 M-series Platform Enablement v1 08/16] ddr: altera: Add iossm mailbox for Agilex7 M-series

2024-05-17 Thread tingting . meng
From: Wan Yee Lau Add iossm mailbox driver for Agilex7 M-series. HPS will interact with IO96B and DDR subsystem through software defined mailbox interface. HPS can retrieve memory interface calibration status, IO96B configuration, memory interfae configuration, trigger calibration and etc with th

[Agilex7 M-series Platform Enablement v1 07/16] clk: altera: Add clock support for Agilex7 M-series

2024-05-17 Thread tingting . meng
From: Teik Heng Chong Agilex7 M-series reuse the clock driver from Agilex. Signed-off-by: Wan Yee Lau Signed-off-by: Teik Heng Chong Signed-off-by: Tingting Meng --- arch/arm/mach-socfpga/include/mach/clock_manager.h | 2 +- arch/arm/mach-socfpga/misc.c | 2 +- drivers/

[Agilex7 M-series Platform Enablement v1 06/16] include: configs: soc64: Use CONFIG_SPL_ATF to differentiate bootfile

2024-05-17 Thread tingting . meng
From: Siew Chin Lim ATF boot flow (SPL->ATF->U-Boot Proper->OS) boot to OS via kernel.itb file using bootm command. Change to use CONFIG_SPL_ATF to differentiate the bootfile of default environment variable. We shouldn't use CONFIG_FIT because it is enabled by default for U-Boot Proper. Signed-

[Agilex7 M-series Platform Enablement v1 05/16] include: configs: Add config header file for Agilex7 M-series

2024-05-17 Thread tingting . meng
From: Wan Yee Lau Add config header file for new platform Agilex7 M-series. Signed-off-by: Wan Yee Lau Signed-off-by: Teik Heng Chong Signed-off-by: Tingting Meng --- .../{socfpga_agilex5_socdk.h => socfpga_agilex7m_socdk.h} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) copy

[Agilex7 M-series Platform Enablement v1 04/16] arch: arm: mach-socfpga: Update handoff settings for Agilex7 M-series

2024-05-17 Thread tingting . meng
From: Wan Yee Lau Handoff settings updated for new platform Agilex7 M-series. Signed-off-by: Wan Yee Lau Signed-off-by: Teik Heng Chong Signed-off-by: Tingting Meng --- arch/arm/mach-socfpga/include/mach/handoff_soc64.h | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) d

[Agilex7 M-series Platform Enablement v1 03/16] arch: arm: mach-socfpga: Improve help info.

2024-05-17 Thread tingting . meng
From: Teik Heng Chong To improve help info for bridge enable/disable command. Signed-off-by: Wan Yee Lau Signed-off-by: Teik Heng Chong Signed-off-by: Tingting Meng --- arch/arm/mach-socfpga/misc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-socfpga/

[Agilex7 M-series Platform Enablement v1 02/16] arch: arm: mach-socfpga: Add Agilex7 M-series mach-socfgpa enablement

2024-05-17 Thread tingting . meng
From: Wan Yee Lau Add platform related files for new platform Agilex7 M-series. Signed-off-by: Wan Yee Lau Signed-off-by: Teik Heng Chong Signed-off-by: Tingting Meng --- arch/arm/mach-socfpga/include/mach/misc.h | 3 +- .../{spl_agilex.c => spl_agilex7m.c} | 45 ---

[Agilex7 M-series Platform Enablement v1 01/16] arch: arm: dts: Add dts and dtsi for new platform Agilex7 M-series

2024-05-17 Thread tingting . meng
From: Wan Yee Lau Add Agilex7 M-series dtsi and dts for new platform Agilex7 M-series. Signed-off-by: Wan Yee Lau Signed-off-by: Teik Heng Chong Signed-off-by: Tingting Meng --- ...tsi => socfpga_agilex7m_socdk-u-boot.dtsi} | 37 - ...x_socdk.dts => socfpga_agilex7m_socdk.dts} | 66 +++

[Agilex7 M-series Platform Enablement v1 00/16]

2024-05-17 Thread tingting . meng
From: Tingting Meng Intel Agilex7 M-Series is the highest peformance FPGA targeted for compute and memory-intensive application,this series is built using intel 7 process technology and expands upon I-Series device feature, offering in-package high bandwidth memory (HBM), memory interfaces for

Re: [PATCH v5 01/12] efi: Correct handling of frame buffer

2024-05-17 Thread Heinrich Schuchardt
On 11/19/23 20:11, Simon Glass wrote: The efi_gop driver uses private fields from the video uclass to obtain a pointer to the frame buffer. Use the platform data instead. Check the VIDEO_COPY setting to determine which frame buffer to use. Once the next stage is running (and making use of U-Boot

[PATCH RFC] doc: Document address spaces used by U-Boot

2024-05-17 Thread Jiaxun Yang
--- base-commit: ad7dce5abd49ef3b5c93da5303e15449c8c162b4 change-id: 20240517-address-spaces-1c3b9c379b13 Best regards, -- Jiaxun Yang

Re: [PATCH v1 7/7] MAINTAINERS: Update Starfive visionfive2 maintain files.

2024-05-17 Thread Minda Chen
> > On 5/4/24 5:03 PM, Minda Chen wrote: > > Add USB related files to Starfive visionfive2 MAINTAINERS. > > > > Signed-off-by: Minda Chen > > --- > > board/starfive/visionfive2/MAINTAINERS | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/board/starfive/visionfive2/MAINTAINERS

Re: [PATCH 2/2] doc: Update netconsole examples

2024-05-17 Thread Heinrich Schuchardt
On 5/14/24 22:20, Fiona Klute wrote: As I understand the env command documentation the subcommand style is preferred, though the old format is still fully supported. Signed-off-by: Fiona Klute Reviewed-by: Heinrich Schuchardt --- doc/usage/netconsole.rst | 6 +++--- 1 file changed, 3 in

[PATCH] FSL DDR: Errata A009942 clears board cpo_sample

2024-05-17 Thread Joakim Tjernlund
LSB in debug_28 register is cleared here so previous setting by errata A009942 is lost. Save and restore LSB in debug_28 Signed-off-by: Joakim Tjernlund --- drivers/ddr/fsl/fsl_ddr_gen4.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/ddr/fsl/fsl_ddr_gen4.c b/drivers/ddr/fsl/fsl

Re: [PATCH 2/2] doc: process.rst: Document device tree resync rules

2024-05-17 Thread Quentin Schulz
Hi Tom, On 5/16/24 10:34 PM, Tom Rini wrote: Document the logic of when we do a full resync of the device trees used by OF_UPSTREAM as well as that cherry-picking is allowed as needed. Signed-off-by: Tom Rini --- Cc: Heinrich Schuchardt --- doc/develop/process.rst | 13 + 1 fil

Re: [PATCH v1 6/9] rockchip: RK3568: Read the reset cause from clock reset unit for RK356x SoC

2024-05-17 Thread Anand Moon
Hi Jonas, Dropping @edgeble.ai email ID as it is not working On Thu, 16 May 2024 at 19:48, Jonas Karlman wrote: > > Hi Anand, > > On 2024-05-16 10:59, Anand Moon wrote: > > Read the reset cause from the clock reset unit for RK356x SoC. > > > > Cc: Jagan Teki > > Signed-off-by: Anand Moon > > -

Re: [PATCH 1/2] doc: Detailed example for netconsole setup

2024-05-17 Thread Heinrich Schuchardt
On 5/14/24 22:20, Fiona Klute wrote: This adds details that I would have liked to have readily available, in particular how to activate the network interface before enabling netconsole, and how to integrate netconsole so you can use the U-Boot prompt. Signed-off-by: Fiona Klute --- doc/usage/