Re: [PATCH] SPI NOR: zynq_virt: enabling Gigadevice part # in zynq virt config file

2022-12-11 Thread Michal Simek
On 12/11/22 03:21, Victor Lim wrote: CAUTION: This message has originated from an External Source. Please use proper judgment and caution when opening attachments, clicking links, or responding to this email. Enabling Gigadevice part # in this config file The same issues as before. Fix

Re: [PATCH] patch: SPI: NOR: zynqmp_virt: enabling Gigadevice part #

2022-12-11 Thread Michal Simek
On 12/11/22 03:07, Victor Lim wrote: CAUTION: This message has originated from an External Source. Please use proper judgment and caution when opening attachments, clicking links, or responding to this email. Enabling Gigadevice part # in this config file Signed-off-by: Victor Lim

Re: [PATCH] patch v2: SPI NOR: zynqmp: zynq: gd55lx02g

2022-12-11 Thread Dhruva Gole
Title should be [PATCH V2] SPI NOR: zynqmp: zynq: gd55lx02g The commit need not contain patch version information. You can use the command: git format-patch -M -C -o mypatch --cover-letter --subject-prefix=" PATCH V2" -1 while generating the patch. On 11/12/22 21:25, Victor Lim wrote:

Re: [PATCH 1/4] riscv: spl: Introduce SPL_OPENSBI_OS_BOOT

2022-12-11 Thread Rick Chen
> On 12/7/22 01:23, Rick Chen wrote: > > In RISC-V, it only provide normal mode booting currently. > > To speed up the booting process, here provide SPL_OPENSBI_OS_BOOT > > to achieve this feature which will be call Fast-Boot mode. By > > Can you name this something different. We already have

Re: [PATCH] serial: Do not write additional \r before \n for dm_serial drivers

2022-12-11 Thread Stefan Roese
On 12/11/22 00:27, Pali Rohár wrote: serial-uclass.c code already puts \r before \n for all dm_serial drivers. Signed-off-by: Pali Rohár Reviewed-by: Stefan Roese Thanks, Stefan --- drivers/serial/serial_lpuart.c | 3 --- drivers/serial/serial_mpc8xx.c | 3 --- 2 files changed, 6

Re: [PATCH 1/4] riscv: spl: Introduce SPL_OPENSBI_OS_BOOT

2022-12-11 Thread Rick Chen
Hi Tom > On Fri, Dec 09, 2022 at 08:48:37AM -0500, Sean Anderson wrote: > > On 12/7/22 01:23, Rick Chen wrote: > > > In RISC-V, it only provide normal mode booting currently. > > > To speed up the booting process, here provide SPL_OPENSBI_OS_BOOT > > > to achieve this feature which will be call

[PATCH v1 17/17] configs: starfive: add starfive_visionfive2_defconfig

2022-12-11 Thread Yanhong Wang
This is the initial basic config for StarFive VisionFive v2 board. It includes consol, Norflash, sdio, ddr etc. Signed-off-by: Yanhong Wang --- configs/starfive_visionfive2_defconfig | 72 ++ 1 file changed, 72 insertions(+) create mode 100644

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

2022-12-11 Thread Yanhong Wang
Add initial device tree for the JH7110 RISC-V SoC. Signed-off-by: Yanhong Wang --- arch/riscv/dts/jh7110.dtsi | 497 + 1 file changed, 497 insertions(+) create mode 100644 arch/riscv/dts/jh7110.dtsi diff --git a/arch/riscv/dts/jh7110.dtsi

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

2022-12-11 Thread Yanhong Wang
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 | 66 + arch/riscv/dts/starfive_visionfive2.dts | 234 ++ 3 files changed,

[PATCH v1 15/17] riscv: dts: jh7110: Add initial u-boot device tree

2022-12-11 Thread Yanhong Wang
Add initial u-boot device tree for the JH7110 RISC-V SoC. Signed-off-by: Yanhong Wang --- arch/riscv/dts/jh7110-u-boot.dtsi | 86 +++ 1 file changed, 86 insertions(+) create mode 100644 arch/riscv/dts/jh7110-u-boot.dtsi diff --git

[PATCH v1 13/17] board: starfive: Add TARGET_STARFIVE_VISIONFIVE2 to Kconfig

2022-12-11 Thread Yanhong Wang
Add board support for StarFive VisionFive v2. Signed-off-by: Yanhong Wang --- arch/riscv/Kconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index ebc4bef220..e341c364f1 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -24,6 +24,9

[PATCH v1 08/17] pinctrl: starfive: Add StarFive JH7110 driver

2022-12-11 Thread Yanhong Wang
From: Kuan Lim Lee Add pinctrl driver for StarFive JH7110 SoC. Signed-off-by: Kuan Lim Lee Signed-off-by: Emil Renner Berthing Signed-off-by: Jianlong Huang Signed-off-by: Yanhong Wang --- drivers/pinctrl/Kconfig | 1 + drivers/pinctrl/Makefile

[PATCH v1 12/17] board: starfive: Add Kconfig for StarFive VisionFive v2 Board

