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

2021-01-10 Thread Matthias Brugger
On 09/01/2021 15:57, Stefan Roese wrote: > On 09.01.21 03:32, Matthias Brugger wrote: >> On 08/01/2021 08:39, Stefan Roese wrote: >>> On 07.01.21 16:36, matthias@kernel.org wrote: From: Matthias Brugger Watchdog timeout comes in before we are able to load the kernel and

[PATCH v6 0/3] sunxi: Add support for OrangePi 3

2021-01-10 Thread Jernej Skrabec
This series introduces OrangePi 3 support. Previous cover letter: This is just refreshed v4 from here: https://patchwork.ozlabs.org/project/uboot/list/?series=156657=* Patches are only rebased, DT updated and defconfig regenerated, so I kept old tags. Only difference with old version is that

[PATCH v6 3/3] arm64: dts: sun50i: Add support for Orange Pi 3

2021-01-10 Thread Jernej Skrabec
From: Andre Heider dts file is taken from Linux 5.11-rc1 tag. The Bluetooth controller of this device ships with a default address, use the new CONFIG_FIXUP_BDADDR option to fix it up. akonadi:?collection=30=INBOX Acked-by: Maxime Ripard Signed-off-by: Andre Heider [Updated OrangePi 3 DT,

[PATCH v6 1/3] sunxi: board: extract creating a unique sid into a helper function

2021-01-10 Thread Jernej Skrabec
From: Andre Heider Refactor setup_environment() so we can use the created sid for a Bluetooth address too. Acked-by: Maxime Ripard Reviewed-by: Andre Przywara Signed-off-by: Andre Heider [rebased] Signed-off-by: Jernej Skrabec --- board/sunxi/board.c | 121

[PATCH v6 2/3] arm: sunxi: add a config option to fixup a Bluetooth address

2021-01-10 Thread Jernej Skrabec
From: Andre Heider Some Bluetooth controllers, like the BCM4345C5 of the Orange Pi 3, ship with the controller default address. Add a config option to fix it up so it can function properly. Signed-off-by: Andre Heider Tested-by: Ondrej Jirman Acked-by: Maxime Ripard [rebased] Signed-off-by:

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

2021-01-10 Thread Matthias Brugger
On 10/01/2021 19:44, Matthias Brugger wrote: > > > On 09/01/2021 15:57, Stefan Roese wrote: >> On 09.01.21 03:32, Matthias Brugger wrote: >>> On 08/01/2021 08:39, Stefan Roese wrote: On 07.01.21 16:36, matthias@kernel.org wrote: > From: Matthias Brugger > > Watchdog timeout

Re: Re: [PATCH] sunxi: dram: h6: Improve DDR3 config detection

2021-01-10 Thread Jernej Škrabec
Dne petek, 08. januar 2021 ob 03:01:42 CET je André Przywara napisal(a): > On 03/12/2020 17:46, Jernej Skrabec wrote: > > It turns out that in rare cases, current analytical approach to detect > > correct DRAM bus width and rank on H6 doesn't work. On some TV boxes > > with DDR3, incorrect DRAM

Re: [PATCH v6 3/3] arm64: dts: sun50i: Add support for Orange Pi 3

2021-01-10 Thread Jernej Škrabec
Dne nedelja, 10. januar 2021 ob 20:29:39 CET je Jernej Skrabec napisal(a): > From: Andre Heider > > dts file is taken from Linux 5.11-rc1 tag. > > The Bluetooth controller of this device ships with a default address, > use the new CONFIG_FIXUP_BDADDR option to fix it up. > >

Re: [PATCH 1/1] image: usage of value ~0UL for intrd_high

2021-01-10 Thread Heinrich Schuchardt
On 1/9/21 10:23 PM, Tom Rini wrote: On Sat, Jan 09, 2021 at 08:59:01PM +0100, Heinrich Schuchardt wrote: Am 9. Januar 2021 20:40:04 MEZ schrieb Tom Rini : On Sat, Jan 09, 2021 at 08:33:40PM +0100, Heinrich Schuchardt wrote: On 1/9/21 7:58 PM, Tom Rini wrote: On Sat, Jan 09, 2021 at

RK3399 SPI flash boot

2021-01-10 Thread Johnny Sorocil
I am trying to boot from SOM-RK3399v2 board. Can't get to u-boot shell, but TPL and SPL seems to be working. Booting from uSD or eMMC works. Reading SPI flash it and diff-ing hex dumps shows nothing weird. SPI image is created with following commands: make clean distclean && make && make -j6

Re: [PATCH 1/1] image: usage of value ~0UL for intrd_high

2021-01-10 Thread Heinrich Schuchardt
On 1/10/21 2:43 PM, Tom Rini wrote: On Sun, Jan 10, 2021 at 01:05:14PM +0100, Heinrich Schuchardt wrote: On 1/9/21 10:23 PM, Tom Rini wrote: On Sat, Jan 09, 2021 at 08:59:01PM +0100, Heinrich Schuchardt wrote: Am 9. Januar 2021 20:40:04 MEZ schrieb Tom Rini : On Sat, Jan 09, 2021 at

[PATCH] Add support for stack-protector

2021-01-10 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 --- Makefile | 4

Re: [PATCH] Add support for stack-protector

2021-01-10 Thread Heinrich Schuchardt
On 1/10/21 4:39 PM, 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-by: Joel Peshkin ---

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

2021-01-10 Thread Pragnesh Patel
Added support for timer_early_get_count() and timer_early_get_rate() This is mostly useful in tracing. Signed-off-by: Pragnesh Patel --- Changes in v3: - Add IS_ENABLED(CONFIG_TIMER_EARLY) for timer_early_get_rate() and timer_early_get_count() functions. Changes in v2: - make u-boot compile

[PATCH v3 1/2] trace: select TIMER_EARLY to avoid infinite recursion

2021-01-10 Thread Pragnesh Patel
When tracing functions is enabled this adds calls to __cyg_profile_func_enter() and __cyg_profile_func_exit() to the traced functions. __cyg_profile_func_enter() and __cyg_profile_func_exit() invoke timer_get_us() to record the entry and exit time. initr_dm() will make gd->dm_root = NULL and

Re: [PATCH 1/1] image: usage of value ~0UL for intrd_high

2021-01-10 Thread Tom Rini
On Sun, Jan 10, 2021 at 01:05:14PM +0100, Heinrich Schuchardt wrote: > On 1/9/21 10:23 PM, Tom Rini wrote: > > On Sat, Jan 09, 2021 at 08:59:01PM +0100, Heinrich Schuchardt wrote: > > > Am 9. Januar 2021 20:40:04 MEZ schrieb Tom Rini : > > > > On Sat, Jan 09, 2021 at 08:33:40PM +0100, Heinrich

Re: [PATCH 1/1] image: usage of value ~0UL for intrd_high

2021-01-10 Thread Andy Shevchenko
On Sun, Jan 10, 2021 at 1:23 AM Heinrich Schuchardt wrote: > Am 9. Januar 2021 22:23:01 MEZ schrieb Tom Rini : > >On Sat, Jan 09, 2021 at 08:59:01PM +0100, Heinrich Schuchardt wrote: > >> Am 9. Januar 2021 20:40:04 MEZ schrieb Tom Rini : > >> >On Sat, Jan 09, 2021 at 08:33:40PM +0100, Heinrich

Re: [PATCH] Add support for stack-protector

2021-01-10 Thread Alex Sadovsky
Hi, > + > +unsigned long __stack_chk_guard = 0xfeedf00ddeadbeef; sizeof(unsigned long) isn't always 8, even gcc issues a warning when it's invoked with proper options (e.g. 32-bit build): > warning: conversion from ‘long long unsigned int’ to ‘long unsigned int’ > changes value from

Re: [linux-sunxi] [PATCH v6 3/3] arm64: dts: sun50i: Add support for Orange Pi 3

2021-01-10 Thread Samuel Holland
On 1/10/21 1:29 PM, Jernej Skrabec wrote: > From: Andre Heider > > dts file is taken from Linux 5.11-rc1 tag. > > The Bluetooth controller of this device ships with a default address, > use the new CONFIG_FIXUP_BDADDR option to fix it up. This still references the old config name. It should be

Re: [PATCH 15/17] sunxi: gpio: introduce compatible for H616

2021-01-10 Thread André Przywara
On 03/01/2021 09:26, Jernej Skrabec wrote: > H616 pinctrl is no different configuration wise than others, so just add > compatible for it. > > Signed-off-by: Jernej Skrabec Reviewed-by: Andre Przywara Cheers, Andre > --- > drivers/gpio/sunxi_gpio.c | 1 + > 1 file changed, 1 insertion(+) >

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

2021-01-10 Thread Rick Chen
> 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 > Jian-Zhi

Re: [PATCH] sunxi: dram: h6: Improve DDR3 config detection

2021-01-10 Thread André Przywara
On 10/01/2021 18:43, Jernej Škrabec wrote: > Dne petek, 08. januar 2021 ob 03:01:42 CET je André Przywara napisal(a): >> On 03/12/2020 17:46, Jernej Skrabec wrote: >>> It turns out that in rare cases, current analytical approach to detect >>> correct DRAM bus width and rank on H6 doesn't work. On

Re: [linux-sunxi] [PATCH v6 3/3] arm64: dts: sun50i: Add support for Orange Pi 3

2021-01-10 Thread André Przywara
On 10/01/2021 23:16, Samuel Holland wrote: > On 1/10/21 1:29 PM, Jernej Skrabec wrote: >> From: Andre Heider >> >> dts file is taken from Linux 5.11-rc1 tag. >> >> The Bluetooth controller of this device ships with a default address, >> use the new CONFIG_FIXUP_BDADDR option to fix it up. > >

[PATCH 1/3] mmc: sunxi: Refactor mod clock register offset

2021-01-10 Thread 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 trapped with some

[PATCH 3/3] net: sun8i-emac: Simplify EPHY offset calculation

2021-01-10 Thread Andre Przywara
Most SoCs using the sun8i-emac IP use a register in the "syscon" area to control some PHY related settings. The R40 is special, since this register is located in the CCU IP. So far we were storing the *base* address in our priv struct, then adding the offset later when we need to use it. Change

[PATCH 2/3] net: sun8i-emac: Always clear syscon EPHY register

2021-01-10 Thread 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 called regardless of

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

2021-01-10 Thread Andre Przywara
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 compatible strings and fallbacks as Linux. Patch 3 prepares the EMAC driver for the second

Re: [PATCH 1/3] mmc: sunxi: Refactor mod clock register offset

2021-01-10 Thread Jaehoon Chung
On 1/11/21 10:03 AM, Andre Przywara wrote: > 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

Re: [PATCH] Add support for stack-protector

2021-01-10 Thread Heinrich Schuchardt
Am 10. Januar 2021 20:44:15 MEZ schrieb Joel Peshkin : >Hi Heinrich, > >Thank you for your comments. I have 2 questions about how to >proceed > >1) Unit test >I can add a function that can be used to trigger an overrun, but I am >not >sure where to include it as the stack protector prints

