[PATCH v2 09/23] compulab: Drop cm_t35

2020-05-27 Thread Jagan Teki
DM, DM_SPI and other driver model migration deadlines are expired for this board. Drop it. Cc: Igor Grinberg Signed-off-by: Jagan Teki --- Changes for v2: - update commit message head arch/arm/mach-omap2/omap3/Kconfig | 7 - board/compulab/cm_t35/Kconfig | 12 -

[PATCH v2 06/23] siemens: pxm2: Enable DM_SPI, DM_SPI_FLASH

2020-05-27 Thread Jagan Teki
Enable DM_SPI, DM_SPI_FLASH for siemens pxm2 board. Build is fine, but not tested. Cc: Samuel Egli Signed-off-by: Jagan Teki --- Changes for v2: - new patch configs/pxm2_defconfig | 4 1 file changed, 4 insertions(+) diff --git a/configs/pxm2_defconfig b/configs/pxm2_defconfig index

[PATCH v2 10/23] overo: Drop omap3 overo

2020-05-27 Thread Jagan Teki
OF_CONTROL, DM_SPI and other driver model migration deadlines are expired for this board. Drop it. Cc: Steve Sakoman Signed-off-by: Jagan Teki --- Changes for v2: - none arch/arm/mach-omap2/omap3/Kconfig | 13 - board/overo/Kconfig | 9 - board/overo/MAINTAINERS |

[PATCH v2 07/23] siemens: rut: Enable DM_SPI, DM_SPI_FLASH

2020-05-27 Thread Jagan Teki
Enable DM_SPI, DM_SPI_FLASH for siemens rut board. Build is fine, but not tested. Cc: Samuel Egli Signed-off-by: Jagan Teki --- Changes for v2: - new patch configs/rut_defconfig | 4 1 file changed, 4 insertions(+) diff --git a/configs/rut_defconfig b/configs/rut_defconfig index

[PATCH v2 05/23] siemens: draco: Enable DM_SPI, DM_SPI_FLASH

2020-05-27 Thread Jagan Teki
Enable DM_SPI, DM_SPI_FLASH for siemens draco board. Build is fine, but not tested. Cc: Samuel Egli Signed-off-by: Jagan Teki --- Changes for v2: - new patch configs/draco_defconfig| 4 configs/etamin_defconfig | 4 configs/rastaban_defconfig

Re: [PATCH v2 00/23] spi: dm-conversion (part1)

2020-05-27 Thread Simon Glass
Hi Jagan, On Wed, 27 May 2020 at 06:56, Jagan Teki wrote: > > This series dropped nondm code from omap3, enabled > a few boards with DM_SPI, DM_SPI_FLASH and finally > dropped boards which didn't have DM, OF_CONTROL. > > Chages for v2: > - included updates on missing boards which used omap3 spi

RE: [PATCH 3/5] ARM: dts: stm32: Add alternate pinmux for I2C2 pins

2020-05-27 Thread Patrick DELAUNAY
Hi Marek, > From: Marek Vasut > Sent: mardi 26 mai 2020 04:30 > > Add another mux option for I2C2 pins, this is used on AV96 board. > > Signed-off-by: Marek Vasut > Cc: Patrick Delaunay > Cc: Patrice Chotard > --- > arch/arm/dts/stm32mp15-pinctrl.dtsi | 17 + > 1 file

Re: [PATCH 3/4] x86: coral: Correct some FSP-S settings

2020-05-27 Thread Simon Glass
Hi Bin, On Tue, 26 May 2020 at 02:15, Bin Meng wrote: > > Hi Simon, > > On Tue, May 26, 2020 at 4:16 AM Simon Glass wrote: > > > > Some settings were modified slightly in the device-tree conversion. Return > > these to their original values. This makes WiFi work again. > > > > Signed-off-by:

[PATCH v2 3/5] powerpc, qe: add DTS support for parallel I/O ports

2020-05-27 Thread Heiko Schocher
add DM support for parallel I/O ports on QUICC Engine Block Signed-off-by: Heiko Schocher --- Open questions / discussion: - I let the old none DM based implementation in code so boards should work with old implementation. This should be removed if all boards are converted to DM/DTS. -

[PATCH v2 1/5] mpc83xx: remove unneeded extern declaration in cpu_init

2020-05-27 Thread Heiko Schocher
remove extern void qe_init(uint qe_base); extern void qe_reset(void); and include fsl_qe.h instead. Signed-off-by: Heiko Schocher --- Changes in v2: - new in v2 arch/powerpc/cpu/mpc83xx/cpu_init.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

[PATCH v2 0/5] powerpc, mpc83xx: add DM_ETH support

2020-05-27 Thread Heiko Schocher
This patch series adds DM ethernet support for mpc83xx based keymile boards. Travis build: https://travis-ci.org/github/hsdenx/u-boot-test/builds/691607214 Changes in v2: - new in v2 - remove RFC - fixed Codingstyle errors, therefore new patch powerpc, mpc83xx: fix codingstyle issues for

Re: [PATCH 01/14] spi: fsl_dspi: Drop nondm code

2020-05-27 Thread Jagan Teki
On Tue, May 26, 2020 at 11:15 PM Jagan Teki wrote: > > Drop the nondm code from fsl_dspi.c since there > is no board or any other code using it. > > Signed-off-by: Jagan Teki > --- Applied to u-boot-spi/master

