Re: [PATCH 02/20] net: phy: xilinx: Convert to use APIs which support live DT

2021-03-04 Thread Vladimir Oltean
On Thu, Mar 04, 2021 at 01:36:45PM +0800, Bin Meng wrote: > It looks that I need to rebase my series on top of yours? That would be nice, thank you. It would also create some sort of incentive to finally get my patches accepted or at least looked at, they are in the 'Needs Review/Ack' state, you

reserved memory from devicetree definition

2021-03-04 Thread jorge courett
Hi! Is there any way to use a reserved memory definition in the device tree to avoid that u-boot could use that SDRAM memory region? Or the only way is by compiler configuration? Thanks

Please pull u-boot-video/next-2021-03-04

2021-03-04 Thread Anatolij Gustschin
Hi Tom, The following changes since commit c5219c4a18f2b27547ecd799914f94e48b0fa86f: Prepare v2021.04-rc3 (2021-03-01 22:46:41 -0500) are available in the Git repository at: https://gitlab.denx.de/u-boot/custodians/u-boot-video.git tags/next-2021-03-04 for you to fetch changes up to

Re: [PATCH] imx: Add IMX_HAB support for i.MX7ULP and i.MX8M

2021-03-04 Thread Tom Rini
On Thu, Mar 04, 2021 at 08:17:42AM -0300, Fabio Estevam wrote: > i.MX7ULP and i.MX8M may also use HAB. Add support for these > platforms. > > Signed-off-by: Fabio Estevam > --- > arch/arm/mach-imx/Kconfig| 2 +- > arch/arm/mach-imx/imx8m/Kconfig | 1 + >

Re: [PATCH 3/5] sysreset: provide SBI based sysreset driver

2021-03-04 Thread Sean Anderson
On 3/4/21 12:00 PM, Heinrich Schuchardt wrote: Provide sysreset driver using the SBI system reset extension. Signed-off-by: Heinrich Schuchardt --- MAINTAINERS | 1 + arch/riscv/include/asm/sbi.h| 1 + arch/riscv/lib/sbi.c| 21 +--

Re: [RFC] devices without FDT node

2021-03-04 Thread Simon Glass
Hi Heinrich, On Thu, 4 Mar 2021 at 08:01, Heinrich Schuchardt wrote: > > Hello Simon, > > in U-Boot we can define drivers via U_BOOT_DRVINFO and U_BOOT_DRIVER. > > My current use case is SBI system reset extension. A driver would not > reasonably depend on the device-tree because if the RISC-V

Re: [PATCH 1/5] risv: add missing SBI extension definitions

2021-03-04 Thread Sean Anderson
On 3/4/21 12:00 PM, Heinrich Schuchardt wrote: Add the System Reset Extension and the Hart State Management Extension definitions. Add missing RFENCE Extension enum values. The SBI 0.1 extension constants are needed for for the sbi command. Remove an #ifdef. Cf.

Re: [RFC PATCH u-boot 00/12] U-Boot LTO (Sandbox + ARM Nokia RX-51)

2021-03-04 Thread Marek Behun
On Thu, 4 Mar 2021 16:18:03 -0600 Adam Ford wrote: > diff --git a/arch/arm/mach-omap2/omap3/Makefile > b/arch/arm/mach-omap2/omap3/Makefile > index 91ed8ebc9f..a2cc21c6d2 100644 > --- a/arch/arm/mach-omap2/omap3/Makefile > +++ b/arch/arm/mach-omap2/omap3/Makefile > @@ -6,6 +6,8 @@ > # If

Re: [PATCH 2/5] cmd/sbi: use constants instead of numerical values

2021-03-04 Thread Sean Anderson
On 3/4/21 12:00 PM, Heinrich Schuchardt wrote: Use constants for extension IDs. Signed-off-by: Heinrich Schuchardt --- cmd/riscv/sbi.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/cmd/riscv/sbi.c b/cmd/riscv/sbi.c index

Re: [RFC] devices without FDT node

2021-03-04 Thread Heinrich Schuchardt
Am 4. März 2021 20:26:49 MEZ schrieb Simon Glass : >Hi Heinrich, > >On Thu, 4 Mar 2021 at 08:01, Heinrich Schuchardt >wrote: >> >> Hello Simon, >> >> in U-Boot we can define drivers via U_BOOT_DRVINFO and U_BOOT_DRIVER. >> >> My current use case is SBI system reset extension. A driver would not

[PATCH] Azure/GitLab: Use buildman -T0 for binman, etc, test

2021-03-04 Thread Tom Rini
There are times where buildman seems to get stuck in this job when in CI. Forcing single-threaded here allows us to complete and move on. Signed-off-by: Tom Rini --- .azure-pipelines.yml | 2 +- .gitlab-ci.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [PATCH 5/5] maix: enable SBI system reset for MAIX

2021-03-04 Thread Sean Anderson
On 3/4/21 12:00 PM, Heinrich Schuchardt wrote: When running in S-mode we can use the SBI system reset extension to provide the system reset. Signed-off-by: Heinrich Schuchardt --- board/sipeed/maix/maix.c| 5 + configs/sipeed_maix_smode_defconfig | 2 ++ 2 files changed, 7

Re: [RFC] devices without FDT node

