Re: [PATCH v2 01/10] arm: dts: introduce j784s4 dtbs from linux kernel

2023-04-13 Thread Siddharth Vadapalli
Hello Hari, On 21/03/23 19:40, Hari Nagalla wrote: > Introduce the basic j784s4 SoC dtbs from the linux kernel along with > the new j784s4 specific pinmux definitions that we will use to generate > the dtbs for the u-boot-spl and u-boot binaries. > > Signed-off-by: Apurva Nandan >

[PATCH V2 0/2] net: phy: Make phy_interface_is_sgmii|rgmii a switch statement

2023-04-13 Thread Nishanth Menon
Originally reported by Tom[1], turned out to be that recent commit 75d28899e3e9 ("net: phy: Synchronize PHY interface modes with Linux") reordered the enum definitions which in turn broke the range checks. we are left with two options: a) check against explicit values to help reuse as much as

[PATCH V2 1/2] net: phy: Make phy_interface_is_sgmii a switch statement

2023-04-13 Thread Nishanth Menon
Recent commit 75d28899e3e9 ("net: phy: Synchronize PHY interface modes with Linux") reordered the enum definitions. This caused the range of enums that this api was checking to go bad. While it is possible for the phy drivers to practically use the enum's directly, drivers such as dp83867 use

[PATCH V2 2/2] net: phy: Make phy_interface_is_rgmii a switch statement

2023-04-13 Thread Nishanth Menon
Recent commit 75d28899e3e9 ("net: phy: Synchronize PHY interface modes with Linux") reordered the enum definitions. This exposed a problem in range checking functions to identify the interface type. Though this specific api was'nt impacted (all the RGMII definitions remained within range), this

[PATCH v2 09/10] remoteproc: ti_k3_arm64: Change the startup of arm64 core

2023-04-13 Thread Manorit Chawdhry
Configuring master firewalls require the power of the cluster to be enabled before configuring them, change the load of rproc to configure the gtc clocks and start the cluster along with configuring the boot vector. The start of rproc will only start the core. Signed-off-by: Manorit Chawdhry

[PATCH v2 10/10] arm: mach-k3: common: re-locate authentication for atf/optee

2023-04-13 Thread Manorit Chawdhry
For setting up the master firewalls present in the K3 SoCs, the arm64 clusters need to be powered on. Re-locates the code for atf/optee authentication. Signed-off-by: Manorit Chawdhry --- arch/arm/mach-k3/common.c | 35 +-- 1 file changed, 33 insertions(+), 2

[PATCH v2 08/10] arm: dts: k3-am625-r5-sk: add a53 cluster power

2023-04-13 Thread Manorit Chawdhry
adds a53 cluster to control from the rproc driver Signed-off-by: Manorit Chawdhry --- arch/arm/dts/k3-am625-r5-sk.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/k3-am625-r5-sk.dts b/arch/arm/dts/k3-am625-r5-sk.dts index dad46704a2d8..78df7cec3f90 100644

[PATCH v2 06/10] arm: dts: k3-am642-r5: add a53 cluster power domain node

2023-04-13 Thread Manorit Chawdhry
adds a53 cluster to control from the rproc driver Signed-off-by: Manorit Chawdhry --- arch/arm/dts/k3-am642-r5-evm.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/k3-am642-r5-evm.dts b/arch/arm/dts/k3-am642-r5-evm.dts index ca5ce4a35a5c..e870492a690c

[PATCH v2 07/10] arm: dts: k3-am62a7-r5-sk: add a53 cluster power domain node

2023-04-13 Thread Manorit Chawdhry
adds a53 cluster to control from the rproc driver Signed-off-by: Manorit Chawdhry --- arch/arm/dts/k3-am62a7-r5-sk.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/k3-am62a7-r5-sk.dts b/arch/arm/dts/k3-am62a7-r5-sk.dts index c953a82c7a5e..cc4b179e27f3

[PATCH v2 05/10] arm: dts: k3-am642-r5-sk: add a53 cluster power domain node

2023-04-13 Thread Manorit Chawdhry
adds a53 cluster to control from the rproc driver Signed-off-by: Manorit Chawdhry --- arch/arm/dts/k3-am642-r5-sk.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/k3-am642-r5-sk.dts b/arch/arm/dts/k3-am642-r5-sk.dts index 9ff4dd3dd365..32d4c317284f 100644

[PATCH v2 04/10] arm: dts: k3-j7200-r5: add a72 cluster power domain node

2023-04-13 Thread Manorit Chawdhry
adds a72 cluster to control from the rproc driver Signed-off-by: Manorit Chawdhry --- arch/arm/dts/k3-j7200-r5-common-proc-board.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/k3-j7200-r5-common-proc-board.dts

[PATCH v2 03/10] arm: dts: k3-j721e-r5: add a72 cluster power domain node