[PATCH v2 01/23] configs: igep00x0: Enable DM_SPI

2020-05-27 Thread Jagan Teki
Enable DM_SPI for igep00x0 board. Build is fine, but not tested. Cc: Enric Balletbo i Serra Signed-off-by: Jagan Teki --- Changes for v2: - none configs/igep00x0_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/igep00x0_defconfig b/configs/igep00x0_defconfig index

Re: [PATCH 1/1] fastboot: add support for 'reboot fastboot' command

2020-05-27 Thread Alex Kiernan
On Wed, May 27, 2020 at 12:14 PM Roman Kovalivskyi wrote: > > From: Roman Stratiienko > > Android 10 adds support for dynamic partitions and in order to support > them userspace fastboot must be used[1]. New tool fastbootd is > included into recovery image. > > Userspace fastboot works from

[PATCH v2 0/4] x86: Correct SPI memory-mapping query

2020-05-27 Thread Simon Glass
This little series makes the SPI memory-mapping query work on all current x86 boards where possible, returning an error code (rather than hanging) when it fails. It replaces the previous patch at [1]. Unfortunately it is quite a bit more complicated. This fixes booting on link and samus. It also

[PATCH v2 2/4] x86: spi: Rewrite logic for obtaining the SPI memory map

2020-05-27 Thread Simon Glass
At present this logic does not work on link and samus, since their SPI controller is not a PCI device, but a child of the PCH. Unfortunately, fixing this involves a lot of extra logic. Still, this was requested in the review of the fix-up patch, so here it is. Signed-off-by: Simon Glass Fixes:

[PATCH v2 4/4] x86: mrccache: Allow use before driver model is active

2020-05-27 Thread Simon Glass
The change to avoid searching the device tree does not work on boards wich don't have driver model set up this early, for example minnowmax. Put back the old code (converted to livetree) as a fallback for these devices. Also update the documentation. This is tested on minnowmax, link, samus and

[PATCH v2 1/4] x86: spi: Add a way to access the SPI mapping via registers

2020-05-27 Thread Simon Glass
At present the PCI BDF (bus/device/function) is needed to access the SPI mapping, since the registers are at BAR0. This doesn't work when PCI auto-config has not been done yet, since BARs are unassigned. Add another way to find the mapping, using the MMIO base, if the caller knows this. Also add

[PATCH v2 3/4] x86: spl: Print the error on SPL failure

2020-05-27 Thread Simon Glass
The error code is often useful to figure out what is going on. Printing it does not increase code size much, so print out the error and then hang. Signed-off-by: Simon Glass --- Changes in v2: None arch/x86/lib/spl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: rk3399: SPI boot: Return from ROM unsuccessful (with TPL)

2020-05-27 Thread Jagan Teki
Hi Philipp, On Wed, May 20, 2020 at 5:38 PM Jagan Teki wrote: > > It seems like SPI boot on rk3399 with TPL based is unable to return > from ROM or switching to from TPL to SPL is unsuccessful. > > I have verified board_init_f on spl.c and the control is not even > reached here. On the other

[PATCH v2 4/4] x86: apl: Add hex offsets for registers in FSP-S

2020-05-27 Thread Simon Glass
When comparing hex dumps it is useful to see the offsets of the registers. Add them in where they correspond to a multiple of 16. Possibly it would be useful to have a a command to output the FSP values in human-readable form, making use of the fsp_bindings implementation. Signed-off-by: Simon

[PATCH v2 3/4] x86: coral: Correct some FSP-S settings

2020-05-27 Thread Simon Glass
Some settings were modified slightly in the device-tree conversion. Return these to their original values. This includes some audio settings and a few others that have changed. Note that we still rely on the FSP defaults for most values, so there is no need to specify a value if the FSP default

[PATCH v2 2/4] x86: apl: Add hex offsets for registers in FSP-M

2020-05-27 Thread Simon Glass
When comparing hex dumps it is useful to see the offsets of the registers. Add them in where they correspond to a multiple of 16. Possibly it would be useful to have a a command to output the FSP values in human-readable form, making use of the fsp_bindings implementation. Signed-off-by: Simon

[PATCH v2 1/4] x86: coral: Correct some FSP-M settings

2020-05-27 Thread Simon Glass
Some settings were modified slightly in the device-tree conversion. Return these to their original values. Signed-off-by: Simon Glass --- Changes in v2: None arch/x86/dts/chromebook_coral.dts | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/x86/dts/chromebook_coral.dts

[PATCH v2 4/5] net, qe: add DM support for QE UEC ethernet

2020-05-27 Thread Heiko Schocher
add DM/DTS support for the UEC ethernet on QUICC Engine Block. Signed-off-by: Heiko Schocher --- - I let the old none DM based implementation in code so boards should work with old implementation. This Code should be removed if all boards are converted to DM/DTS. - add the DM based qe

[PATCH v2 5/5] mpc83xx, keymile boards: enable DM_ETH and add DTS

2020-05-27 Thread Heiko Schocher
enable DTS support for keymile mpc83xx based boards. get rid of compile warning: = WARNING == This board does not use CONFIG_DM_ETH (Driver Model for Ethernet drivers). Please update the board to use CONFIG_DM_ETH before the v2020.07 release. Failure to

[PATCH 1/2] sun8i-emac: sun8i-v3s compatibility for sun8i-emac

