Re: [PATCH v2 3/6] Revert "board: rockchip: Fix binman_init failure on EVB-RK3568"

2023-02-15 Thread Kever Yang
On 2023/2/14 18:33, Jonas Karlman wrote: An external TPL binary is now expected to be provided using ROCKCHIP_TPL when building RK3568 targets. This reverts commit 31500e7bcfaca08ab7c2879f502a6cf852410244. Signed-off-by: Jonas Karlman Reviewed-by: Simon Glass Reviewed-by: Kever Yang

Re: [PATCH v2 2/6] rockchip: Use an external TPL binary on RK3568

2023-02-15 Thread Kever Yang
On 2023/2/14 18:33, Jonas Karlman wrote: Rockchip SoCs typically use U-Boot TPL to initialize DRAM, then jumps back to BootRom to load next stage, U-Boot SPL, into DRAM. BootRom then jumps to U-Boot SPL to continue the normal boot flow. However, there is no support to initialize DRAM on

Re: [PATCH v2 1/6] binman: Add support for a rockchip-tpl entry

2023-02-15 Thread Kever Yang
On 2023/2/14 18:33, Jonas Karlman wrote: The rockchip-tpl entry can be used when an external TPL binary should be used instead of the normal U-Boot TPL. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang Thanks, - Kever --- v2: - rename external-tpl to rockchip-tpl - missing message

Re: [PATCH v2 06/10] rockchip: mtd: raw: rockchip_nfc convert dev_read_addr output to phys_addr_t

2023-02-15 Thread Kever Yang
On 2023/2/7 22:54, Johan Jonker wrote: The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU can expext 64-bit data from the device tree parser, so convert dev_read_addr output to phys_addr_t in the rockchip_nfc.c file. Signed-off-by: Johan Jonker Reviewed-by: Kever Yang

Re: [PATCH v2 10/10] mtd: nand: add support for the Sandisk SDTNQGAMA chip

2023-02-15 Thread Kever Yang
On 2023/2/7 22:56, Johan Jonker wrote: Sandisk SDTNQGAMA is a 8GB size, 3.3V 8 bit chip with 16KB page size, 1KB write size and 40 bit ecc support Signed-off-by: Paweł Jarosz Signed-off-by: Johan Jonker Reviewed-by: Kever Yang Thanks, - Kever --- drivers/mtd/nand/raw/nand_ids.c | 3

Re: [PATCH v2 09/10] mtd: nand: raw: rockchip_nfc: add flash_node to chip stucture

2023-02-15 Thread Kever Yang
On 2023/2/7 22:55, Johan Jonker wrote: Add flash_node to the rockchip_nfc driver chip stucture in order to find the partitions in the add_mtd_partitions_of() functions. Signed-off-by: Johan Jonker Reviewed-by: Kever Yang Thanks, - Kever --- drivers/mtd/nand/raw/rockchip_nfc.c | 1 + 1

Re: [PATCH v2 08/10] mtd: nand: raw: rockchip_nfc: add layout structure

2023-02-15 Thread Kever Yang
On 2023/2/7 22:54, Johan Jonker wrote: The MTD framework in U-boot is not identical for drivers ported from Linux. The rockchip_nfc driver was ported with OOB ops functions while the framework expects a layout structure per chip. Fix by adding a structure with OOB data and remove unused

Re: [PATCH v2 07/10] mtd: nand: raw: rockchip_nfc: remove the compatible string "rockchip,rk3308-nfc"

2023-02-15 Thread Kever Yang
On 2023/2/7 22:54, Johan Jonker wrote: The compatible string for rk3308 has as fallback string "rockchip,rv1108-nfc". As there is no logic in probe priority between the SoC orientated string and the fall back, so remove the compatible string "rockchip,rk3308-nfc" from the driver.

Re: [PATCH v2 05/10] rockchip: timer: dw-apb-timer: convert dev_read_addr output to phys_addr_t

2023-02-15 Thread Kever Yang
On 2023/2/7 22:53, Johan Jonker wrote: The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU can expect 64-bit data from the device tree parser, so convert dev_read_addr output to phys_addr_t in the dw-apb-timer.c file. Signed-off-by: Johan Jonker Reviewed-by: Kever Yang

Re: [PATCH v2 04/10] rockchip: adc: rockchip-saradc: convert dev_read_addr output to phys_addr_t

2023-02-15 Thread Kever Yang
On 2023/2/7 22:53, Johan Jonker wrote: The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU can expext 64-bit data from the device tree parser, so convert dev_read_addr output to phys_addr_t in the rockchip-saradc.c file. Signed-off-by: Johan Jonker Reviewed-by: Kever Yang

Re: [PATCH v2 03/10] core: remap: convert regmap_init_mem_plat() input to phys_addr_t

2023-02-15 Thread Kever Yang
On 2023/2/7 22:52, Johan Jonker wrote: The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU can expect 64-bit data from the device tree parser, so convert regmap_init_mem_plat() input to phys_addr_t in files that use this function. Signed-off-by: Johan Jonker Reviewed-by:

Re: [PATCH v2 02/10] include: dm: ofnode: fix headers

2023-02-15 Thread Kever Yang
On 2023/2/7 22:52, Johan Jonker wrote: When fdt_addr_t and phys_addr_t are split it turns out that the header don't match the functions, so fix the headers. Signed-off-by: Johan Jonker Reviewed-by: Simon Glass Reviewed-by: Kever Yang Thanks, - Kever --- include/dm/ofnode.h | 16

