Re: [RFC PATCH 10/17] clk: sunxi: Add support for the D1 CCU

2023-05-23 Thread Andre Przywara
On Sun, 21 May 2023 21:57:57 -0600 Sam Edwards wrote: Hi Sam, > On 12/5/22 17:45, Andre Przywara wrote: > > From: Samuel Holland > > > > Since the D1 CCU binding is defined, we can add support for its > > gates/resets, following the pattern of the existing drivers. > > > > Signed-off-by:

Re: [RFC PATCH v1 2/3] spi: sunxi: Add support for R329/D1/R528/T113 SPI controller

2023-05-23 Thread Sam Edwards
Hi Maxim, By any chance do you happen to know when in sunxi history the SPI controller grew QuadSPI/DualSPI support? It'd probably be feature creep to have in this patch series, but since they don't look too hard to implement, I might be interested in taking a stab at supporting them. On

Re: [RFC PATCH v1 3/3] riscv: dts: allwinner: d1: Add SPI controllers node

2023-05-23 Thread Sam Edwards
Hi Maxim, I've been using this series for a little bit. Things seem pretty good! Thank you for your work on it. :) On 5/19/23 07:40, Maxim Kiselev wrote: Some boards form the MangoPi family (MQ\MQ-Dual\MQ-R) may have Typo; replace: "form" -> "from" an optional SPI flash that connects to

[PATCH v4 3/3] Load option with short device path for boot vars

2023-05-23 Thread Raymond Mao
The boot variables automatically generated for removable medias should be with short form of device path without device nodes. This is a requirement for the case that a removable media is plugged into a different port but is still able to work with the existing boot variables. Signed-off-by:

[PATCH v4 2/3] Boot var automatic management for removable medias

2023-05-23 Thread Raymond Mao
Changes for complying to EFI spec §3.5.1.1 'Removable Media Boot Behavior'. Boot variables can be automatically generated during a removable media is probed. At the same time, unused boot variables will be detected and removed. Signed-off-by: Raymond Mao --- Changes in v2 - Ignore EFI_NOT_FOUND

[PATCH v4 1/3] Move bootorder and bootoption apis to lib

2023-05-23 Thread Raymond Mao
Rename and move bootorder and bootoption apis from cmd to lib for re-use between eficonfig and bootmgr Signed-off-by: Raymond Mao --- Changes in v2 - Ignore EFI_NOT_FOUND returned from efi_bootmgr_update_media_device_boot_option which means no boot options scanned. Changes in v3 - Split the

Re: [PATCH] arm: dts: k3-j721e: Remove ti,strobe-sel

2023-05-23 Thread Nishanth Menon
On 11:49-20230523, Tom Rini wrote: > On Tue, May 23, 2023 at 04:48:53PM +0530, Neha Malcom Francis wrote: > > > HS400 speed mode is not supported for sdhci0 (eMMC) for J721E (errata of > > J721E: (i2024) 'MMCSD: Peripherals Do Not Support HS400'[1]). Thus, > > remove ti,s

Re: [PATCH 0/4] ESM support for J721E and J7200

2023-05-23 Thread Nishanth Menon
On 09:56-20230523, Tom Rini wrote: > On Tue, May 23, 2023 at 01:19:47PM +0530, Neha Malcom Francis wrote: > > > Add support for ESM (Error Signalling Module) in J721E and J7200. The > > ESM error pin output is routed to the PMIC (Power Management IC) which > > can reset

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

2023-05-23 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. Signed-off-by: Gilles Talis

Re: [PATCH 0/8] Cleanup unaligned access macros

2023-05-23 Thread Tom Rini
On Mon, May 22, 2023 at 11:34:36PM +0300, Ilias Apalodimas wrote: > Hi Jens > > On Mon, May 22, 2023 at 02:22:30PM +0200, Jens Wiklander wrote: > > Hi, > > > > There are two versions of get/set_unaligned, get_unaligned_be64, > > put_unaligned_le64 etc in U-Boot causing confusion (and bugs). > > >

Re: [PATCH] PCI: zynqmp: Add ZynqMP NWL PCIe root port driver