2021-03-04 Thread Simon Glass
Hi Heinrich, On Thu, 4 Mar 2021 at 13:10, Heinrich Schuchardt wrote: > > Am 4. März 2021 20:26:49 MEZ schrieb Simon Glass : > >Hi Heinrich, > > > >On Thu, 4 Mar 2021 at 08:01, Heinrich Schuchardt > >wrote: > >> > >> Hello Simon, > >> > >> in U-Boot we can define drivers via U_BOOT_DRVINFO and

Re: [RFC PATCH u-boot 00/12] U-Boot LTO (Sandbox + ARM Nokia RX-51)

2021-03-04 Thread Adam Ford
On Thu, Mar 4, 2021 at 9:59 AM Marek Behun wrote: > > On Thu, 4 Mar 2021 09:07:33 -0600 > Adam Ford wrote: > > > Interesting. with LTO enabled, the DRAM reports 7.2 GB and hangs. > > Without LTO, U-Boot boots fine. > > > > LTO: > > OMAP3630/3730-GP ES1.2, CPU-OPP2, L3-200MHz, Max CPU Clock 1

Re: [PATCH 4/5] pinctrl: K210_PINCTRL depends on REGMAP and on SYSCON

2021-03-04 Thread Sean Anderson
On 3/4/21 12:00 PM, Heinrich Schuchardt wrote: Select missing Kconfig dependencies. Signed-off-by: Heinrich Schuchardt --- drivers/pinctrl/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig index 77fb851114..2a859ab5d0 100644 ---

Re: [PATCH v3 1/4] firmware: scmi: voltage regulator

2021-03-04 Thread Etienne Carriere
Hello Patrick, On Wed, 3 Mar 2021 at 11:09, Patrick DELAUNAY wrote: > > Hi Etienne, > > On 2/22/21 8:27 AM, Etienne Carriere wrote: > > Implement voltage regulators interfaced by the SCMI voltage domain > > protocol. The DT bindings are defined in the Linux kernel since > > SCMI voltage domain

Re: Re: [PATCH 07/19] video: sunxi: Remove check for ddc-i2c-bus property