2020-05-27 Thread Benedikt-Alexander Mokroß
This patch expands the sun8i-emac driver to support the V3s. For this the CLK and RST gates for EMAC and EPHY were added in clk_v3s.c. Signed-off-by: Benedikt-Alexander Mokroß --- drivers/clk/sunxi/clk_v3s.c | 10 -- drivers/net/sun8i_emac.c| 19 +-- 2 files

[PATCH 2/2] sun8i-emac: Added sun8i-v3s-emac example to sun8i-v3s.dtsi

2020-05-27 Thread Benedikt-Alexander Mokroß
This optional patch adds the needed device-tree node to sun8i-v3s.dtsi to enable ethernet for sun8i-v3s boards. Signed-off-by: Benedikt-Alexander Mokroß --- arch/arm/dts/sun8i-v3s.dtsi | 48 + 1 file changed, 48 insertions(+) diff --git

RE: [PATCH 1/5] ARM: stm32: Re-enable KS8851 on DHCOM

2020-05-27 Thread Patrick DELAUNAY
Hi Marek, > From: Marek Vasut > Sent: mardi 26 mai 2020 04:30 > To: u-boot@lists.denx.de > > Since the KS8851 driver is now in, enable the Kconfig entry on DHCOM to make > the second ethernet available. > > Signed-off-by: Marek Vasut > Cc: Patrick Delaunay > Cc: Patrice Chotard > --- >

RE: [PATCH 5/5] ARM: dts: stm32: Disable SDR104 mode on AV96

2020-05-27 Thread Patrick DELAUNAY
Hi Marek, > From: Marek Vasut > Sent: mardi 26 mai 2020 04:30 > > Disable SDR104 mode until we know it is really stable. > > Signed-off-by: Marek Vasut > Cc: Patrick Delaunay > Cc: Patrice Chotard > --- > arch/arm/dts/stm32mp15xx-dhcor-avenger96.dts | 1 - > 1 file changed, 1 deletion(-) >

uboot and persistent snapshot booting

2020-05-27 Thread Jori van Dam
Hello das U-boot enthusiasts, I've been working on a buildroot OS for the embedded device my company is developing. Currently I'm looking at optimizing the boot process to be as fast as possible. I've read a bunch of articles about snapshot booting and fixed snapshots to improve startup time.

Re: uboot and persistent snapshot booting

2020-05-27 Thread Michael Nazzareno Trimarchi
Hi On Wed, May 27, 2020 at 4:30 PM Jori van Dam wrote: > > Hello das U-boot enthusiasts, > > I've been working on a buildroot OS for the embedded device my company is > developing. Currently I'm looking at optimizing the boot process to be as > fast as possible. I've read a bunch of articles

Re: [PATCH 1/8] pfla02: Rework excluding NAND from SPL

2020-05-27 Thread Stefano Babic
On 26.05.20 21:06, Tom Rini wrote: > Rather than only enable CONFIG_CMD_NAND for non-SPL builds, move the CMD > options to defconfig and rework the guards to not try and call the > function in SPL builds. > > Cc: Stefano Babic > Signed-off-by: Tom Rini > --- > A grep around for

[PATCH 0/1] Add support for booting into userspace fastboot

2020-05-27 Thread Roman Kovalivskyi
Android 10 adds support for dynamic partitions and in order to support them userspace fastboot must be used[1]. New tool called fastbootd is included into recovery image. Userspace fastboot works from recovery and is launched if: 1) - Dynamic partitioning is enabled 2) - Boot control block has

[PATCH 1/1] fastboot: add support for 'reboot fastboot' command

2020-05-27 Thread Roman Kovalivskyi
From: Roman Stratiienko Android 10 adds support for dynamic partitions and in order to support them userspace fastboot must be used[1]. New tool fastbootd is included into recovery image. Userspace fastboot works from recovery and is launched if: 1) - Dynamic partitioning is enabled 2) - Boot

[U-boot, 2/2] arm: dts: mediatek: enable sgmii mode and mt7531 switch for mt7629

2020-05-27 Thread MarkLee
This patch enable sgmii mode and mt7531 switch support in mt7629 ethernet dts node. Signed-off-by: MarkLee --- arch/arm/dts/mt7629-rfb.dts | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/arch/arm/dts/mt7629-rfb.dts b/arch/arm/dts/mt7629-rfb.dts index

[U-boot, 1/2] eth: mtk-eth: enable mt7629 sgmii mode support in mediatek eth driver

2020-05-27 Thread MarkLee
The sgmii mode init flow is almost the same for all mediatek SoC, the only difference is the register offset(SGMSYS_GEN2_SPEED) is 0x2028 for old chip(mt7622) but changed to 0x128 for newer chip(mt7629 and the following chips). Signed-off-by: MarkLee --- drivers/net/mtk_eth.h | 5 + 1 file

[U-boot,0/2] Enable mt7531 switch support for MT7629

2020-05-27 Thread MarkLee
This patch series enable MT7629 sgmii mode with mt7531 switch support, 1. enable mt7629 sgmii mode support in mediatek eth driver 2. enable mt7629 ethernet dts node with sgmii mode and mt7531 switch support MarkLee (2): eth: mtk-eth: enable mt7629 sgmii mode support

[PATCH] x86: minnowmax: Add support for Winbond flash