2023-05-23 Thread Pali Rohár
Hello! I have looked at this change and below are my comments. On Tuesday 23 May 2023 14:57:38 Stefan Roese wrote: > This patch adds the PCIe controller driver for the Xilinx / AMD ZynqMP > NWL PCIe Bridge as root port. The driver source is partly copied from > the Linux PCI driver and modified

Re: [PATCH] arm: dts: k3-j721e: Remove ti,strobe-sel

2023-05-23 Thread Tom Rini
On Tue, May 23, 2023 at 04:48:53PM +0530, Neha Malcom Francis wrote: > HS400 speed mode is not supported for sdhci0 (eMMC) for J721E (errata of > J721E: (i2024) 'MMCSD: Peripherals Do Not Support HS400'[1]). Thus, > remove ti,strobe-sel property which is needed only for HS400 speed mode. > This

Re: [PATCH 0/4] ESM support for J721E and J7200

2023-05-23 Thread Tom Rini
On Tue, May 23, 2023 at 01:19:47PM +0530, Neha Malcom Francis wrote: > Add support for ESM (Error Signalling Module) in J721E and J7200. The > ESM error pin output is routed to the PMIC (Power Management IC) which > can reset the board. The dts nodes for SoC ESM modules are added (if > not

[PATCH 6/6] net: ldpaa_eth: export DPNI and DPMAC counters through 'net stats'

2023-05-23 Thread Ioana Ciornei
Export the already existing DPNI and DPMAC counters through the newly added callbacks. Signed-off-by: Ioana Ciornei --- drivers/net/ldpaa_eth/ldpaa_eth.c | 44 --- 1 file changed, 40 insertions(+), 4 deletions(-) diff --git a/drivers/net/ldpaa_eth/ldpaa_eth.c

[PATCH 5/6] cmd: net: add a 'net stats' command to dump network statistics

2023-05-23 Thread Ioana Ciornei
Add a new option to the 'net' command which can be used to dump network statistics. To do this, 3 new callbacks are added to the eth_ops structure: .get_sset_count(), .get_strings(), .get_stats(). These callbacks have the same functions as in Linux: to return the number of counters, the strings

[PATCH 4/6] net: ldpaa_eth: extend debug capabilities with DPMAC statistics

2023-05-23 Thread Ioana Ciornei
The ldpaa_eth driver already had a DPMAC statistics dump, this patch extends the list of stats and adds a bit more structure to the code. For a bit more context, the DPAA2 u-boot software architecture uses a default network interface object - a DPNI - which, at runtime, will get connected to the

[PATCH 3/6] net: ldpaa_eth: extend debug capabilities with DPNI statistics

2023-05-23 Thread Ioana Ciornei
The ldpaa_eth driver already had a DPNI statistics dump, this patch extends the list of stats and adds a bit more structure to the code. For a bit more context, the DPAA2 u-boot software architecture uses a default network interface object - a DPNI - which, at runtime, will get connected to the

[PATCH 2/6] net: ldpaa_eth: transform dpni_statistics from a struct to a union

2023-05-23 Thread Ioana Ciornei
In order to simplify code, dpni_statistics can be written as a union. Using the raw accessors we can just loop through all the statistics from a page without trying to access each an every one independently. Make this change to a union. Signed-off-by: Ioana Ciornei --- drivers/net/fsl-mc/dpni.c

[PATCH 1/6] net: ldpaa_eth: fix the memory layout of the dpmac_get_counters() API

2023-05-23 Thread Ioana Ciornei
Each MC commands has a specific predefined memory layout that gets interpreted by the firmware. The dpmac_get_counters() API memory layout is wrong, thus the results returned by the command are incorrect. Fix this by updating the offset of the counter field. Signed-off-by: Ioana Ciornei ---

[PATCH 0/6] Add the 'net stats' command to dump network statistics

2023-05-23 Thread Ioana Ciornei
This patch set extends the 'net' command so that it can be used to dump network statistics on the available devices. The first user of this new API is the ldpaa_eth driver which, in the last patch, implements the 3 new callbacks added. Since the ldpaa_eth driver already had some debug printing of

[PATCH] PCI: zynqmp: Add ZynqMP NWL PCIe root port driver

2023-05-23 Thread Stefan Roese
This patch adds the PCIe controller driver for the Xilinx / AMD ZynqMP NWL PCIe Bridge as root port. The driver source is partly copied from the Linux PCI driver and modified to enable usage in U-Boot (e.g. simplified and interrupt support removed). Signed-off-by: Stefan Roese Cc: Simon Glass

[PATCH v5 4/5] firmware: zynqmp: Move permission to change config object message

2023-05-23 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Move the permission to change a config object message from zynqmp_pmufw_load_config_object function to zynqmp_pmufw_node function to simplify the code and check the permission only if required. Signed-off-by: Stefan Herbrechtsmeier --- Changes in v5: - Return 0

[PATCH v5 5/5] firmware: zynqmp: Store driver data in data section

2023-05-23 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Store the driver data in the data section to make the data usable before relocation. Additionally mark the driver data static to restrict the access. Signed-off-by: Stefan Herbrechtsmeier --- Changes in v5: - Added drivers/firmware/firmware-zynqmp.c | 4 ++-- 1

[PATCH v5 1/5] firmware: zynqmp: Remove extraordinary return value

2023-05-23 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Return a common -EACCES error value instead of a positive private error value XST_PM_NO_ACCESS (2002) in zynqmp_pmufw_load_config_object function if the config object is not loadable to simplify the error checking. Signed-off-by: Stefan Herbrechtsmeier --- (no

[PATCH v5 3/5] power: zynqmp: Mask node already configured error

2023-05-23 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Do not return an error (ENODEV) from the request function if the node is already configured. Signed-off-by: Stefan Herbrechtsmeier --- Changes in v5: - Added drivers/power/domain/zynqmp-power-domain.c | 11 --- 1 file changed, 8 insertions(+), 3

[PATCH v5 2/5] firmware: zynqmp: Remove redundant child device bind

2023-05-23 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Remove the redundant child device bind from the driver bind function and rely on the post_bind of the class which calls the same function. Signed-off-by: Stefan Herbrechtsmeier --- Changes in v5: - Added drivers/firmware/firmware-zynqmp.c | 2 +- 1 file

Re: Issues with bcm2835-host: let firmware manage the clock divisor

2023-05-23 Thread Stefan Wahren
Hi Nuno, Am 15.05.23 um 10:13 schrieb Nuno Gonçalves: On Sun, May 14, 2023 at 7:54 PM Stefan Wahren > wrote: Yes, this is very likely. But how can U-Boot assume that at least Linux is booting afterwards. How about the other OSes with devicetree support?

[PATCH 1/2] imx: spl_imx_romapi: avoid tricky use of spl_load_simple_fit() to get full FIT size

2023-05-23 Thread Rasmus Villemoes
Currently, spl_imx_romapi uses a somewhat tricky workaround for the fact that a FIT image with external data doesn't directly allow one to know the full size of the file: It does a dummy spl_load_simple_fit(), having the ->read callback remember the largest offset requested, and then does a last

[PATCH 2/2] imx: spl_imx_romapi.c: remove dead code

2023-05-23 Thread Rasmus Villemoes
These IS_ENABLED(CONFIG_SPL_LOAD_FIT) cases can no longer be reached, and thus get_fit_image_size() is also redundant. Signed-off-by: Rasmus Villemoes --- arch/arm/mach-imx/spl_imx_romapi.c | 25 ++--- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git

Re: [PATCH v4 1/7] dt-bindings: clock: Add StarFive JH7110 PLL clock generator

2023-05-23 Thread Conor Dooley
On Tue, May 23, 2023 at 01:10:06PM +0200, Torsten Duwe wrote: > On Tue, 23 May 2023 09:28:39 +0100 > Conor Dooley wrote: > > > On Tue, May 23, 2023 at 10:56:43AM +0800, Xingyu Wu wrote: > > > On 2023/5/19 22:16, Conor Dooley wrote: > > > > On Fri, May 19, 2023 at 03:57:33PM +0200, Torsten Duwe

[PATCH] arm: dts: k3-j721e: Remove ti,strobe-sel

2023-05-23 Thread Neha Malcom Francis
HS400 speed mode is not supported for sdhci0 (eMMC) for J721E (errata of J721E: (i2024) 'MMCSD: Peripherals Do Not Support HS400'[1]). Thus, remove ti,strobe-sel property which is needed only for HS400 speed mode. This also helps sync kernel dts with u-boot dts. [1]

[PATCH 4/4] configs: j7200_evm_r5: Add ESM config for J7200

2023-05-23 Thread Neha Malcom Francis
Add CONFIG_ESM_K3 to enable ESM initialization in J7200. Signed-off-by: Neha Malcom Francis --- configs/j7200_evm_r5_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/j7200_evm_r5_defconfig b/configs/j7200_evm_r5_defconfig index e149ccb9a4..b846f830c5 100644 ---

[PATCH 3/4] board: ti: j721e: initialize ESM support for J7200 SOM

2023-05-23 Thread Neha Malcom Francis
From: Gowtham Tammana ESM support is available for J7200X-PM2-SOM board, as such enable support for it. Signed-off-by: Gowtham Tammana Signed-off-by: Neha Malcom Francis --- board/ti/j721e/evm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/board/ti/j721e/evm.c

[PATCH 2/4] arm: dts: k3-j7200: Add Main domain ESM support

2023-05-23 Thread Neha Malcom Francis
From: Gowtham Tammana Main domain ESM support is needed to configure main domain watchdog interrupts to generate ESM pin events. On J7200 boards ESM error pin output is propagated to PMIC to generate reset. Signed-off-by: Gowtham Tammana Signed-off-by: Neha Malcom Francis ---

[PATCH 1/4] arm: dts: k3-j721e: Refine MAIN domain ESM support

2023-05-23 Thread Neha Malcom Francis
MAIN domain ESM support was already added for J721E to configure main domain watchdog interrupts to generate ESM pin events. Move the main_esm node to be in sync with kernel dts. Also add register mapping for ESM in J721E. Signed-off-by: Neha Malcom Francis --- arch/arm/dts/k3-j721e-main.dtsi

[PATCH 0/4] ESM support for J721E and J7200

2023-05-23 Thread Neha Malcom Francis
Add support for ESM (Error Signalling Module) in J721E and J7200. The ESM error pin output is routed to the PMIC (Power Management IC) which can reset the board. The dts nodes for SoC ESM modules are added (if not already) to enable them. Gowtham Tammana (2): arm: dts: k3-j7200: Add Main domain

Re: [RFC PATCH 10/10] arm: migrate away from sections.c

2023-05-23 Thread Ilias Apalodimas
On Sat, May 20, 2023 at 02:55:47PM -0600, Sam Edwards wrote: > This patch effectively reverts 3ebd1cbc49f0005092d69cf0d9a6e64d7a1c300b. Also 47bd65ef057fb71b02b32741d5cfcaf03e2f0918 ? > > The approach taken in that commit was to have the section-marking > symbols generated into empty sections by

Re: [RFC PATCH 00/10] Improve ARM target's support for LLVM toolchain

2023-05-23 Thread Ilias Apalodimas
On Mon, May 22, 2023 at 01:37:26PM -0600, Sam Edwards wrote: > Hi Ilias, > > On 5/22/23 00:52, Ilias Apalodimas wrote: > > I can help clean up the arm architecture even further. I was toying > > with the idea of having page-aligned sections and eventually map > > u-boot with proper permissions

Re: [PATCH v3 2/3] Boot var automatic management for removable medias

2023-05-23 Thread Ilias Apalodimas
On Tue, May 16, 2023 at 10:17:14AM -0400, Raymond Mao wrote: > Hi Ilias, > > On Tue, 16 May 2023 at 01:59, Ilias Apalodimas > wrote: > > > On Tue, May 02, 2023 at 12:12:19PM -0700, Raymond Mao wrote: > > > Changes for complying to EFI spec §3.5.1.1 > > > 'Removable Media Boot Behavior'. > > >

Re: [PATCH] imx8m: soc.c: demote some printfs to debug

2023-05-23 Thread Peng Fan
On 5/22/2023 5:27 PM, Rasmus Villemoes wrote: Getting Found /vpu_g1@3830 node Modify /vpu_g1@3830:status disabled Found /vpu_g2@3831 node Modify /vpu_g2@3831:status disabled etc. on the console on every boot is needlessly verbose. Demote the "Found ..." lines to