Re: [PATCH v6 0/3] sunxi: Add support for OrangePi 3

2021-01-10 Thread André Przywara
On 10/01/2021 19:29, Jernej Skrabec wrote: > This series introduces OrangePi 3 support. > > Previous cover letter: > This is just refreshed v4 from here: > https://patchwork.ozlabs.org/project/uboot/list/?series=156657=* > > Patches are only rebased, DT updated and defconfig regenerated, so > I

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

2021-01-10 Thread André Przywara
On 04/01/2021 18:28, Jernej Škrabec wrote: > Dne ponedeljek, 04. januar 2021 ob 11:35:41 CET je André Przywara napisal(a): >> On 03/01/2021 23:43, Samuel Holland wrote: >> >> Hi Jernej, >> >> thanks for that patch, that's a nice solution to avoid those long #ifdef >> chains! >> >>> On 1/3/21 3:26

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

2021-01-10 Thread André Przywara
On 03/01/2021 09:26, 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. > > Signed-off-by: Jernej Skrabec Shame we need to do this, but the SPL requires this ifdef orgy.

Re: [PATCH] board: amlogic: vim3: ethernet mac fixed from serial

2021-01-10 Thread Jaehoon Chung
Hi, On 1/8/21 2:43 PM, Artem Lapkin wrote: > Fixed randomly generated ethernet mac address! > > Used meson_generate_serial_ethaddr for generate mac address from > board serial number, if ethaddr variable not defined. AFAIK, it's fixed with Marek's patch