2020-05-27 Thread Simon Glass
This allows the use of the Dediprog em100pro so I can test SPI flash on this board in my lab. Signed-off-by: Simon Glass --- board/intel/minnowmax/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/board/intel/minnowmax/Kconfig b/board/intel/minnowmax/Kconfig index

[PATCH v2 00/23] spi: dm-conversion (part1)

2020-05-27 Thread Jagan Teki
This series dropped nondm code from omap3, enabled a few boards with DM_SPI, DM_SPI_FLASH and finally dropped boards which didn't have DM, OF_CONTROL. Chages for v2: - included updates on missing boards which used omap3 spi - added board maintainers Travis-CI:

[PATCH v2 04/23] am335x: igep003x: Enable DM_SPI

2020-05-27 Thread Jagan Teki
Enable DM_SPI for am355x igep003x board. Build is fine, but not tested. Cc: Javier Martínez Canillas Signed-off-by: Jagan Teki --- Changes for v2: - new patch configs/am335x_igep003x_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am335x_igep003x_defconfig

[PATCH v2 02/23] am335x: sl50: Enable DM_SPI

2020-05-27 Thread Jagan Teki
Enable DM_SPI for am355x sl50 board. Build is fine, but not tested. Cc: Enric Balletbo i Serra Signed-off-by: Jagan Teki --- Changes for v2: - new patch configs/am335x_sl50_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am335x_sl50_defconfig

[PATCH v2 03/23] am335x: baltos: Enable DM_SPI

2020-05-27 Thread Jagan Teki
Enable DM_SPI for am355x baltos board. Build is fine, but not tested. Cc: Yegor Yefremov Signed-off-by: Jagan Teki --- Changes for v2: - new patch configs/am335x_baltos_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am335x_baltos_defconfig

Re: [PATCH] spi: cadence_spi: Add octal and quad write support