2023-04-13 Thread Manorit Chawdhry
adds a72 cluster to control from the rproc driver Signed-off-by: Manorit Chawdhry --- arch/arm/dts/k3-j721e-r5-common-proc-board.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/k3-j721e-r5-common-proc-board.dts

[PATCH v2 02/10] arm: dts: k3-j721e-r5-sk: add a72 cluster power domain node

2023-04-13 Thread Manorit Chawdhry
adds a72 cluster to control from the rproc driver Signed-off-by: Manorit Chawdhry --- arch/arm/dts/k3-j721e-r5-sk.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/k3-j721e-r5-sk.dts b/arch/arm/dts/k3-j721e-r5-sk.dts index 8d6eaa4fbbe4..6986292e37cd 100644

[PATCH v2 00/10] k3: power control support for arm clusters

2023-04-13 Thread Manorit Chawdhry
The series changes the flow on how the arm64 core boots up and allows cluster level control on the power domains to hold the processor in reset during rproc_load. Cc: u-boot@lists.denx.de To: Tom Rini Cc: Andrew Davis Cc: Vignesh Raghavendra Cc: "Kamlesh Gurudasani" Signed-off-by: Manorit

[PATCH v2 01/10] arm: dts: k3-j721s2-r5: add a72 cluster power domain node

2023-04-13 Thread Manorit Chawdhry
adds a72 cluster to control from the rproc driver Signed-off-by: Manorit Chawdhry --- arch/arm/dts/k3-j721s2-r5-common-proc-board.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/k3-j721s2-r5-common-proc-board.dts

Re: [PATCH u-boot 0/3] pci: mpc85xx: Fixes for PCI config space

2023-04-13 Thread Heiko Schocher
Hello Pali, On 13.04.23 22:41, Pali Rohár wrote: > This patch series contains small fixes for mpc85xx old PCI Local Bus driver. > > Heiko: Are you able to test these changes? Has your Socrates board > available old PCI Local Bus support? > > Pali Rohár (3): > pci: mpc85xx: Add missing sync()

Re: [PATCH 1/2] net: phy: Make phy_interface_is_sgmii a switch statement