Re: [PATCH v2 01/10] include: fdtdec: decouple fdt_addr_t and phys_addr_t size

2023-02-15 Thread Kever Yang
On 2023/2/7 22:51, Johan Jonker wrote: The DT specification supports CPUs with both 32-bit and 64-bit addressing capabilities. In U-boot the fdt_addr_t and phys_addr_t size are coupled by a typedef. The MTD NAND drivers for 32-bit CPU's can describe partitions with a 64-bit reg property. These

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

2023-02-15 Thread yanhong wang
On 2023/1/22 5:56, Sean Anderson wrote: > On 1/21/23 16:36, Conor Dooley wrote: >> On Wed, Jan 18, 2023 at 04:11:15PM +0800, Yanhong Wang wrote: >>> This series of patches base on the latest branch/master, and add support >>> for the StarFive JH7110 RISC-V SoC and VisionFive V2 board. In order

Re: [PATCH v2 06/10] rockchip: mtd: raw: rockchip_nfc convert dev_read_addr output to phys_addr_t

2023-02-15 Thread Michael Nazzareno Trimarchi
Hi Johan On Tue, Feb 7, 2023 at 3:54 PM Johan Jonker wrote: > > The fdt_addr_t and phys_addr_t size have been decoupled. > A 32bit CPU can expext 64-bit data from the device tree parser, > so convert dev_read_addr output to phys_addr_t in the > rockchip_nfc.c file. > > Signed-off-by: Johan

Re: [PATCH v2 07/10] mtd: nand: raw: rockchip_nfc: remove the compatible string "rockchip,rk3308-nfc"

2023-02-15 Thread Michael Nazzareno Trimarchi
Hi Johan On Tue, Feb 7, 2023 at 3:54 PM Johan Jonker wrote: > > The compatible string for rk3308 has as fallback string "rockchip,rv1108-nfc". > As there is no logic in probe priority between the SoC orientated string > and the fall back, so remove the compatible string "rockchip,rk3308-nfc" >

Re: [PATCH v2 17/17] configs: starfive: add starfive_visionfive2_defconfig

2023-02-15 Thread yanhong wang
On 2023/1/23 22:53, Andreas Schwab wrote: > On Jan 18 2023, Yanhong Wang wrote: > >> This is the initial basic config for StarFive VisionFive v2 board. It >> includes consol, Norflash, sdio, ddr etc. > > Please enable CONFIG_DISTRO_DEFAULTS. > I will enable it. >>

Re: [PATCH v2 08/10] mtd: nand: raw: rockchip_nfc: add layout structure

2023-02-15 Thread Michael Nazzareno Trimarchi
Hi On Tue, Feb 7, 2023 at 3:55 PM Johan Jonker wrote: > > The MTD framework in U-boot is not identical for drivers ported > from Linux. The rockchip_nfc driver was ported with OOB ops functions > while the framework expects a layout structure per chip. > Fix by adding a structure with OOB data

Re: [PATCH v2 09/10] mtd: nand: raw: rockchip_nfc: add flash_node to chip stucture

2023-02-15 Thread Michael Nazzareno Trimarchi
Hi On Tue, Feb 7, 2023 at 3:55 PM Johan Jonker wrote: > > Add flash_node to the rockchip_nfc driver chip stucture in order > to find the partitions in the add_mtd_partitions_of() functions. > > Signed-off-by: Johan Jonker > --- > drivers/mtd/nand/raw/rockchip_nfc.c | 1 + > 1 file changed, 1

Re: [PATCH 3/3] mmc: mv_sdhci: Depend on DM_MMC

2023-02-15 Thread Jaehoon Chung
On 2/10/23 21:23, Stefan Roese wrote: > All build targets using this driver already use DM_MMC. So let's depend > this driver on this Kconfig symbol and remove the non-DM driver part. > > Signed-off-by: Stefan Roese > Cc: Tom Rini > Cc: Simon Glass > Cc: Peng Fan > Cc: Jaehoon Chung

Re: [PATCH 2/3] mmc: mv_sdhci: Remove CONFIG_MMC_SDHCI_IO_ACCESSORS support

2023-02-15 Thread Jaehoon Chung
On 2/10/23 21:23, Stefan Roese wrote: > CONFIG_MMC_SDHCI_IO_ACCESSORS is not supported and/or used by this > driver so let's remove these unused parts completely. > > Signed-off-by: Stefan Roese > Cc: Tom Rini > Cc: Simon Glass > Cc: Peng Fan > Cc: Jaehoon Chung Reviewed-by: Jaehoon

Re: [PATCH 1/3] mmc: mv_sdhci: Simplify call to sdhci_mvebu_mbus_config()

2023-02-15 Thread Jaehoon Chung
On 2/10/23 21:23, Stefan Roese wrote: > This driver already depends on CONFIG_ARCH_MVEBU, so there is no need > to have some checks for this Kconfig symbol in the driver itself. Let's > remove these superfluous checks. > > Signed-off-by: Stefan Roese > Cc: Tom Rini > Cc: Simon Glass > Cc:

Re: [PATCH 08/13] mvebu: Drop empty arch_misc_init

2023-02-15 Thread Stefan Roese
On 2/16/23 04:36, Tom Rini wrote: If this hooks is needed later, it should be added and populated for real. Cc: Stefan Roese Signed-off-by: Tom Rini Reviewed-by: Stefan Roese Thanks, Stefan --- arch/arm/mach-mvebu/Kconfig | 1 - arch/arm/mach-mvebu/cpu.c | 11 --- 2 files