2021-03-04 Thread Jernej Škrabec
Hi! Dne četrtek, 04. marec 2021 ob 02:42:21 CET je Andre Przywara napisal(a): > On Tue, 23 Feb 2021 21:46:19 +0100 > Jernej Skrabec wrote: > > > No Allwinner boards with DW-HDMI controller use separate I2C bus for > > EDID read. Remove that check. > > Apparently the Cubieboard 4 has (as the

[PATCH] board: mt7629: enable compression of u-boot to reduce the size of final image

2021-03-04 Thread Weijie Gao
This patch makes use of the decompression mechanism implemented for mt7628 previously to reduce the total image size. Binman will be also removed. Signed-off-by: Weijie Gao --- Makefile| 3 +++ arch/arm/dts/mt7629-rfb-u-boot.dtsi | 18 --

[PATCH] configs: mt7622: enable debug uart for mt7622_rfb_defconfig

2021-03-04 Thread Weijie Gao
Enable debug uart for mt7622_rfb_defconfig Signed-off-by: Weijie Gao --- configs/mt7622_rfb_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/mt7622_rfb_defconfig b/configs/mt7622_rfb_defconfig index 12f529158c..c12ce5cc0a 100644 --- a/configs/mt7622_rfb_defconfig +++

[PATCH v2] mmc: mtk-sd: increase the minimum bus frequency

2021-03-04 Thread Weijie Gao
With a 48MHz input clock, the lowest bus frequency can be as low as 4800 / (4 * 4095) = 2930Hz. Such an extremely low frequency will cause the mmc framework take seconds to finish the initialization. Limiting the minimum bus frequency to a slightly higher value can solve the issue without any

Re: [PATCH] common: board_f: Restore 85xx watchdog support

2021-03-04 Thread Simon Glass
Hi Chris, On Tue, 2 Mar 2021 at 16:00, Chris Packham wrote: > > In commit 75918afa649b ("powerpc: Drop old non-generic-board code") we > lost the call to init_85xx_watchdog() which had the effect of disabling > support for the watchdog on 85xx and similar SoCs (i.e. the QorIQ P > Series and T

Re: [PATCH 1/3] rtc: ds1307: Add ds1339 compatible

2021-03-04 Thread Simon Glass
On Tue, 2 Mar 2021 at 20:09, Chris Packham wrote: > > As far as u-boot is concerned the ds1339 is compatible with the other U-Boot > devices supported by the ds1307 driver. The Linux driver does expose > some additional functionality but as far as u-boot is concerned just > adding the

Re: [PATCH v5 1/3] x86: qemu: move QFW to its own uclass

2021-03-04 Thread Asherah Connor
Hi Simon, On 21/03/04 11:03:p, Simon Glass wrote: > This looks sensible but it really is a huge patch. Can it be split up a bit? This is a rejig of v4 previously Reviewed-by: you, see https://patchwork.ozlabs.org/project/uboot/list/?series=230778=%2a. Bin Meng suggested the patch be reworked

Re: [PATCHv2] arm64: gic-v3-its: Clear the Pending table before enabling LPIs

2021-03-04 Thread Laurentiu Tudor
Hi Zhiqiang, On 3/5/2021 4:21 AM, Zhiqiang Hou wrote: > From: Hou Zhiqiang > > The GICv3 RM requires "The first 1KB of memory for the LPI Pending tables > must contain only zeros on initial allocation, and this must be visible > to the Redistributors, or else the effect is UNPREDICTABLE". > >

Re: reserved memory from devicetree definition

2021-03-04 Thread Bin Meng
On Fri, Mar 5, 2021 at 8:26 AM jorge courett wrote: > > Hi! > Is there any way to use a reserved memory definition in the device tree to > avoid that u-boot could use that SDRAM memory region? Or the only way is by > compiler configuration? The use case you pointed out is not supported by

Re: [PATCH] Azure/GitLab: Use buildman -T0 for binman, etc, test

2021-03-04 Thread Bin Meng
Hi Tom, On Fri, Mar 5, 2021 at 6:04 AM Tom Rini wrote: > > There are times where buildman seems to get stuck in this job when in > CI. Forcing single-threaded here allows us to complete and move on. Is this a potential buildman bug? +Simon My concern is this will increase the overall CI time

[PATCH] dts: mt7629: enable JTAG pins by default

2021-03-04 Thread Weijie Gao
The EPHY LEDs belongs to the built-in FE switch of MT7629, which is barely used. These LED pins on reference boards are used as JTAG socket. So it's a good idea to change the default state to JTAG, and this will make it convenience for debugging. Signed-off-by: Weijie Gao ---

Re: [PATCH] mmc: mtk-sd: increase the minimum bus frequency

2021-03-04 Thread Weijie Gao
On Fri, 2021-03-05 at 11:44 +0900, Jaehoon Chung wrote: > Dear Waijie, > > On 3/5/21 11:30 AM, Weijie Gao wrote: > > With a 48MHz input clock, the lowest bus frequency can be as low as > > 4800 / (4 * 4095) = 2930Hz. Such an extremely low frequency will cause > > the mmc framework take

Re: [RFC PATCH u-boot 03/12] linker_lists: declare entries and lists externally visible

2021-03-04 Thread Bin Meng
On Wed, Mar 3, 2021 at 12:13 PM Marek Behún wrote: > > Use the `__visible` macro to declare entires and lists declared by > ll_entry_declare() and ll_entry_declare_list() externally visible, so > that when building with LTO the compiler does not optimize this data > away. > __visible is defined

Re: [PATCH] mips: mt7628: fix ddr_type for MT7688KN

2021-03-04 Thread Weijie Gao
On Fri, 2021-02-26 at 12:23 +0100, Stefan Roese wrote: > Hi Weijie, > > On 23.02.21 08:12, Weijie Gao wrote: > > The MT7688KN is a multi-chip package with 8MiB DDR1 KGD. So the DDR type > > from bootstrap register must be ignored, and always be assumed as DDR1. > > > > This patch fixes an issue

Re: [PATCH] Azure/GitLab: Use buildman -T0 for binman, etc, test

2021-03-04 Thread Tom Rini
On Fri, Mar 05, 2021 at 10:05:16AM +0800, Bin Meng wrote: > Hi Tom, > > On Fri, Mar 5, 2021 at 6:04 AM Tom Rini wrote: > > > > There are times where buildman seems to get stuck in this job when in > > CI. Forcing single-threaded here allows us to complete and move on. > > Is this a potential

Re: [PATCH 2/5] sysinfo: Provide some global/default IDs

2021-03-04 Thread Simon Glass
Hi Sean, On Mon, 1 Mar 2021 at 15:46, Sean Anderson wrote: > > This adds an ID for a board revision. Existing IDs have been moved above > SYSINFO_ID_END to allow for future expansion. > > Signed-off-by: Sean Anderson > --- > > drivers/sysinfo/gazerbeam.h | 10 +- >

Re: [PATCH 17/20] test: dm: Add a test case for simple-bus

2021-03-04 Thread Simon Glass
On Tue, 2 Mar 2021 at 10:36, Bin Meng wrote: > > This adds a test case to verify reading of a simple-bus is > working as expected. > > Signed-off-by: Bin Meng > --- > > test/dm/Makefile | 1 + > test/dm/simple-bus.c | 33 + > 2 files changed, 34

Re: [PATCH 06/20] of: extra: Introduce ofnode_phy_is_fixed_link() API

2021-03-04 Thread Simon Glass
+Joe Hershberger On Tue, 2 Mar 2021 at 10:35, Bin Meng wrote: > > Introduce a helper API ofnode_phy_is_fixed_link() to detect whether > the ethernet controller connects to a fixed-link pseudo-PHY device. > > Note there are two ways to describe a fixed PHY attached to an > Ethernet device: > > -

Re: [PATCH 4/5] sysinfo: Add gpio-sysinfo driver

2021-03-04 Thread Simon Glass
Hi Sean, On Mon, 1 Mar 2021 at 16:08, Sean Anderson wrote: > > > > On 3/1/21 3:46 PM, Sean Anderson wrote: > > This uses the newly-added dm_gpio_get_values_as_int_base3 function to > > implement a sysinfo device. The revision map is stored in the device tree. > > > > Signed-off-by: Sean Anderson

Re: [PATCH v5 1/3] x86: qemu: move QFW to its own uclass

2021-03-04 Thread Simon Glass
Hi Asherah, On Mon, 1 Mar 2021 at 01:35, Asherah Connor wrote: > > We move qfw into its own uclass and split the PIO functions into a > specific driver for that uclass. The PIO driver is selected in the > qemu-x86 board config (this covers x86 and x86_64). > > A sandbox driver and test are

Re: [PATCH 5/5] test: Add gpio-sysinfo test

2021-03-04 Thread Simon Glass
On Mon, 1 Mar 2021 at 15:46, Sean Anderson wrote: > > This adds a test for the gpio-sysinfo driver. > > Signed-off-by: Sean Anderson > --- > > arch/sandbox/dts/test.dts | 7 > test/dm/Makefile | 1 + > test/dm/sysinfo-gpio.c| 69 +++ > 3

Re: [PATCH 07/20] test: dm: Add a case to test ofnode_phy_is_fixed_link()

2021-03-04 Thread Simon Glass
On Tue, 2 Mar 2021 at 10:35, Bin Meng wrote: > > This adds a test case to test the new ofnode_phy_is_fixed_link() API. > Both the new and old DT bindings are covered. > > Signed-off-by: Bin Meng > --- > > arch/sandbox/dts/test.dts | 11 +++ > test/dm/of_extra.c| 18

RE: [PATCHv2] arm64: gic-v3-its: Clear the Pending table before enabling LPIs

2021-03-04 Thread Z.q. Hou
Hi Laurentiu, Thanks a lot for your comments! > -Original Message- > From: Laurentiu Tudor > Sent: 2021年3月5日 13:49 > To: Z.q. Hou ; u-boot@lists.denx.de > Cc: s...@chromium.org; rayagonda.kokata...@broadcom.com; Priyanka > Jain ; Vladimir Oltean > Subject: Re: [PATCHv2] arm64:

[PATCHv2] arm64: gic-v3-its: Clear the Pending table before enabling LPIs

2021-03-04 Thread Zhiqiang Hou
From: Hou Zhiqiang The GICv3 RM requires "The first 1KB of memory for the LPI Pending tables must contain only zeros on initial allocation, and this must be visible to the Redistributors, or else the effect is UNPREDICTABLE". And as the following statement, we here clear the whole Pending

[PATCH] mmc: mtk-sd: increase the minimum bus frequency

2021-03-04 Thread Weijie Gao
With a 48MHz input clock, the lowest bus frequency can be as low as 4800 / (4 * 4095) = 2930Hz. Such an extremely low frequency will cause the mmc framework take seconds to finish the initialization. Limiting the minimum bus frequency to a slightly higher value can solve the issue without any

[PATCH v2] watchdog: Add booke watchdog driver

2021-03-04 Thread Chris Packham
Add a driver for the PowerPC Book E watchdog driver that is present on a number of Freescale/NXP SoCs. Signed-off-by: Chris Packham Reviewed-by: Stefan Roese --- Changes in v2: - Remove #include of common.h - Add review from Stefan drivers/watchdog/Kconfig | 7 +++

Re: [RFC PATCH u-boot 04/12] efi_loader: fix warning when linking with LTO

2021-03-04 Thread Bin Meng
On Wed, Mar 3, 2021 at 12:13 PM Marek Behún wrote: > > When linking with LTO, the compiler complains about type mismatch of > variables `__efi_runtime_start`, `__efi_runtime_stop`, > `__efi_runtime_rel_start` and `__efi_runtime_rel_stop`: > > include/efi_loader.h:218:21: warning: type of

Re: [RFC PATCH u-boot 06/12] build: support building with Link Time Optimizations

2021-03-04 Thread Bin Meng
On Wed, Mar 3, 2021 at 12:13 PM Marek Behún wrote: > > Add plumbing for building U-Boot with Link Time Optimizations (gcc > only). > > Signed-off-by: Marek Behún > --- > Kbuild | 2 ++ > Kconfig | 19 +++ > Makefile| 26

Re: Please pull u-boot-video/next-2021-03-04

2021-03-04 Thread Tom Rini
On Thu, Mar 04, 2021 at 08:33:44PM +0100, Anatolij Gustschin wrote: > Hi Tom, > > The following changes since commit c5219c4a18f2b27547ecd799914f94e48b0fa86f: > > Prepare v2021.04-rc3 (2021-03-01 22:46:41 -0500) > > are available in the Git repository at: > >

Re: [PATCH 2/2] buildman: Support single-threaded operation

2021-03-04 Thread Tom Rini
On Sat, Jan 30, 2021 at 10:17:46PM -0700, Simon Glass wrote: > At present even if only a single thread is in use, buildman still uses > threading. > > For some debugging it is helpful to do everything in the main process. > Allow -T0 to support this. > > Signed-off-by: Simon Glass Applied to

Re: [PATCH] Azure/GitLab: Use buildman -T0 for binman, etc, test

2021-03-04 Thread Tom Rini
On Thu, Mar 04, 2021 at 05:03:52PM -0500, Tom Rini wrote: > There are times where buildman seems to get stuck in this job when in > CI. Forcing single-threaded here allows us to complete and move on. > > Signed-off-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc

[PATCH] configs: mt7622: use ARMv8 Generic Timer instead of mtk_timer

2021-03-04 Thread Weijie Gao
It's better to use the generic timer which is correctly initialized by the ATF. The generic timer has higher resolution than the mtk_timer. Signed-off-by: Weijie Gao --- configs/mt7622_rfb_defconfig | 2 -- 1 file changed, 2 deletions(-) diff --git a/configs/mt7622_rfb_defconfig

[PATCH] serial: mtk: rewrite the setbrg function

2021-03-04 Thread Weijie Gao
Currently the setbrg logic of serial-mtk is messy, and should be rewritten. Also an option is added to make it possible to use highspeed-3 mode for all bauds. The new logic is: 1. If baud clock > 12MHz a) If baud <= 115200, highspeed-0 mode will be used (ns16550 compatible) b) If baud <=