2022-12-11 Thread Yanhong Wang
Add Kconfig to select the basic functions for StarFive VisionFive v2 Board. Signed-off-by: Yanhong Wang --- board/starfive/visionfive2/Kconfig | 53 ++ 1 file changed, 53 insertions(+) create mode 100644 board/starfive/visionfive2/Kconfig diff --git

[PATCH v1 09/17] ram: starfive: add ddr driver

2022-12-11 Thread Yanhong Wang
Add driver for StarFive JH7110 to support ddr initialization in SPL. Signed-off-by: Yanhong Wang --- drivers/ram/Kconfig |1 + drivers/ram/Makefile|4 +- drivers/ram/starfive/Kconfig|5 + drivers/ram/starfive/Makefile | 11 +

[PATCH v1 10/17] board: starfive: add StarFive VisionFive v2 board support

2022-12-11 Thread Yanhong Wang
Add board support for StarFive VisionFive v2. Signed-off-by: Yanhong Wang --- board/starfive/visionfive2/MAINTAINERS| 7 ++ board/starfive/visionfive2/Makefile | 7 ++ board/starfive/visionfive2/spl.c | 119 ++

[PATCH v1 11/17] riscv: cpu: jh7110: Add Kconfig for StarFive JH7110 SoC

2022-12-11 Thread Yanhong Wang
Add Kconfig to select the basic functions for StarFive JH7110 SoC. Signed-off-by: Yanhong Wang --- arch/riscv/cpu/jh7110/Kconfig | 28 1 file changed, 28 insertions(+) create mode 100644 arch/riscv/cpu/jh7110/Kconfig diff --git a/arch/riscv/cpu/jh7110/Kconfig

[PATCH v1 07/17] dt-bindings: pinctrl: Add StarFive JH7110 pinctrl definitions

2022-12-11 Thread Yanhong Wang
From: Jianlong Huang Add pinctrl definitions for StarFive JH7110 SoC. Signed-off-by: Kuan Lim Lee Signed-off-by: Emil Renner Berthing Signed-off-by: Jianlong Huang Signed-off-by: Yanhong Wang --- .../pinctrl/pinctrl-starfive-jh7110.h | 427 ++ 1 file changed, 427

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

2022-12-11 Thread Yanhong Wang
Add a DM clock driver for StarFive JH7110 SoC. Signed-off-by: Yanhong Wang --- drivers/clk/Kconfig | 1 + drivers/clk/Makefile | 1 + drivers/clk/starfive/Kconfig | 15 + drivers/clk/starfive/Makefile | 4 +

[PATCH v1 05/17] dt-bindings: clock: Add StarFive JH7110 clock definitions

2022-12-11 Thread Yanhong Wang
Add all clock outputs for the StarFive JH7110 clock generator. Signed-off-by: Yanhong Wang --- include/dt-bindings/clock/starfive-jh7110.h | 271 1 file changed, 271 insertions(+) create mode 100644 include/dt-bindings/clock/starfive-jh7110.h diff --git

[PATCH v1 04/17] reset: starfive: jh7110: Add reset driver for StarFive JH7110 SoC

2022-12-11 Thread Yanhong Wang
Add a DM reset driver for StarFive JH7110 SoC. Note that the register base address of reset controller is the same with the clock controller. Therefore, there is no device tree node alone for reset driver.It binds device node in the clock driver Signed-off-by: Yanhong Wang ---

[PATCH v1 03/17] dt-bindings: reset: Add StarFive JH7110 reset definitions

2022-12-11 Thread Yanhong Wang
Add resets for the StarFive JH7110 system(SYS),system-top-group(STG) and always-on(AON) reset controller. Signed-off-by: Yanhong Wang --- include/dt-bindings/reset/starfive-jh7110.h | 183 1 file changed, 183 insertions(+) create mode 100644

[PATCH v1 00/17] Basic StarFive JH7110 RISC-V SoC support

2022-12-11 Thread Yanhong Wang
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 for this to be achieved, the respective DT nodes have been added, and the required defconfigs have been added to the boards' defconfig. What is more, the

[PATCH v1 01/17] riscv: cpu: jh7110: Add support for jh7110 SoC

2022-12-11 Thread Yanhong Wang
Add StarFive JH7110 SoC to support RISC-V arch. Signed-off-by: Yanhong Wang --- arch/riscv/cpu/jh7110/Makefile| 10 arch/riscv/cpu/jh7110/cpu.c | 23 arch/riscv/cpu/jh7110/dram.c | 38 + arch/riscv/cpu/jh7110/spl.c

[PATCH v1 02/17] cache: starfive: Add StarFive JH7110 support

2022-12-11 Thread Yanhong Wang
This adds support for the StarFive JH7110 SoC which also feature this SiFive cache controller. Signed-off-by: Yanhong Wang --- drivers/cache/cache-sifive-ccache.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cache/cache-sifive-ccache.c b/drivers/cache/cache-sifive-ccache.c index

Re: [PATCH 0/8] sunxi: Update H616 DRAM driver

2022-12-11 Thread Andre Przywara
On Sun, 11 Dec 2022 17:32:05 +0100 Jernej Skrabec wrote: Hi Jernej, many thanks for putting this together! I will have a more elaborate look at each patch later. > Current H616 DRAM driver is completely customized to Orange Pi Zero2 > board, which is currently the only H616 board supported by