Re: [PATCH 02/13] arm: mvebu: Add select on ARCH_EARLY_INIT_R if ARM64

2023-02-15 Thread Stefan Roese
On 2/16/23 04:36, Tom Rini wrote: We need to be calling arch_early_init_r() on 64bit mvebu platforms, so move this to a select. Cc: Stefan Roese Signed-off-by: Tom Rini Reviewed-by: Stefan Roese Thanks, Stefan --- arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH v2 16/17] riscv: dts: jh7110: Add initial StarFive VisionFive v2 board device tree

2023-02-15 Thread yanhong wang
On 2023/1/22 2:46, Sean Anderson wrote: > On 1/18/23 03:11, Yanhong Wang wrote: >> Add initial device tree for StarFive VisionFive v2 board. >> >> Signed-off-by: Yanhong Wang >> --- >>   arch/riscv/dts/Makefile   |   2 +- >>   .../dts/starfive_visionfive2-u-boot.dtsi  | 

Re: [PATCH v2 14/17] riscv: dts: jh7110: Add initial StarFive JH7110 device tree

2023-02-15 Thread yanhong wang
On 2023/1/20 2:30, Conor Dooley wrote: > Hey Seán, David, > > On Thu, Jan 19, 2023 at 01:26:52AM -0500, Sean Anderson wrote: >> On 1/19/23 01:18, David Abdurachmanov wrote: >> > On Wed, Jan 18, 2023 at 10:19 AM Yanhong Wang >> > wrote: > >> > > + U74_4: cpu@4 { >> > > +

[PATCH] net: ipv6: IPv6 environment variable cleanup

2023-02-15 Thread seanedmond
From: Sean Edmond Fix "setenv gatewayip6". Synchronize IPv6 local variables with environment variables in netboot_update_env() Signed-off-by: Sean Edmond --- cmd/net.c | 23 ++- include/env_flags.h | 2 +- 2 files changed, 23 insertions(+), 2 deletions(-) diff

Re: [PATCH] riscv: binman: Add help message for missing blobs

2023-02-15 Thread Leo Liang
Hi Rick, On Thu, Feb 16, 2023 at 09:19:45AM +0800, Rick Chen wrote: > Add the 'missing-msg' for more detailed output > on missing system firmware. > > Signed-off-by: Rick Chen > --- > arch/riscv/dts/binman.dtsi | 1 + > tools/binman/missing-blob-help | 4 > 2 files changed, 5

[PATCH 11/13] imx8mm-mx8menlo: Drop SPL_BOARD_INIT

2023-02-15 Thread Tom Rini
On this platform spl_board_init is a call to arch_misc_init which is a no-op, so drop the CONFIG options. Cc: Marek Vasut Cc: Olaf Mandel Signed-off-by: Tom Rini --- configs/imx8mm-mx8menlo_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/configs/imx8mm-mx8menlo_defconfig

[PATCH 12/13] global: Add a select for ARCH_MISC_INIT where used

2023-02-15 Thread Tom Rini
When we have an arch_misc_init function, we can select it to ensure it's used. In that there is a functional change here, it's that on i.MX6 it's always been possible to populate "serial#" with something meaningful, but not every platform was taking the hook, and now it is. Cc: Stefano Babic

[PATCH 13/13] common: Make ARCH_MISC_INIT be selected only

2023-02-15 Thread Tom Rini
As platforms which require this hook need this hook enabled, in order to function, or do not need this hook, it doesn't make sense to prompt the user. As all platforms that need this hook now select the symbol, remove the prompt text. Signed-off-by: Tom Rini --- common/Kconfig | 2 +- 1 file

[PATCH 09/13] s5p: Remove empty arch_misc_init

2023-02-15 Thread Tom Rini
We don't need to provide an empty arch_misc_init function here, we can just not enable the hook. Cc: Stefan Bosch Signed-off-by: Tom Rini --- arch/arm/cpu/armv7/s5p4418/cpu.c | 7 --- configs/s5p4418_nanopi2_defconfig | 1 - 2 files changed, 8 deletions(-) diff --git

[PATCH 10/13] verdin-imx8mm: Remove unused SPL_BOARD_INIT

2023-02-15 Thread Tom Rini
On this platform SPL_BOARD_INIT is used to call arch_misc_init which is in turn empty, drop the call. Cc: Marcel Ziswiler Signed-off-by: Tom Rini --- board/toradex/verdin-imx8mm/spl.c | 5 - configs/verdin-imx8mm_defconfig | 1 - 2 files changed, 6 deletions(-) diff --git

[PATCH 08/13] mvebu: Drop empty arch_misc_init

2023-02-15 Thread Tom Rini
If this hooks is needed later, it should be added and populated for real. Cc: Stefan Roese Signed-off-by: Tom Rini --- arch/arm/mach-mvebu/Kconfig | 1 - arch/arm/mach-mvebu/cpu.c | 11 --- 2 files changed, 12 deletions(-) diff --git a/arch/arm/mach-mvebu/Kconfig

[PATCH 06/13] imx9: Remove ARCH_MISC_INIT

2023-02-15 Thread Tom Rini
We don't need an empty function, we can just not enable the hook we don't use. Cc: Peng Fan Signed-off-by: Tom Rini --- arch/arm/mach-imx/imx9/soc.c | 5 - configs/imx93_11x11_evk_defconfig | 1 - 2 files changed, 6 deletions(-) diff --git a/arch/arm/mach-imx/imx9/soc.c

[PATCH 07/13] mvebe: Drop ARCH_MISC_INIT from alleycat 5

2023-02-15 Thread Tom Rini
In this platform, arch_misc_init doesn't perform any real function. The call to get_soc_type_rev has no lasting side effects. Cc: Chris Packham Signed-off-by: Tom Rini --- arch/arm/mach-mvebu/alleycat5/soc.c | 9 - configs/mvebu_ac5_rd_defconfig | 1 - 2 files changed, 10

[PATCH 04/13] arm: rk3368: Select ARCH_EARLY_INIT_R when used

2023-02-15 Thread Tom Rini
On the lion and evb-px5 platforms, we need this function, so select it. Cc: Andy Yan Cc: Quentin Schulz Cc: Klaus Goger Signed-off-by: Tom Rini --- arch/arm/mach-rockchip/rk3368/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-rockchip/rk3368/Kconfig

[PATCH 05/13] common: Make ARCH_EARLY_INIT_R be selected only

2023-02-15 Thread Tom Rini
As platforms which require this hook need this hook enabled, in order to function, or do not need this hook, it doesn't make sense to prompt the user. As all platforms that need this hook now select the symbol, remove the prompt text. Signed-off-by: Tom Rini --- common/Kconfig | 2 +- 1 file

[PATCH 03/13] arm: zynq: Move to select'ing ARCH_EARLY_INIT_R if we have FPGA

2023-02-15 Thread Tom Rini
The function arch_early_init_r only does anything on these platforms if we have FPGA (or SPL and SPL_FPGA) enabled, so move the logic to select based on that. Cc: Michal Simek Signed-off-by: Tom Rini --- arch/arm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 02/13] arm: mvebu: Add select on ARCH_EARLY_INIT_R if ARM64

