[PATCH 2/2] dts: mt7622: use accurate clock source fot mtk_timer

2021-01-11 Thread Weijie Gao
The input system clock for mt7622 timer is 10MHz and can be retrieved through the clk driver. Signed-off-by: Weijie Gao --- arch/arm/dts/mt7622.dtsi | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/arch/arm/dts/mt7622.dtsi b/arch/arm/dts/mt7622.dtsi index d888545809..5c

[PATCH 1/2] samsung: arndale: remove board_mmc_init function

2021-01-11 Thread Jaehoon Chung
Remove board_mmc_init function. It will be probed with driver-model. Signed-off-by: Jaehoon Chung --- arch/arm/mach-exynos/include/mach/dwmmc.h | 2 -- board/samsung/arndale/arndale.c | 13 - 2 files changed, 15 deletions(-) diff --git a/arch/arm/mach-exynos/include/mach/

[PATCH 2/2] mmc: exynos_dw_mmc: remove unused function

2021-01-11 Thread Jaehoon Chung
Remove unused function in exynos_dw_mmc.c. Signed-off-by: Jaehoon Chung --- drivers/mmc/exynos_dw_mmc.c | 56 - 1 file changed, 56 deletions(-) diff --git a/drivers/mmc/exynos_dw_mmc.c b/drivers/mmc/exynos_dw_mmc.c index 3aa9fb3c89..edb5a52c96 100644 --- a/dr

[PATCH 1/2] timer: mtk_timer: initialize the timer before use

2021-01-11 Thread Weijie Gao
The timer being used by this driver may have already been used by first stage bootloader (e.g. ATF/preloader), and it's settings may differ from what this driver is going to use. This may cause issues, such as inaccurate timer frequency due to incorrect clock divider. This patch adds the initiali

Re: [linux-sunxi] [PATCH v2 07/21] sunxi: support loading with SPL > 32KB

2021-01-11 Thread Samuel Holland
On 1/11/21 2:11 PM, Jernej Skrabec wrote: > From: Andre Przywara > > H616 supports and needs bigger SPL than 32 KiB, mostly due to big DRAM > driver and need for PMIC configuration, which pulls several drivers which > are not needed otherwise. > > spl_mmc_get_uboot_raw_sector() will now compare

RE: [PATCH 7/7] configs: aspeed: Add defconfig for AST2600 EVB

2021-01-11 Thread Ryan Chen
> -Original Message- > From: ChiaWei Wang > Sent: Monday, December 14, 2020 1:54 PM > To: tr...@konsulko.com; u-boot@lists.denx.de; Ryan Chen > > Cc: BMC-SW > Subject: [PATCH 7/7] configs: aspeed: Add defconfig for AST2600 EVB > > Add the default configuration for the AST2600 EVB. > >

RE: [PATCH 6/7] aspeed: Add AST2600 platform support

2021-01-11 Thread Ryan Chen
> -Original Message- > From: ChiaWei Wang > Sent: Monday, December 14, 2020 1:54 PM > To: tr...@konsulko.com; u-boot@lists.denx.de; Ryan Chen > > Cc: BMC-SW > Subject: [PATCH 6/7] aspeed: Add AST2600 platform support > > Add low level platform initialization for the AST2600 SoC. > The 2

RE: [PATCH 5/7] ARM: dts: aspeed: Add AST2600 SoC support

2021-01-11 Thread Ryan Chen
> -Original Message- > From: ChiaWei Wang > Sent: Monday, December 14, 2020 1:54 PM > To: tr...@konsulko.com; u-boot@lists.denx.de; Ryan Chen > > Cc: BMC-SW > Subject: [PATCH 5/7] ARM: dts: aspeed: Add AST2600 SoC support > > AST2600 is the 7th generation of Aspeed SoC designated for In

RE: [PATCH 4/7] reset: aspeed: Add AST2600 reset support