Re: [PATCH] Add support for stack-protector

2021-01-10 Thread Joel Peshkin
Hi Heinrich, Thank you for your comments. I have 2 questions about how to proceed 1) Unit test I can add a function that can be used to trigger an overrun, but I am not sure where to include it as the stack protector prints the error message and then resets uboot so it wouldn't fir in a

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

2021-01-10 Thread André Przywara
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-Boot mess, but I don't want to block this series on a rework. I put some comments and

Re: [PATCH 16/17] clk: sunxi: Add support for H616 clocks

2021-01-10 Thread André Przywara
On 03/01/2021 09:26, Jernej Skrabec wrote: > This commit introduces DM H616 clock driver. > > Signed-off-by: Jernej Skrabec Compared against the manual. Reviewed-by: Andre Przywara Cheers, Andre > --- > drivers/clk/sunxi/Kconfig| 7 ++ > drivers/clk/sunxi/Makefile | 1 + >

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

2021-01-10 Thread Jaehoon Chung
On 1/11/21 9:02 AM, André Przywara wrote: > 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-Boot mess, but I don't > want to

Re: [PATCH v7 7/7] doc: board: Add Microchip MPFS Icicle Kit doc

2021-01-10 Thread Rick Chen
Hi Padmarao > From: Padmarao Begari [mailto:padmarao.beg...@microchip.com] > Sent: Tuesday, December 22, 2020 9:12 PM > To: u-boot@lists.denx.de; bmeng...@gmail.com; Rick Jian-Zhi Chen(陳建志); > anup.pa...@wdc.com; lukas.a...@aisec.fraunhofer.de; joe.hershber...@ni.com; > lu...@denx.de;