2023-02-15 Thread Tom Rini
We need to be calling arch_early_init_r() on 64bit mvebu platforms, so move this to a select. Cc: Stefan Roese Signed-off-by: Tom Rini --- arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index bd7fffcce0ba..724cbdde257c 100644 ---

[PATCH 01/13] common/Kconfig: Reword text for BOARD_TYPES

2023-02-15 Thread Tom Rini
While it is true that for some Samsung platforms, we call get_board_type() the main usage of this CONFIG switch is to enable board_types in global data, which is then used by various platforms. Signed-off-by: Tom Rini --- common/Kconfig | 9 - 1 file changed, 4 insertions(+), 5

Re: [PATCH v2 06/17] clk: starfive: Add StarFive JH7110 clock driver

2023-02-15 Thread yanhong wang
On 2023/1/22 2:56, Sean Anderson wrote: > On 1/18/23 03:11, Yanhong Wang wrote: >> Add a DM clock driver for StarFive JH7110 SoC. >> >> Signed-off-by: Yanhong Wang >> --- >>   drivers/clk/Kconfig   |   1 + >>   drivers/clk/Makefile  |   1 + >>  

Re: [PATCH 10/11] rockchip: misc: Set eth1addr mac address

2023-02-15 Thread Chen-Yu Tsai
On Thu, Feb 16, 2023 at 7:57 AM Jonas Karlman wrote: > > Set eth1addr when there is an ethernet1 alias in the fdt. Maybe it makes sense to set it regardless whether an alias is present or not? The user might be loading a custom FDT for the kernel, or have DT overlays stacked on, either could

Re: [PATCH v3] efi_loader: update SetVariable attribute check

2023-02-15 Thread Masahisa Kojima
Hi Heinrich, On Wed, 15 Feb 2023 at 22:14, Heinrich Schuchardt wrote: > > On 2/15/23 10:55, Masahisa Kojima wrote: > > UEFI specification v2.10 says that > > EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS is deprecated and > > EFI_UNSUPPORTED should be returned in SetVariable variable service. > >

Re: [PATCH v3 01/14] clk: imx8mp: Add EQoS MAC clock

2023-02-15 Thread Peng Fan
On 2/12/2023 5:47 AM, Marek Vasut wrote: Add clock for the DWMAC EQoS block. This is used among other things to configure the MII clock via DM CLK. Acked-by: Sean Anderson Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "NXP i.MX U-Boot Team" Cc: Andrey Zhizhikin Cc: Fabio

Re: [PATCH] mx6sxsabreauto: Remove myself from MAINTAINERS

2023-02-15 Thread Peng Fan
On 2/16/2023 2:32 AM, Fabio Estevam wrote: I don't have access to the mx6sxsabreauto board, so remove myself from the MAINTAINERS entry and add Peng instead. Signed-off-by: Fabio Estevam Acked-by: Peng Fan --- board/freescale/mx6sxsabreauto/MAINTAINERS | 2 +- 1 file changed, 1

Re: [Patch] net: dwc_eth_qos - works with fixed-phy

2023-02-15 Thread Marek Vasut
On 2/15/23 17:16, Elmar Psilog wrote: Let the EQoS in imx8mp handle fixed-phy too. Without that patch it lost track to the node to scan speed and duplex. Patch was created by Marek Vasut, just tested by me. Signed-off-by: Elmar Psilog --- drivers/net/dwc_eth_qos.c 1 file changed If you were

[PATCH] riscv: binman: Add help message for missing blobs

2023-02-15 Thread Rick Chen
Add the 'missing-msg' for more detailed output on missing system firmware. Signed-off-by: Rick Chen --- arch/riscv/dts/binman.dtsi | 1 + tools/binman/missing-blob-help | 4 2 files changed, 5 insertions(+) diff --git a/arch/riscv/dts/binman.dtsi b/arch/riscv/dts/binman.dtsi index