[PATCH v1 15/16] apalis-imx8: update update_uboot confirmation message

2022-12-11 Thread Marcel Ziswiler
From: Marcel Ziswiler Update update_uboot confirmation message. Signed-off-by: Marcel Ziswiler --- include/configs/apalis-imx8.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/apalis-imx8.h b/include/configs/apalis-imx8.h index 85c305f8f00..c54c4d0465a

[PATCH v1 16/16] apalis-imx8: update env memory layout

2022-12-11 Thread Marcel Ziswiler
From: Marcel Ziswiler Update the distro config env memory layout for the Apalis iMX8 aka QuadMax: - kernel_comp_addr_r=0xf000 temporary area for uncompressing (ie FIT images or Image.gz booted using booti) - kernel_comp_size=0x0800 - loadaddr=0x9540 avoiding any reserved areas

[PATCH v1 13/16] apalis-imx8: introduce setup setting setupargs

2022-12-11 Thread Marcel Ziswiler
From: Marcel Ziswiler Introduce setup setting setupargs and move earlycon there. Signed-off-by: Marcel Ziswiler --- include/configs/apalis-imx8.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/configs/apalis-imx8.h b/include/configs/apalis-imx8.h index

[PATCH v1 10/16] apalis-imx8: update spdx license identifier string

2022-12-11 Thread Marcel Ziswiler
From: Marcel Ziswiler Update SPDX license identifier string. While at it also update copyright period. Signed-off-by: Marcel Ziswiler --- arch/arm/dts/fsl-imx8qm-apalis.dts | 4 ++-- board/toradex/apalis-imx8/Makefile | 4 ++--

[PATCH v1 12/16] apalis-imx8: remove obsolete net usb start

2022-12-11 Thread Marcel Ziswiler
From: Marcel Ziswiler Remove obsolete net USB start. While at it also add a comment about enabling distro-boot. Signed-off-by: Marcel Ziswiler --- include/configs/apalis-imx8.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/configs/apalis-imx8.h

[PATCH v1 14/16] apalis-imx8: drop obsolete environment variables

2022-12-11 Thread Marcel Ziswiler
From: Marcel Ziswiler Drop obsolete environment variables fdt_addr, finduuid, mmcargs, mmcdev, mmcpart and panel. Signed-off-by: Marcel Ziswiler --- include/configs/apalis-imx8.h | 7 --- 1 file changed, 7 deletions(-) diff --git a/include/configs/apalis-imx8.h

[PATCH v1 08/16] apalis/colibri-imx8/8x: remove global variable script

2022-12-11 Thread Marcel Ziswiler
From: Oleksandr Suvorov The distroboot script system scans boot_scripts variable and try to find and use to boot each script name mentioned there. Setting global variable "script" breaks this general mechanism of searching and running a distro boot script. Remove global variables "script" to fix

[PATCH v1 11/16] apalis-imx8: remove obsolete sdhc related config defines

2022-12-11 Thread Marcel Ziswiler
From: Marcel Ziswiler Remove obsolete SDHC related config defines. Nowadays, all SDHC related hardware configuration comes from the device tree. Signed-off-by: Marcel Ziswiler --- include/configs/apalis-imx8.h | 9 - 1 file changed, 9 deletions(-) diff --git

[PATCH v1 09/16] apalis-imx8: enable environment bootcount limit

2022-12-11 Thread Marcel Ziswiler
From: Marcel Ziswiler Enable optional environment bootcount limit functionality. Signed-off-by: Marcel Ziswiler --- configs/apalis-imx8_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/apalis-imx8_defconfig b/configs/apalis-imx8_defconfig index eabdb12478c..019846e1af2

[PATCH v1 07/16] apalis/colibri-imx8/8x: add overlay support for i.mx 8/8x-based soms

2022-12-11 Thread Marcel Ziswiler
From: Oleksandr Suvorov There is no "apply" command enabled for "fdt". Enable "apply" command to allow overlays to be applied. Signed-off-by: Oleksandr Suvorov Signed-off-by: Marcel Ziswiler --- configs/apalis-imx8_defconfig | 1 + configs/colibri-imx8x_defconfig | 1 + 2 files changed, 2

[PATCH v1 06/16] apalis-imx8: set bootdelay

2022-12-11 Thread Marcel Ziswiler
From: Marcel Ziswiler Set the boot delay to one second. Signed-off-by: Marcel Ziswiler --- configs/apalis-imx8_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/apalis-imx8_defconfig b/configs/apalis-imx8_defconfig index 92a0c67b32e..aee43d07816 100644 ---

[PATCH v1 05/16] apalis-imx8: provide proper config_sys_prompt

2022-12-11 Thread Marcel Ziswiler
From: Igor Opaniuk This provides correct system prompt for U-Boot console. Signed-off-by: Igor Opaniuk Signed-off-by: Marcel Ziswiler --- configs/apalis-imx8_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/apalis-imx8_defconfig b/configs/apalis-imx8_defconfig index

[PATCH v1 03/16] apalis-imx8: turn off lcd backlight before os handover

