Re: [PATCH 0/6] Enable CONFIG_TIMER for all Kirwood / MVEBU boards

2022-08-31 Thread Stefan Roese
Hi Tony, On 31.08.22 08:30, Tony Dinh wrote: Hi Stefan, On Tue, Aug 30, 2022 at 10:08 PM Stefan Roese wrote: Hi Tony, On 31.08.22 07:02, Stefan Roese wrote: Hi Tony, On 31.08.22 00:15, Tony Dinh wrote: Hi Stefan, On Tue, Aug 30, 2022 at 4:53 AM Stefan Roese wrote: This patchset enhac

[PATCH v2] spl: introduce SPL_XIP to config

2022-08-31 Thread Nikita Shubin
From: Nikita Shubin U-Boot and SPL don't necessary share the same location, so we might end with U-Boot SPL in read-only memory (XIP) and U-Boot in read-write memory. In case of non XIP boot mode, we rely on such variables as "hart_lottery" and "available_harts_lock" which we use as atomics. Th

Re: [PATCH v3] dm: core: Do not stop uclass iteration on error

2022-08-31 Thread Michal Suchánek
Hello, On Tue, Aug 30, 2022 at 09:15:12PM -0600, Simon Glass wrote: > Hi Michal, > > On Tue, 30 Aug 2022 at 10:48, Michal Suchánek wrote: > > > > On Tue, Aug 30, 2022 at 09:56:52AM -0600, Simon Glass wrote: > > > Hi Michal, > > > > > > On Tue, 30 Aug 2022 at 04:23, Michal Suchánek wrote: > > >

Re: [PATCH] arm: dts: rockchip: rk3399: usb: ehci: Fix EHCI probe in rk3399 to access peripherals by USB 2.

2022-08-31 Thread Xavier Drudis Ferran
El Sat, Aug 27, 2022 at 11:20:17AM +0800, Kever Yang deia: > The idea for dtsi now is to sync the kernel and U-Boot dts, and Linux > distribution will > use the dts from U-Boot. If we change the dts property in -u-boot.dts, it > will also pass > to kernel, which make kernel function not available.

Re: [PATCH] arm64: zynqmp: Add mtd partition for secure OS storage area

2022-08-31 Thread Michal Simek
út 23. 8. 2022 v 10:18 odesílatel Michal Simek napsal: > > From: Amit Kumar Mahapatra > > Update MTD partitions of Kria device trees to allocate 128KB of QSPI > memory for secure OS. Increased "SHA256" partition size & changed > starting address of "User" partition to accommodate the new partitio

Re: [PATCH] arm: dts: Add xlnx prefix to GEM compatible string

2022-08-31 Thread Michal Simek
út 23. 8. 2022 v 14:59 odesílatel Michal Simek napsal: > > From: Harini Katakam > > cdns,zynq/zynqmp were recentle deprecated in Linux in favour of xlnx > prefix. Add this new compatible string and retain the existing string for > compatibility with uboot drivers. > > Signed-off-by: Harini Kataka

Re: [PATCH] arm64: zynqmp: Add missing tca6416 to zynqmp SC

2022-08-31 Thread Michal Simek
út 23. 8. 2022 v 15:00 odesílatel Michal Simek napsal: > > Add missing tca6416 i2c gpio controller to SC dts file. > > Signed-off-by: Michal Simek > --- > > arch/arm/dts/zynqmp-e-a2197-00-revA.dts | 12 > 1 file changed, 12 insertions(+) > > diff --git a/arch/arm/dts/zynqmp-e-a2197-

Re: [PATCH] arm64: zynqmp: add ref_clk property for REFCLKPER calculation

2022-08-31 Thread Michal Simek
út 23. 8. 2022 v 15:03 odesílatel Michal Simek napsal: > > From: Piyush Mehta > > Added ref_clk 'ref' property for GUCTL_REFCLKPER and GFLADJ_REFCLK_FLADJ > calculation. This property configure correct value for SOF/ITP counter > and period of ref_clk. > This patch adds 'ref' property for both dw

Re: [PATCH] xilinx: Add env redund offset

2022-08-31 Thread Michal Simek
On 8/24/22 13:23, Michal Simek wrote: From: T Karthik Reddy ENV_OFFSET_REDUND config is by default set to 0 for flashes. Saving the env variables is overwriting data at 0 offset, which is wrong. So add default redund env offset for Zynq, ZynqMP, Versal and microblaze platforms. Configured EN

Re: [PATCH] xilinx: Enable CMD_GREPENV/SETEXPR by default

2022-08-31 Thread Michal Simek
On 8/24/22 13:28, Michal Simek wrote: Enable both of these commands in Xilinx SoCs to be able to use them in boot scripts. Signed-off-by: Michal Simek --- configs/microblaze-generic_defconfig | 2 +- configs/xilinx_versal_virt_defconfig | 1 + configs/xilinx_zynq_virt_defconfig | 2 +-

Re: [PATCH] firmware: zynqmp: Skip loading config object for Versal

2022-08-31 Thread Michal Simek
On 8/24/22 14:18, Ashok Reddy Soma wrote: SET_CONFIGURATION is not yet implemented for Versal platforms. Skip loading config object for Versal until support is added and load it only for ZYNQMP platforms. Signed-off-by: Ashok Reddy Soma --- drivers/power/domain/zynqmp-power-domain.c | 5 +

Re: [PATCH] arm64: xilinx: Move board_get_usable_ram_top() to common location

2022-08-31 Thread Michal Simek
On 8/25/22 14:23, Michal Simek wrote: The commit ce39ee28ec31 ("zynqmp: Do not place u-boot to reserved memory location") adds functionality for ZynqMP to read reserved memory node and do not place U-Boot to reserved location. This functionality is generic across all Xilinx SOCs that's why mov

Re: [PATCH] net: gem: Check rate before setting it up