Re: [PATCH v3 4/9] video console: move 8x16 font data in named header

2023-02-15 Thread Simon Glass
On Wed, 15 Feb 2023 at 04:44, Dzmitry Sankouski wrote: > > Consistent font data header names needed to add new > fonts. > > Signed-off-by: Dzmitry Sankouski > --- > Changes for v2: N/A > Changes for v3: N/A > > include/video_font.h | 2 +- >

[PATCH 10/11] rockchip: misc: Set eth1addr mac address

2023-02-15 Thread Jonas Karlman
Set eth1addr when there is an ethernet1 alias in the fdt. Also allow fdt fixup of ethernet mac addresses when CMD_NET is disabled. Set ethaddr and eth1addr based on HASH and SHA256 options. Signed-off-by: Jonas Karlman --- arch/arm/mach-rockchip/misc.c | 10 +- 1 file changed, 9

Re: [PATCH] samsung: common: ignore if CROS EC is not supported

2023-02-15 Thread Simon Glass
On Wed, 15 Feb 2023 at 12:03, Stefan Agner wrote: > > If the CROS device class is not compiled in, uclass returns not > supported. Ignore this case as well. > > This avoids boot failures on ODROID-XU4 without CONFIG_CROS_EC > ending with: > cros-ec communications failure -96 > Please reset with

Re: [PATCH v3 9/9] video console: add 12x22 console simple font test

2023-02-15 Thread Simon Glass
Hi Dzmitry, On Wed, 15 Feb 2023 at 04:43, Dzmitry Sankouski wrote: > > Tests fonts wider than a byte. > > Signed-off-by: Dzmitry Sankouski > Reviewed-by: Simon Glass I found a problem with this > --- > Changes for v2: N/A > Changes for v2: none > > configs/sandbox_defconfig | 3 +++ >

Re: [PATCH v3 6/9] video console: allow font size configuration at runtime

2023-02-15 Thread Simon Glass
On Wed, 15 Feb 2023 at 04:43, Dzmitry Sankouski wrote: > > Allow font size configuration at runtime for console_simple.c > driver. This needed for unit testing different fonts. > > Configuring is done by `font` command, also used for font > selection in true type console. > > Signed-off-by:

Re: [PATCH v3 1/9] video console: unite normal and rotated files

2023-02-15 Thread Simon Glass
Hi Dzmitry, On Wed, 15 Feb 2023 at 04:43, Dzmitry Sankouski wrote: > > Unite console_normal.c and console_rotate.c files. > Those files have similar logic, and common logic > may be extracted after putting code in single file. > > Signed-off-by: Dzmitry Sankouski > --- > Changes for v2: none >

Re: [PATCH v3 5/9] video console: implement multiple fonts configuration

2023-02-15 Thread Simon Glass
On Wed, 15 Feb 2023 at 04:43, Dzmitry Sankouski wrote: > > This needed for unit testing different fonts. > > Configured fonts are placed in an array of fonts. > First font is selected by default upon console probe. > > Signed-off-by: Dzmitry Sankouski > --- > Changes for v2: N/A > Changes for

Re: [PATCH v3 2/9] video console: refactoring and optimization

2023-02-15 Thread Simon Glass
On Wed, 15 Feb 2023 at 04:44, Dzmitry Sankouski wrote: > > - get rid of code duplications in switch across bpp values > - extract common pixel fill logic in two functions one per > horizontal and vertical filling > - rearrange statements in put_xy* methods in unified way > - replace types -

Re: [PATCH v3 3/9] video console: add support for fonts wider than 1 byte

2023-02-15 Thread Simon Glass
jOn Wed, 15 Feb 2023 at 04:44, Dzmitry Sankouski wrote: > > Devices with high ppi may benefit from wider fonts. > > Current width implementation is limited by 1 byte, i.e. 8 bits. > New version iterates VIDEO_FONT_BYTE_WIDTH times, to process all > width bytes, thus allowing fonts wider than 1

[PATCH 09/11] rockchip: efuse: Add support for RK3036

2023-02-15 Thread Jonas Karlman
Add support for rk3036 compatible. Signed-off-by: Jonas Karlman --- drivers/misc/rockchip-efuse.c | 39 +++ 1 file changed, 39 insertions(+) diff --git a/drivers/misc/rockchip-efuse.c b/drivers/misc/rockchip-efuse.c index 897e79bcc60f..177c96983ed8 100644 ---

[PATCH 08/11] rockchip: efuse: Add support for RK3128

2023-02-15 Thread Jonas Karlman
Add support for rk3128 compatible. Signed-off-by: Jonas Karlman --- drivers/misc/rockchip-efuse.c | 39 +++ 1 file changed, 39 insertions(+) diff --git a/drivers/misc/rockchip-efuse.c b/drivers/misc/rockchip-efuse.c index 7aa3dc1b3868..897e79bcc60f 100644 ---

[PATCH 11/11] rockchip: rk3568: Read cpuid from otp

2023-02-15 Thread Jonas Karlman
The cpuid on RK3568 is located at 0xa instead of 0x7 as all other SoCs. Add and use a CFG_CPUID_OFFSET to define this offset. Signed-off-by: Jonas Karlman --- arch/arm/dts/rk356x-u-boot.dtsi | 12 arch/arm/mach-rockchip/Kconfig| 2 ++ arch/arm/mach-rockchip/board.c| 2

[PATCH 05/11] rockchip: efuse: Refactor to use driver data and ops