Re: [PATCH 1/1] image: usage of value ~0UL for intrd_high

2021-01-10 Thread Adam Ford
On Sat, Jan 9, 2021 at 5:23 PM Heinrich Schuchardt wrote: > > Am 9. Januar 2021 22:23:01 MEZ schrieb Tom Rini : > >On Sat, Jan 09, 2021 at 08:59:01PM +0100, Heinrich Schuchardt wrote: > >> Am 9. Januar 2021 20:40:04 MEZ schrieb Tom Rini : > >> >On Sat, Jan 09, 2021 at 08:33:40PM +0100, Heinrich

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

2021-01-10 Thread Pragnesh Patel
Hi Rick, On Wed, Jan 6, 2021 at 7:28 AM Rick Chen wrote: > > Hi Pragnesh > > > On Tue, Jan 5, 2021 at 7:12 AM Sean Anderson wrote: > > > > > > On 1/4/21 8:37 PM, Rick Chen wrote: > > > > Hi Pragnesh > > > > > > > >>> From: Pragnesh Patel [mailto:pragnesh.pa...@sifive.com] > > > >>> Sent:

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

2021-01-10 Thread 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: - remove not needed spl board init - remove ifdef from board_fit_config_name_match -

[PATCH v2] Add support for stack-protector

2021-01-10 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 v2: - Add test command and

Re: [PATCH] Add support for stack-protector

2021-01-10 Thread Joel Peshkin
Hi Alex, Yeah, I think I'll wind up with some ifdef code for the static init. In the case of arm (32-bit), there is actually a GCC bug that causes it to use the address of the canary value instead of the canary value itself. GCC upstream just fixed that a few days ago, but it may be a year or

Re: [PATCH v7 7/7] doc: board: Add Microchip MPFS Icicle Kit doc

2021-01-10 Thread Padmarao Begari
Hi Rick, On Mon, Jan 11, 2021 at 8:26 AM Rick Chen wrote: > Hi Padmarao > > > From: Padmarao Begari [mailto:padmarao.beg...@microchip.com] > > Sent: Tuesday, December 22, 2020 9:12 PM > > To: u-boot@lists.denx.de; bmeng...@gmail.com; Rick Jian-Zhi Chen(陳建志); > anup.pa...@wdc.com;

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

2021-01-10 Thread 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, Matthias Brugger wrote: On 08/01/2021 08:39, Stefan Roese wrote: On 07.01.21 16:36, matthias@kernel.org wrote: From: Matthias Brugger Watchdog timeout comes in

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

2021-01-10 Thread Heinrich Schuchardt
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, Matthias Brugger wrote: On 08/01/2021 08:39, Stefan Roese wrote: > On 07.01.21 16:36,

Re: [PATCH] board: amlogic: vim3: ethernet mac fixed from serial

2021-01-10 Thread Art Nikpal
plz ignore my prev emails > AFAIK, it's fixed with Marek's patch > https://patchwork.ozlabs.org/project/uboot/patch/20201217072642.1319-1-m.szyprow...@samsung.com/ look like yes ! u right Best regards Art On Mon, Jan 11, 2021 at 9:27 AM Art Nikpal wrote: > > AFAIK, it's fixed with Marek's

Re: [PATCH] board: amlogic: vim3: ethernet mac fixed from serial

2021-01-10 Thread Art Nikpal
> AFAIK, it's fixed with Marek's patch > https://patchwork.ozlabs.org/project/uboot/patch/20201217072642.1319-1-m.szyprow...@samsung.com/ not solve ! because mac which must stored in mcu is empty by default and by default we have random mac every time i think i will make new complex patch from

[PATCH 2/2] board: atmel: Add SAMA5D27 giant board

2021-01-10 Thread Greg Gallagher
Giant board is a tiny SBC based on the Adafruit Feather form factor, created by groboards it contains a SAMA5D2 processor (SAMA5D27), 128 MB of RAM and a microSD card for storage. Signed-off-by: Greg Gallagher --- arch/arm/dts/Makefile | 3 +

[PATCH 1/2] ARM: at91: spl: add spl_early_init for sama52d platforms

2021-01-10 Thread Greg Gallagher
The dm root node is needed early in the spl to allow the timer to be used. This change calls spl_early_init to initialize the dm root node. Signed-off-by: Greg Gallagher --- arch/arm/mach-at91/spl_atmel.c | 7 +++ 1 file changed, 7 insertions(+) diff --git

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

2021-01-10 Thread Stefan Roese
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, Matthias Brugger wrote: On 08/01/2021 08:39, Stefan Roese