2022-08-31 Thread Michal Simek
On 8/26/22 10:30, Michal Simek wrote: On QEMU setting rate for fixed clock is failing. That's why check a rate first if the rate is the same there is no need to ask for the change. Signed-off-by: Michal Simek --- drivers/net/zynq_gem.c | 11 +++ 1 file changed, 7 insertions(+), 4

Re: [PATCH v2 1/4] microblaze: drop CONFIG_SYS_INIT_RAM_ADDR and CONFIG_SYS_INIT_RAM_SIZE

2022-08-31 Thread Michal Simek
On 8/29/22 19:02, Ovidiu Panait wrote: These macros are not used anymore in microblaze code since commit f113d7d303467 ("Convert CONFIG_SPL_STACK to Kconfig"), so remove them. Fixes: f113d7d303467 ("Convert CONFIG_SPL_STACK to Kconfig") Signed-off-by: Ovidiu Panait --- Changes in v2: Improv

Re: [PATCH v2 2/6] console: Implement flush() function

2022-08-31 Thread Pali Rohár
On Thursday 25 August 2022 09:08:18 Simon Glass wrote: > Hi Pali, > > On Thu, 25 Aug 2022 at 08:20, Pali Rohár wrote: > > > > On Friday 12 August 2022 20:21:00 Simon Glass wrote: > > > Hi Pali, > > > > > > On Fri, 12 Aug 2022 at 09:17, Pali Rohár wrote: > > > > > > > > On Friday 12 August 2022 0

Re: [PATCH v5 1/8] binman: add support for skipping file concatenation for mkimage

2022-08-31 Thread Quentin Schulz
Hi Simon, On 8/31/22 05:15, Simon Glass wrote: Hi Quentin, On Tue, 30 Aug 2022 at 11:54, Quentin Schulz wrote: Hi Simon, On 8/30/22 17:56, Simon Glass wrote: Hi Quentin, On Tue, 30 Aug 2022 at 03:57, Quentin Schulz wrote: Hi Simon, On 8/27/22 02:21, Simon Glass wrote: Hi Quentin, On

[PATCH] ARM: zynq: Align bss and end of u-boot image to 64bits