2023-02-15 Thread Jonas Karlman
Refactor the driver to use driver data and ops to simplify handling of SoCs that require a unique read op. Move handling of the aligned bounce buffer to main read op in order to keep the SoC unique read op simple. Signed-off-by: Jonas Karlman --- drivers/misc/rockchip-efuse.c | 160

[PATCH 06/11] rockchip: efuse: Add support for RK3288 and more

2023-02-15 Thread Jonas Karlman
Add support for rk3066a, rk3188, rk322x and rk3288 compatible. Signed-off-by: Jonas Karlman --- drivers/misc/Kconfig | 4 --- drivers/misc/rockchip-efuse.c | 68 ++- 2 files changed, 60 insertions(+), 12 deletions(-) diff --git a/drivers/misc/Kconfig

[PATCH 07/11] rockchip: efuse: Add support for RK3328

2023-02-15 Thread Jonas Karlman
Add support for rk3328 compatible. Signed-off-by: Jonas Karlman --- drivers/misc/rockchip-efuse.c | 45 +++ 1 file changed, 45 insertions(+) diff --git a/drivers/misc/rockchip-efuse.c b/drivers/misc/rockchip-efuse.c index 808246e92230..7aa3dc1b3868 100644 ---

[PATCH 03/11] rockchip: otp: Add support for RK3588

2023-02-15 Thread Jonas Karlman
Add support for rk3588 compatible. Adjust offset using driver data in main read op. Signed-off-by: Jonas Karlman --- drivers/misc/rockchip-otp.c | 63 + 1 file changed, 57 insertions(+), 6 deletions(-) diff --git a/drivers/misc/rockchip-otp.c

[PATCH 00/11] rockchip: Add efuse and otp support to more SoCs

2023-02-15 Thread Jonas Karlman
This series refactors and add support for more SoCs to the rockchip efuse and otp driver. Support is added for the following SoCs: - efuse: RK3036, RK3066, RK3128, RK3188, RK3228, RK3288 and RK3328 - otp: RK3568 and RK3588 This also changes so that eth1addr is also set when there is a ethernet1

[PATCH 04/11] rockchip: otp: Add dump_otp debug command

2023-02-15 Thread Jonas Karlman
Add a simple debug command to dump the content of the otp. Signed-off-by: Jonas Karlman --- drivers/misc/rockchip-otp.c | 35 +++ 1 file changed, 35 insertions(+) diff --git a/drivers/misc/rockchip-otp.c b/drivers/misc/rockchip-otp.c index

[PATCH 02/11] rockchip: otp: Add support for RK3568

2023-02-15 Thread Jonas Karlman
Add support for rk3568 compatible. Handle allocation of an aligned bounce buffer in main read op in order to keep the SoC unique read op simple. Signed-off-by: Jonas Karlman --- drivers/misc/rockchip-otp.c | 67 - 1 file changed, 66 insertions(+), 1

[PATCH 01/11] rockchip: otp: Refactor to use driver data and ops

2023-02-15 Thread Jonas Karlman
Refactor the driver to use driver data and ops to simplify handling of SoCs that require a unique read op. Use readl_poll_sleep_timeout instead of a custom poll loop, and add validation of input parameter to main read op. Signed-off-by: Jonas Karlman --- drivers/misc/rockchip-otp.c | 83

[PATCH] m68k: dts: stmark2: set correct compatible field for spi nor

2023-02-15 Thread Angelo Dureghello
From: Angelo Durgehello Fix error: Invalid chip select 0:1 (err=-19) update spi nor "compatible" property with "jedec,spi-nor" to have spi nor properly bound as a child device. Signed-off-by: Angelo Durgehello --- arch/m68k/dts/stmark2.dts | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH] samsung: common: ignore if CROS EC is not supported

2023-02-15 Thread Stefan Agner
If the CROS device class is not compiled in, uclass returns not supported. Ignore this case as well. This avoids boot failures on ODROID-XU4 without CONFIG_CROS_EC ending with: cros-ec communications failure -96 Please reset with Power+Refresh Cannot init cros-ec device Signed-off-by: Stefan

Re: [PATCH V2 4/9] arm64: dts: rockchip: Sync rk356x from Linux main

2023-02-15 Thread Jonas Karlman
On 2023-02-13 23:27, Chris Morgan wrote: > From: Chris Morgan > > Sync rk3566 and rk3568 from the mainline Linux kernel (6.2-rc2 as of > this writing). > > Note that this will rename the rk3568-evb to rk3568-evb1-v10. Is the rename and sync of evb-rk3568 necessary for your use case? I tend to

[PATCH] mx6sxsabreauto: Remove myself from MAINTAINERS

2023-02-15 Thread Fabio Estevam
I don't have access to the mx6sxsabreauto board, so remove myself from the MAINTAINERS entry and add Peng instead. Signed-off-by: Fabio Estevam --- board/freescale/mx6sxsabreauto/MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH V2 5/9] rockchip: rk3568: add boot device detection

2023-02-15 Thread Jonas Karlman
Hi Chris, On 2023-02-13 23:27, Chris Morgan wrote: > From: Chris Morgan > > Enable spl to detect which device it was booted from. > > Signed-off-by: Peter Geis > Signed-off-by: Chris Morgan > --- > arch/arm/mach-rockchip/rk3568/rk3568.c | 7 +++ > 1 file changed, 7 insertions(+) > >

Re: [PATCH v2 6/6] RFC: binman: Improve allow missing for mkimage entry