2022-12-11 Thread Marcel Ziswiler
From: Marcel Ziswiler U-Boot typically tears down the display controller before handing control over to Linux. On LCD displays disabling pixel clock leads to a fading out effect with vertical/horizontal lines. Make sure to disable back light GPIO Apalis BKL1 before booting Linux. Signed-off-by:

[PATCH v1 04/16] apalis-imx8: display build info

2022-12-11 Thread Marcel Ziswiler
From: Marcel Ziswiler Display build info with information about the version of SCFW, SECO and TF-A (ATF). Signed-off-by: Marcel Ziswiler --- board/toradex/apalis-imx8/apalis-imx8.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/toradex/apalis-imx8/apalis-imx8.c

[PATCH v1 00/16] apalis-imx8: boot issue fix and support refresh

2022-12-11 Thread Marcel Ziswiler
From: Marcel Ziswiler This series fixes a boot issue and refreshes Apalis iMX8 support as follows: - fix booting caused by missing DM_EVENT - implement PCB version and SoC variant handling - turn off LCD backlight before OS handover - display build info - provide proper prompt - set bootdelay -

[PATCH v1 02/16] apalis-imx8: implement pcb version and soc variant handling

2022-12-11 Thread Marcel Ziswiler
From: Marcel Ziswiler Implement PCB version and SoC variant handling which automatically loads the correct device tree for the Linux kernel. Signed-off-by: Marcel Ziswiler --- board/toradex/apalis-imx8/apalis-imx8.c | 104 +++- configs/apalis-imx8_defconfig |

[PATCH v1 01/16] apalis-imx8: fix booting caused by missing dm_event

2022-12-11 Thread Marcel Ziswiler
From: Marcel Ziswiler Without the DM_EVENT absolutely no output whatsoever and the system does not boot at all. Fixes: c5ef2025579e ("dm: fix DM_EVENT dependencies") Signed-off-by: Marcel Ziswiler --- configs/apalis-imx8_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH] sunxi: Fix serial console for A10s-OLinuXino-MICRO

2022-12-11 Thread Andre Przywara
On Sun, 11 Dec 2022 23:00:54 +0100 Mark Kettenis wrote: Hi, > On this board CONFIG_CONS_INDEX needs to be 1 unlike other sun5i > boards. Since this is the default, remove to bogus setting. Indeed, UART1 is not even configured in the DT, and Olimex' user manual mentions explicitly that UART0

[PATCH] sunxi: Fix serial console for A10s-OLinuXino-MICRO

2022-12-11 Thread Mark Kettenis
On this board CONFIG_CONS_INDEX needs to be 1 unlike other sun5i boards. Since this is the default, remove to bogus setting. Fixes: 7095f8641863 ("sunxi: Convert CONS_INDEX to Kconfig") Signed-off-by: Mark Kettenis --- configs/A10s-OLinuXino-M_defconfig | 1 - 1 file changed, 1 deletion(-)

Re: Pull request for u-boot-nand-20221211

2022-12-11 Thread Tom Rini
8 > 11:25:08 -0500) > > are available in the Git repository at: > > https://source.denx.de/u-boot/u-boot.git u-boot-nand-20221211 Note that you I think told request-pull something slightly wrong as it should say https://source.denx.de/u-boot/custodians/u-boot-nand-flash.git here, for futu

Re: [PATCH 0/5] Complete the migration of MTDPARTS_DEFAULT / MTDIDS_DEFAULT