Re: [PATCH v2] cmd: gpt: Add option to write GPT partitions to environment variable

2021-03-04 Thread Simon Glass
On Fri, 26 Feb 2021 at 13:17, Farhan Ali wrote: > > This change would enhance the existing 'gpt read' command to allow > (optionally) writing of the read GPT partitions to an environment > variable in the UBOOT partitions layout format. This would allow users > to easily change the overall

Re: [PATCH 1/5] dm: gpio: Fix gpio_get_list_count failing with livetree

2021-03-04 Thread Simon Glass
On Mon, 1 Mar 2021 at 15:46, Sean Anderson wrote: > > of_parse_phandle_with_args (called by dev_read_phandle_with_args) does not > support getting the length of a phandle list by using the index -1. > Instead, use dev_count_phandle_with_args which supports exactly this > use-case. > > Fixes:

Re: [PATCH] mips: mt7628: fix the displayed DDR type of mt7628

2021-03-04 Thread Stefan Roese
On 05.03.21 04:13, Weijie Gao wrote: The MT7688KN is a multi-chip package with 8MiB DDR1 KGD. So the DDR type from bootstrap register must be ignored, and always be assumed as DDR1. This patch fixes the displayed DDR type of mt7628. Signed-off-by: Weijie Gao Reviewed-by: Stefan Roese