2023-04-13 Thread Nishanth Menon
On 23:22-20230413, Marek Behún wrote: > On Thu, Apr 13, 2023 at 02:02:34PM -0500, Nishanth Menon wrote: > > On 20:56-20230413, Marek Behún wrote: > > > On Thu, Apr 13, 2023 at 01:07:12PM -0500, Nishanth Menon wrote: > > > > Recent commit 75d28899e3e9 ("net: p

Re: [PATCH v2 u-boot-mvebu 4/4] arm: mvebu: clearfog: Update eMMC/SD/SATA instructions

2023-04-13 Thread Martin Rowe
On Thu, 13 Apr 2023 at 20:58, Pali Rohár wrote: > > BootROM and neither SPL does not use eMMC boot acknowledgement or boot > enable bits in EXT_CSD_PART_CONF eMMC register. And also fixed SATA disk > sector 0x141 is not used at all. > > Signed-off-by: Pali Rohár SPL successfully loads u-boot

Re: [RESEND PATCH v2] netconsole: various improvements

2023-04-13 Thread Tony Dinh
Hi Ramon, Hi Joe, Any comments on this patch? Thanks, Tony On Mon, Apr 3, 2023 at 2:42 PM Tony Dinh wrote: > > Use CONFIG_CONSOLE_MUX for netconsole. When netconsole is running, > stdin/stdout/stder must be set to some primary console, in addtion to nc. > For example, stdin=serial,nc. Some

Re: [PATCH 1/2] net: phy: Make phy_interface_is_sgmii a switch statement

2023-04-13 Thread Marek Behún
On Thu, Apr 13, 2023 at 02:02:34PM -0500, Nishanth Menon wrote: > On 20:56-20230413, Marek Behún wrote: > > On Thu, Apr 13, 2023 at 01:07:12PM -0500, Nishanth Menon wrote: > > > Recent commit 75d28899e3e9 ("net: phy: Synchronize PHY interface modes > > > with Linux&

[PATCH u-boot 4/4] board: purism: Use U-Boot mmc function for converting boot part to part access

2023-04-13 Thread Pali Rohár
eMMC Boot Partition Enable bits in mmc->part_config (EXT_CSD[179]) has different coding than eMMC Partition Access bits. Use spl_mmc_emmc_boot_partition() function which does this conversion properly (hopefully). Signed-off-by: Pali Rohár --- board/purism/librem5/librem5.c | 6 +- 1 file

[PATCH u-boot 3/4] sunxi: eMMC: Add comments explaining mapping between bootpart and mmc_switch_part()

2023-04-13 Thread Pali Rohár
Mapping between bootpart taken from EXT_CSD_EXTRACT_BOOT_PART() and Partition Access bits used by the mmc_switch_part() function may be quite misleading. So add extended comment describing why in sunxi case is this mapping just a simple identity. Because in generic case this mapping requires

[PATCH u-boot 2/4] cmd: mvebu/bubt: Validate EXT_CSD[179] eMMC register in mmc_burn_image()

2023-04-13 Thread Pali Rohár
When determining eMMC boot partition for a bootloader, validate that EXT_CSD[179] eMMC register is set to recognized value. This prevent situation that EXT_CSD[179] Boot Enable value is improperly parsed and passed into EXT_CSD[179] Partition Access. Signed-off-by: Pali Rohár ---

[PATCH u-boot 1/4] mmc: spl: Make partition choice in default_spl_mmc_emmc_boot_partition() more explicit

2023-04-13 Thread Pali Rohár
To make eMMC partition choosing in default_spl_mmc_emmc_boot_partition() function better understandable, rewrite it via explicit switch-case code pattern. Also add a warning when eMMC EXT_CSD[179] register is configured by user to value which is not suitable for eMMC booting and SPL do not know

[PATCH u-boot 0/4] mmc: Explain and cleanup partition selection

2023-04-13 Thread Pali Rohár
Some people do not want to read review comments in emails. So put comments and explanation into the source code itself; make emmc partition selection code more explicit and validate configuration in bubt command. Pali Rohár (4): mmc: spl: Make partition choice in

[PATCH v2 u-boot-mvebu 3/4] arm: mvebu: spl: Load proper U-Boot from correct eMMC partition

2023-04-13 Thread Pali Rohár
A38x BootROM completely ignores EXT_CSD_PART_CONF eMMC register and tries to load SPL from any partition in defined order. Chosen partition can be determined from the access bits in EXT_CSD_PART_CONF eMMC register. So implement custom spl_mmc_emmc_boot_partition() function to always returns eMMC

[PATCH v2 u-boot-mvebu 2/4] mmc: Read eMMC partition access bits before card reset

2023-04-13 Thread Pali Rohár
eMMC specification in section "Access partitions" says that all reset events will restore the access bits in PARTITION_CONFIG CSD register to default User Data Area value (0b000). So read partition access bits from PARTITION_CONFIG CSD register before issuing card reset. This allows SPL/U-Boot to

[PATCH v2 u-boot-mvebu 4/4] arm: mvebu: clearfog: Update eMMC/SD/SATA instructions

2023-04-13 Thread Pali Rohár
BootROM and neither SPL does not use eMMC boot acknowledgement or boot enable bits in EXT_CSD_PART_CONF eMMC register. And also fixed SATA disk sector 0x141 is not used at all. Signed-off-by: Pali Rohár --- board/solidrun/clearfog/README | 20 ++-- 1 file changed, 10

[PATCH v2 u-boot-mvebu 1/4] tools: kwboot: Fix MMC partitions documentation

2023-04-13 Thread Pali Rohár
Boot configuration stored in EXT_CSD_PART_CONF register is completely ignored by BootROM. Fixes: fa03279e198d ("tools: kwboot: Add image type documentation") Signed-off-by: Pali Rohár --- tools/kwboot.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tools/kwboot.c

[PATCH v2 u-boot-mvebu 0/4] arm: mvebu: Fix eMMC boot

2023-04-13 Thread Pali Rohár
Boot configuration stored in EXT_CSD[179] register is completely ignored by BootROM: https://lore.kernel.org/u-boot/CAOAjy5SYPPzWKok-BSGYwZwcKOQt_aZPgh6FTbrFd3F=8dm...@mail.gmail.com/ Instead eMMC partition use for booting has to be extracted from Partition access bits:

[PATCH u-boot 0/3] pci: mpc85xx: Fixes for PCI config space

2023-04-13 Thread Pali Rohár
This patch series contains small fixes for mpc85xx old PCI Local Bus driver. Heiko: Are you able to test these changes? Has your Socrates board available old PCI Local Bus support? Pali Rohár (3): pci: mpc85xx: Add missing sync() after writing to PCI config space pci: mpc85xx: Allow 8/16-bit

[PATCH u-boot 3/3] pci: mpc85xx: Do not try to access extended PCIe registers

2023-04-13 Thread Pali Rohár
Driver pci_mpc85xx.c is PCI controller driver for old PCI Local Bus, which does not support access to extended PCIe registers (above 0xff), as opposite of the PCIe driver pcie_fsl.c for the same platform. So do not try to access extended PCIe registers as it cannot work. Signed-off-by: Pali

[PATCH u-boot 1/3] pci: mpc85xx: Add missing sync() after writing to PCI config space

2023-04-13 Thread Pali Rohár
On PowerPC we should use barrier after store operation to HW register. Signed-off-by: Pali Rohár --- drivers/pci/pci_mpc85xx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/pci_mpc85xx.c b/drivers/pci/pci_mpc85xx.c index 8a81a74067e9..23f14db83018 100644 ---

[PATCH u-boot 2/3] pci: mpc85xx: Allow 8/16-bit access to PCI config space

2023-04-13 Thread Pali Rohár
This Freescale mpc85xx PCI controller should support 8-bit and 16-bit read and write access to PCI config space as described in more Freescale reference manuals. This change fixes issue that 8-bit and 16-bit write to PCI config space caused to clear adjacent bits of 32-bit PCI register.

[PATCH u-boot] arm: omap3: Directly use SMC #1 in lowlevel_init.S

2023-04-13 Thread Pali Rohár
Since commit de39dc71625d ("arm: armv7-a: Compile and tune for armv7-a instead of armv5") is used -march=armv7-a option for Omap3 platforms. With directive ".arch_extension sec" it is possible for -march=armv7-a to directly use ARM SMC instruction. So enable ".arch_extension sec" in Omap3

Re: [PATCH v1 0/4] Tegra: add ASUS/Google Nexus 7 (2012) support

2023-04-13 Thread Svyatoslav Ryhel
чт, 13 квіт. 2023 р. о 20:13 Tom Warren пише: > > Svyatoslav, > > I tried to build w/V2 of your Nexus patches applied to TOT > u-boot-tegra/master, and I get these errors from 'buildman tegra': > >aarch64: + p2771--000 > +In file included from arch/arm/mach-tegra/fuse.c:16:0: >

[PATCH v3 4/4] board: asus: grouper: add Google Nexus 7 (2012) support

2023-04-13 Thread Svyatoslav Ryhel
Nexus 7 is a mini tablet computer co-developed by Google and Asus that runs the Android operating system. The Nexus 7 features a 7" display, an Nvidia Tegra 3 quad-core chip, 1 GB of RAM and 8/16 GB of internal storage. This patch brings support for all 3 known ASUS/Google devices: - Nexus 7

[PATCH v3 3/4] ARM: tegra: add SoC UID calculation function

2023-04-13 Thread Svyatoslav Ryhel
This is a small tool for calculation of SoC UID based on the same Linux function. It can be further used for generation of device unique data like mac address or exposing it as serial number. Tested-by: Andreas Westman Dorcsak # ASUS Grouper E1565 Tested-by: Svyatoslav Ryhel # LG P895 T30

[PATCH v3 2/4] configs: tegra-common-post: make PXE and DHCP boot targets optional

2023-04-13 Thread Svyatoslav Ryhel
From: Jonas Schwöbel Disabling the network related features in defconfig causes build to fail so make them optional. Tested-by: Andreas Westman Dorcsak # ASUS Grouper E1565 Tested-by: Svyatoslav Ryhel # LG P895 T30 Signed-off-by: Jonas Schwöbel Signed-off-by: Svyatoslav Ryhel ---

[PATCH v3 1/4] configs: tegra-common-post: add GPIO keyboard as STDIN device

2023-04-13 Thread Svyatoslav Ryhel
GPIO keyboard is used on many newly upstreamed devices. Tested-by: Andreas Westman Dorcsak # ASUS Grouper E1565 Tested-by: Svyatoslav Ryhel # LG P895 T30 Signed-off-by: Svyatoslav Ryhel --- include/configs/tegra-common-post.h | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff

[PATCH v3 0/4] Tegra: add ASUS/Google Nexus 7 (2012) support

2023-04-13 Thread Svyatoslav Ryhel
This patchset adds support for native use of U-Boot on ASUS/Google Nexus 7 (2012), aka grouper/tilapia as a replacement of vendor bootloader. Alongside device bringup tegra requires few small patches: - add gpio keyboard as stdin device - make networking boot options optional - add a small tool

Re: [PATCH 1/2] net: phy: Make phy_interface_is_sgmii a switch statement

2023-04-13 Thread Nishanth Menon
On 20:56-20230413, Marek Behún wrote: > On Thu, Apr 13, 2023 at 01:07:12PM -0500, Nishanth Menon wrote: > > Recent commit 75d28899e3e9 ("net: phy: Synchronize PHY interface modes > > with Linux") reordered the enum definitions. This caused the range of > > enums t

Re: [PATCH 1/2] net: phy: Make phy_interface_is_sgmii a switch statement

2023-04-13 Thread Marek Behún
On Thu, Apr 13, 2023 at 01:07:12PM -0500, Nishanth Menon wrote: > Recent commit 75d28899e3e9 ("net: phy: Synchronize PHY interface modes > with Linux") reordered the enum definitions. This caused the range of > enums that this api was checking to go bad. > > While it is possible for the phy

Re: [PATCH 0/2] net: phy: Make phy_interface_is_sgmii|rgmii a switch statement

2023-04-13 Thread Nishanth Menon
On 13:07-20230413, Nishanth Menon wrote: > Originally reported by Tom[1], turned out to be that recent commit > 75d28899e3e9 ("net: phy: Synchronize PHY interface modes with Linux") > reordered the enum definitions which in turn broke the range checks. > > we are left wit

[PATCH 1/2] net: phy: Make phy_interface_is_sgmii a switch statement

2023-04-13 Thread Nishanth Menon
Recent commit 75d28899e3e9 ("net: phy: Synchronize PHY interface modes with Linux") reordered the enum definitions. This caused the range of enums that this api was checking to go bad. While it is possible for the phy drivers to practically use the enum's directly, drivers such as dp83867 use

[PATCH 0/2] net: phy: Make phy_interface_is_sgmii|rgmii a switch statement

2023-04-13 Thread Nishanth Menon
Originally reported by Tom[1], turned out to be that recent commit 75d28899e3e9 ("net: phy: Synchronize PHY interface modes with Linux") reordered the enum definitions which in turn broke the range checks. we are left with two options: a) check against explicit values to help reuse as much as

[PATCH 2/2] net: phy: Make phy_interface_is_rgmii a switch statement

2023-04-13 Thread Nishanth Menon
Recent commit 75d28899e3e9 ("net: phy: Synchronize PHY interface modes with Linux") reordered the enum definitions. This exposed a problem in range checking functions to identify the interface type. Though this specific api was'nt impacted (all the RGMII definitions remained within range), this

RE: [PATCH v1 0/4] Tegra: add ASUS/Google Nexus 7 (2012) support

2023-04-13 Thread Tom Warren
Svyatoslav, I tried to build w/V2 of your Nexus patches applied to TOT u-boot-tegra/master, and I get these errors from 'buildman tegra': aarch64: + p2771--000 +In file included from arch/arm/mach-tegra/fuse.c:16:0: +arch/arm/include/asm/arch-tegra/clock.h:42:10: fatal

Re: [PATCH v2] rockchip: rk3328: Add support for FriendlyARM NanoPi R2C

2023-04-13 Thread Tianling Shen
Hi Pali, On Wednesday 12 April 2023 01:56:13 Pali Rohár wrote: > Hello! I'm not rockchip maintainer, how many times I need to repeat it > to not send me rockchip patches? Or is there something important for me? I am sorry for disturbing you! This is my first time contributing to the u-boot

[PATCH] dm: core: introduce uclass_get_device_by_of_path()

2023-04-13 Thread Rasmus Villemoes
There's quite a few instances of board-specific code doing off = fdt_path_offset(gd->fdt_blob, ...); ... ret = uclass_get_device_by_of_offset(..., off, ); looking for an eeprom or a pmic via some alias. Such code can be simplified a little if we have a helper for directly getting a device

[PATCH] uclass: add uclass_find_device_by_phandle_id() helper

2023-04-13 Thread Rasmus Villemoes
The functions uclass_find_device_by_phandle() and uclass_get_device_by_phandle_id() both loop over a given uclass looking for a device with a given phandle. Factor that out to a common helper. For now, there are no (known potential) users of the new helper outside uclass.c, so make it static.

[PATCH] imx: imx8mp: Add support for Polyhex Debix Model A SBC

2023-04-13 Thread Gilles Talis
Add support for the Polyhex Debix Model A SBC board. It is an industrial grade single board computer based on NXP's i.MX 8M Plus. Currently supported interfaces are: - Serial console - Micro SD - eQOS and FEC Ethernet imx8mp-debix-model-a.dts is taken from Linux 6.3-rc6. Signed-off-by: Gilles

The u-boot supports i2c-over-hid?

2023-04-13 Thread skyo...@126.com
Hello, I would like to ask whether i2c-over-hid is not supported under u-boot at present. At present, we have this development need. I would like to ask whether it is feasible to transplant i2c-over-hid from kernel. If not, is there any other way?

[PATCH] docs: fix wrong proftool usage

2023-04-13 Thread Pavel Skripkin
Guide shows incorrect usage of proftool, which is confusing. If proftool is used w/o '-o' argument it complains like following $ ./sandbox/tools/proftool -m sandbox/System.map -t trace dump-ftrace > trace.dat Must provide trace data, System.map file and output file Usage: proftool [-cmtv]

Re: [PATCH 2/3] net: add fastboot TCP support

2023-04-13 Thread Dmitrii Merkurev
Thank you for the comments. Fixed everything you mentioned in uploaded v2. > Wow, that can really be that big? Or are you using u64 just because > that is the size of the field? I don't think any fastboot message can be that big. You're right, using u64 to fit the field. Here is more information

[PATCH] sandbox: disable tracing before unmapping RAM

2023-04-13 Thread Pavel Skripkin
Currently doing 'reset' command in sandbox with tracing enabled causes SIGSEV ``` Hit any key to stop autoboot: 0 => => => reset resetting ... Segmentation fault (core dumped) ``` Tracing callback uses RAM buffer for storing tracing reports, but state_uninit() function unmaps whole RAM, which

[PATCH v2 3/3] net: share fastboot boot handle logic between transports

2023-04-13 Thread Dmitrii Merkurev
Introduce reboot, boot and continue commands support to TCP fastboot by moving existing UDP logic into the common module. Signed-off-by: Dmitrii Merkurev Cc: Ying-Chun Liu (PaulLiu) Cc: Simon Glass Сс: Joe Hershberger Сс: Ramon Fried Reviewed-by: Simon Glass Reviewed-by: Ramon Fried ---

[PATCH v2 2/3] net: add fastboot TCP support

2023-04-13 Thread Dmitrii Merkurev
Known limitations are 1. fastboot reboot doesn't work (answering OK but not rebooting) 2. flashing isn't supported (TCP transport only limitation) The command syntax is fastboot tcp Signed-off-by: Dmitrii Merkurev Cc: Ying-Chun Liu (PaulLiu) Cc: Simon Glass Сс: Joe Hershberger Сс: Ramon

[PATCH v2 1/3] net: support being a TCP server to unblock TCP fastboot

2023-04-13 Thread Dmitrii Merkurev
Make following changes to unblock TCP fastboot support: 1. Implement being a TCP server support 2. Introduce dedicated TCP traffic handler (get rid of UDP signature) 3. Ensure seq_num and ack_num are respected in net_send_tcp_packet function (make sure existing wget_cmd code is reflected with the

[PATCH V3 2/2] ARM: dts: rockchip: rk3588s-u-boot: Add rng node

2023-04-13 Thread Chris Morgan
From: Chris Morgan Add a node for the trng found on RK3588 SoCs. Changes in V3: - Added Reviewed-By tag. Changes in V2: - None Signed-off-by: Chris Morgan Reviewed-by: Kever Yang --- arch/arm/dts/rk3588s-u-boot.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git

[PATCH V3 1/2] rockchip: rng: add trngv1 for rk3588

2023-04-13 Thread Chris Morgan
From: Chris Morgan This adds support for the TRNG found in the RK3588 SoC to the rockchip_rng driver so that it can be used for things such as seeding randomness to Linux. Changes in V3: - Moved notes from commit to cover letter. - Added Reviewed-By tag. Changes in V2: - Modified Kconfig to

[PATCH V3 0/2] Add RK3588 TRNG

2023-04-13 Thread Chris Morgan
From: Chris Morgan Add support for the RK3588 TRNG. The code was taken directly from the Rockchip BSP U-Boot source. This code was taken wholesale from the Rockchip BSP U-Boot source located here: https://github.com/rockchip-linux/u-boot/commit/09f31aed858c36a8a5ee20789712e65bb4762068 Tested

[PATCH] pci: pcie_dw_rockchip: release resources on failing probe

2023-04-13 Thread Eugen Hristev
Implement a resource release mechanism on failing probe. Without this, a strange situation can happen e.g. when init port fails, or attempting to get the PHY fails, because the gpios have been requested first, and if the user tries to do 'pci enum' again, the driver will fail with 'can't find

[PATCH 2/2] reset: rockchip: implement rk3588 lookup table

2023-04-13 Thread Eugen Hristev
The current DT bindings for the rk3588 clock use a different ID than the one that is supposed to be written to the hardware registers. Thus, we cannot use directly the id provided in the phandle, but rather use a lookup table to correctly setup the hardware. This approach has been implemented

[PATCH 1/2] clk: rockchip: rk3588: add hardcoded assigned clocks values

2023-04-13 Thread Eugen Hristev
The CRU is being probed with a default set of assigned clocks, which are not implemented in the driver at all. Hence, when clk_set_defaults is called, it fails with ENOENT. This would not be a problem, as the CRU still handles all the required clocks, and the assigned clocks are default configs

Re: [PATCH 10/10] arm: mach-k3: common: re-locate authentication for atf/optee

2023-04-13 Thread Manorit Chawdhry
Hi, On 13:58-20230412, Manorit Chawdhry wrote: > For setting up the master firewalls present in the K3 SoCs, the arm64 > clusters need to be powered on. > > Re-locates the code for atf/optee authentication. > > Signed-off-by: Manorit Chawdhry > --- > arch/arm/mach-k3/common.c | 23

Pull request: u-boot-sunxi/master for v2023.07

2023-04-13 Thread Andre Przywara
Hi Tom, please pull the sunxi/master branch, containing the first part of the 2023.07 changes. The biggest change is some refactoring of the H616 DRAM driver, which allows better fine-tuning for each board, and is the base for pending LPDDR3 and LPDDR4 support, needed by new boards. The

Re: [PATCH v11 05/10] arm_ffa: introduce armffa command

2023-04-13 Thread Abdellatif El Khlifi
On Wed, Apr 12, 2023 at 10:00:38PM +0200, Heinrich Schuchardt wrote: > > > Am 12. April 2023 17:53:23 MESZ schrieb Abdellatif El Khlifi > : > >On Wed, Apr 12, 2023 at 04:02:43PM +0200, Heinrich Schuchardt wrote: > >> On 4/12/23 11:42, Abdellatif El Khlifi wrote: > >> > Provide armffa command

Re: [PATCH] riscv: Add a 64-bit image type

2023-04-13 Thread Bin Meng
On Mon, Apr 10, 2023 at 3:25 PM Rick Chen wrote: > > > From: Simon Glass > > Sent: Monday, April 03, 2023 4:28 AM > > To: U-Boot Mailing List > > Cc: Sean Anderson ; Bin Meng ; Rick > > Jian-Zhi Chen(陳建志) ; Leo Yu-Chi Liang(梁育齊) > > ; Simon Glass ; Andre Przywara > > ; Marc Kleine-Budde ; >

Re: [PATCH v5 00/17] Basic StarFive JH7110 RISC-V SoC support

2023-04-13 Thread yanhong wang
On 2023/4/13 17:03, Torsten Duwe wrote: > On Thu, 13 Apr 2023 10:05:28 +0800 > yanhong wang wrote: > >> the definition of DT refers to Linux and is consistent with the definition >> framework of Linux. > > This is one of the desired goals, to avoid confusion, usually. But note there > are

Re: [PATCH v5 00/17] Basic StarFive JH7110 RISC-V SoC support

2023-04-13 Thread Torsten Duwe
On Thu, 13 Apr 2023 10:05:28 +0800 yanhong wang wrote: > the definition of DT refers to Linux and is consistent with the definition > framework of Linux. This is one of the desired goals, to avoid confusion, usually. But note there are already the -u-boot.dtsi files; in this case it would be

Aw: [PATCH] pinctrl: mediatek: set R1/R0 in case pullen/pullsel succeeded

2023-04-13 Thread Frank Wunderlich
FYI...this issue affects only specific eMMC-Chips (vendor SEC) on the Bananapi-R2 (v1.2). i have a v1.1 with a Samsung eMMC where i had no problems with the missing pullups/pulldowns (maybe this has internal resistors) more information about this special case:

Re: [PATCH v2 1/2] Boot var automatic management for removable medias

2023-04-13 Thread AKASHI Takahiro
On Fri, Apr 07, 2023 at 12:13:36PM +0200, Heinrich Schuchardt wrote: > On 4/5/23 02:06, Raymond Mao wrote: > > 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,

Re: [PATCH v4 0/5] Add Broadcom Northstar basic support

2023-04-13 Thread Heinrich Schuchardt
On 4/7/23 15:40, Linus Walleij wrote: This adds the device trees and minimal code needed to run U-Boot on Broadcom Northstar SoCs. This is needed to properly boot the D-Link DIR-890L router as it refuse to directly boot compressed kernels bigger than 2MB, and well our compressed kernel is

Re: [PATCH v4] ARM: dts: imx7d-sdb-u-boot: Fix usdhc1 UHS operation

2023-04-13 Thread Peng Fan
On 4/12/2023 8:41 PM, Fabio Estevam wrote: From: Fabio Estevam Commit 1a7904fdfa7d ("mmc: fsl_esdhc_imx: Use esdhc_soc_data flags to set host caps") exposed the following SD card error: U-Boot 2023.04-00652-g487e42f7bc5e (Apr 05 2023 - 22:14:21 -0300) CPU: Freescale i.MX7D rev1.0 1000

[PATCH v2 8/9] riscv: spl: Remove relocation sections

2023-04-13 Thread Bin Meng
U-Boot SPL is not relocable. Drop these relocation sections. Signed-off-by: Bin Meng --- Changes in v2: - fix SPL build error arch/riscv/cpu/start.S| 2 ++ arch/riscv/cpu/u-boot-spl.lds | 25 - 2 files changed, 2 insertions(+), 25 deletions(-) diff --git

[PATCH v2 5/9] makefile: riscv: Drop useless argument of prelink-riscv

2023-04-13 Thread Bin Meng
The argv[2] is never used in prelink-riscv. Drop it. Signed-off-by: Bin Meng Reviewed-by: Rick Chen --- (no changes since v1) Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5083beae35..eaaf7d267d 100644 --- a/Makefile +++ b/Makefile @@

[PATCH v2 9/9] riscv: Update alignment for some sections in linker scripts

2023-04-13 Thread Bin Meng
Some sections in the linker scripts are aligned to 4 bytes, which may cause misaligned exception on some platforms, e.g.: clearing the bss section on 64-bit hardware if __bss_start does not start from a naturally 8 bytes aligned address. Signed-off-by: Bin Meng --- (no changes since v1)

[PATCH v2 7/9] riscv: Avoid updating the link register

2023-04-13 Thread Bin Meng
board_init_r does not return for U-Boot SPL hence there is no need to update the link register when jumping to board_init_r. Signed-off-by: Bin Meng --- Changes in v2: - new patch: "riscv: Avoid updating the link register" arch/riscv/cpu/start.S | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH v2 6/9] riscv: Change to use positive offset to access relocation entries

2023-04-13 Thread Bin Meng
The codes currently skip the very first relocation entry, and have an inaccurate comment "skip first reserved entry" indicating that the first entry is reserved, but later it references the elements in the first relocation entry using a minus offset. Change to use a positive offset so that there

[PATCH v2 4/9] tools: prelink-riscv: Unmap the ELF image when done

2023-04-13 Thread Bin Meng
The codes forget to call munmap() to unmap the ELF image that was mapped by previous mmap(). Signed-off-by: Bin Meng Reviewed-by: Rick Chen --- (no changes since v1) tools/prelink-riscv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/prelink-riscv.c b/tools/prelink-riscv.c

[PATCH v2 2/9] riscv: Optimize loading relocation type

2023-04-13 Thread Bin Meng
't5' already contains relocation type so don't bother reloading it. Signed-off-by: Bin Meng Reviewed-by: Rick Chen --- (no changes since v1) arch/riscv/cpu/start.S | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/riscv/cpu/start.S b/arch/riscv/cpu/start.S index 3c8344c345..879bdc1803

[PATCH v2 3/9] tools: prelink-riscv: Cosmetic style fixes

2023-04-13 Thread Bin Meng
Some coding convention fixes. Signed-off-by: Bin Meng Reviewed-by: Rick Chen --- (no changes since v1) tools/prelink-riscv.inc | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/prelink-riscv.inc b/tools/prelink-riscv.inc index f2b5467f5b..57c0f655d4

[PATCH v2 1/9] riscv: Optimize source end address calculation in start.S

2023-04-13 Thread Bin Meng
The __bss_start is the source end address hence load its address directly into register 't2' for optimization. Signed-off-by: Bin Meng Reviewed-by: Rick Chen --- (no changes since v1) arch/riscv/cpu/start.S | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

Re: [PATCH v1 0/4] Tegra: add ASUS/Google Nexus 7 (2012) support

2023-04-13 Thread Svyatoslav Ryhel
чт, 13 квіт. 2023 р. о 02:07 Tom Warren пише: > > Svyatoslav, > > This series (patches 3 & 4, in particular) fails when applied to > u-boot-tegra/master TOT. Error snippet is below (from make > p2771--500_defconfig && make): > > CC arch/arm/mach-tegra/fuse.o >

[PATCH v2 4/4] board: asus: grouper: add Google Nexus 7 (2012) support

2023-04-13 Thread Svyatoslav Ryhel
Nexus 7 is a mini tablet computer co-developed by Google and Asus that runs the Android operating system. The Nexus 7 features a 7" display, an Nvidia Tegra 3 quad-core chip, 1 GB of RAM and 8/16 GB of internal storage. This patch brings support for all 3 known ASUS/Google devices: - Nexus 7

[PATCH v2 3/4] ARM: tegra: add SoC UID calculation function

2023-04-13 Thread Svyatoslav Ryhel
This is a small tool for calculation of SoC UID based on the same Linux function. It can be further used for generation of device unique data like mac address or exposing it as serial number. Tested-by: Andreas Westman Dorcsak # ASUS Grouper E1565 Tested-by: Svyatoslav Ryhel # LG P895 T30

[PATCH v2 2/4] configs: tegra-common-post: make PXE and DHCP boot targets optional

2023-04-13 Thread Svyatoslav Ryhel
From: Jonas Schwöbel Disabling the network related features in defconfig causes build to fail so make them optional. Tested-by: Andreas Westman Dorcsak # ASUS Grouper E1565 Tested-by: Svyatoslav Ryhel # LG P895 T30 Signed-off-by: Jonas Schwöbel Signed-off-by: Svyatoslav Ryhel ---

[PATCH v2 1/4] configs: tegra-common-post: add GPIO keyboard as STDIN device

2023-04-13 Thread Svyatoslav Ryhel
GPIO keyboard is used on many newly upstreamed devices. Tested-by: Andreas Westman Dorcsak # ASUS Grouper E1565 Tested-by: Svyatoslav Ryhel # LG P895 T30 Signed-off-by: Svyatoslav Ryhel --- include/configs/tegra-common-post.h | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff

[PATCH v2 0/4] Tegra: add ASUS/Google Nexus 7 (2012) support

2023-04-13 Thread Svyatoslav Ryhel
This patchset adds support for native use of U-Boot on ASUS/Google Nexus 7 (2012), aka grouper/tilapia as a replacement of vendor bootloader. Alongside device bringup tegra requires few small patches: - add gpio keyboard as stdin device - make networking boot options optional - add a small tool