2022-12-11 Thread Chris Packham
On 7/12/22 21:26, Patrick Delaunay wrote: > Addition for previous commit a331017c237c ("Complete migration of > MTDPARTS_DEFAULT / MTDIDS_DEFAULT, include in environment") > > Remove the remaining defines MTDPARTS_DEFAULT and MTDIDS_DEFAULT > in the configuration files (include/configs/*.h). > >

Re: [PATCH 2/2] configs: increase CONFIG_SYS_BOOTM_LEN to support kernel > 32MB

2022-12-11 Thread Tom Rini
On Sun, Dec 11, 2022 at 11:46:54PM +0800, Jit Loon Lim wrote: > From: Kah Jing Lee > > Increase CONFIG_SYS_BOOTM_LEN to support kernel image from 5.15.lts > that is > 32MB > > Signed-off-by: Kah Jing Lee > Signed-off-by: Jit Loon Lim > --- > include/configs/socfpga_soc64_common.h | 1 + > 1

Re: [PATCH 1/2] configs: add env. variable to support compressed kernel in qspiboot

2022-12-11 Thread Tom Rini
On Sun, Dec 11, 2022 at 11:46:53PM +0800, Jit Loon Lim wrote: > From: Kah Jing Lee > > Fix qspiboot issue which uncompressed kernel(5.16) overflows to rootfs > Add 2 env. variables to support compressed kernel in legacy qspiboot: > setenv kernel_comp_addr_r 0x900 > setenv kernel_comp_size

[PATCH] ARM: imx: Factor common code out of Data Modul i.MX8M Mini eDM SBC

2022-12-11 Thread Marek Vasut
Pull common.c into common subdirectory of the board file, since this code can be reused by other Data Modul SBCs. Drop the include of lpddr4_timing.h, which is unneeded. Signed-off-by: Marek Vasut --- Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic --- board/data_modul/common/common.c

[PATCH] ARM: imx: Drop board side icache enable on Data Modul i.MX8M Mini eDM SBC

2022-12-11 Thread Marek Vasut
The icache is enabled in common architecture code since commit: 2fa763baa1c ("ARM: imx: Enable instruction cache early on on i.MX8M") Drop the board side duplicate code. Signed-off-by: Marek Vasut --- Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic ---

[PATCH] ARM: imx: Enable LTO for Data Modul i.MX8M Mini eDM SBC

2022-12-11 Thread Marek Vasut
Enable LTO to reduce the size of SPL. Signed-off-by: Marek Vasut --- Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic --- configs/imx8mm_data_modul_edm_sbc_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/imx8mm_data_modul_edm_sbc_defconfig

Re: [PATCH 8/8] sunxi: Parameterize H616 DRAM code some more

2022-12-11 Thread Jernej Škrabec
Dne nedelja, 11. december 2022 ob 17:32:13 CET je Jernej Skrabec napisal(a): > Part of the code, previously known as "unknown feature" also doesn't > have constant values. They are derived from TPR0 parameter in vendor > DRAM code. Introduce that parameter here too, to ease adding new boards. > >

[PATCH 7/8] sunxi: Parameterize bit delay code in H616 DRAM driver

2022-12-11 Thread Jernej Skrabec
These values are highly board specific and thus make sense to add parameter for them. To ease adding support for new boards, let's make them same as in vendor DRAM settings. Signed-off-by: Jernej Skrabec --- .../include/asm/arch-sunxi/dram_sun50i_h616.h | 4 + arch/arm/mach-sunxi/Kconfig

[PATCH 8/8] sunxi: Parameterize H616 DRAM code some more

2022-12-11 Thread Jernej Skrabec
Part of the code, previously known as "unknown feature" also doesn't have constant values. They are derived from TPR0 parameter in vendor DRAM code. Introduce that parameter here too, to ease adding new boards. Signed-off-by: Jernej Skrabec --- .../include/asm/arch-sunxi/dram_sun50i_h616.h | 1

[PATCH 6/8] sunxi: Make bit delay function in H616 DRAM code void

2022-12-11 Thread Jernej Skrabec
Mentioned function result is always true and result isn't checked anyway. Let's make it void. Signed-off-by: Jernej Skrabec --- arch/arm/mach-sunxi/dram_sun50i_h616.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/arm/mach-sunxi/dram_sun50i_h616.c

[PATCH 5/8] sunxi: Always configure ODT on H616 DRAM

2022-12-11 Thread Jernej Skrabec
Vendor H616 DRAM code always configure part which we call ODT configuration. Let's reflect that here too. Signed-off-by: Jernej Skrabec --- arch/arm/mach-sunxi/Kconfig| 2 +- arch/arm/mach-sunxi/dram_sun50i_h616.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git

[PATCH 3/8] sunxi: parameterize H616 DRAM ODT values

2022-12-11 Thread Jernej Skrabec
While ODT values for same memory type are similar, they are not necessary the same. Let's parameterize them and make parameter same as in vendor DRAM settings. That way it will be easy to introduce new board support. Signed-off-by: Jernej Skrabec ---

[PATCH 4/8] sunxi: Convert H616 DRAM options to single setting

2022-12-11 Thread Jernej Skrabec
Vendor DRAM settings use TPR10 parameter to enable various features. There are many mores features that just those that are currently mentioned. Since new will be added later and most are not known, let's reuse value from vendor DRAM driver as-is. This will also help adding support for new boards.

[PATCH 2/8] sunxi: cosmetic: Fix H616 DRAM driver code style

2022-12-11 Thread Jernej Skrabec
Fix code style for pointer declaration. This is just cosmetic change to avoid checkpatch errors in later commits. Signed-off-by: Jernej Skrabec --- arch/arm/mach-sunxi/dram_sun50i_h616.c | 74 +- 1 file changed, 37 insertions(+), 37 deletions(-) diff --git

[PATCH 1/8] sunxi: Fix write to H616 DRAM CR register

2022-12-11 Thread Jernej Skrabec
Vendor DRAM code actually writes to whole CR register and not just sets bit 31 in mctl_ctrl_init(). Just to be safe, do that here too. Signed-off-by: Jernej Skrabec --- arch/arm/mach-sunxi/dram_sun50i_h616.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 0/8] sunxi: Update H616 DRAM driver

2022-12-11 Thread Jernej Skrabec
Current H616 DRAM driver is completely customized to Orange Pi Zero2 board, which is currently the only H616 board supported by U-Boot. Needless to say, this is not ideal for adding new boards. With changes in this series, all DDR3 boards are supported and all that is needed is just vendor DRAM

[PATCH] patch v2: SPI NOR: zynqmp: zynq: gd55lx02g

2022-12-11 Thread Victor Lim
adding gd55lx02g to the file Signed-off-by: Victor Lim --- drivers/mtd/spi/spi-nor-ids.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c index 726781f15b..a729575979 100644 --- a/drivers/mtd/spi/spi-nor-ids.c +++

[PATCH] mtd: spi: Add ISSI QSPI to lightweight SPI flash stack for spl

2022-12-11 Thread Jit Loon Lim
From: "Lokanathan, Raaj" Add support for reading data/images from this ISSI QSPI flash. Signed-off-by: Lokanathan, Raaj Signed-off-by: Jit Loon Lim --- drivers/mtd/spi/spi-nor-tiny.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/spi/spi-nor-tiny.c

[PATCH] arm: socfpga: Expand the help text for the bridge command.

2022-12-11 Thread Jit Loon Lim
From: "Lokanathan, Raaj" The existing bridge command is incomplete and it has spelling error. This newly added help text indicates the bit positions and the values of the mask. ie: bit 0 = h2f/s2f, bit 1 = lwhps2fpga, and bit 2 = f2h/f2s These bridges available only in Stratix 10: bit3:

[PATCH] patch v2: SPI NOR: zynqmp: zynq: gd55lx01g

2022-12-11 Thread Victor Lim
adding gd55lx01g to the file Signed-off-by: Victor Lim --- drivers/mtd/spi/spi-nor-ids.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c index 370d1f7698..726781f15b 100644 --- a/drivers/mtd/spi/spi-nor-ids.c +++

[PATCH 2/2] configs: increase CONFIG_SYS_BOOTM_LEN to support kernel > 32MB

2022-12-11 Thread Jit Loon Lim
From: Kah Jing Lee Increase CONFIG_SYS_BOOTM_LEN to support kernel image from 5.15.lts that is > 32MB Signed-off-by: Kah Jing Lee Signed-off-by: Jit Loon Lim --- include/configs/socfpga_soc64_common.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/socfpga_soc64_common.h

[PATCH 1/2] configs: add env. variable to support compressed kernel in qspiboot

2022-12-11 Thread Jit Loon Lim
From: Kah Jing Lee Fix qspiboot issue which uncompressed kernel(5.16) overflows to rootfs Add 2 env. variables to support compressed kernel in legacy qspiboot: setenv kernel_comp_addr_r 0x900 setenv kernel_comp_size 0x0100 Signed-off-by: Kah Jing Lee Signed-off-by: Jit Loon Lim ---

[PATCH] patch v2: SPI NOR: zynqmp: zynq: gd25lx512

2022-12-11 Thread Victor Lim
adding gd25lx512 to the file Signed-off-by: Victor Lim --- drivers/mtd/spi/spi-nor-ids.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c index 8bead629f4..370d1f7698 100644 --- a/drivers/mtd/spi/spi-nor-ids.c +++

[PATCH] Add CONFIG_SYS_NAND_SELF_INIT to Kconfig for NAND DENALI driver

2022-12-11 Thread Jit Loon Lim
From: "Lokanathan, Raaj" Add the CONFIG_SYS_NAND_SELF_INIT to the Kconfig to follow the changes from mainline. Signed-off-by: Lokanathan, Raaj Signed-off-by: Jit Loon Lim --- drivers/mtd/nand/raw/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/nand/raw/Kconfig

[PATCH] patch v2: SPI NOR: zynqmp: zynq: gd55lt02g

2022-12-11 Thread Victor Lim
adding gd55lt02g to the file Signed-off-by: Victor Lim --- drivers/mtd/spi/spi-nor-ids.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c index a90b1a2e3c..8bead629f4 100644 --- a/drivers/mtd/spi/spi-nor-ids.c +++

[PATCH] patch v2: SPI NOR: zynqmp: zynq: gd55lt01g

2022-12-11 Thread Victor Lim
adding gd55lt01g to the file Signed-off-by: Victor Lim --- drivers/mtd/spi/spi-nor-ids.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c index 0419dca074..a90b1a2e3c 100644 --- a/drivers/mtd/spi/spi-nor-ids.c +++

[PATCH] spl: fit: nand: fix fit loading on bad blocks

2022-12-11 Thread Jit Loon Lim
From: Tien Fong Chee The offset at which the image to be loaded from NAND is located is retrieved from the itb header. The presence of bad blocks in the area of the NAND where the itb image is located could invalidate the offset which must therefore be adjusted taking into account the state of

[PATCH] patch v2: SPI NOR: zynqmp: zynq: gd25lt512

2022-12-11 Thread Victor Lim
adding gd25lt512 to the file Signed-off-by: Victor Lim --- drivers/mtd/spi/spi-nor-ids.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c index 7dd1b63faa..0419dca074 100644 --- a/drivers/mtd/spi/spi-nor-ids.c +++

[PATCH] mtd: spi-nor-ids: add Macronix flash entry

2022-12-11 Thread Jit Loon Lim
From: Tien Fong Chee Add Macronix mx25u51245g flash entry, so this can be used on SoCFPGA devices. Signed-off-by: Tien Fong Chee Signed-off-by: Jit Loon Lim --- drivers/mtd/spi/spi-nor-ids.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/spi/spi-nor-ids.c

[PATCH] patch v2: SPI NOR: zynqmp: zynq: gd25lt256

2022-12-11 Thread Victor Lim
adding gd25lt256 to the file Signed-off-by: Victor Lim --- drivers/mtd/spi/spi-nor-ids.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c index 6634e9ceb1..7dd1b63faa 100644 --- a/drivers/mtd/spi/spi-nor-ids.c +++

[PATCH] patch v2: SPI NOR: zynqmp: zynq: gd25lf511

2022-12-11 Thread Victor Lim
adding gd25lf511 to the file Signed-off-by: Victor Lim --- drivers/mtd/spi/spi-nor-ids.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c index 4aeaccd6d1..6634e9ceb1 100644 --- a/drivers/mtd/spi/spi-nor-ids.c +++

[PATCH] include: configs: socfpga: Add environment variables for distro boot

2022-12-11 Thread Jit Loon Lim
From: Yau Wai Gan Added environment variables needed to support distro boot. Signed-off-by: Yau Wai Gan Signed-off-by: Jit Loon Lim --- include/configs/socfpga_soc64_common.h | 81 +- 1 file changed, 80 insertions(+), 1 deletion(-) diff --git

[PATCH] patch v2: SPI NOR: zynqmp: zynq: gd25lf255

2022-12-11 Thread Victor Lim
adding gd25lf255 to the file Signed-off-by: Victor Lim --- drivers/mtd/spi/spi-nor-ids.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c index d3dba87c22..4aeaccd6d1 100644 --- a/drivers/mtd/spi/spi-nor-ids.c +++

[PATCH] patch v2: SPI NOR: zynqmp: zynq: gd25lf128

2022-12-11 Thread Victor Lim
adding gd25lf128 to the file Signed-off-by: Victor Lim --- drivers/mtd/spi/spi-nor-ids.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c index 86e97dcb4e..d3dba87c22 100644 --- a/drivers/mtd/spi/spi-nor-ids.c +++

[PATCH] patch v2: SPI NOR: zynqmp: zynq: gd25lf64

2022-12-11 Thread Victor Lim
adding gd25lf64 to the file Signed-off-by: Victor Lim --- drivers/mtd/spi/spi-nor-ids.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c index 758aca20fd..86e97dcb4e 100644 --- a/drivers/mtd/spi/spi-nor-ids.c +++

[PATCH] patch v2: SPI NOR: zynqmp: zynq: gd25lf32

2022-12-11 Thread Victor Lim
adding gd25lf32 to the file Signed-off-by: Victor Lim --- drivers/mtd/spi/spi-nor-ids.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c index dbf8b8e298..758aca20fd 100644 --- a/drivers/mtd/spi/spi-nor-ids.c +++

[PATCH] patch v2: SPI NOR: zynqmp: zynq: gd25lf16

2022-12-11 Thread Victor Lim
adding gd25lf16 to the file Signed-off-by: Victor Lim --- drivers/mtd/spi/spi-nor-ids.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c index 158b0057a5..dbf8b8e298 100644 --- a/drivers/mtd/spi/spi-nor-ids.c +++

[PATCH] patch v2: SPI NOR: zynqmp: zynq: gd25lf80

2022-12-11 Thread Victor Lim
adding gd25lf80 to the file Signed-off-by: Victor Lim --- drivers/mtd/spi/spi-nor-ids.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c index 5d8a08bfe2..158b0057a5 100644 --- a/drivers/mtd/spi/spi-nor-ids.c +++

[PATCH] patch v2: SPI NOR: zynqmp: zynq: gd55lb02g

2022-12-11 Thread Victor Lim
adding gd55lb02g to the file Signed-off-by: Victor Lim --- drivers/mtd/spi/spi-nor-ids.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c index b9381042ac..5d8a08bfe2 100644 --- a/drivers/mtd/spi/spi-nor-ids.c +++

[PATCH] patch v2: SPI NOR: zynqmp: zynq: gd55lb01g

2022-12-11 Thread Victor Lim
adding gd55lb01g to the file Signed-off-by: Victor Lim --- drivers/mtd/spi/spi-nor-ids.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c index 213a404604..b9381042ac 100644 --- a/drivers/mtd/spi/spi-nor-ids.c +++

[PATCH] patch v2: SPI NOR: zynqmp: zynq: gd25lb512

2022-12-11 Thread Victor Lim
adding gd25lb512 to the file Signed-off-by: Victor Lim --- drivers/mtd/spi/spi-nor-ids.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c index 00c46f75be..213a404604 100644 --- a/drivers/mtd/spi/spi-nor-ids.c +++

[PATCH] patch v2: SPI NOR: zynqmp: zynq: gd25lb256

2022-12-11 Thread Victor Lim
adding gd25lb256 to the file Signed-off-by: Victor Lim --- drivers/mtd/spi/spi-nor-ids.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c index 133550dd3b..00c46f75be 100644 --- a/drivers/mtd/spi/spi-nor-ids.c +++

[PATCH] patch v2: SPI NOR: zynqmp: zynq: gd55x02g

2022-12-11 Thread Victor Lim
adding gd55x02g to the file Signed-off-by: Victor Lim --- drivers/mtd/spi/spi-nor-ids.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c index f6ca16ac62..133550dd3b 100644 --- a/drivers/mtd/spi/spi-nor-ids.c +++

[PATCH] patch v2: SPI NOR: zynqmp: zynq: gd55x01g

2022-12-11 Thread Victor Lim
adding gd55x01g to the file Signed-off-by: Victor Lim --- drivers/mtd/spi/spi-nor-ids.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c index 741b40fbde..f6ca16ac62 100644 --- a/drivers/mtd/spi/spi-nor-ids.c +++

[PATCH] mkimage: fit: Support signed configurations in 'auto' FITs

2022-12-11 Thread Pegorer Massimo
Hi, The patch follows, as per discussion in email thread "Patch proposal - mkimage: fit: Support signed conf 'auto' FITs". Let me know if you prefer something to be changed, or patch to be split in several commits. I have updated the man page with description of the new feature and examples.

[PATCH 3/4] arm: dts: Update NAND MTD partition for Agilex and Stratix 10

2022-12-11 Thread Jit Loon Lim
From: Sin Hui Kho Change NAND flash MTD partition in device tree after implementation of UBI and UBIFS. "u-boot" partition remain for raw u-boot image, but "root" partition is use for UBI image containing all other components. Signed-off-by: Sin Hui Kho Signed-off-by: Jit Loon Lim ---

[PATCH 1/4] configs: defconfig: Enable UBI and UBIFS for Agilex and Stratix10

2022-12-11 Thread Jit Loon Lim
From: Sin Hui Kho Enabling configs required for UBI and UBIFS commands. Set environment in a UBI volume. So, remove CONFIG_ENV_IS_IN_NAND as the environment is now in UBI volume. Signed-off-by: Sin Hui Kho Signed-off-by: Jit Loon Lim --- configs/socfpga_agilex_nand_atf_defconfig| 11

[PATCH 4/4] arm: socfpga: soc64: Load and boot for NAND flash with UBI and UBIFS in enviroment

2022-12-11 Thread Jit Loon Lim
From: Sin Hui Kho Load kernel and device tree from UBI volume. Set root file system type for NAND boot as UBIFS located at UBI volume on MTD partition 1 or namely "root". Signed-off-by: Sin Hui Kho Signed-off-by: Jit Loon Lim --- include/configs/socfpga_soc64_common.h | 9 +++-- 1 file

[PATCH 2/4] configs: defconfig: Update default NAND MTD partition for Agilex and Stratix 10

2022-12-11 Thread Jit Loon Lim
From: Sin Hui Kho Change default MTD partition scheme for NAND flash after implementation of UBI and UBIFS. "u-boot" partition remain for raw u-boot image, but "root" partition is use for UBI image containing all other components. Signed-off-by: Sin Hui Kho Signed-off-by: Jit Loon Lim ---

[PATCH] arm: socfpga: Export Board ID as U-boot Environment Variable

2022-12-11 Thread Jit Loon Lim
From: Yau Wai Gan Board ID is exported as environment variable for use to boot Linux FIT configuration. Signed-off-by: Yau Wai Gan Signed-off-by: Jit Loon Lim --- arch/arm/mach-socfpga/misc_soc64.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/mach-socfpga/misc_soc64.c

[PATCH u-boot] powerpc/mpc85xx: Improve disabling of SPE instructions

2022-12-11 Thread Pali Rohár
Specifying -mspe=no also disables usage of SPE instructions. It is documented in "[PATCH,rs6000] make -mno-spe work as expected" email: http://gcc.gnu.org/ml/gcc-patches/2008-04/msg00311.html So replace -mspe=yes by -mspe=no, so make it clear that u-boot has to be compiled without SPE

[PATCH] arm: socfpga: Enable U-boot FIT Config Name Match with Board ID

2022-12-11 Thread Jit Loon Lim
From: Yau Wai Gan U-boot FIT configuration shall be selected based on the Board ID that is set. Signed-off-by: Yau Wai Gan Signed-off-by: Jit Loon Lim --- arch/arm/mach-socfpga/board.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git

[PATCH u-boot] powerpc/mpc85xx: Pass correct cpu compiler flags

2022-12-11 Thread Pali Rohár
When gcc's default cpu (selected by --with-cpu= during gcc's configure phase) does not match target u-boot board cpu then u-boot binary does not have to be compiled correctly. Lot of distributions sets gcc's default cpu to generic powerpc variant which works fine. U-Boot already pass -Wa,-me500

[PATCH] arm: socfpga: Add function to get Board ID

2022-12-11 Thread Jit Loon Lim
From: Yau Wai Gan Board ID is defined in JTAG User Code register. This function retrieves the Board ID and perform validation on it. Signed-off-by: Yau Wai Gan Signed-off-by: Jit Loon Lim --- arch/arm/mach-socfpga/board.c | 39 +++

Re: [u-boot][PATCH 00/14] rawnand: omap_gpmc: driver model support

2022-12-11 Thread Dario Binacchi
Hi Roger, On Fri, Nov 25, 2022 at 1:38 PM Roger Quadros wrote: > > Hi Michael, > > On 08/11/2022 11:26, Michael Nazzareno Trimarchi wrote: > > Hi Roger > > > > On Fri, Nov 4, 2022 at 2:27 PM Roger Quadros wrote: > >> > >> Hi, > >> > >> On 11/10/2022 14:49, Roger Quadros wrote: > >>> Hi, > >>> >

  1   2   >