2023-02-15 Thread Jonas Karlman
Hi Simon, On 2023-02-14 20:48, Simon Glass wrote: > Hi Jonas, > > On Tue, 14 Feb 2023 at 03:34, Jonas Karlman wrote: >> >> Implement CheckMissing and CheckOptional methods that is adapted to >> Entry_mkimage in order to improve support for allow missing flag. >> >> Use collect_contents_to_file

[PATCH 2/2] pico-imx6: Pass the mmc alias to fix boot regression

2023-02-15 Thread Fabio Estevam
Originally, the mmc aliases node was present in imx6qdl-pico.dtsi. After the sync with Linux in commit d0399a46e7cd ("imx6dl/imx6qdl: synchronise device trees with linux"), the aliases node is gone as the upstream version does not have it. This causes a boot regression in which the eMMC

[PATCH 1/2] pico-imx6: Add DM_SERIAL support

2023-02-15 Thread Fabio Estevam
The conversion to DM_SERIAL is mandatory, so add support for it. Signed-off-by: Fabio Estevam --- configs/pico-imx6_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/pico-imx6_defconfig b/configs/pico-imx6_defconfig index a6ed013f8b..f79b7ec520 100644 ---

[PATCH] udoo: Add DM_SERIAL support

2023-02-15 Thread Fabio Estevam
The conversion to DM_SERIAL is mandatory, so add support for it. Signed-off-by: Fabio Estevam --- configs/udoo_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/udoo_defconfig b/configs/udoo_defconfig index 0a3baec12e..20686298bd 100644 --- a/configs/udoo_defconfig +++

[PATCH] mx6sxsabresd: Add DM_SERIAL support

2023-02-15 Thread Fabio Estevam
The conversion to DM_SERIAL is mandatory, so add support for it. Signed-off-by: Fabio Estevam --- configs/mx6sxsabresd_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/mx6sxsabresd_defconfig b/configs/mx6sxsabresd_defconfig index c469084737..2e52e301ae 100644 ---

[Patch] net: dwc_eth_qos - works with fixed-phy

2023-02-15 Thread Elmar Psilog
Let the EQoS in imx8mp handle fixed-phy too. Without that patch it lost track to the node to scan speed and duplex. Patch was created by Marek Vasut, just tested by me. Signed-off-by: Elmar Psilog --- drivers/net/dwc_eth_qos.c 1 file changed diff --git a/drivers/net/dwc_eth_qos.c

[PATCH v3 1/1] cmd: ums: abort mounting by pressing any key

2023-02-15 Thread Svyatoslav Ryhel
This patch introduses config which allows interrupt run of usb mass storage with any key. This is especially useful on devices with limited input capabilities like tablets and smatphones which have only gpio keys in direct access. Signed-off-by: Svyatoslav Ryhel --- cmd/Kconfig| 6

[PATCH v3 0/1] CMD commands improvements

2023-02-15 Thread Svyatoslav Ryhel
- add ability for 'ums' command to interrupt run of usb mass storage with any key. This is especially useful on devices with limited input capabilities like tablets and smatphones which have only gpio keys in direct access. Current implementation uses Kconfig entry. Changelog from v2 - fix stuck

[PATCH 5/5] board: freescale: ls1088a: remove code under !CONFIG_DM_ETH

2023-02-15 Thread Ioana Ciornei
Now that DM_ETH is enabled by default, there is no point in keeping the non-DM_ETH code which initialized the ethernet interfaces. Signed-off-by: Ioana Ciornei --- board/freescale/ls1088a/eth_ls1088aqds.c | 739 +-- board/freescale/ls1088a/eth_ls1088ardb.c | 93 ---

[PATCH 2/5] board: freescale: lx2160a: remove code under !CONFIG_DM_ETH

2023-02-15 Thread Ioana Ciornei
Now that DM_ETH is enabled by default, there is no point in keeping the non-DM_ETH code which initialized the ethernet interfaces. Signed-off-by: Ioana Ciornei --- board/freescale/lx2160a/eth_lx2160aqds.c | 825 +- board/freescale/lx2160a/eth_lx2160ardb.c | 32 -

[PATCH 4/5] board: freescale: ls2080aqds: remove code under !CONFIG_DM_ETH

2023-02-15 Thread Ioana Ciornei
Now that DM_ETH is enabled by default, there is no point in keeping the non-DM_ETH code which initialized the ethernet interfaces. Signed-off-by: Ioana Ciornei --- board/freescale/ls2080aqds/eth.c| 981 +--- board/freescale/ls2080aqds/ls2080aqds.c | 2 +- 2 files

[PATCH 3/5] board: freescale: ls2080rdb: remove code under !CONFIG_DM_ETH

2023-02-15 Thread Ioana Ciornei
Now that DM_ETH is enabled by default, there is no point in keeping the non-DM_ETH code which initialized the ethernet interfaces. Signed-off-by: Ioana Ciornei --- board/freescale/ls2080ardb/eth_ls2080rdb.c | 95 -- board/freescale/ls2080ardb/ls2080ardb.c| 2 +- 2 files

[PATCH 1/5] board: freescale: lx2160a: remove hardcoded ethernet initialization

2023-02-15 Thread Ioana Ciornei
The LX2160ARDB board has support for DM_ETH probed devices, which means that we do not need to manually create an MDIO controller, register it, create PHYs on it etc. In order to cleanup the board file a bit, just remove this code entirely. Signed-off-by: Ioana Ciornei ---

[PATCH 0/5] board: freescale: remove non-DM_ETH code for Layerscape DPAA2 platforms