Re: [RFC PATCH u-boot 02/12] sandbox: errno: avoid conflict with libc's errno

2021-03-04 Thread Bin Meng
On Wed, Mar 3, 2021 at 12:13 PM Marek Behún wrote: > > When building with LTO, the system libc's `errno` variable used in > arch/sandbox/cpu/os.c conflicts with U-Boot's `errno` (defined in > lib/errno.c) with the following error: > .../ld: errno@@GLIBC_PRIVATE: TLS definition in

[PATCH] mips: mt7628: fix the displayed DDR type of mt7628

2021-03-04 Thread Weijie Gao
The MT7688KN is a multi-chip package with 8MiB DDR1 KGD. So the DDR type from bootstrap register must be ignored, and always be assumed as DDR1. This patch fixes the displayed DDR type of mt7628. Signed-off-by: Weijie Gao --- arch/mips/mach-mtmips/mt7628/init.c | 3 +++ 1 file changed, 3

Re: [PATCH] Azure/GitLab: Use buildman -T0 for binman, etc, test

2021-03-04 Thread Simon Glass
Hi Tom, Bin, On Thu, 4 Mar 2021 at 22:51, Tom Rini wrote: > > On Fri, Mar 05, 2021 at 10:05:16AM +0800, Bin Meng wrote: > > Hi Tom, > > > > On Fri, Mar 5, 2021 at 6:04 AM Tom Rini wrote: > > > > > > There are times where buildman seems to get stuck in this job when in > > > CI. Forcing

Re: [PATCH u-boot] regmap: fix a serious pointer casting bug

2021-03-04 Thread Simon Glass
On Wed, 3 Mar 2021 at 08:16, Marek Behún wrote: > > There is a serious bug in regmap_read() and regmap_write() functions > where an uint pointer is cast to (void *) which is then cast to (u8 *), > (u16 *), (u32 *) or (u64 *), depending on register width of the map. > > For example given a regmap

Re: [PATCH 3/5] sysinfo: Require that sysinfo_detect be called before other methods

2021-03-04 Thread Simon Glass
Hi Sean, On Mon, 1 Mar 2021 at 15:46, Sean Anderson wrote: > > This updates sysinfo documentation to document that detect() must be > called first. This allows drivers to cache information in detect() and > perform (cheaper) retrieval in the other accessors. This also modifies > the only

Re: [PATCH 0/4] Remove addr parameter from reset_cpu()

2021-03-04 Thread Simon Glass
Hi Harald, On Tue, 2 Mar 2021 at 06:35, Harald Seiler wrote: > > Hi, > > On Tue, 2020-12-15 at 16:47 +0100, Harald Seiler wrote: > > Hi, > > > > this is something I had on my mind for a longer time but never got > > around to actually do until now ... A while back, while working on the > >

Re: [PATCH v4 35/42] test: Rename all linker lists to have a ut_ prefix

2021-03-04 Thread Simon Glass
Hi Heinrich, On Thu, 4 Mar 2021 at 10:28, Heinrich Schuchardt wrote: > > On 3/4/21 2:51 PM, Simon Glass wrote: > > At present each test suite has its own portion of the linker_list section > > of the image, but other lists are interspersed. This makes it hard to > > enumerate all the available

[PATCHv3] arm64: gic-v3-its: Clear the Pending table before enabling LPIs

2021-03-04 Thread Zhiqiang Hou
From: Hou Zhiqiang The GICv3 RM requires "The first 1KB of memory for the LPI Pending tables must contain only zeros on initial allocation, and this must be visible to the Redistributors, or else the effect is UNPREDICTABLE". And as the following statement, we here clear the whole Pending

[PATCH 3/4] pinctrl: mediatek: do not probe gpio driver if not enabled

2021-03-04 Thread Weijie Gao
The mtk pinctrl driver is a combination driver with support for both pinctrl and gpio. When this driver is used in SPL, gpio support may not be enabled, and this will result in a compilation error. To fix this, macros are added to make sure gpio related code will only be compiled when gpio

[PATCH 0/4] Minor fixes for MediaTek pinctrl driver