2022-08-31 Thread Michal Simek
The main reason is that DT memory reserved code is expecting DT to be 64bit aligned. For more information take a look at commit 5bd5ee02b23b ("xilinx: zynqmp: Check that DT is 64bit aligned"). Signed-off-by: Michal Simek --- arch/arm/mach-zynq/u-boot.lds | 4 ++-- 1 file changed, 2 insertions(+

[PATCH 1/1] lib: rsa: fix padding_pss_verify

2022-08-31 Thread Heinrich Schuchardt
Check the that the hash length is shorter than the message length. This avoids: ./tools/../lib/rsa/rsa-verify.c:275:11: warning: ‘*db’ may be used uninitialized [-Wmaybe-uninitialized] 275 | db[0] &= 0xff >> leftmost_bits; Signed-off-by: Heinrich Schuchardt --- lib/rsa/rsa

[PATCH] arch: arm: mach-socfpga: Add SMMU initialization and setup

2022-08-31 Thread Jit Loon Lim
From: Thor Thayer Add the SMMU initialization - Allow non-secure accesses with SMMU peripherals - Setup stream ID for SMMU peripheral matching Signed-off-by: Thor Thayer Signed-off-by: Siew Chin Lim Signed-off-by: Jit Loon Lim --- arch/arm/mach-socfpga/Makefile| 2 + arch/ar

Re: [PATCH 1/2] patman: do not hardcode coverage tool

2022-08-31 Thread Quentin Schulz
Hi Michal, On 8/30/22 12:11, Michal Suchánek wrote: On Tue, Aug 30, 2022 at 12:01:55PM +0200, Quentin Schulz wrote: Hi Michal, On 8/25/22 08:49, Michal Suchanek wrote: The coverage tool name varies across distributions. Add COVERAGE variable to specify the tool name. Also there is one place

Re: [PATCH] patman: do not hardcode coverage tool

2022-08-31 Thread Quentin Schulz
Hi Michal, On 8/24/22 09:43, Michal Suchanek wrote: The coverage tool name varies across distributions. Add COVERAGE variable to specify the tool name. Also there is one place where prefix is prepended to the tool path, remove the prefix. Signed-off-by: Michal Suchanek --- tools/patman/tes

Re: [PATCH 1/2] patman: do not hardcode coverage tool

2022-08-31 Thread Michal Suchánek
Hello, On Wed, Aug 31, 2022 at 12:08:32PM +0200, Quentin Schulz wrote: > Hi Michal, > > On 8/30/22 12:11, Michal Suchánek wrote: > > On Tue, Aug 30, 2022 at 12:01:55PM +0200, Quentin Schulz wrote: > > > Hi Michal, > > > > > > On 8/25/22 08:49, Michal Suchanek wrote: > > > > The coverage tool nam

[PATCH v2 02/32] arm: mediatek: add support for MediaTek MT7981 SoC

2022-08-31 Thread Weijie Gao
This patch adds basic support for MediaTek MT7981 SoC. This include the file that will initialize the SoC after boot and its device tree. Signed-off-by: Weijie Gao --- v2 changes: Sort include lines Add reference link for armv8_el2_to_aarch32 in lowlevel_init.S Remove print_cpuinfo and use

[PATCH v2 00/32] Add support for MediaTek MT7981/MT7986 SoCs - v2

2022-08-31 Thread Weijie Gao
This patch series add support for MediaTek MT7981/MT7986 SoCs with their reference boards and related drivers. This patch series add basic boot support on eMMC/SD/SPI-NOR/SPI-NAND for these boards. The clock, pinctrl drivers and the SoC initializaton code are also included. Product spec for MT798

[PATCH v2 03/32] board: mediatek: add MT7986 reference boards

2022-08-31 Thread Weijie Gao
Add general board files based on MT7986 SoCs. MT7986 uses one mmc controller for booting from both SD and eMMC. Both MT7986A and MT7986B use the same pins for spi controller. Configs for various boot types: 1. mt7986_rfb_defconfig - SPI-NOR and SPI-NAND for MT7986A/B 2. mt7986a_bpir3_emmc_defconf

[PATCH v2 04/32] board: mediatek: add MT7981 reference boards

2022-08-31 Thread Weijie Gao
This patch adds general board files based on MT7981 SoCs. MT7981 uses one mmc controller for booting from both SD and eMMC, and the pins of mmc controller are also shared with spi controller. So three configs are need for these boot types: 1. mt7981_rfb_defconfig - SPI-NOR and SPI-NAND 2. mt7981_

[PATCH v2 01/32] arm: mediatek: add support for MediaTek MT7986 SoC

2022-08-31 Thread Weijie Gao
This patch adds basic support for MediaTek MT7986 SoC. This include the file that will initialize the SoC after boot and its device tree. Signed-off-by: Weijie Gao --- v2 changes: Sort include lines Add reference link for armv8_el2_to_aarch32 in lowlevel_init.S Remove print_cpuinfo and use

[PATCH v2 05/32] mmc: mediatek: add support for MediaTek MT7891/MT7986 SoCs

2022-08-31 Thread Weijie Gao
Add eMMC and SDXC support for MediaTek MT7981/MT7986 SoCs Both chips support SDXC and eMMC 4.5. MT7986A supports eMMC 5.1. Reviewed-by: Jaehoon Chung Reviewed-by: Simon Glass Signed-off-by: Weijie Gao --- v2 changes: none --- drivers/mmc/mtk-sd.c | 68 ++

[PATCH v2 06/32] net: mediatek: use a struct to cover variations of all SoCs

2022-08-31 Thread Weijie Gao
Using a single soc id to control different initialization and TX/RX flow for all SoCs is not extensible if more hardware variations are added in the future. This patch introduces a struct to replace the original mtk_soc to allow the driver be able handle newer hardwares. Reviewed-by: Simon Glass

[PATCH v2 08/32] net: mediatek: add support for PDMA v2

2022-08-31 Thread Weijie Gao
This patch adds support for PDMA v2 hardware. The PDMA v2 has extended the DMA descriptor to 8-words, and some of its fields have changed comparing to the v1 hardware. Reviewed-by: Ramon Fried Reviewed-by: Simon Glass Signed-off-by: Weijie Gao --- v2 changes: Add description for new fields --

[PATCH v2 07/32] net: mediatek: stop using bitfileds for DMA descriptors

2022-08-31 Thread Weijie Gao
This patch is a preparation for adding a new version of PDMA of which the DMA descriptor fields has changed. Using bitfields will result in a complex modification. Convert bitfields to u32 units can solve this problem easily. Reviewed-by: Simon Glass Signed-off-by: Weijie Gao --- v2 changes: F

[PATCH v2 09/32] net: mediatek: add support for MediaTek MT7981/MT7986

2022-08-31 Thread Weijie Gao
This patch adds support for MediaTek MT7981 and MT7986. Both chips uses PDMA v2. Reviewed-by: Ramon Fried Signed-off-by: Weijie Gao --- v2 changes: none --- drivers/net/mtk_eth.c | 27 +++ drivers/net/mtk_eth.h | 5 + 2 files changed, 32 insertions(+) diff --git a/

[PATCH v2 10/32] serial: mtk: add support for using dynamic baud clock souce

2022-08-31 Thread Weijie Gao
The baud clock on some platform may change due to assigned-clock-parent set in DT. In current flow the baud clock is only retrieved during probe stage. If the parent of the source clock changes after probe stage, the setbrg will set wrong baudrate. To get the right clock rate, this patch records t

[PATCH v2 11/32] arm: dts: mt7622: force high-speed mode for uart

2022-08-31 Thread Weijie Gao
The input clock for uart is too slow (25MHz) which introduces frequent data error on both receiving and transmitting even if the baudrate is 115200. Using high-speed can significantly solve this issue. Reviewed-by: Simon Glass Signed-off-by: Weijie Gao --- v2 changes: none --- arch/arm/dts/mt7

[PATCH v2 12/32] pwm: mtk: add support for MediaTek MT7986 SoC

2022-08-31 Thread Weijie Gao
This patch adds PWM support for MediaTek MT7986 SoC. Reviewed-by: Simon Glass Signed-off-by: Weijie Gao --- v2 changes: none --- drivers/pwm/pwm-mtk.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/pwm/pwm-mtk.c b/drivers/pwm/pwm-mtk.c index aee1d825a0..3100b5caaf 100644 ---

[PATCH v2 15/32] watchdog: mediatek: add support for MediaTek MT7986 SoC

2022-08-31 Thread Weijie Gao
Add watchdog support for MediaTek MT7986 SoC Reviewed-by: Simon Glass Signed-off-by: Weijie Gao --- v2 changes: none --- drivers/watchdog/mtk_wdt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/watchdog/mtk_wdt.c b/drivers/watchdog/mtk_wdt.c index b098b2e3cf..368b36849c 100644 ---

[PATCH v2 13/32] pwm: mtk: add support for MediaTek MT7981 SoC

2022-08-31 Thread Weijie Gao
This patch adds PWM support for MediaTek MT7981 SoC. MT7981 uses a different register offset so we have to add a version field to indicate the IP core version. Reviewed-by: Simon Glass Signed-off-by: Weijie Gao --- v2 changes: none --- drivers/pwm/pwm-mtk.c | 34

[PATCH v2 14/32] timer: mtk: add support for MediaTek MT7981/MT7986 SoCs

2022-08-31 Thread Weijie Gao
This patch add general-purpose timer support for MediaTek MT7981/MT7986. These two SoCs uses a newer version of timer with its register definition slightly changed. Reviewed-by: Simon Glass Signed-off-by: Weijie Gao --- v2 changes: none --- drivers/timer/mtk_timer.c | 59 +++

[PATCH v2 16/32] spi: add support for MediaTek spi-mem controller

2022-08-31 Thread Weijie Gao
This patch adds support for spi-mem controller found on newer MediaTek SoCs This controller supports Single/Dual/Quad SPI mode. Reviewed-by: Simon Glass Signed-off-by: SkyLake.Huang --- v2 changes: Remove unused code Fix coding style Add description for struct fields --- drivers/spi/Kconf

[PATCH v2 18/32] arm: dts: mt7622: add i2c support

2022-08-31 Thread Weijie Gao
Add both hardware and software i2c support for mt7622. Reviewed-by: Simon Glass Signed-off-by: Weijie Gao --- v2 changes: none --- arch/arm/dts/mt7622-rfb.dts | 18 ++ arch/arm/dts/mt7622.dtsi| 24 2 files changed, 42 insertions(+) diff --git a/arch

[PATCH v2 19/32] dt-bindings: pinctrl: mediatek: add a header for common pinconf parameters

2022-08-31 Thread Weijie Gao
This patch adds a pinctrl header for common pinconf parameters such as pull-up/pull-down resistors and drive strengths. Reviewed-by: Simon Glass Signed-off-by: Weijie Gao --- v2 changes: none --- include/dt-bindings/pinctrl/mt65xx.h | 41 1 file changed, 41 insertio

[PATCH v2 17/32] i2c: add support for MediaTek I2C interface

2022-08-31 Thread Weijie Gao
This patch adds support for MediaTek I2C interface Reviewed-by: Heiko Schocher Reviewed-by: Simon Glass Signed-off-by: Weijie Gao --- v2 changes: Reorganize code to reduce duplicated code Rename mtk_i2c_ofdata_to_platdata to mtk_i2c_of_to_plat --- drivers/i2c/Kconfig | 9 + drivers/i2c

[PATCH v2 21/32] pinctrl: mediatek: add pinctrl driver for MT7986 SoC

2022-08-31 Thread Weijie Gao
This patch adds pinctrl and gpio support for MT7986 SoC Reviewed-by: Simon Glass Signed-off-by: Weijie Gao --- v2 changes: none --- drivers/pinctrl/mediatek/Kconfig | 4 + drivers/pinctrl/mediatek/Makefile | 1 + drivers/pinctrl/mediatek/pinctrl-mt7986.c | 775 +

[PATCH v2 22/32] clk: mediatek: add CLK_BYPASS_XTAL flag to allow bypassing searching clock parent of xtal clock

2022-08-31 Thread Weijie Gao
The mtk clock framework in u-boot uses array index for searching clock parent (kernel uses strings for search), so we need to specify a special clock with ID=0 for CLK_XTAL in u-boot. In the mt7622/mt7629 clock tree, the clocks with ID=0 never call mtk_topckgen_get_mux_rate, adn return xtal clock

[PATCH v2 20/32] pinctrl: mediatek: add pinctrl driver for MT7981 SoC

2022-08-31 Thread Weijie Gao
This patch adds pinctrl and gpio support for MT7981 SoC Reviewed-by: Simon Glass Signed-off-by: Weijie Gao --- v2 changes: none --- drivers/pinctrl/mediatek/Kconfig |4 + drivers/pinctrl/mediatek/Makefile |1 + drivers/pinctrl/mediatek/pinctrl-mt7981.c | 1049 ++

[PATCH v2 24/32] clk: mediatek: add infrasys clock mux support

2022-08-31 Thread Weijie Gao
This patch adds infrasys clock mux support for mediatek clock drivers. Reviewed-by: Simon Glass Signed-off-by: Weijie Gao --- v2 changes: Fix the if condition of CLK_BYPASS_XTAL --- drivers/clk/mediatek/clk-mtk.c | 71 ++ drivers/clk/mediatek/clk-mtk.h | 4 +-

[PATCH v2 23/32] clk: mediatek: add support to configure clock driver parent

2022-08-31 Thread Weijie Gao
This patch adds support for a clock node to configure its parent clock where possible. Reviewed-by: Simon Glass Signed-off-by: Weijie Gao --- v2 changes: none --- drivers/clk/mediatek/clk-mtk.c | 79 -- drivers/clk/mediatek/clk-mtk.h | 2 + 2 files changed, 48 i

[PATCH v2 25/32] clk: mediatek: add CLK_XTAL support for clock driver

2022-08-31 Thread Weijie Gao
This adds the CLK_XTAL macro/flag to allow modeling clocks which are directly connected to the xtal clock. Signed-off-by: Weijie Gao --- v2 changes: Fix incorrect fallback in mtk_infrasys_get_factor_rate Fix commit description --- drivers/clk/mediatek/clk-mtk.c | 4 drivers/clk/mediatek

[PATCH v2 28/32] cpu: add basic cpu driver for MediaTek ARM chips

2022-08-31 Thread Weijie Gao
Add basic CPU driver used to retrieve CPU model information. Signed-off-by: Weijie Gao --- v2 changes: new --- drivers/cpu/Makefile | 1 + drivers/cpu/mtk_cpu.c | 106 ++ 2 files changed, 107 insertions(+) create mode 100644 drivers/cpu/mtk_cpu.c di

[PATCH v2 26/32] clk: mediatek: add clock driver support for MediaTek MT7986 SoC

2022-08-31 Thread Weijie Gao
This patch adds clock driver support for MediaTek MT7986 SoC Reviewed-by: Sean Anderson Reviewed-by: Simon Glass Signed-off-by: Weijie Gao --- v2 changes: Fix coding style --- drivers/clk/mediatek/Makefile | 1 + drivers/clk/mediatek/clk-mt7986.c | 672 +++

[PATCH v2 29/32] tools: mtk_image: split gfh header verification into a new function

2022-08-31 Thread Weijie Gao
The verification code of gfh header for NAND and non-NAND are identical. It's better to define a individual function to reduce redundancy. Reviewed-by: Simon Glass Signed-off-by: Weijie Gao --- v2 changes: none --- tools/mtk_image.c | 51 +++ 1 file c

[PATCH v2 27/32] clk: mediatek: add clock driver support for MediaTek MT7981 SoC

2022-08-31 Thread Weijie Gao
This patch adds clock driver support for MediaTek MT7981 SoC Reviewed-by: Sean Anderson Reviewed-by: Simon Glass Signed-off-by: Weijie Gao --- v2 changes: Fix coding style --- drivers/clk/mediatek/Makefile | 1 + drivers/clk/mediatek/clk-mt7981.c | 683 +++

[PATCH v2 32/32] MAINTAINERS: update maintainer for MediaTek ARM platform

2022-08-31 Thread Weijie Gao
Add new files for MediaTek ARM platform Reviewed-by: Simon Glass Signed-off-by: Weijie Gao --- v2 changes: Add cpu driver file --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 36a2b69fcb..d47674c476 100644 --- a/MAINTAINERS +++ b/MAINTA

[PATCH v2 30/32] tools: mtk_image: split the code of generating NAND header into a new file

2022-08-31 Thread Weijie Gao
The predefined NAND headers take too much spaces in the mtk_image.c. Moving them into a new file can significantly improve the readability of both mtk_image.c and the new mtk_nand_headers.c. This is a preparation for adding more NAND headers. Reviewed-by: Simon Glass Signed-off-by: Weijie Gao -

[PATCH v2 31/32] tools: mtk_image: add support for nand headers used by newer chips

2022-08-31 Thread Weijie Gao
This patch adds more nand headers in two new types: 1. HSM header, used for spi-nand thru SNFI interface 2. SPIM header, used for spi-nand thru spi-mem interface The original nand header is renamed to AP header. Signed-off-by: Weijie Gao --- v2 changes: none --- tools/mtk_image.c| 23 +

[PATCH 00/21] dm: core: Support multiple device trees in ofnode

2022-08-31 Thread Simon Glass
At present the ofnode interface is somewhat limited, in that it cannot access the device tree provided by the OS, only the one used by U-Boot itself (assuming these are separate). This prevents using ofnode functions to handle device tree fixups, i.e. ft_board_setup() and the like. The ofnode inte

[PATCH 02/21] treewide: Drop bootm_headers_t typedef

2022-08-31 Thread Simon Glass
This is not needed and we should avoid typedefs. Use the struct instead. Signed-off-by: Simon Glass --- arch/arc/lib/bootm.c | 8 arch/arm/lib/bootm.c | 13 +++-- arch/arm/mach-k3/common.c | 2 +- arch/arm/mach-socfpga/board.c | 2 +- arch/m68k/lib/boot

[PATCH 04/21] treewide: Drop image_header_t typedef

2022-08-31 Thread Simon Glass
This is not needed and we should avoid typedefs. Use the struct instead and rename it to indicate that it really is a legacy struct. Signed-off-by: Simon Glass --- arch/arm/mach-aspeed/ast2600/spl.c | 4 +- arch/arm/mach-imx/hab.c| 2 +- arch/arm/mach-imx/spl_imx_romapi.c

[PATCH] net: enetc: Fix use after free issue in fsl_enetc.c

2022-08-31 Thread Siarhei Yasinski
If ethernet connected to SFP, like this: &enetc_port0 { phy-connection-type = "sgmii"; sfp = <&sfp0>; managed = "in-band-status"; status = "okay"; }; Then enetc_config_phy returns -ENODEV and the memory containing the mdio interface is freed. It's

[PATCH 2/2] arm: socfpga: soc64: Perform warm reset after L2 reset in SPL on S10

2022-08-31 Thread Jit Loon Lim
From: Chee Hong Ang SPL checks for magic word in system manager's scratch register to find out whether the system has performed L2 reset. If L2 reset was performed, SPL put all slave CPUs (CPU1-3) into WFI mode. Master CPU (CPU0) requests warm reset via RMR_EL3 system register and put itself into

[PATCH 1/2] arm: socfpga: soc64: Enable L2 reset on S10

2022-08-31 Thread Jit Loon Lim
From: Chee Hong Ang Put all slave CPUs (CPU1-3) into WFI mode. Master CPU (CPU0) writes the magic word into system manager's scratch register to indicate the system has performed L2 reset and request reset manager to perform hardware handshake and then trigger L2 reset. CPU0 put itself into WFI m

[PATCH 0/2] *** SUBJECT HERE ***

2022-08-31 Thread Jit Loon Lim
*** BLURB HERE *** Chee Hong Ang (2): arm: socfpga: soc64: Enable L2 reset on S10 arm: socfpga: soc64: Perform warm reset after L2 reset in SPL on S10 .../include/mach/reset_manager_soc64.h| 1 + arch/arm/mach-socfpga/lowlevel_init_soc64.S | 24 drivers/sysreset/sysreset_

Re: [PATCH 1/2] Makefile: Fix dependency for u-boot-with-dtb.bin

2022-08-31 Thread Pali Rohár
On Monday 01 August 2022 17:42:19 Pali Rohár wrote: > Makefile uses binman to produce u-boot-with-dtb.bin target. As its input it > takes DTB file and u-boot binary without DTB, which is stored in file > u-boot-nodtb.bin. So fix target dependency. > > Signed-off-by: Pali Rohár > --- > Makefile |

Re: [PATCH v2 1/4] board: freescale: p1_p2_rdb_pc: Add workaround for board reset reboot loop

2022-08-31 Thread Pali Rohár
PING On Sunday 21 August 2022 12:30:04 Pali Rohár wrote: > PING I have not received any response for these patches. > Why you are ignoring me? > > You have already merged commit "board: freescale: p1_p2_rdb_pc: > Implement board_reset()" from v1 of this patch series > https://source.denx.

Re: [PATCH] board: bsh: Update imx8mn ddr3l timing according to BSH hw team

2022-08-31 Thread Michael Nazzareno Trimarchi
Hi Fabio On Mon, Aug 22, 2022 at 12:14 PM Michael Trimarchi wrote: > > Signed-off-by: Michael Trimarchi > --- Time to review or ask for changes? Michael > board/bsh/imx8mn_smm_s2/ddr3l_timing_256m.c | 23 - > board/bsh/imx8mn_smm_s2/ddr3l_timing_512m.c | 23 --

Re: [PATCH] board: bsh: Update imx8mn ddr3l timing according to BSH hw team

2022-08-31 Thread Fabio Estevam
Hi Michael, On 31/08/2022 09:06, Michael Nazzareno Trimarchi wrote: Hi Fabio On Mon, Aug 22, 2022 at 12:14 PM Michael Trimarchi wrote: Signed-off-by: Michael Trimarchi --- Time to review or ask for changes? The patch looks good and I trust that the changes improve stability of the board

Re: [PATCH 1/2] Makefile: Fix dependency for u-boot-with-dtb.bin

2022-08-31 Thread Tom Rini
On Wed, Aug 31, 2022 at 02:03:06PM +0200, Pali Rohár wrote: > On Monday 01 August 2022 17:42:19 Pali Rohár wrote: > > Makefile uses binman to produce u-boot-with-dtb.bin target. As its input it > > takes DTB file and u-boot binary without DTB, which is stored in file > > u-boot-nodtb.bin. So fix ta

Re: [PATCH] board: bsh: Update imx8mn ddr3l timing according to BSH hw team

2022-08-31 Thread Michael Nazzareno Trimarchi
Hi Fabio On Wed, Aug 31, 2022 at 2:11 PM Fabio Estevam wrote: > > Hi Michael, > > On 31/08/2022 09:06, Michael Nazzareno Trimarchi wrote: > > Hi Fabio > > > > On Mon, Aug 22, 2022 at 12:14 PM Michael Trimarchi > > wrote: > >> > >> Signed-off-by: Michael Trimarchi > >> --- > > > > Time to review

Re: [PATCH v2 5/9] mfd: syscon: atmel-smc: Add driver for atmel SMC

2022-08-31 Thread Michael Nazzareno Trimarchi
Hi On Mon, Aug 29, 2022 at 8:20 AM Balamanikandan Gunasundar wrote: > > Add driver for atmel Static Memory Controller. Add helper functions to > configure SMC. This file is inherited from the work done by Boris > Brezillon for Linux > This does not look like a driver.Those are helper functions.

Re: [PATCH v2 8/9] ARM: dts: at91: sam9x60ek: Enable NAND support

2022-08-31 Thread Michael Nazzareno Trimarchi
Hi On Mon, Aug 29, 2022 at 8:20 AM Balamanikandan Gunasundar wrote: > > Enable the EBI and NAND flash controller. Define the pinctrl and > partition table > > Signed-off-by: Balamanikandan Gunasundar > > --- > arch/arm/dts/sam9x60ek.dts | 103 + > 1 file cha

Re: [PATCH v2 8/9] ARM: dts: at91: sam9x60ek: Enable NAND support

2022-08-31 Thread Eugen.Hristev
On 8/31/22 4:14 PM, Michael Nazzareno Trimarchi wrote: > Hi > > On Mon, Aug 29, 2022 at 8:20 AM Balamanikandan Gunasundar > wrote: >> >> Enable the EBI and NAND flash controller. Define the pinctrl and >> partition table >> >> Signed-off-by: Balamanikandan Gunasundar >> >> --- >> arch/arm/dts

Re: [PATCH v2 28/32] cpu: add basic cpu driver for MediaTek ARM chips

2022-08-31 Thread Simon Glass
Hi Weijie, On Wed, 31 Aug 2022 at 05:08, Weijie Gao wrote: > > Add basic CPU driver used to retrieve CPU model information. > > Signed-off-by: Weijie Gao > --- > v2 changes: new > --- > drivers/cpu/Makefile | 1 + > drivers/cpu/mtk_cpu.c | 106 ++ >

Re: [PATCH v2 04/32] board: mediatek: add MT7981 reference boards

2022-08-31 Thread Simon Glass
On Wed, 31 Aug 2022 at 05:00, Weijie Gao wrote: > > This patch adds general board files based on MT7981 SoCs. > > MT7981 uses one mmc controller for booting from both SD and eMMC, and the > pins of mmc controller are also shared with spi controller. > So three configs are need for these boot types

Re: [PATCH v2 01/32] arm: mediatek: add support for MediaTek MT7986 SoC

2022-08-31 Thread Simon Glass
On Wed, 31 Aug 2022 at 05:01, Weijie Gao wrote: > > This patch adds basic support for MediaTek MT7986 SoC. > This include the file that will initialize the SoC after boot and its > device tree. > > Signed-off-by: Weijie Gao > --- > v2 changes: > Sort include lines > Add reference link for arm

Re: [PATCH v2 25/32] clk: mediatek: add CLK_XTAL support for clock driver

2022-08-31 Thread Simon Glass
On Wed, 31 Aug 2022 at 05:08, Weijie Gao wrote: > > This adds the CLK_XTAL macro/flag to allow modeling clocks which are > directly connected to the xtal clock. > > Signed-off-by: Weijie Gao > --- > v2 changes: > Fix incorrect fallback in mtk_infrasys_get_factor_rate > Fix commit description

Re: [PATCH 1/1] lib: rsa: fix padding_pss_verify

2022-08-31 Thread Simon Glass
Hi Heinrich, On Wed, 31 Aug 2022 at 03:32, Heinrich Schuchardt wrote: > > Check the that the hash length is shorter than the message length. This > avoids: > > ./tools/../lib/rsa/rsa-verify.c:275:11: warning: > ‘*db’ may be used uninitialized [-Wmaybe-uninitialized] > 275 |

Re: [PATCH v2 0/9] Add DM support for atmel NAND driver

2022-08-31 Thread Simon Glass
Hi Eugen, On Wed, 31 Aug 2022 at 00:34, wrote: > > On 8/30/22 5:30 AM, Simon Glass wrote: > > Hi, > > > > On Mon, 29 Aug 2022 at 00:41, Michael Nazzareno Trimarchi > > wrote: > >> > >> Hi > >> > >> On Mon, Aug 29, 2022 at 8:19 AM Balamanikandan Gunasundar > >> wrote: > >>> > >>> Change include:

Re: [PATCH v2 2/6] console: Implement flush() function

2022-08-31 Thread Simon Glass
Hi Pali, On Wed, 31 Aug 2022 at 03:13, Pali Rohár wrote: > > On Thursday 25 August 2022 09:08:18 Simon Glass wrote: > > Hi Pali, > > > > On Thu, 25 Aug 2022 at 08:20, Pali Rohár wrote: > > > > > > On Friday 12 August 2022 20:21:00 Simon Glass wrote: > > > > Hi Pali, > > > > > > > > On Fri, 12 Au

Re: [PATCH v5 1/8] binman: add support for skipping file concatenation for mkimage

2022-08-31 Thread Simon Glass
Hi Quentin, On Wed, 31 Aug 2022 at 03:25, Quentin Schulz wrote: > > Hi Simon, > > On 8/31/22 05:15, Simon Glass wrote: > > Hi Quentin, > > > > On Tue, 30 Aug 2022 at 11:54, Quentin Schulz > > wrote: > >> > >> Hi Simon, > >> > >> On 8/30/22 17:56, Simon Glass wrote: > >>> Hi Quentin, > >>> > >>>

Re: [PATCH] net: enetc: Fix use after free issue in fsl_enetc.c

2022-08-31 Thread Simon Glass
On Wed, 31 Aug 2022 at 05:20, Siarhei Yasinski wrote: > > If ethernet connected to SFP, like this: > > &enetc_port0 { > phy-connection-type = "sgmii"; > sfp = <&sfp0>; > managed = "in-band-status"; > status = "okay"; > }; > > Then enetc_config_phy re

Re: [PATCH v2 02/32] arm: mediatek: add support for MediaTek MT7981 SoC

2022-08-31 Thread Simon Glass
On Wed, 31 Aug 2022 at 05:00, Weijie Gao wrote: > > This patch adds basic support for MediaTek MT7981 SoC. > This include the file that will initialize the SoC after boot and its > device tree. > > Signed-off-by: Weijie Gao > --- > v2 changes: > Sort include lines > Add reference link for arm

Re: [PATCH v2 2/6] console: Implement flush() function

2022-08-31 Thread Tom Rini
On Wed, Aug 31, 2022 at 07:46:58AM -0600, Simon Glass wrote: > Hi Pali, > > On Wed, 31 Aug 2022 at 03:13, Pali Rohár wrote: > > > > On Thursday 25 August 2022 09:08:18 Simon Glass wrote: > > > Hi Pali, > > > > > > On Thu, 25 Aug 2022 at 08:20, Pali Rohár wrote: > > > > > > > > On Friday 12 Augus

Re: binman warning/failure when blobs are missing

2022-08-31 Thread Tom Rini
On Mon, Aug 15, 2022 at 11:37:57AM -0600, Simon Glass wrote: > Hi Tom, > > On Sat, 13 Aug 2022 at 06:36, Tom Rini wrote: > > > > On Fri, Aug 12, 2022 at 08:21:05PM -0600, Simon Glass wrote: > > > Hi Tom, > > > > > > On Fri, 12 Aug 2022 at 10:11, Tom Rini wrote: > > > > > > > > On Fri, Aug 12, 20

Re: [PATCH v2 8/9] ARM: dts: at91: sam9x60ek: Enable NAND support

2022-08-31 Thread Michael Nazzareno Trimarchi
Hi On Wed, Aug 31, 2022 at 3:31 PM wrote: > > On 8/31/22 4:14 PM, Michael Nazzareno Trimarchi wrote: > > Hi > > > > On Mon, Aug 29, 2022 at 8:20 AM Balamanikandan Gunasundar > > wrote: > >> > >> Enable the EBI and NAND flash controller. Define the pinctrl and > >> partition table > >> > >> Signe

[PATCH] binman: bintool: bzip2: fix version function on non-Debian-based systems

2022-08-31 Thread Quentin Schulz
From: Quentin Schulz Upstream bzip2 1.0.x actually is stuck when running bzip2 -V and redirecting the output. This is fixed in Debian for about a decade already in https://git.launchpad.net/ubuntu/+source/bzip2/tree/debian/patches/20-legacy.patch?h=ubuntu/jammy and in bzip2 1.1.x (no release yet,

Re: imx_bootaux lto issue

2022-08-31 Thread Tom Rini
On Thu, Aug 18, 2022 at 04:19:52PM +, Marcel Ziswiler wrote: > Hi there > > If one enables both CONFIG_IMX_BOOTAUX and CONFIG_LTO (e.g. just adding the > later to the verdin- > imx8mp_defconfig) one gets the following build failure: > > arch/arm/mach-imx/imx_bootaux.c:24:31: warning: type of

Re: [PATCH] binman: bintool: bzip2: fix version function on non-Debian-based systems

2022-08-31 Thread Stefan Herbrechtsmeier
Hi Quentin, Am 31.08.2022 um 16:32 schrieb Quentin Schulz: From: Quentin Schulz Upstream bzip2 1.0.x actually is stuck when running bzip2 -V and redirecting the output. This is fixed in Debian for about a decade already in https://git.launchpad.net/ubuntu/+source/bzip2/tree/debian/patches/20-l

Re: [PATCH 0/6] Enable CONFIG_TIMER for all Kirwood / MVEBU boards

2022-08-31 Thread Tony Dinh
Hi Stefan, On Wed, Aug 31, 2022 at 12:22 AM Stefan Roese wrote: > > Hi Tony, > > On 31.08.22 08:30, Tony Dinh wrote: > > Hi Stefan, > > > > On Tue, Aug 30, 2022 at 10:08 PM Stefan Roese wrote: > >> > >> Hi Tony, > >> > >> On 31.08.22 07:02, Stefan Roese wrote: > >>> Hi Tony, > >>> > >>> On 31.08

[PATCH 0/3] *** SUBJECT HERE ***

2022-08-31 Thread Jit Loon Lim
*** BLURB HERE *** Chee Hong Ang (3): arch: arm: mach-socfpga: Add a backup copy of .data section for SoC64 SPL configs: socfpga: Specify new linker script specific to SoC64 SPL arch: arm: mach-socfpga: Reload SoC64 SPL state after warm reset arch/arm/mach-socfpga/lowlevel_init_soc64.S

[PATCH 3/3] arch: arm: mach-socfpga: Reload SoC64 SPL state after warm reset

2022-08-31 Thread Jit Loon Lim
From: Chee Hong Ang When the system boot from cold reset, SPL will copy its .data section into this backup section to keep an original copy of .data section. When the system has been warm reset, SPL will reload the original .data section from this backup section to restore the original state of S

[PATCH 1/3] arch: arm: mach-socfpga: Add a backup copy of .data section for SoC64 SPL

2022-08-31 Thread Jit Loon Lim
From: Chee Hong Ang Add a new .data section for preserving the original state of the .data section of SoC64 SPL. This new .data section is required to make SPL reentrant after warm reset. Signed-off-by: Chee Hong Ang Signed-off-by: Jit Loon Lim --- arch/arm/mach-socfpga/u-boot-spl-soc64.lds |

[PATCH 2/3] configs: socfpga: Specify new linker script specific to SoC64 SPL

2022-08-31 Thread Jit Loon Lim
From: Chee Hong Ang Specify new linker script for SoC64 SPL to ensure SPL is reentrant after warm reset. Signed-off-by: Chee Hong Ang Signed-off-by: Jit Loon Lim --- configs/socfpga_agilex_defconfig| 1 + configs/socfpga_stratix10_defconfig | 1 + 2 files changed, 2 insertions(+) diff --

[PATCH 1/1] efi_loader: ensure all block devices are probed

2022-08-31 Thread Heinrich Schuchardt
Only probed block devices are available in the UEFI sub-system. Multiple block devices may be involved in the boot process. So we have to make sure that all block devices are probed. Another reason is that we store UEFI variables on the ESP which may be on any block device. On the sandbox before t

[PATCH] binman: btool: gzip: fix packer name so that binary can be found

2022-08-31 Thread Quentin Schulz
From: Quentin Schulz The binary is looked on the system by the suffix of the packer class. This means binman was looking for btool_gzip on the system and not gzip. Therefore, let's pass "gzip" as the name so that it can be found and used. Fixes: 0f369d79925a ("binman: Add gzip bintool") Signed-

Re: [PATCH v5 1/8] binman: add support for skipping file concatenation for mkimage

2022-08-31 Thread Quentin Schulz
Hi Simon, On 8/31/22 15:46, Simon Glass wrote: Hi Quentin, On Wed, 31 Aug 2022 at 03:25, Quentin Schulz wrote: Hi Simon, On 8/31/22 05:15, Simon Glass wrote: Hi Quentin, On Tue, 30 Aug 2022 at 11:54, Quentin Schulz wrote: Hi Simon, On 8/30/22 17:56, Simon Glass wrote: Hi Quentin, On

[PATCH v3] powerpc: Add support for CZ.NIC Turris 1.x routers

2022-08-31 Thread Pali Rohár
CZ.NIC Turris 1.0 (RTRS01) and 1.1 (RTRS02) are open source routers, they have dual-core PowerPC Freescale P2020 CPU and are based on reference Freescale P2020RDB-PC-A board design. Hardware design is fully open source, all firmware and hardware design files are available at Turris project website

[PATCH v2 1/7] binman: bintool: move version check implementation into bintool class

2022-08-31 Thread Quentin Schulz
From: Quentin Schulz Version checking has nothing specific to compression/decompression tools so let's move it to the Bintool class. Signed-off-by: Quentin Schulz --- added in v2 tools/binman/bintool.py | 46 ++--- 1 file changed, 20 insertions(+), 26 dele

[PATCH v2 2/7] binman: btool: lz4: use Bintool.version

2022-08-31 Thread Quentin Schulz
From: Quentin Schulz Bintool.version already contains everything required to get the version out of lz4 binary so let's not override it with its own implementation. Signed-off-by: Quentin Schulz --- added in v2 tools/binman/btool/lz4.py | 14 +- 1 file changed, 1 insertion(+), 13

[PATCH v2 3/7] binman: btool: mkimage: use Bintool.version

2022-08-31 Thread Quentin Schulz
From: Quentin Schulz Bintool.version already contains everything required to get the version out of mkimage binary so let's not override it with its own implementation. Signed-off-by: Quentin Schulz --- added in v2 tools/binman/btool/mkimage.py | 14 +- 1 file changed, 1 insertio

[PATCH v2 4/7] binman: bintool: parametrize parameter to pass to binary for returning version

2022-08-31 Thread Quentin Schulz
From: Quentin Schulz The code to check the version is very similar between binaries, the most likely only needed variables are the regex to find the version (already supported) and the parameter to pass to the binary so that it prints this version (e.g. --version, -V or similar). Let's make it a

  1   2   >