2023-02-15 Thread Ioana Ciornei
Now that DM_ETH is enabled by default and even the ldpaa_eth driver doesn't have support for the non-DM_ETH use case (see commit below), remove non-DM_ETH code from the board files. commit cde5a844fbba ("net: ldpaa_eth: Remove non-DM_ETH code") There is no point in keeping around the

Re: [RFC][PATCH] board: rockchip: add Radxa ROCK5B Rk3588 board

2023-02-15 Thread Eugen Hristev
On 2/14/23 13:04, Jonas Karlman wrote: Hi Eugen, On 2023-02-14 11:26, Eugen Hristev wrote: On 2/6/23 14:14, Jonas Karlman wrote: Hi Eugen, On 2023-02-06 12:59, Eugen Hristev wrote: ROCK 5B is a Rockchip RK3588 based SBC (Single Board Computer) by Radxa. There are tree variants depending on

[PATCH] mx51evk: Add DM_SERIAL support

2023-02-15 Thread Fabio Estevam
The conversion to DM_SERIAL is mandatory, so add support for it. Signed-off-by: Fabio Estevam --- configs/mx51evk_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/mx51evk_defconfig b/configs/mx51evk_defconfig index b173648c8e..832f718410 100644 ---

[PATCH 2/2] mx53loco: Add DM_I2C support

2023-02-15 Thread Fabio Estevam
The conversion to DM_I2C is mandatory, so add support for it. Signed-off-by: Fabio Estevam --- board/freescale/mx53loco/mx53loco.c | 36 ++--- configs/mx53loco_defconfig | 2 +- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git

[PATCH 1/2] mx53loco: Add DM_SERIAL support

2023-02-15 Thread Fabio Estevam
The conversion to DM_SERIAL is mandatory, so add support for it. Signed-off-by: Fabio Estevam --- configs/mx53loco_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/mx53loco_defconfig b/configs/mx53loco_defconfig index d5f2b7092d..e332c930b9 100644 ---

[PATCH v3 8/9] video console: add 16x32 Terminus font from linux

2023-02-15 Thread Dzmitry Sankouski
Modern mobile phones typically have high pixel density. Bootmenu is hardly readable on those with 8x16 font. Signed-off-by: Dzmitry Sankouski Reviewed-by: Simon Glass --- Changes for v2: - edit for runtime configuration Changes for v3: none drivers/video/Kconfig |7 +

Re: [PATCH v3] efi_loader: update SetVariable attribute check

2023-02-15 Thread Heinrich Schuchardt
On 2/15/23 10:55, Masahisa Kojima wrote: UEFI specification v2.10 says that EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS is deprecated and EFI_UNSUPPORTED should be returned in SetVariable variable service. Current implementation returns EFI_INVALID_PARAMETER, let's fix the return value. Together

[PATCH v3 9/9] video console: add 12x22 console simple font test

2023-02-15 Thread Dzmitry Sankouski
Tests fonts wider than a byte. Signed-off-by: Dzmitry Sankouski Reviewed-by: Simon Glass --- Changes for v2: N/A Changes for v2: none configs/sandbox_defconfig | 3 +++ test/dm/video.c | 41 +++ 2 files changed, 44 insertions(+) diff --git

[PATCH v3 5/9] video console: implement multiple fonts configuration

2023-02-15 Thread Dzmitry Sankouski
This needed for unit testing different fonts. Configured fonts are placed in an array of fonts. First font is selected by default upon console probe. Signed-off-by: Dzmitry Sankouski --- Changes for v2: N/A Changes for v3: N/A common/splash.c| 17 ++- drivers/video/Kconfig

[PATCH v3 6/9] video console: allow font size configuration at runtime

2023-02-15 Thread Dzmitry Sankouski
Allow font size configuration at runtime for console_simple.c driver. This needed for unit testing different fonts. Configuring is done by `font` command, also used for font selection in true type console. Signed-off-by: Dzmitry Sankouski --- Changes for v2: N/A Changes for v3: - move 8x16 font

[PATCH v3 4/9] video console: move 8x16 font data in named header

2023-02-15 Thread Dzmitry Sankouski
Consistent font data header names needed to add new fonts. Signed-off-by: Dzmitry Sankouski --- Changes for v2: N/A Changes for v3: N/A include/video_font.h | 2 +- include/{video_font_data.h => video_font_8x16.h} | 5 ++--- 2 files changed, 3 insertions(+), 4

[PATCH v3 2/9] video console: refactoring and optimization

2023-02-15 Thread Dzmitry Sankouski
- get rid of code duplications in switch across bpp values - extract common pixel fill logic in two functions one per horizontal and vertical filling - rearrange statements in put_xy* methods in unified way - replace types - uint*_t to u* Signed-off-by: Dzmitry Sankouski --- Changes for v2: -

[PATCH v3 3/9] video console: add support for fonts wider than 1 byte

2023-02-15 Thread Dzmitry Sankouski
Devices with high ppi may benefit from wider fonts. Current width implementation is limited by 1 byte, i.e. 8 bits. New version iterates VIDEO_FONT_BYTE_WIDTH times, to process all width bytes, thus allowing fonts wider than 1 byte. Signed-off-by: Dzmitry Sankouski --- Charges for v2: - replace

[PATCH v3 1/9] video console: unite normal and rotated files

2023-02-15 Thread Dzmitry Sankouski
Unite console_normal.c and console_rotate.c files. Those files have similar logic, and common logic may be extracted after putting code in single file. Signed-off-by: Dzmitry Sankouski --- Changes for v2: none Changes for v3: none drivers/video/Kconfig | 8 +-

  1   2   >