2021-01-11 Thread Ryan Chen
> -Original Message- > From: ChiaWei Wang > Sent: Monday, December 14, 2020 1:54 PM > To: tr...@konsulko.com; u-boot@lists.denx.de; Ryan Chen > > Cc: BMC-SW > Subject: [PATCH 4/7] reset: aspeed: Add AST2600 reset support > > Add controller reset support through the System Control Unit (

[PATCH] Add fixdefconfig script to update lists of defconfig files from savedefconfig

2021-01-11 Thread Joel Peshkin
Cc: Simon Glass Cc: Heinrich Schuchardt --- scripts/fixdefconfig | 25 + 1 file changed, 25 insertions(+) create mode 100755 scripts/fixdefconfig diff --git a/scripts/fixdefconfig b/scripts/fixdefconfig new file mode 100755 index 000..7f36762 --- /dev/null +++ b/scr

RE: [PATCH 3/7] wdt: aspeed: Add AST2600 watchdog support

2021-01-11 Thread Ryan Chen
> -Original Message- > From: ChiaWei Wang > Sent: Monday, December 14, 2020 1:54 PM > To: tr...@konsulko.com; u-boot@lists.denx.de; Ryan Chen > > Cc: BMC-SW > Subject: [PATCH 3/7] wdt: aspeed: Add AST2600 watchdog support > > AST2600 has 8 watchdog timers including 8 sets of 32-bit decr

RE: [PATCH 2/7] ram: aspeed: Add AST2600 DRAM control support

2021-01-11 Thread Ryan Chen
> -Original Message- > From: ChiaWei Wang > Sent: Monday, December 14, 2020 1:54 PM > To: tr...@konsulko.com; u-boot@lists.denx.de; Ryan Chen > > Cc: BMC-SW ; Dylan Hung > > Subject: [PATCH 2/7] ram: aspeed: Add AST2600 DRAM control support > > From: Dylan Hung > > AST2600 supports DD

Re: [linux-sunxi] [PATCH v2 05/21] sunxi: prcm: Add memory map for H6 like SoCs

2021-01-11 Thread Samuel Holland
On 1/11/21 2:11 PM, Jernej Skrabec wrote: > There was no need to have prcm definitions for H6 and similar SoCs till > now. However, support R_I2C will be needed soon in SPL. > > Move old definitions to prcm_sun6i.h and add new ones in prcm_sun50i.h. > One of those files will be selected in common

Re: [linux-sunxi] [PATCH v2 02/21] sunxi: Introduce common symbol for H6 like SoCs

2021-01-11 Thread Samuel Holland
On 1/11/21 2:11 PM, Jernej Skrabec wrote: > It turns out that there are at least 2 other SoCs which have basically > the same memory map, similar clocks and other features as H6. It's very > likely that we'll see more such SoCs in the future. In order to ease > porting to new SoCs and lower ifdef c

Re: [PATCH v3 2/2] riscv: timer: Add support for an early timer

2021-01-11 Thread Rick Chen
Hi Pragnesh > > From: Pragnesh Patel [mailto:pragnesh.pa...@sifive.com] > > Sent: Sunday, January 10, 2021 8:43 PM > > To: u-boot@lists.denx.de > > Cc: atish.pa...@wdc.com; palmerdabb...@google.com; bmeng...@gmail.com; > > paul.walms...@sifive.com; anup.pa...@wdc.com; sagar.ka...@sifive.com; Rick

Re: [PATCH] mmc: tmio: sdhi: Configure internal DMA bus width

2021-01-11 Thread Marek Vasut
On 1/11/21 11:29 PM, Jaehoon Chung wrote: [...] @@ -324,6 +324,8 @@ static int tmio_sd_dma_xfer(struct udevice *dev, struct mmc_data *data) tmp = tmio_sd_readl(priv, TMIO_SD_DMA_MODE); + tmp |= priv->idma_bus_width; + if (data->flags & MMC_DATA_READ) { buf = d

Pull request: u-boot-sunxi/master for v2021.04

2021-01-11 Thread Andre Przywara
Hi Tom, please pull the master branch from u-boot-sunxi, containing the first bunch of patches for the 2021.04 merge window: - - Pinecube board support - 64-bit FEL support - mkimage support for eGON images (superseding mksunxiboot) - Bluetooth BD address generation - some

[PATCH v5] Add support for stack-protector

2021-01-11 Thread Joel Peshkin
Cc: Joel Peshkin , Simon Glass , Bin Meng , Jagan Teki , Kever Yang , Heinrich Schuchardt , AKASHI Takahiro , Usama Arif , Sam Protsenko , Masahiro Yamada , Philippe Reynes , Eugeniu Rosca , Jan Kiszka

"next" branch now merged to master

2021-01-11 Thread Tom Rini
As the subject says, I have now merged the next branch in to master. -- Tom signature.asc Description: PGP signature

[PATCH v4] Add support for stack-protector

2021-01-11 Thread Joel Peshkin
Cc: Simon Glass Cc: Bin Meng Cc: Jagan Teki Cc: Kever Yang Cc: Heinrich Schuchardt Cc: AKASHI Takahiro Cc: Usama Arif Cc: Sam Protsenko Cc: Masahiro Yamada Cc: Philippe Reynes Cc: Eugeniu Rosca Cc: Jan Kiszka Signed-off-by: Joel Peshkin Changes for v4: - Exclude EFI from stackprot

Re: [PATCH] mmc: tmio: sdhi: Configure internal DMA bus width

2021-01-11 Thread Jaehoon Chung
On 1/11/21 9:08 PM, Marek Vasut wrote: > The R-Car3 SDHI should set these two bits in DMA_MODE register according > to the specification, to indicate 64bit bus width. No other bus width > options are permitted and the default value is 0, which is incorrect. > Set the bits accordingly. > > Signed-o

Re: [PATCH v2 15/21] mmc: sunxi: Add H616 clock offset

2021-01-11 Thread Jaehoon Chung
On 1/12/21 5:11 AM, Jernej Skrabec wrote: > H616 mmc clock is on same address as H6. > > Signed-off-by: Jernej Skrabec Reviewed-by: Jaehoon Chung Best Regards, Jaehoon Chung > --- > drivers/mmc/sunxi_mmc.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/mm

Re: [PATCH v2 03/21] mmc: sunxi: Replace H6 ifdefs with H6 gen macro

2021-01-11 Thread Jaehoon Chung
On 1/12/21 5:11 AM, Jernej Skrabec wrote: > It turns out that several SoCs share same mmc configuration as H6. In > order to lower ifdef clutter replace H6 specific macro with common one. > > Reviewed-by: Andre Przywara > Signed-off-by: Jernej Skrabec Reviewed-by: Jaehoon Chung Best Regards,

Re: [PATCH v2 00/21] sunxi: Introduce H616 support

2021-01-11 Thread Jernej Škrabec
Dne ponedeljek, 11. januar 2021 ob 21:11:32 CET je Jernej Skrabec napisal(a): > This series introduces H616 support. Later patches add also OrangePi > Zero2 support but since H616 DT is not merged into Linux yet, I don't > expect them to land yet. > > Most patches are ready to land, except those w

[PATCH v2 21/21] sunxi: Add support for OrangePi Zero2

2021-01-11 Thread Jernej Skrabec
OrangePi Zero2 is SBC based on Allwinner H616 with 1 GiB of RAM, SD card support, gigabit ethernet, micro HDMI, WIFI, Bluetooth and 1 USB 2.0 port. It also has two GPIO headers which allows further peripherals to be used. Device Tree file is taken from initial OrangePi Zero2 Linux submission and i

[PATCH v2 20/21] clk: sunxi: Add support for H616 clocks

2021-01-11 Thread Jernej Skrabec
This commit introduces DM H616 clock driver. Reviewed-by: Andre Przywara Signed-off-by: Jernej Skrabec --- drivers/clk/sunxi/Kconfig| 7 ++ drivers/clk/sunxi/Makefile | 1 + drivers/clk/sunxi/clk_h616.c | 120 +++ 3 files changed, 128 insertions(+) cre

[PATCH v2 18/21] arm: sunxi: add initial H616 DTSI and headers

2021-01-11 Thread Jernej Skrabec
This commit introduces H616 DTSI file and dt-bindings headers needed for device tree files. Files are taken from initial Linux H616 support submission with minor change - emac0 fallback has H6 compatible instead of A64, otherwise network doesn't work. H616 DTSI is not merged upstream yet. Signed-

[PATCH v2 19/21] sunxi: gpio: introduce compatible for H616

2021-01-11 Thread Jernej Skrabec
H616 pinctrl is no different configuration wise than others, so just add compatible for it. Reviewed-by: Andre Przywara Signed-off-by: Jernej Skrabec --- drivers/gpio/sunxi_gpio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpio/sunxi_gpio.c b/drivers/gpio/sunxi_gpio.c index 02c

[PATCH v2 16/21] sunxi: Add H616 FEL support

2021-01-11 Thread Jernej Skrabec
H616 uses different address for reset. Add it. Signed-off-by: Jernej Skrabec --- arch/arm/cpu/armv8/fel_utils.S | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm/cpu/armv8/fel_utils.S b/arch/arm/cpu/armv8/fel_utils.S index 9510dcd9e4c1..2dbd4b365221 100644 --- a/ar

[PATCH v2 17/21] net: sun8i-emac: Determine pinmux based on SoC, not EMAC type

2021-01-11 Thread Jernej Skrabec
From: Andre Przywara --- drivers/net/sun8i_emac.c | 28 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/drivers/net/sun8i_emac.c b/drivers/net/sun8i_emac.c index e0bf19e34c17..4867a8425404 100644 --- a/drivers/net/sun8i_emac.c +++ b/drivers/net/sun8i_e

[PATCH v2 15/21] mmc: sunxi: Add H616 clock offset

2021-01-11 Thread Jernej Skrabec
H616 mmc clock is on same address as H6. Signed-off-by: Jernej Skrabec --- drivers/mmc/sunxi_mmc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/sunxi_mmc.c b/drivers/mmc/sunxi_mmc.c index d632b2332ca3..8458d154afd8 100644 --- a/drivers/mmc/sunxi_mmc.c +++ b/d

[PATCH v2 14/21] sunxi: Add support for H616 SoC

2021-01-11 Thread Jernej Skrabec
H616 is very similar to H6 so most of the infrastructure can be reused. However, two big differences are that it doesn't have functional SRAM A2 which is usually used for TF-A and it doesn't have ARISC co-processor. It also needs bigger SPL size - 48 KiB. Signed-off-by: Jernej Skrabec --- arch/a

[PATCH v2 11/21] sunxi: Add H616 DRAM support

2021-01-11 Thread Jernej Skrabec
Allwinner H616 supports many types of DRAM. Most notably it supports LPDDR4. However, all commercially available boards at this time use only DDR3, so this commit adds only DDR3 support. Controller and MBUS are very similar to H6 but PHY is completely unknown. Signed-off-by: Jernej Skrabec ---

[PATCH v2 13/21] net: sun8i-emac: Always clear syscon EPHY register

2021-01-11 Thread Jernej Skrabec
From: Andre Przywara At the moment we only consider the EPHY register for those SoCs were we actually have an internal PHY to configure. However even other SoCs have this register, an expect a bit to be cleared for proper operation with an external PHY. Rework sun8i_emac_set_syscon_ephy() to be

[PATCH v2 12/21] mmc: sunxi: Refactor mod clock register offset

2021-01-11 Thread Jernej Skrabec
From: Andre Przywara So far the only difference between the various Allwinner MMC controller we are concerned about is the mod clock register offset. This is actually not directly related to the MMC controller IP, but an integration choice, dependent on the SoC this appears in. To avoid becoming

[PATCH v2 10/21] sunxi: add support for R_I2C on H616

2021-01-11 Thread Jernej Skrabec
This port is needed for communication with PMIC. SPL uses it to set DRAM voltage on H616 boards. Reviewed-by: Samuel Holland Signed-off-by: Jernej Skrabec --- arch/arm/include/asm/arch-sunxi/gpio.h | 1 + board/sunxi/board.c| 4 2 files changed, 5 insertions(+) diff --

[PATCH v2 09/21] sunxi: add support for H616 uart0

2021-01-11 Thread Jernej Skrabec
This port is used for debug terminal on all known H616 boards. Reviewed-by: Samuel Holland Signed-off-by: Jernej Skrabec --- arch/arm/include/asm/arch-sunxi/gpio.h | 1 + arch/arm/mach-sunxi/board.c| 4 2 files changed, 5 insertions(+) diff --git a/arch/arm/include/asm/arch-su

[PATCH v2 08/21] sunxi: introduce support for H616 clocks

2021-01-11 Thread Jernej Skrabec
H616 has mostly the same clocks as H6 with some small differences. Just reuse H6 clocks for H616 and handle differences with macros. Reviewed-by: Samuel Holland Signed-off-by: Jernej Skrabec --- .../include/asm/arch-sunxi/clock_sun50i_h6.h | 18 +- arch/arm/mach-sunxi/clock_su

[PATCH v2 07/21] sunxi: support loading with SPL > 32KB

2021-01-11 Thread Jernej Skrabec
From: Andre Przywara H616 supports and needs bigger SPL than 32 KiB, mostly due to big DRAM driver and need for PMIC configuration, which pulls several drivers which are not needed otherwise. spl_mmc_get_uboot_raw_sector() will now compare pre-configured size with that, reported in SPL header. I

[PATCH v2 05/21] sunxi: prcm: Add memory map for H6 like SoCs

2021-01-11 Thread Jernej Skrabec
There was no need to have prcm definitions for H6 and similar SoCs till now. However, support R_I2C will be needed soon in SPL. Move old definitions to prcm_sun6i.h and add new ones in prcm_sun50i.h. One of those files will be selected in common prcm.h based on defined macros. This commit doesn't

[PATCH v2 06/21] sunxi: Add support for I2C on H6 like SoCs

2021-01-11 Thread Jernej Skrabec
I2C support, especially R_I2C port, will be needed in future. Upcoming support for H616 will need R_I2C to adjust DRAM voltage. Reviewed-by: Samuel Holland Signed-off-by: Jernej Skrabec --- .../include/asm/arch-sunxi/clock_sun50i_h6.h | 1 + arch/arm/mach-sunxi/Kconfig | 2

[PATCH v2 01/21] sunxi: Add support for AXP305 PMIC

2021-01-11 Thread Jernej Skrabec
This PMIC can be found on H616 boards and it's very similar to AXP805 and AXP806. Reviewed-by: Andre Przywara Reviewed-by: Jaehoon Chung Signed-off-by: Jernej Skrabec --- arch/arm/mach-sunxi/pmic_bus.c | 6 +++ board/sunxi/board.c| 10 ++-- drivers/power/Kconfig | 13

[PATCH v2 04/21] i2c: mvtwsi: sunxi: update macro

2021-01-11 Thread Jernej Skrabec
While currently none of the newer Allwinner SoCs currently has I2C support implemented in U-Boot, this will change soon. mvtwsi driver is good as it is for them except one macro. Update it to be ready once I2C support lands for those SoCs. Reviewed-by: Heiko Schocher Reviewed-by: Samuel Holland

[PATCH v2 03/21] mmc: sunxi: Replace H6 ifdefs with H6 gen macro

2021-01-11 Thread Jernej Skrabec
It turns out that several SoCs share same mmc configuration as H6. In order to lower ifdef clutter replace H6 specific macro with common one. Reviewed-by: Andre Przywara Signed-off-by: Jernej Skrabec --- arch/arm/include/asm/arch-sunxi/mmc.h | 2 +- drivers/mmc/sunxi_mmc.c | 12 +

[PATCH v2 02/21] sunxi: Introduce common symbol for H6 like SoCs

2021-01-11 Thread Jernej Skrabec
It turns out that there are at least 2 other SoCs which have basically the same memory map, similar clocks and other features as H6. It's very likely that we'll see more such SoCs in the future. In order to ease porting to new SoCs and lower ifdef clutter, introduce common symbol for them. Signed-

[PATCH v2 00/21] sunxi: Introduce H616 support

2021-01-11 Thread Jernej Skrabec
This series introduces H616 support. Later patches add also OrangePi Zero2 support but since H616 DT is not merged into Linux yet, I don't expect them to land yet. Most patches are ready to land, except those which depends on non-upstreamed DT yet. This series is based on u-boot-sunxi repo. Plea

Re: Re: [PATCH 01/17] sunxi: Add support for AXP305 PMIC

2021-01-11 Thread Jernej Škrabec
Dne ponedeljek, 11. januar 2021 ob 01:02:07 CET je André Przywara napisal(a): > On 03/01/2021 09:26, Jernej Skrabec wrote: > > This PMIC can be found on H616 boards and it's very similar to AXP805 > > and AXP806. > >> Signed-off-by: Jernej Skrabec > > The existing sunxi PMIC code is the typical U

Re: [PATCH 0/3] sunxi: Refactoring in prepration for H616

2021-01-11 Thread Jernej Škrabec
Dne ponedeljek, 11. januar 2021 ob 02:03:03 CET je Andre Przywara napisal(a): > Hi, > > I came up with those three patches to prepare for the H616. > Patch 1 simplifies the MMC driver, so the H616 support becomes a > one-liner. > Patch 2 cleans up the Ethernet driver, so we can support the same >

[PATCH 4/4] configs: legoev3: disable non-Linux boot options

2021-01-11 Thread David Lechner
This disables booting to non-Linux OSes. This board is uncomfortably close to its 256K size limit, so every few KB saved helps. Signed-off-by: David Lechner --- configs/legoev3_defconfig | 4 1 file changed, 4 insertions(+) diff --git a/configs/legoev3_defconfig b/configs/legoev3_defconfi

[PATCH 3/4] configs: legoev3: disable CONFIG_NET

2021-01-11 Thread David Lechner
This disables the CONFIG_NET setting for LEGO MINDSTORMS EV3. This board does not have any built-in networking, so it does not make sense to enable this feature. This also fixes the warning: = WARNING == This board does not use CONFIG_DM_ETH (Driver Model f

[PATCH 2/4] ARM: legoev3: drop bi_arch_number

2021-01-11 Thread David Lechner
This drops assigning bi_arch_number on LEGO MINDSTORMS EV3. This board never had its own unique number and since we are using device tree, we no longer need to pass an arch number to Linux. Signed-off-by: David Lechner --- board/lego/ev3/legoev3.c | 4 1 file changed, 4 deletions(-) diff -

[PATCH 0/4] LEGO MINDSTORMS EV3 updates

2021-01-11 Thread David Lechner
This is a collection of a few updates/cleanups for LEGO MINDSTORMS EV3. David Lechner (4): ARM: legoev3: set serial# env var ARM: legoev3: drop bi_arch_number configs: legoev3: disable CONFIG_NET configs: legoev3: disable non-Linux boot options board/lego/ev3/legoev3.c | 89

[PATCH 1/4] ARM: legoev3: set serial# env var

2021-01-11 Thread David Lechner
This sets the serial# environmet variable instead of using ATAGs on LEGO MINDSTORMS EV3. Also fix some nomenclature while we are touching this code (Bluetooth address is not the same as MAC address, EEPROM version is not the same as board version). Signed-off-by: David Lechner --- board/lego/ev

Re: Re: [linux-sunxi] [PATCH 07/17] sunxi: support loading with SPL > 32KB

2021-01-11 Thread Jernej Škrabec
Dne ponedeljek, 04. januar 2021 ob 03:02:03 CET je Samuel Holland napisal(a): > On 1/3/21 3:26 AM, Jernej Skrabec wrote: > > From: Andre Przywara > > > > H616 supports and needs bigger SPL than 32 KiB, mostly due to big DRAM > > driver and need for PMIC configuration, which pull several drivers w

[ANN] U-Boot v2021.01 released

2021-01-11 Thread Tom Rini
Hey all, It is release day and here is the v2021.01 release. With this release we have a number of new "please migrate to DM" warnings that are now 1 year past their warning date, and well past 1 year of those warnings being printed. It's getting up there on my TODO list to see if removing featu

Re: [PATCH v3] Add support for stack-protector

2021-01-11 Thread Heinrich Schuchardt
On 11.01.21 17:20, Joel Peshkin wrote: > Cc: Simon Glass > Cc: Bin Meng > Cc: Jagan Teki > Cc: Kever Yang > Cc: Heinrich Schuchardt > Cc: AKASHI Takahiro > Cc: Usama Arif > Cc: Sam Protsenko > Cc: Masahiro Yamada > Cc: Philippe Reynes > Cc: Eugeniu Rosca > Cc: Jan Kiszka > > Signed-off-

[PATCH v3] Add support for stack-protector

2021-01-11 Thread Joel Peshkin
Cc: Simon Glass Cc: Bin Meng Cc: Jagan Teki Cc: Kever Yang Cc: Heinrich Schuchardt Cc: AKASHI Takahiro Cc: Usama Arif Cc: Sam Protsenko Cc: Masahiro Yamada Cc: Philippe Reynes Cc: Eugeniu Rosca Cc: Jan Kiszka Signed-off-by: Joel Peshkin Changes for v3: - Move test command to cmd/

Re: Re: [linux-sunxi] [PATCH 05/17] sunxi: prcm: Add memory map for H6 like SoCs

2021-01-11 Thread Jernej Škrabec
Dne ponedeljek, 04. januar 2021 ob 01:03:17 CET je Samuel Holland napisal(a): > On 1/3/21 3:26 AM, Jernej Skrabec wrote: > > There was no need to have prcm definitions for H6 and similar SoCs till > > now. However, support R_I2C will be needed soon in SPL. > > > > Move old definitions to prcm_sun6

Re: [PATCH] board: amlogic: vim3: setup ethernet mac from efuse

2021-01-11 Thread Art Nikpal
> So the patch from Marek ( https://patchwork.ozlabs.org/project/uboot/patch/20201217072642.1319-1-m.szyprow...@samsung.com/) doesn't work ? yes doesnt works properly im sure if we read as raw 6 bytes from efuse we have if (is_valid_ethaddr(mac_addr)) # is always not valid

Re: [PATCH] board: mediatek: disable watchdog on BananaPi R2

2021-01-11 Thread Matthias Brugger
On 11/01/2021 09:57, Heinrich Schuchardt wrote: > On 11.01.21 08:48, Stefan Roese wrote: >> >> >> On 11.01.21 08:17, Heinrich Schuchardt wrote: >>> Am 11. Januar 2021 08:02:12 MEZ schrieb Stefan Roese : Added Heinrich to Cc. On 10.01.21 19:44, Matthias Brugger wrote: > On 09/0

[PATCH 2/5] lib: ecdsa: Add skeleton to implement ecdsa verification in u-boot

2021-01-11 Thread Alexandru Gagniuc
Prepare the source tree for accepting implementations of the ECDSA algorithm. This patch deals with the boring aspects of Makefiles and Kconfig files. Signed-off-by: Alexandru Gagniuc --- include/image.h | 10 +- include/u-boot/rsa.h | 2 +- lib/Kconfig | 1 +

[PATCH 4/5] arm: stm32mp1: Implement ECDSA signature verification

2021-01-11 Thread Alexandru Gagniuc
The STM32MP ROM provides several service. One of them is the ability to verify ecdsa256 signatures. Hook the ROM API into the ECDSA uclass. Signed-off-by: Alexandru Gagniuc --- arch/arm/mach-stm32mp/Kconfig| 9 +++ arch/arm/mach-stm32mp/Makefile | 1 + arch/arm/mach-stm32mp/ecd

[PATCH 5/5] Kconfig: FIT_SIGNATURE should not select RSA_VERIFY

2021-01-11 Thread Alexandru Gagniuc
FIT signatures can now be implemented with ECDSA. The assumption that all FIT images are signed with RSA is no longer valid. Thus, instead of 'select'ing RSA, only 'imply' it. This doesn't change the defaults, but allows one to explicitly disable RSA support. Signed-off-by: Alexandru Gagniuc ---

[PATCH 3/5] lib: ecdsa: Implement signature verification for crypto_algo API

2021-01-11 Thread Alexandru Gagniuc
Implement the crypto_algo .verify() function for ecdsa256. Because it backends on UCLASS_ECDSA, this change is focused on parsing the keys from devicetree and passing this information to the specific UCLASS driver. Signed-off-by: Alexandru Gagniuc --- lib/ecdsa/ecdsa-verify.c | 117 +

[PATCH 1/5] dm: crypto: Define UCLASS API for ECDSA signature verification

2021-01-11 Thread Alexandru Gagniuc
Define a UCLASS API for verifying ECDSA signatures. Unlike UCLASS_MOD_EXP, which focuses strictly on modular exponentiation, the ECDSA class focuses on verification. This is done so that it better aligns with mach-specific implementations, such as stm32mp. Signed-off-by: Alexandru Gagniuc --- in

[PATCH 0/5] Enable ECDSA FIT verification for stm32mp

2021-01-11 Thread Alexandru Gagniuc
This series is Part II of the ECDSA saga. It applies on top of [1]: * [PATCH v4 0/6] Add support for ECDSA image signing (with test) I've designed the UCLASS_ECDSA such that it aligns with the ROM API of the stm32mp. Instead of splitting the verification into (1) curve operations and (2) modular

[PATCH] common: fit-sig: Fix error message in fit_config_verify_sig()

2021-01-11 Thread Alexandru Gagniuc
In fit_config_verify_sig(), when no 'signature*' subnode exists in the configuration node, the fdt_for_each_subnode() loop is a no-op. Therefore, no error flags are set, and 'err_,sg' is not populated with an error string. This is incorrect behavior. Populate err_msg to indicate that no 'signature

Re: [PATCH] board: amlogic: vim3: setup ethernet mac from efuse

2021-01-11 Thread Neil Armstrong
Hi, On 11/01/2021 15:15, Art Nikpal wrote: >> So the patch from Marek >> (https://patchwork.ozlabs.org/project/uboot/patch/20201217072642.1319-1-m.szyprow...@samsung.com/) >> doesn't work ? > yes doesnt works properly im sure if we read as raw 6 bytes from efuse we have > > if (is_valid_ethaddr

Re: [PATCH 1/1] tools: efivar.py unused variable

2021-01-11 Thread Paulo Alcantara
Heinrich Schuchardt writes: > Unused variables should be called '_'. > > Signed-off-by: Heinrich Schuchardt > --- > tools/efivar.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Paulo Alcantara (SUSE)

Re: [PATCH 1/1] tools: efivar.py should check GUID when deleting

2021-01-11 Thread Paulo Alcantara
Heinrich Schuchardt writes: > When deleting a variable we must check that the GUID provided by the > user matches the GUID of the variable. > > Signed-off-by: Heinrich Schuchardt > --- > tools/efivar.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Paulo Alcantara (SUSE)

Re: [PATCH 1/1] tools: efivar.py: incorrect indentation

2021-01-11 Thread Paulo Alcantara
Heinrich Schuchardt writes: > According to https://pep8.org/#indentation we should use 4 spaces per > indentation level. > > Signed-off-by: Heinrich Schuchardt > --- > tools/efivar.py | 30 +++--- > 1 file changed, 15 insertions(+), 15 deletions(-) Reviewed-by: Paulo Al

Re: [PATCH 1/1] tools: efivar.py without arguments

2021-01-11 Thread Paulo Alcantara
Heinrich Schuchardt writes: > When tools: efivar.py is called without arguments an error occurs: > > Traceback (most recent call last): > File "tools/efivar.py", line 380, in > main() > File "tools/efivar.py", line 360, in main > args.func(args) > AttributeError: 'Namespace' object h

[PATCH 2/2] pinctrl: Set PINNAME_SIZE to 16

2021-01-11 Thread Patrice Chotard
To allow to print longer pin name, set PINNAME_SIZE to 16. Fixes: d5a8313905f5("cmd: pinmux: Add pinmux command") Signed-off-by: Patrice Chotard --- include/dm/pinctrl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/dm/pinctrl.h b/include/dm/pinctrl.h index 1bdc8

[PATCH 1/2] pinctrl: stmfx: Fix MAX_PIN_NAME_LEN

2021-01-11 Thread Patrice Chotard
MAX_PIN_NAME_LEN is set to 7 whereas stmfx pin name prefix "stmfx_gpio" is 10 char long. So "pinmux status" output looks like: STM32MP> pinmux status -a -- stmfx@42: stmfx_ : input stmfx_ : input stmfx_ : input stmfx_ : input stmfx_ : input . Set MAX_PIN_NAME_LEN to 13

[PATCH 0/2] Fix pinmux status display with long pin's name

2021-01-11 Thread Patrice Chotard
This series is fixing 2 issue when pin-controller pin's name are long : _ First issue is concerning stmfx pin-controller which pin's name is at least 13 char long but only 10 can be displayed. _ Second issue is about pinmux command which is using PINNAME_SIZE which need to be increase

Re: [PATCH] board: amlogic: vim3: setup ethernet mac from efuse

2021-01-11 Thread Neil Armstrong
Hi Artem, On 11/01/2021 12:19, Artem Lapkin wrote: > Add the board specific code for reading built-in ethernet MAC address from > efuse > > NOTE: MAC is stored in ASCII format, 1bytes = 2characters by 0 offset > > if mac from efuse not valid we use meson_generate_serial_ethaddr > > NOTE: remak

[PATCH] board: amlogic: vim3: setup ethernet mac from efuse

2021-01-11 Thread Artem Lapkin
Add the board specific code for reading built-in ethernet MAC address from efuse NOTE: MAC is stored in ASCII format, 1bytes = 2characters by 0 offset if mac from efuse not valid we use meson_generate_serial_ethaddr NOTE: remake odroid-n2.c variant from Neil Armstrong Signed-off-by: Artem Lapk

[PATCH 2/2] xilinx: common: Do not touch CONFIG_XILINX_OF_BOARD_DTB_ADDR in SPL

2021-01-11 Thread Michal Simek
This hook is used in full U-Boot that's why there is no reason to touch this location from SPL. The hook was introduced for QEMU usage but none is really running SPL on QEMU that's why it shouldn't break any usecase. Signed-off-by: Michal Simek --- board/xilinx/common/board.c | 3 ++- 1 file ch

[PATCH 1/2] xilinx: common: Change macro handling in board_fdt_blob_setup()

2021-01-11 Thread Michal Simek
Remove ifdef logic which is handled by preprocessor and move it link time optimization to get full compile code coverage. Signed-off-by: Michal Simek --- board/xilinx/common/board.c | 36 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/board/

[PATCH] xilinx: zynqmp: Save bootseq number for SD/EMMC boot modes

2021-01-11 Thread Michal Simek
For systems which has both sdhci controllers enable it is worth to export bootseq number for variables. Then the variable can be used in custom scripts to tune logic for OS. Signed-off-by: Michal Simek --- board/xilinx/zynqmp/zynqmp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/board/xi

RE: [PATCH 2/2] arm64: zynqmp: Enable seps and related video configs

2021-01-11 Thread Ashok Reddy Soma
Acked-by: Ashok Reddy Soma > -Original Message- > From: Michal Simek On Behalf Of Michal Simek > Sent: Thursday, January 7, 2021 6:56 PM > To: u-boot@lists.denx.de; git ; Simon Glass > > Subject: [PATCH 2/2] arm64: zynqmp: Enable seps and related video configs > > Enable this driver to

Re: [GIT PULL] TI changes for v2021.04 next

2021-01-11 Thread Tom Rini
On Mon, Jan 11, 2021 at 01:31:54PM +0100, Pali Rohár wrote: > On Monday 11 January 2021 07:28:08 Tom Rini wrote: > > On Mon, Jan 11, 2021 at 01:05:38PM +0100, Pali Rohár wrote: > > > On Thursday 07 January 2021 09:11:18 Tom Rini wrote: > > > > > Pali Rohár (3): > > > > > Nokia RX-51: Convert

Re: [GIT PULL] TI changes for v2021.04 next

2021-01-11 Thread Pali Rohár
On Monday 11 January 2021 07:28:08 Tom Rini wrote: > On Mon, Jan 11, 2021 at 01:05:38PM +0100, Pali Rohár wrote: > > On Thursday 07 January 2021 09:11:18 Tom Rini wrote: > > > > Pali Rohár (3): > > > > Nokia RX-51: Convert to CONFIG_DM_MMC > > > > > > This is also bringing up a conflict, and

Re: [GIT PULL] TI changes for v2021.04 next

2021-01-11 Thread Tom Rini
On Mon, Jan 11, 2021 at 01:05:38PM +0100, Pali Rohár wrote: > On Thursday 07 January 2021 09:11:18 Tom Rini wrote: > > > Pali Rohár (3): > > > Nokia RX-51: Convert to CONFIG_DM_MMC > > > > This is also bringing up a conflict, and I think part of the real > > problem is that we shouldn't be h

Re: [PATCH] arm: dts: stm32mp15: alignment with v5.11-rc2

2021-01-11 Thread Marek Vasut
On 1/11/21 12:33 PM, Patrick Delaunay wrote: Device tree alignment with Linux kernel v5.11-rc2 - fix DCMI DMA features on stm32mp15 family - Add alternate pinmux for FMC EBI bus - Harmonize EHCI/OHCI DT nodes name on stm32mp15 - update sdmmc IP version for STM32MP15 - Add LP timer irqs on stm32mp

Re: [PATCH v2] board: phytec: imx8mp: Add PHYTEC phyCORE-i.MX8MP support

2021-01-11 Thread Heiko Schocher
Hello Teresa, Am 11.01.21 um 08:30 schrieb Teresa Remmet: > Add initial support PHYTEC phyCORE-i.MX8MP SOM. > > Supported features: > - 2GB LPDDR4 RAM > - eMMC > - external SD > - debug UART2 > - watchdog > > Signed-off-by: Teresa Remmet > --- > Changes in v2: > - r

[PATCH] mmc: tmio: sdhi: Configure internal DMA bus width

2021-01-11 Thread Marek Vasut
The R-Car3 SDHI should set these two bits in DMA_MODE register according to the specification, to indicate 64bit bus width. No other bus width options are permitted and the default value is 0, which is incorrect. Set the bits accordingly. Signed-off-by: Marek Vasut --- drivers/mmc/renesas-sdhi.c

Re: [GIT PULL] TI changes for v2021.04 next

2021-01-11 Thread Pali Rohár
On Thursday 07 January 2021 09:11:18 Tom Rini wrote: > > Pali Rohár (3): > > Nokia RX-51: Convert to CONFIG_DM_MMC > > This is also bringing up a conflict, and I think part of the real > problem is that we shouldn't be having a single U_BOOT_DRVINFOS > (formerly U_BOOT_DEVICES) but one per p

[PATCH] arm: dts: stm32mp15: alignment with v5.11-rc2

2021-01-11 Thread Patrick Delaunay
Device tree alignment with Linux kernel v5.11-rc2 - fix DCMI DMA features on stm32mp15 family - Add alternate pinmux for FMC EBI bus - Harmonize EHCI/OHCI DT nodes name on stm32mp15 - update sdmmc IP version for STM32MP15 - Add LP timer irqs on stm32mp151 - Add LP timer wakeup-source on stm32mp151

Re: [PATCH] Nokia RX-51: Convert to CONFIG_DM_MMC

2021-01-11 Thread Lokesh Vutla
Hi Pali, On 22/11/20 4:03 am, Pali Rohár wrote: > Move twl4030_power_mmc_init() from board_mmc_power_init() to misc_init_r() > and disable CONFIG_SYS_MALLOC_F. Otherwise U-Boot cannot initialize MMC. > Also disable CONFIG_CMD_SLEEP and CONFIG_DM_DEVICE_REMOVE to free some > space. > > Signed-off-

Re: [PATCH 0/3] arm: mvebu: Espressobin: Set default env values at runtime

2021-01-11 Thread Pali Rohár
Hello Stefan and Andre! Could you please look at this patch series and tell me what do you think about it? If it is fine or needs to take different approach? On Wednesday 23 December 2020 12:21:27 Pali Rohár wrote: > This patch series set default env values of $fdtfile and $ethNaddr for > Espress

Re: Aw: Re: [PATCH] board: mediatek: disable watchdog on BananaPi R2

2021-01-11 Thread Heinrich Schuchardt
On 11.01.21 11:24, Frank Wunderlich wrote: > >> Gesendet: Montag, 11. Januar 2021 um 09:57 Uhr >> Von: "Heinrich Schuchardt" > >> I observed that on some recent version Linux before 5.10 booting seemed >> to be delayed by dozens of seconds on many boards. On which Linux >> version did you see the

Re: [PATCH] sunxi: display: introduce "sunxi-video" environment variable

2021-01-11 Thread Giulio Benetti
On 1/11/21 10:48 AM, Maxime Ripard wrote: Hi, On Mon, Jan 11, 2021 at 10:13:32AM +0100, Giulio Benetti wrote: From: Giulio Benetti At the moment you can specify lcd_mode only through hardcoded CONFIG_VIDEO_LCD_MODE but this way, if you have a board with multiple lcds compatible, you have to r

[PATCH] env: Fix warning when forcing environment without ENV_ACCESS_IGNORE_FORCE

2021-01-11 Thread Martin Fuzzey
Since commit 0f036bf4b87e ("env: Warn on force access if ENV_ACCESS_IGNORE_FORCE set") a warning message is displayed when setenv -f is used WITHOUT CONFIG_ENV_ACCESS_IGNORE_FORCE, but the variable is set anyway, resulting in lots of log pollution. env_flags_validate() returns 0 if the access is

Aw: Re: [PATCH] board: mediatek: disable watchdog on BananaPi R2

2021-01-11 Thread Frank Wunderlich
> Gesendet: Montag, 11. Januar 2021 um 09:57 Uhr > Von: "Heinrich Schuchardt" > I observed that on some recent version Linux before 5.10 booting seemed > to be delayed by dozens of seconds on many boards. On which Linux > version did you see the problem? > > >>> > >>> I've not much experience (

[PATCH] fastboot: add UUU command UCmd and ACmd support

2021-01-11 Thread Heiko Schocher
add support for the UUU commands ACmd and UCmd. Enable them through the Kconfig option CONFIG_FASTBOOT_UUU_SUPPORT base was commit in NXP kernel 9b149c2a2882: ("MLK-18591-3 android: Add FSL android fastboot support") and ported it to current mainline. Tested this patch on imx6ul based board. Si

Re: [PATCH v2] Add support for stack-protector

2021-01-11 Thread Heinrich Schuchardt
On 11.01.21 04:10, Joel Peshkin wrote: > Cc: Simon Glass > Cc: Bin Meng > Cc: Jagan Teki > Cc: Kever Yang > Cc: Heinrich Schuchardt > Cc: AKASHI Takahiro > Cc: Usama Arif > Cc: Sam Protsenko > Cc: Masahiro Yamada > Cc: Philippe Reynes > Cc: Eugeniu Rosca > Cc: Jan Kiszka > > Signed-off-

Re: [PATCH] sunxi: display: introduce "sunxi-video" environment variable

2021-01-11 Thread Maxime Ripard
Hi, On Mon, Jan 11, 2021 at 10:13:32AM +0100, Giulio Benetti wrote: > From: Giulio Benetti > > At the moment you can specify lcd_mode only through hardcoded > CONFIG_VIDEO_LCD_MODE but this way, if you have a board with multiple lcds > compatible, you have to rebuild u-boot for every single lcd,

[PATCH] sunxi: display: introduce "sunxi-video" environment variable

2021-01-11 Thread Giulio Benetti
From: Giulio Benetti At the moment you can specify lcd_mode only through hardcoded CONFIG_VIDEO_LCD_MODE but this way, if you have a board with multiple lcds compatible, you have to rebuild u-boot for every single lcd, so let's add sunxi-video environment variable to give the possibility to speci

Re: [PATCH] board: mediatek: disable watchdog on BananaPi R2

2021-01-11 Thread Heinrich Schuchardt
On 11.01.21 08:48, Stefan Roese wrote: > > > On 11.01.21 08:17, Heinrich Schuchardt wrote: >> Am 11. Januar 2021 08:02:12 MEZ schrieb Stefan Roese : >>> Added Heinrich to Cc. >>> >>> On 10.01.21 19:44, Matthias Brugger wrote: On 09/01/2021 15:57, Stefan Roese wrote: > On 09.01.21 03:32, Ma

  1   2   >