2021-03-04 Thread Weijie Gao
This patch series provides fixes for MediaTek pinctrl driver common parts and mt7629. Sam Shih (2): pinctrl: mediatek: fix wrong assignment in mtk_get_pin_name pinctrl: mediatek: add get_pin_muxing ops for mediatek pinctrl Weijie Gao (2): pinctrl: mediatek: do not probe gpio driver if not

[PATCH 1/4] pinctrl: mediatek: fix wrong assignment in mtk_get_pin_name

2021-03-04 Thread Weijie Gao
From: Sam Shih This is a bug fix for mtk pinctrl common part. Appearently pins should be used instead of grps in mtk_get_pin_name(). Signed-off-by: Sam Shih --- drivers/pinctrl/mediatek/pinctrl-mtk-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 4/4] pinctrl: mt7629: add jtag function and pin group

2021-03-04 Thread Weijie Gao
The EPHY LEDs of mt7629 can be used as JTAG. This patch adds the jtag pin group to the pinctrl driver. Signed-off-by: Weijie Gao --- drivers/pinctrl/mediatek/pinctrl-mt7629.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/pinctrl/mediatek/pinctrl-mt7629.c

[PATCH 2/4] pinctrl: mediatek: add get_pin_muxing ops for mediatek pinctrl

2021-03-04 Thread Weijie Gao
From: Sam Shih This patch add get_pin_muxing support for mediatek pinctrl drivers Signed-off-by: Sam Shih --- drivers/pinctrl/mediatek/pinctrl-mtk-common.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c

Re: [RFC PATCH u-boot 01/12] build: use thin archives instead of incremental linking

2021-03-04 Thread Bin Meng
Hi Marek, On Wed, Mar 3, 2021 at 12:13 PM Marek Behún wrote: > > Using thin archives instead of incremental linking > - saves disk space > - works better with dead code elimination > - prepares for potential LTO The commit message is a little bit confusing. This commit actually does 2 things:

Re: Habv4 on imx8m

2021-03-04 Thread Frieder Schrempf
Hi Fabio, On 12.01.21 17:06, Stefano Babic wrote: On 12.01.21 16:21, Fabio Estevam wrote: Hi Stefano, On Tue, Jan 12, 2021 at 12:03 PM Stefano Babic wrote: Hi Peng, Fabio, I accidental saw this code: arch/arm/mach-imx/imx8m/soc.c:#if defined(CONFIG_IMX_HAB) but then

[PATCH BUGFIX u-boot-marvell] ddr: marvell: axp: align signature of mv_xor_mem_init() with a38x

2021-03-04 Thread Marek Behún
In arch/arm/mach-mvebu/dram.c we always include axp's xor.h for common XOR definitions, regardless whether we compile for axp or a38x. But the declaration of this function has a different signature in axp's xor.h from the one used in a38x' implementation - one parameter is u64 instead of u32.

Re: [RFC PATCH u-boot 00/12] U-Boot LTO (Sandbox + ARM Nokia RX-51)

2021-03-04 Thread Marek Behun
On Wed, 3 Mar 2021 16:36:05 -0500 Tom Rini wrote: > So, as I start testing things locally with two additional changes (1. > LTO by default 2. No ffunction/data-sections with LTO) we see: > https://gist.github.com/trini/350ab850c42293563228b8d68a1bb89a > as the detailed size reduction. This also

[PATCH] imx8mn_ddr4_evk: Allow booting the kernel by default

2021-03-04 Thread Fabio Estevam
Currently it is not possible to boot Linux from the SD card by default. Make the necessary adjustments to allow it. Reported-by: Peter Bergin Signed-off-by: Fabio Estevam --- configs/imx8mn_ddr4_evk_defconfig | 1 + include/configs/imx8mn_evk.h | 4 ++-- 2 files changed, 3 insertions(+),

Re: [PATCH 3/5] board/Synology: Unify legacy kernel support

2021-03-04 Thread Stefan Roese
On 03.03.21 01:55, Phil Sutter wrote: Move the relevant bits from ds109.{c,h} into common/ and adjust the code to fit both DS109 and DS414. Moreover: * Introduce syno_board_id() which translates CONFIG_MACH_TYPE into the expected board ID tag value. * Properly initialize isusbhost, mac and

Re: [PATCH 5/5] ds414: Add sample u-boot update command

2021-03-04 Thread Stefan Roese
On 03.03.21 01:55, Phil Sutter wrote: Signed-off-by: Phil Sutter It's common practice to add some minimal text in the commit text, even for simple patches. One short question below... --- include/configs/ds414.h | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git

Re: [PATCH] arm: mvebu: Espressobin: Enable additional options

2021-03-04 Thread Stefan Roese
On 03.03.21 11:34, Pali Rohár wrote: Enable support for NVMe disks which can be connected to mPCIe slot via M.2 reduction. Enable btrfs and squashfs filesystems which are used by more Linux distributions. And enable fsuuid and setexpr commands which can be useful in scripting. Signed-off-by:

Re: Habv4 on imx8m

2021-03-04 Thread Fabio Estevam
Hi Frieder, On Thu, Mar 4, 2021 at 5:23 AM Frieder Schrempf wrote: > Is this still on your list? > It would be great if you could send a patch for this. Thanks for the reminder. I have just sent the patch.

[PATCH 1/2] video: dw_mipi_dsi: missing device to log debug