2020-05-27 Thread Pratyush Yadav
Hi Ley, On 22/05/20 03:53PM, Ley Foon Tan wrote: > In Commit d64077202158 ("spi: cadence_qspi: Move to spi-mem framework") > it removes setting to quad write bit by accident. This commit restores > it back and also adding checking for octal support. > > Fixes: d64077202158 ("spi: cadence_qspi:

[PATCH] mkimage: Default to adding a crc32 hash with '-f auto'

2020-05-27 Thread Simon Glass
This option currently does not add any sort of hash to the images in the FIT. Add a hash node requesting a crc32 checksum, which at least provides some protection. The crc32 value is easily ignored (e.g. in SPL) if not needed. and takes up only about 48 bytes per image, including overhead.

Re: 8e35bb07eb mkimage: Support automatic creating of a FIT without a .its

2020-05-27 Thread Simon Glass
Hi Wolfgang, On Mon, 25 May 2020 at 05:38, Wolfgang Denk wrote: > > Hi Simon, > > your commit 8e35bb07eb (2016-03-14) "mkimage: Support automatic > creating of a FIT without a .its" added the "-f auto" option to > mkimage. While convenient in many situation, I had to notice that > with "-f

[PATCH v2 1/2] tools: k3_gen_x509_cert: Allow selecting early JTAG debug value

2020-05-27 Thread Andrew F. Davis
When authenticating the initial boot binary the ROM will check a debug type value in the certificate and based on that open JTAG access to that core. Make this selectable in the signing tool to allow it to be enabled or disabled based on user command line input. This does not change the default

[PATCH v2 2/2] tools: k3_gen_x509_cert: Set default early HS JTAG access to disabled

2020-05-27 Thread Andrew F. Davis
When authenticating the initial boot binary the ROM will check a debug type value in the certificate and based on that open JTAG access to that core. This only effects HS devices as non-HS device ROM allows JTAG by default. This can be useful for HS developers working in the early boot stage,

RE: [PATCH v2 3/4] riscv: cpu: fixes to display proper CPU features

2020-05-27 Thread Pragnesh Patel
>-Original Message- >From: Sagar Kadam >Sent: 26 May 2020 22:39 >To: u-boot@lists.denx.de; r...@andestech.com; lu...@denx.de >Cc: ja...@amarulasolutions.com; bmeng...@gmail.com; Pragnesh Patel >; sean...@gmail.com; Sagar Kadam > >Subject: [PATCH v2 3/4] riscv: cpu: fixes to display proper

Re: [PATCH v1] x86: acpi: Drop _HID() where enumerated by _ADR()

2020-05-27 Thread Andy Shevchenko
On Tue, May 26, 2020 at 09:19:49PM +0300, Andy Shevchenko wrote: > ACPICA complains that either _HID() or _ADR() should be used. > For General Purpose DMA we may not drop the _ADR() because > the device is enumerated by PCI. Thus, simple drop _HID(). Bin, since now all issues you found, being

Re: [PATCH 1/5] dm: core: Fix devfdt_get_addr_ptr return value

2020-05-27 Thread Matthias Brugger
On 27/05/2020 08:41, Ovidiu Panait wrote: > According to the description of devfdt_get_addr_ptr, this function should > return NULL on failure, but currently it returns (void *)FDT_ADDR_T_NONE. > > This is also a problem because there are two definitions for > dev_read_addr_ptr, depending on

[PATCH 0/8] regmap: Add managed API, regmap fields, regmap config

2020-05-27 Thread Pratyush Yadav
Hi, This series is a re-spin of Jean-Jacques' earlier effort [0], the goal of which was to facilitate porting drivers from the Linux kernel. It adds the managed API, using the same API as Linux. It also adds support for regmap fields. Jean-Jacques' series added support for custom regmap

[PATCH 4/8] regmap: Allow left shifting register offset before access

2020-05-27 Thread Pratyush Yadav
Drivers can configure it to adjust the final read/write location. Signed-off-by: Pratyush Yadav --- drivers/core/regmap.c | 6 +- include/regmap.h | 6 ++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/core/regmap.c b/drivers/core/regmap.c index

[PATCH 2/8] regmap: zero out the regmap on allocation

2020-05-27 Thread Pratyush Yadav
Some fields will be introduced in the regmap structure that should be set to 0 by default. So, once we allocate a regmap, make sure it is zeroed out to avoid unexpected defaults for those values. Signed-off-by: Pratyush Yadav --- drivers/core/regmap.c | 4 +++- 1 file changed, 3 insertions(+),

[PATCH v2 13/23] quipos: Drop omap3 cairo

2020-05-27 Thread Jagan Teki
OF_CONTROL, DM_SPI and other driver model migration deadlines are expired for this board. Drop it. Cc: Albert ARIBAUD (3ADEV) Signed-off-by: Jagan Teki --- Changes for v2: - none arch/arm/mach-omap2/omap3/Kconfig | 8 - board/quipos/cairo/Kconfig| 12 --

[PATCH v2 12/23] logicpd: Drop omap3 zoom1

2020-05-27 Thread Jagan Teki
OF_CONTROL, DM_SPI and other driver model migration deadlines are expired for this board. Drop it. Cc: Nishanth Menon Signed-off-by: Jagan Teki --- Changes for v2: - none arch/arm/mach-omap2/omap3/Kconfig | 8 -- board/logicpd/zoom1/Kconfig | 12 --- board/logicpd/zoom1/MAINTAINERS

[PATCH v2 11/23] pandora: Drop omap3 pandora

2020-05-27 Thread Jagan Teki
OF_CONTROL, DM_SPI and other driver model migration deadlines are expired for this board. Drop it. Cc: Grazvydas Ignotas Signed-off-by: Jagan Teki --- Changes for v2: - CCed board maintainer arch/arm/mach-omap2/omap3/Kconfig | 6 - board/pandora/Kconfig | 9 -

[PATCH v2 15/23] ti: Drop panda board

2020-05-27 Thread Jagan Teki
DM, DM_SPI and other driver model migration deadlines are expired for this board. Drop it. Cc: Lokesh Vutla Signed-off-by: Jagan Teki --- Changes for v2: - none arch/arm/mach-omap2/omap4/Kconfig | 4 - board/ti/panda/Kconfig| 12 -- board/ti/panda/MAINTAINERS| 6 -

[PATCH v2 14/23] gumstix: Drop duovero

2020-05-27 Thread Jagan Teki
DM, DM_SPI and other driver model migration deadlines are expired for this board. Drop it. Cc: Ash Charles Signed-off-by: Jagan Teki --- Changes for v2: - Cced board maintainer arch/arm/mach-omap2/omap4/Kconfig| 4 - board/gumstix/duovero/Kconfig| 12 -

[PATCH v2 16/23] ti: Drop sdp4430 board

2020-05-27 Thread Jagan Teki
DM, DM_SPI and other driver model migration deadlines are expired for this board. Drop it. Cc: Lokesh Vutla Signed-off-by: Jagan Teki --- Changes for v2: - Cced board maintainer arch/arm/mach-omap2/omap4/Kconfig | 4 -- board/ti/sdp4430/Kconfig| 15 -

[PATCH v2 08/23] compulab: Drop cm_t54

2020-05-27 Thread Jagan Teki
DM, DM_SPI and other driver model migration deadlines are expired for this board. Drop it. Cc: Dmitry Lifshitz Signed-off-by: Jagan Teki --- Changes for v2: - none arch/arm/mach-omap2/omap5/Kconfig | 4 - board/compulab/cm_t54/Kconfig | 12 -- board/compulab/cm_t54/MAINTAINERS | 6 -

RE: [PATCH v2 1/4] fu540: prci: add request and free clock handlers

2020-05-27 Thread Pragnesh Patel
>-Original Message- >From: Sagar Kadam >Sent: 26 May 2020 22:39 >To: u-boot@lists.denx.de; r...@andestech.com; lu...@denx.de >Cc: ja...@amarulasolutions.com; bmeng...@gmail.com; Pragnesh Patel >; sean...@gmail.com; Sagar Kadam > >Subject: [PATCH v2 1/4] fu540: prci: add request and free

[PATCH v2 2/5] powerpc, qe: fix codingstyle issues for drivers/qe

2020-05-27 Thread Heiko Schocher
fix Codingstyle for files in drivers/qe, remaining following check warnings: $ ./scripts/checkpatch.pl -f drivers/qe/uec.h CHECK: Macro argument reuse '_bd' - possible side-effects? +#define BD_ADVANCE(_bd, _status, _base)\ + (((_status) & BD_WRAP) ? (_bd) = \ +((struct

Re: [PATCH v2 20/23] phytec: Drop pcm051

2020-05-27 Thread Lars Poeschel
On Wed, May 27, 2020 at 06:26:34PM +0530, Jagan Teki wrote: > OF_CONTROL, DM_SPI and other driver model migration deadlines > are expired for this board. > > Drop it. Acked-by: Lars Poeschel > > Cc: Lars Poeschel > Signed-off-by: Jagan Teki > --- > Changes for v2: > - new patch > >

[PATCH 5/8] regmap: Add regmap_init_mem_range()

2020-05-27 Thread Pratyush Yadav
Right now, the base of a regmap can only be obtained from the device tree. This makes it impossible for devices which calculate the base at runtime to use a regmap. An example of such a device is the Cadence Sierra PHY. Allow creating a regmap with one range whose start and size can be specified

[PATCH 3/8] regmap: Allow specifying read/write width

2020-05-27 Thread Pratyush Yadav
Right now, regmap_read() and regmap_write() read/write a 32-bit value only. To write other lengths, regmap_raw_read() and regmap_raw_write() need to be used. This means that any driver ported from Linux that relies on regmap_{read,write}() to know the size already has to be updated at each

[PATCH 6/8] regmap: Allow devices to specify regmap range start and size in config

2020-05-27 Thread Pratyush Yadav
Some devices need to calculate the regmap base address at runtime. This makes it impossible to use device tree to get the regmap base. Instead, allow devices to specify it in the regmap config. This will create a regmap with a single range that corresponds to the start and size given by the

[PATCH 1/8] regmap: Add devm_regmap_init()

2020-05-27 Thread Pratyush Yadav
From: Jean-Jacques Hiblot Most of new linux drivers are using managed-API to allocate resources. To ease porting drivers from linux to U-Boot, introduce devm_regmap_init() as a managed API to get a regmap from the device tree. Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Simon Glass

[PATCH 7/8] regmap: Add support for regmap fields

2020-05-27 Thread Pratyush Yadav
From: Jean-Jacques Hiblot A regmap field is an abstraction available in Linux. It provides to access bitfields in a regmap without having to worry about shifts and masks. Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Simon Glass Signed-off-by: Pratyush Yadav --- drivers/core/regmap.c |

RE: [PATCH v2 4/4] riscv: cpu: check and append L1 cache to cpu features

2020-05-27 Thread Pragnesh Patel
Hi Sagar, >-Original Message- >From: Sagar Kadam >Sent: 26 May 2020 22:39 >To: u-boot@lists.denx.de; r...@andestech.com; lu...@denx.de >Cc: ja...@amarulasolutions.com; bmeng...@gmail.com; Pragnesh Patel >; sean...@gmail.com; Sagar Kadam > >Subject: [PATCH v2 4/4] riscv: cpu: check and

[PATCH 8/8] test: dm: Add tests for regmap managed API and regmap fields

2020-05-27 Thread Pratyush Yadav
From: Jean-Jacques Hiblot The tests rely on a dummy driver to allocate and initialize the regmaps and the regmap fields using the managed API. The first test checks if the regmap config fields like width, reg_offset_shift, range specifiers, etc work. The second test checks if regmap fields

[PATCH 0/2] sun8i-emac: sun8i-v3s compatibility for sun8i-emac

2020-05-27 Thread Benedikt-Alexander Mokroß
The V3s shares nearly the same mac and phy to the H3. Therefore, the sun8i-emac driver which already supports the H3 can be extended to support the V3s with some small adjustments. For this the CLK and RST gates for EMAC and EPHY were added and the sun8i-emac driver was extended to accept the

[PATCH v3 0/4] Fix the SPL loading of a FIT image from NAND

2020-05-27 Thread Dario Binacchi
Loading u-boot and its fdt from a NAND memory area with bad blocks led to the creation of these patches. Next, the output generated by the script used to flash the NAND of the SOC that caused the issue. ** Rewriting /dev/mtd0 with /mnt/MLO Erasing 128 Kibyte @ 0 -- 100 % complete Writing

[PATCH v3 1/4] spl: fix format of function documentation

2020-05-27 Thread Dario Binacchi
U-Boot adopted the kernel-doc annotation style. cc: Michael Trimarchi Signed-off-by: Dario Binacchi --- Changes in v3: None Changes in v2: None include/spl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spl.h b/include/spl.h index b31c9bb4ab..580e4e024f 100644

[PATCH v3 2/4] spl: fit: fail fit loading in case of FDT appending error

2020-05-27 Thread Dario Binacchi
If uboot does not embed its device tree and the FIT loading function returns error in case of failure in the FDT append, the redundant itb image could be loaded. cc: Michael Trimarchi Signed-off-by: Dario Binacchi Reviewed-by: Michael Trimarchi --- Changes in v3: None Changes in v2: -

[PATCH v3 3/4] spl: fit: nand: fix fit loading in case of bad blocks

2020-05-27 Thread Dario Binacchi
The offset at which the image to be loaded from NAND is located is retrieved from the itb header. The presence of bad blocks in the area of the NAND where the itb image is located could invalidate the offset which must therefore be adjusted taking into account the state of the sectors concerned.

[PATCH v3 4/4] spl: fit: improve spl_nand_fit_read(...) readability

2020-05-27 Thread Dario Binacchi
Replacing the ret variable with err and handling first the error condition about the value returned by the spl_nand_fit_read routine, improves the code readability. Furthermore, the 'else' int the 'else return ret' instruction was useless. cc: Michael Trimarchi Signed-off-by: Dario Binacchi ---

[PATCH v2 21/23] silica: Drop pengwyn

2020-05-27 Thread Jagan Teki
OF_CONTROL, DM_SPI and other driver model migration deadlines are expired for this board. Drop it. Cc: Lothar Felten Signed-off-by: Jagan Teki --- Changes for v2: - new patch arch/arm/Kconfig | 1 - arch/arm/mach-omap2/am33xx/Kconfig | 7 - board/silica/pengwyn/Kconfig

[PATCH v2 18/23] birdland: Drop bav335x

2020-05-27 Thread Jagan Teki
OF_CONTROL, DM_SPI and other driver model migration deadlines are expired for this board. Drop it. Cc: Gilles Gameiro Signed-off-by: Jagan Teki --- Changes for v2: - new patch arch/arm/Kconfig | 1 - arch/arm/mach-omap2/am33xx/Kconfig | 15 -

[PATCH v2 20/23] phytec: Drop pcm051

2020-05-27 Thread Jagan Teki
OF_CONTROL, DM_SPI and other driver model migration deadlines are expired for this board. Drop it. Cc: Lars Poeschel Signed-off-by: Jagan Teki --- Changes for v2: - new patch arch/arm/Kconfig | 1 - arch/arm/mach-omap2/am33xx/Kconfig | 7 - board/phytec/pcm051/Kconfig

[PATCH v2 19/23] gumstix: Drop pepper

2020-05-27 Thread Jagan Teki
OF_CONTROL, DM_SPI and other driver model migration deadlines are expired for this board. Drop it. Cc: Ash Charles Signed-off-by: Jagan Teki --- Changes for v2: - new patch arch/arm/Kconfig | 1 - arch/arm/mach-omap2/am33xx/Kconfig | 7 - board/gumstix/pepper/Kconfig

[PATCH v2 17/23] ti: Drop omap5 uevm

2020-05-27 Thread Jagan Teki
DM, DM_SPI and other driver model migration deadlines are expired for this board. Drop it. Cc: Lokesh Vutla Signed-off-by: Jagan Teki --- Changes for v2: - none arch/arm/mach-omap2/omap5/Kconfig | 4 - board/ti/omap5_uevm/Kconfig | 12 -- board/ti/omap5_uevm/MAINTAINERS | 6 -

[PATCH v2 23/23] doc: driver-model: Update SPI migration status

2020-05-27 Thread Jagan Teki
ompa3 and fsl_dspi are fully converted into DM_SPI. Update it. Signed-off-by: Jagan Teki --- Changes for v2: - none doc/driver-model/migration.rst | 2 -- 1 file changed, 2 deletions(-) diff --git a/doc/driver-model/migration.rst b/doc/driver-model/migration.rst index 2c0e2c7f06..408643974c

[PATCH v2 22/23] spi: omap3: Drop nondm code

2020-05-27 Thread Jagan Teki
Now all boards are using this omap3 spi driver in dm model, so drop the nondm code. Signed-off-by: Jagan Teki --- Changes for v2: - none drivers/spi/Kconfig | 14 ++--- drivers/spi/omap3_spi.c | 136 2 files changed, 7 insertions(+), 143

RE: [PATCH 2/5] ARM: stm32: Hog GPIO PF7 high on DHCOR to unlock SPI NOR nWP

2020-05-27 Thread Patrick DELAUNAY
Hi Marek, > From: Marek Vasut > Sent: mardi 26 mai 2020 04:30 > > The SPI NOR nWP line is connected to GPIO PF7 on the SoM, pull the GPIO line > high by default to clear SPI NOR WP. > > Signed-off-by: Marek Vasut > Cc: Patrick Delaunay > Cc: Patrice Chotard > --- >

Re: [PATCH v2 00/23] spi: dm-conversion (part1)

2020-05-27 Thread Jagan Teki
Hi Simon, On Wed, May 27, 2020 at 6:57 PM Simon Glass wrote: > > Hi Jagan, > > On Wed, 27 May 2020 at 06:56, Jagan Teki wrote: > > > > This series dropped nondm code from omap3, enabled > > a few boards with DM_SPI, DM_SPI_FLASH and finally > > dropped boards which didn't have DM, OF_CONTROL. >

Re: Please pull u-boot-x86

2020-05-27 Thread Tom Rini
On Wed, May 27, 2020 at 02:45:19PM +0800, Bin Meng wrote: > Hi Tom, > > This PR includes the following x86 changes for v2020.07 release: > > - Use device tree for FSP-M and FSP-S configuration on Intel Apollo Lake > - Add SMBIOS cbmem entry parsing for coreboot > - Various clean-ups to CBFS

[PATCH 03/24] arm: Remove configs/BSC9132QDS_NAND_DDRCLK100_SECURE_defconfig board

2020-05-27 Thread Jagan Teki
This board has not been converted to CONFIG_DM_SPI by the deadline. Remove it. Patch-cc: Naveen Burmi Patch-cc: Ruchika Gupta Signed-off-by: Jagan Teki --- arch/powerpc/cpu/mpc85xx/Kconfig | 1 - board/freescale/bsc9132qds/Kconfig| 14 -

[PATCH 05/24] arm: Remove configs/Cyrus_P5020_defconfig board

2020-05-27 Thread Jagan Teki
This board has not been converted to CONFIG_DM_SPI by the deadline. Remove it. Patch-cc: Andy Fleming Signed-off-by: Jagan Teki --- arch/powerpc/cpu/mpc85xx/Kconfig | 1 - board/varisys/cyrus/Kconfig | 14 - board/varisys/cyrus/MAINTAINERS | 7 -

[PATCH 04/24] arm: Remove configs/C29XPCIE_NAND_defconfig board

2020-05-27 Thread Jagan Teki
This board has not been converted to CONFIG_DM_SPI by the deadline. Remove it. Patch-cc: Po Liu Signed-off-by: Jagan Teki --- arch/powerpc/cpu/mpc85xx/Kconfig| 1 - board/freescale/c29xpcie/Kconfig| 14 - board/freescale/c29xpcie/MAINTAINERS| 10 -

[PATCH 06/24] arm: Remove configs/MPC8536DS_36BIT_defconfig board

2020-05-27 Thread Jagan Teki
This board has not been converted to CONFIG_DM_SPI by the deadline. Remove it. Patch-cc: Priyanka Jain Signed-off-by: Jagan Teki --- arch/powerpc/cpu/mpc85xx/Kconfig | 1 - board/freescale/mpc8536ds/Kconfig | 12 - board/freescale/mpc8536ds/MAINTAINERS | 9 -

[PATCH 09/24] arm: Remove configs/P1022DS_36BIT_NAND_defconfig board

2020-05-27 Thread Jagan Teki
This board has not been converted to CONFIG_DM_SPI by the deadline. Remove it. Patch-cc: Timur Tabi Signed-off-by: Jagan Teki --- arch/powerpc/cpu/mpc85xx/Kconfig | 1 - board/freescale/p1022ds/Kconfig | 12 - board/freescale/p1022ds/MAINTAINERS | 13 -

[PATCH 4/4] arm: use correct argument size of special registers

2020-05-27 Thread Heinrich Schuchardt
Compiling with clang on ARMv8 shows errors like: ./arch/arm/include/asm/system.h:162:32: note: use constraint modifier "w" asm volatile("msr sctlr_el1, %0" : : "r" (val) : "cc"); ^~ %w0

[PATCH 2/4] trace: clang compatible handling of gd register

2020-05-27 Thread Heinrich Schuchardt
On ARM systems gd is stored in register r9 or x18. When compiling with clang gd is defined as a macro calling function gd_ptr(). So we can not make assignments to gd. Use function set_gd() for setting the register on ARM. Signed-off-by: Heinrich Schuchardt --- lib/trace.c | 8 1 file

[PATCH 0/4] arm: fix clang build errors

2020-05-27 Thread Heinrich Schuchardt
With this patch series most ARM boards both 32bit and 64bit can be built using Clang 9. On ARM systems gd is stored in register r9 or x18. When compiling with clang gd is defined as a macro calling function gd_ptr(). So we can not make assignments to gd. Fixes for the UEFI sub-system and

Re: [PATCH v4 2/9] usb: xhci: Use only 32-bit accesses in xhci_writeq/xhci_readq

2020-05-27 Thread Matthias Brugger
On 26/05/2020 10:07, Bin Meng wrote: > Hi Simon, > > On Tue, May 26, 2020 at 5:41 AM Simon Glass wrote: >> >> Hi Sylwester, >> >> On Mon, 25 May 2020 at 11:42, Sylwester Nawrocki >> wrote: >>> >>> Hi Simon, >>> >>> On 25.05.2020 19:04, Simon Glass wrote: On Mon, 25 May 2020 at 10:57,

Re: [PATCH 2/3] x86: spi: Rewrite logic for obtaining the SPI memory map

2020-05-27 Thread Simon Glass
Hi Bin, On Tue, 26 May 2020 at 04:08, Bin Meng wrote: > > Hi Simon, > > On Mon, May 18, 2020 at 11:01 AM Simon Glass wrote: > > > > At present this logic does not work on link and samus, since their SPI > > controller is not a PCI device, but a child of the PCH. > > > > Unfortunately, fixing

Re: [PATCH v2 14/35] acpigen: Support writing a package

2020-05-27 Thread Wolfgang Wallner
Hi Simon, -"Simon Glass" schrieb: - > Betreff: [PATCH v2 14/35] acpigen: Support writing a package > > A package collects together several elements. Add an easy way of writing > a package header and updating its length later. > > Signed-off-by: Simon Glass > --- > > Changes in v2:

RE: [PATCH 4/5] ARM: dts: stm32: Repair I2C2 operation on AV96

2020-05-27 Thread Patrick DELAUNAY
> From: Marek Vasut > Sent: mardi 26 mai 2020 04:30 > > The I2C2 uses different pinmux on AV96, use correct pinmux and also add > comments about the I2C being present on the "low-speed" > expansion connector X6. > > Signed-off-by: Marek Vasut > Cc: Patrick Delaunay > Cc: Patrice Chotard >

[PATCH 02/24] arm: Remove configs/BSC9131RDB_NAND_SYSCLK100_defconfig board

2020-05-27 Thread Jagan Teki
This board has not been converted to CONFIG_DM_SPI by the deadline. Remove it. Patch-cc: Poonam Aggrwal Signed-off-by: Jagan Teki --- arch/powerpc/cpu/mpc85xx/Kconfig | 1 - board/freescale/bsc9131rdb/Kconfig| 12 - board/freescale/bsc9131rdb/MAINTAINERS|

  1   2   >