2021-03-04 Thread Patrick Delaunay
From: Yannick Fertre Missing udevice to struct dw_mipi_dsi to log trace. Signed-off-by: Yannick Fertre Signed-off-by: Patrick Delaunay --- drivers/video/dw_mipi_dsi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/video/dw_mipi_dsi.c b/drivers/video/dw_mipi_dsi.c index

[PATCH 2/2] video: dw_mipi_dsi: update log of dphy_enable

2021-03-04 Thread Patrick Delaunay
From: Yannick Fertre The DSI phy can be turned on from the DSI digital interface in the dphy_enable() function or from a dedicated DSI phy "wrapper" in phy_ops->init() function. If the STM32MP1 case, the wrapper is used then the dphy_enable() "warning" traces are not relevant. This patch moves

Re: [PATCH 4/5] ds414: Auto-populate env if appropriate

2021-03-04 Thread Stefan Roese
On 03.03.21 01:55, Phil Sutter wrote: Define a misc_init_r() which calls "syno populate_env" if the environment seems incomplete (or default), indicated by missing "ethaddr" variable. With this in place, no random MAC address fallback is needed anymore. Signed-off-by: Phil Sutter ---

Re: [PATCH 5/5] ds414: Add sample u-boot update command

2021-03-04 Thread Stefan Roese
On 04.03.21 14:28, Phil Sutter wrote: On Thu, Mar 04, 2021 at 02:09:34PM +0100, Stefan Roese wrote: On 03.03.21 01:55, Phil Sutter wrote: Signed-off-by: Phil Sutter It's common practice to add some minimal text in the commit text, even for simple patches. I should learn to put less

Re: [PATCH 3/5] board/Synology: Unify legacy kernel support

2021-03-04 Thread Phil Sutter
On Thu, Mar 04, 2021 at 02:03:58PM +0100, Stefan Roese wrote: > On 03.03.21 01:55, Phil Sutter wrote: > > Move the relevant bits from ds109.{c,h} into common/ and adjust the code > > to fit both DS109 and DS414. Moreover: > > > > * Introduce syno_board_id() which translates CONFIG_MACH_TYPE into

Re: [PATCH 2/5] configs: ds414: Enable XHCI_PCI by default

2021-03-04 Thread Phil Sutter
On Thu, Mar 04, 2021 at 02:00:50PM +0100, Stefan Roese wrote: > On 03.03.21 01:55, Phil Sutter wrote: > > With the recent fixes in pci_mvebu and xhci-pci drivers, the two rear > > USB3 ports are finally usable and accessing them no longer hangs the > > system. > > > > Signed-off-by: Phil Sutter

Re: [PATCH u-boot-marvell] ddr: marvell: a38x: Sync code with Marvell mv-ddr-marvell repository

2021-03-04 Thread Stefan Roese
On 02.03.21 11:17, Pali Rohár wrote: This syncs drivers/ddr/marvell/a38x/ with the master branch of repository https://github.com/MarvellEmbeddedProcessors/mv-ddr-marvell.git up to the commit 7c351731d196 ("Merge pull request #29 from pali/sync-a38x-uboot"). This patch was created by following

Re: Dead code CONFIG_ARMADA_39X?

2021-03-04 Thread Stefan Roese
On 03.03.21 11:21, Pali Rohár wrote: Hello! I see in more U-Boot files check for ifdef CONFIG_ARMADA_39X but I do not see that CONFIG_ARMADA_39X could be defined in some header or board code. So does it mean that all code under ifdef CONFIG_ARMADA_39X is dead? Has U-Boot support for Marvell

[PATCH] video: stm32: remove all child of DSI bridge when its probe failed

2021-03-04 Thread Patrick Delaunay
From: Patrick Delaunay Remove the child device of the STM32 DSI bridge when the driver probe failed to stop futher probe request on panels used with STMicroelectronics board (orisetech_otm8009a.c or raydium-rm68200.c driver). This patch avoid the trace "cannot get reset GPIO" when STM32MP157

Re: [PATCH 1/5] ds414: Add a Kconfig defining some strings

2021-03-04 Thread Stefan Roese
On 03.03.21 01:55, Phil Sutter wrote: A rather cosmetic change to conform with other board definitions. Signed-off-by: Phil Sutter Reviewed-by: Stefan Roese Thanks, Stefan

Re: [PATCH 2/5] configs: ds414: Enable XHCI_PCI by default

2021-03-04 Thread Stefan Roese
On 03.03.21 01:55, Phil Sutter wrote: With the recent fixes in pci_mvebu and xhci-pci drivers, the two rear USB3 ports are finally usable and accessing them no longer hangs the system. Signed-off-by: Phil Sutter Reviewed-by: Stefan Roese Thanks, Stefan

Re: [PATCH] pci: Mark 64bit Memory BARs as such

2021-03-04 Thread Stefan Roese
On 03.03.21 01:57, Phil Sutter wrote: Just a bit more info to the reader. Signed-off-by: Phil Sutter --- drivers/pci/pci_auto.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/pci/pci_auto.c b/drivers/pci/pci_auto.c index da76148c58398..05663c72b4b84 100644 ---

Re: [PATCH 4/5] ds414: Auto-populate env if appropriate

2021-03-04 Thread Stefan Roese
On 04.03.21 14:20, Phil Sutter wrote: On Thu, Mar 04, 2021 at 02:06:01PM +0100, Stefan Roese wrote: On 03.03.21 01:55, Phil Sutter wrote: Define a misc_init_r() which calls "syno populate_env" if the environment seems incomplete (or default), indicated by missing "ethaddr" variable. With this

Re: [PATCH 5/5] ds414: Add sample u-boot update command

2021-03-04 Thread Phil Sutter
On Thu, Mar 04, 2021 at 02:09:34PM +0100, Stefan Roese wrote: > On 03.03.21 01:55, Phil Sutter wrote: > > Signed-off-by: Phil Sutter > > It's common practice to add some minimal text in the commit text, > even for simple patches. I should learn to put less meaningful subjects in those cases so

[PATCH] imx: Add IMX_HAB support for i.MX7ULP and i.MX8M

2021-03-04 Thread Fabio Estevam
i.MX7ULP and i.MX8M may also use HAB. Add support for these platforms. Signed-off-by: Fabio Estevam --- arch/arm/mach-imx/Kconfig| 2 +- arch/arm/mach-imx/imx8m/Kconfig | 1 + arch/arm/mach-imx/mx7ulp/Kconfig | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git

Re: Habv4 on imx8m

2021-03-04 Thread Stefano Babic
On 04.03.21 12:18, Fabio Estevam wrote: Hi Frieder, On Thu, Mar 4, 2021 at 5:23 AM Frieder Schrempf wrote: Is this still on your list? It would be great if you could send a patch for this. Thanks for the reminder. I have just sent the patch. I forgot it as well, it is just to extend the

Re: [PATCH 1/2] watchdog: Add booke watchdog driver

2021-03-04 Thread Stefan Roese
On 03.03.21 02:39, Chris Packham wrote: Add a driver for the PowerPC Book E watchdog driver that is present on a number of Freescale/NXP SoCs. Signed-off-by: Chris Packham --- drivers/watchdog/Kconfig | 7 +++ drivers/watchdog/Makefile| 1 + drivers/watchdog/booke_wdt.c | 107

Re: [PATCH 4/5] ds414: Auto-populate env if appropriate

2021-03-04 Thread Phil Sutter
On Thu, Mar 04, 2021 at 02:06:01PM +0100, Stefan Roese wrote: > On 03.03.21 01:55, Phil Sutter wrote: > > Define a misc_init_r() which calls "syno populate_env" if the > > environment seems incomplete (or default), indicated by missing > > "ethaddr" variable. With this in place, no random MAC

Re: [PATCH] usb: host: ehci-vf: Fix portnr initialization

2021-03-04 Thread Simon Glass
+U-Boot Mailing List On Thu, 4 Mar 2021 at 03:50, Dominik Wild wrote: > > Hi Simon > > Okay, I had another look and figured that you worked on sequence numbers in > December. The thing is that I started the bisect from v2021.01 and up to this > version the sequence number was always -1. But I

Re: [PATCH BUGFIX u-boot-marvell] ddr: marvell: axp: align signature of mv_xor_mem_init() with a38x

2021-03-04 Thread Stefan Roese
On 04.03.21 11:23, Marek Behún wrote: In arch/arm/mach-mvebu/dram.c we always include axp's xor.h for common XOR definitions, regardless whether we compile for axp or a38x. But the declaration of this function has a different signature in axp's xor.h from the one used in a38x' implementation -

[PATCH v4 14/42] test: Move dm_extended_scan() to test_pre_run()

2021-03-04 Thread Simon Glass
Move this step over to the pre-run function. Signed-off-by: Simon Glass --- (no changes since v1) test/dm/test-dm.c | 3 --- test/test-main.c | 7 +++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/test/dm/test-dm.c b/test/dm/test-dm.c index 69a0349d04c..4cb0da13b7c

[PATCH v4 12/42] test: Create pre/post-run functions

2021-03-04 Thread Simon Glass
Split out the test preparation into a separation function before expanding it. Add a post-run function as well, currently empty. Signed-off-by: Simon Glass --- (no changes since v1) include/test/ut.h | 20 test/test-main.c | 41 +++--

[PATCH v4 17/42] test: Drop mallinfo() work-around

2021-03-04 Thread Simon Glass
This is not needed now. Drop it. Signed-off-by: Simon Glass --- (no changes since v1) test/dm/test-dm.c | 2 -- test/test-main.c | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/test/dm/test-dm.c b/test/dm/test-dm.c index 18877c7ae56..d1d83e34782 100644 ---

[PATCH v4 13/42] test: Call test_pre/post_run() from driver model tests

2021-03-04 Thread Simon Glass
Ultimately we want to get rid of the special driver model test init and use test_pre_run() and test_post_run() for all tests. As a first step, use those function to handle console recording. For now we need a special case for setting uts->start, but that wil go away once all init is in one place.

[PATCH v4 16/42] test: Move dm_scan_plat() to test_pre_run()

2021-03-04 Thread Simon Glass
Move this step over to the pre-run function. Signed-off-by: Simon Glass --- (no changes since v1) test/dm/test-dm.c | 2 -- test/test-main.c | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/test/dm/test-dm.c b/test/dm/test-dm.c index c2e1a1b9207..18877c7ae56 100644 ---

[PATCH v4 28/42] test: Use a local variable for test state

2021-03-04 Thread Simon Glass
At present we use a global test state for all driver-model tests. Make use of a local struct like we do with the other tests. To make this work, add functions to get and set this state. When a test starts, the state is set (so it can be used in the test). When a test finishes, the state is unset,

  1   2   3   >