[PATCH] meson64: add kernel compression vars

2021-05-26 Thread Artem Lapkin
make possible to load simple compressed linux kernel for meson64 Signed-off-by: Artem Lapkin --- include/configs/meson64.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/meson64.h b/include/configs/meson64.h index e3d25493..552a08c2 100644 --- a/include/configs/meson64.h +

Re: [PATCH v2 7/7] arm: a37xx: pci: Fix configuring PCIe resources

2021-05-26 Thread Stefan Roese
On 26.05.21 17:59, Pali Rohár wrote: The `ranges` DT property of the PCIe node is currently ignored by Aardvark driver - all entries are used as transparent PCIe MEM, despite some of them being defined for IO in DT. This is because the driver does not setup PCIe outbound windows and thus a defau

Re: [PATCH v2 6/7] arm: a37xx: pci: Increase PCIe MEM size from 16 MiB to 127 MiB

2021-05-26 Thread Stefan Roese
On 26.05.21 17:59, Pali Rohár wrote: For some configurations with more PCIe cards and PCIe bridges, 16 MiB of PCIe MEM space may not be enough. Since TF-A already allocates a 128 MiB CPU window for PCIe, and since IO port space is only 64 KiB in total, use all the remaining space (64 + 32 + 16 +

Re: [PATCH v2 5/7] arm: a37xx: pci: Fix a3700_fdt_fix_pcie_regions() function

2021-05-26 Thread Stefan Roese
On 26.05.21 17:59, Pali Rohár wrote: Current version of this function uses a lot of incorrect assumptions about the `ranges` DT property: * parent(#address-cells) == 2 * #size-cells == 2 * number of entries == 2 * address size of first entry == 0x100 * second child address entry ==

Re: [PATCH v2 4/7] arm: a37xx: pci: Find PCIe controller node by compatible instead of path

2021-05-26 Thread Stefan Roese
On 26.05.21 17:59, Pali Rohár wrote: Find PCIe DT node by compatible string instead of retrieving it by using hardcoded DT path. Signed-off-by: Pali Rohár Reviewed-by: Marek Behún Reviewed-by: Stefan Roese Thanks, Stefan --- arch/arm/mach-mvebu/armada3700/cpu.c | 4 +--- 1 file change

Re: [PATCH v2 3/7] arm: a37xx: pci: Fix DT compatible string to Linux' DT compatible

2021-05-26 Thread Stefan Roese
On 26.05.21 17:59, Pali Rohár wrote: Change DT compatible string for A3700 PCIe from 'marvell,armada-37xx-pcie' to 'marvell,armada-3700-pcie' to make U-Boot A3700 PCIe DT node compatible with Linux' DT node. Signed-off-by: Pali Rohár Reviewed-by: Marek Behún Reviewed-by: Stefan Roese Thank

Re: [PATCH v2 2/7] arm: a37xx: pci: Disable bus mastering when unloading driver

2021-05-26 Thread Stefan Roese
On 26.05.21 17:59, Pali Rohár wrote: Disable Root Bridge I/O space, memory space and bus mastering in Aardvark's remove method, which is called before booting Linux kernel. This ensures that PCIe device which was initialized and used by U-Boot cannot do new DMA transfers until Linux initializes

Re: [PATCH v2 1/7] arm: a37xx: pci: Don't put link into LTSSM Recovery state during probe

2021-05-26 Thread Stefan Roese
On 26.05.21 17:59, Pali Rohár wrote: During our debugging of the Aardvark driver in Linux we have discovered that the PCIE_CORE_LINK_CTRL_STAT_REG register in fact controls standard PCIe Link Control Register for PCIe Root Bridge. This led us to discover that the name of the PCIE_CORE_LINK_TRAINI

Re: [PATCH u-boot-marvell 4/5] serial: a37xx: Switch to XTAL clock when booting Linux kernel

2021-05-26 Thread Stefan Roese
On 25.05.21 19:42, Marek Behún wrote: From: Pali Rohár Unfortunately the UART driver in current Linux for Armada 3700 expects UART's parent clock to be XTAL and calculats baudrate divisor according to XTAL clock. Therefore we must switch back to XTAL clock before booting kernel. Do you plan t

Re: [PATCH u-boot-marvell 5/5] arm: mvebu: a37xx: Enable more baudrates

2021-05-26 Thread Stefan Roese
On 25.05.21 19:42, Marek Behún wrote: From: Pali Rohár Extend CONFIG_SYS_BAUDRATE_TABLE and include all standard baudrates and also nonstandard up to the 6 MBaud. U-Boot's A3720 UART driver can use baudrates from 300 Baud to 6 MBaud. This changes all A3720 boards, since all of them include eit

Re: [PATCH u-boot-marvell 3/5] serial: a37xx: Use TBG as parent clock

2021-05-26 Thread Stefan Roese
On 25.05.21 19:42, Marek Behún wrote: From: Pali Rohár Using TBG clock as parent clock for UART allows us using higher baudrates than 230400. Turris MOX with external FT232RL USB-UART works fine up to 3 MBaud (which is maximum for this USB-UART controller), while EspressoBIN with integrated pl

Re: [PATCH u-boot-marvell 2/5] clk: armada-37xx: Set DM_FLAG_PRE_RELOC

2021-05-26 Thread Stefan Roese
On 25.05.21 19:42, Marek Behún wrote: Setting DM_FLAG_PRE_RELOC for Armada 3720 clock drivers (TBG and peripheral clocks) makes it possible for serial driver to retrieve clock rates via clk API. Signed-off-by: Marek Behún Reviewed-by: Stefan Roese Thanks, Stefan --- drivers/clk/mvebu/ar

Re: [PATCH u-boot-marvell 1/5] serial: a37xx: Fix parent clock rate value and divider calculation

2021-05-26 Thread Stefan Roese
On 25.05.21 19:42, Marek Behún wrote: From: Pali Rohár UART parent clock is by default the platform's xtal clock, which is 25 MHz. The value defined in the driver, though, is 25.8048 MHz. This is a hack for the suboptimal divisor calculation Divisor = UART clock / (16 * baudrate) which does

Re: Re: [PATCH v5 1/6] dm: regulator: support regulator more state

2021-05-26 Thread zhangq...@rock-chips.com
Hi, Please ignore these two emails, they are sent in error. [PATCH v5 0/6] power: pmic: support more PMIC PATCH v5 1/6] dm: regulator: support regulator more state 张晴 瑞芯微电子股份有限公司 Rockchip Electronics Co.,Ltd 地址:福建省福州市铜盘路软件大道89号软件园A区21号楼 Add:No.21 Building, A District, No.89 Software Boulevard

Re: [PATCH v9 1/1] efi_loader: add PE/COFF image measurement

2021-05-26 Thread Masahisa Kojima
On Thu, 27 May 2021 at 01:28, Alex G. wrote: > > On 5/25/21 10:09 PM, Masahisa Kojima wrote: > > "TCG PC Client Platform Firmware Profile Specification" > > requires to measure every attempt to load and execute > > a OS Loader(a UEFI application) into PCR[4]. > > This commit adds the PE/COFF image

Re: [PATCH RFC 0/2] lib: Remove the need for a HASH_CALCULATE config

2021-05-26 Thread Masahisa Kojima
Hi Alexandru, I agree with this series. Use CONFIG_HASH is more general than adding new CONFIG_HASH_CALCULATE. Thanks, Masahisa Kojima On Tue, 25 May 2021 at 04:28, Alexandru Gagniuc wrote: > > I had accidentally noticed commit 87316da05f2f ("lib: introduce > HASH_CALCULATE option"), when rebas

Re: [PATCH] MAINTAINERS: Add allwinner/sunxi driver directories

2021-05-26 Thread Tom Rini
On Thu, May 27, 2021 at 12:53:00AM +0100, Andre Przywara wrote: > On Wed, 21 Apr 2021 11:58:47 +0100 > Andre Przywara wrote: > > Simon, Tom, > > > On Sun, 18 Apr 2021 22:13:36 -0500 > > Samuel Holland wrote: > > > > > These drivers are sunxi platform-specific, and so are of interest to the > >

[PATCH 2/3] arm: dts: sunxi: h5: Update DT files

2021-05-26 Thread Andre Przywara
Update the H5 DT files from the Linux 5.12 release. The changes don't affect U-Boot at all, but fix Gigabit Ethernet when this DT is passed on to the Linux kernel. It also introduces DVFS. This also updates the shared sunxi-h3-h5.dtsi, but that only adds nodes that are of no concern to U-Boot. S

[PATCH 3/3] arm: dts: sunxi: h3: Update DT files

2021-05-26 Thread Andre Przywara
Update the H3 DT files from the Linux 5.12 release. The changes update some boards, and don't affect U-Boot, but fix Gigabit Ethernet when this DT is passed on to the Linux kernel. Signed-off-by: Andre Przywara --- .../dts/sun8i-h2-plus-bananapi-m2-zero.dts| 96 ++- arch/arm

[PATCH 0/3] sunxi: dts: Update H3/H5/H6 devicetree from Linux

2021-05-26 Thread Andre Przywara
This syncs the SoC .dtsi and board .dts files from the Linux 5.12 release. For the H3 and H5 this brings us the proper RGMII modes for the boards with Gigabit Ethernet PHYs. The rest are smaller updates, but bring us port 0 USB support on the H6 boards in U-Boot. I know it's a bit late in the game

[PATCH 1/3] arm: dts: sunxi: h6: Update DT files

2021-05-26 Thread Andre Przywara
Update the H6 DT files from the Linux 5.12 release. The changes are minimal (many LED node renames), but also help to enable USB port 0 in U-Boot (later), enable the RSB device (not yet used in U-Boot), and also introduce an MMC frequency limit. Signed-off-by: Andre Przywara --- arch/arm/dts/su

Re: [PATCH] MAINTAINERS: Add allwinner/sunxi driver directories

2021-05-26 Thread Andre Przywara
On Wed, 21 Apr 2021 11:58:47 +0100 Andre Przywara wrote: Simon, Tom, > On Sun, 18 Apr 2021 22:13:36 -0500 > Samuel Holland wrote: > > > These drivers are sunxi platform-specific, and so are of interest to the > > sunxi maintainers. > > Thanks, that seems to be in line with what other platfo

Re: [PATCH v2] sunxi: clock: H6/H616: Fix PLL clock factor encodings

2021-05-26 Thread Andre Przywara
On Wed, 5 May 2021 13:53:05 +0100 Andre Przywara wrote: Hi, > Most clock factors and dividers in the H6 PLLs use a "+1 encoding", > which we were missing on two occasions. can someone please confirm that I didn't mess this up? Cheers, Andre > > This fixes the MMC clock setup on the H6, whic

Re: [PATCH v2 4/6] net: sun8i-emac: add v3s variant

2021-05-26 Thread Andre Przywara
On Sun, 23 May 2021 01:22:38 +0200 Andreas Rehn wrote: Hi, > Add variant V3S_EMAC. > Handle pinmux compile time error by skipping goio setup, because > V3s uses internal phy and don't expose pins. > > Signed-off-by: Andreas Rehn Reviewed-by: Andre Przywara Cheers, Andre > --- > Changes in

Re: [PATCH v2 3/6] clk: sunxi: v3s: fix tabs / spaces

2021-05-26 Thread Andre Przywara
On Sun, 23 May 2021 01:17:29 +0200 Andreas Rehn wrote: > align CLK_USB_PHY0 with tabs > > Signed-off-by: Andreas Rehn Reviewed-by: Andre Przywara Cheers, Andre P.S. Please send a whole v2 series next time, to make this easier to sort out which patch still applies and which not. > --- > Cha

Re: [PATCH v5 1/6] dm: regulator: support regulator more state

2021-05-26 Thread Jaehoon Chung
Hi, On 5/26/21 5:46 PM, ela...@denx.de wrote: > From: Joseph Chen Is it right patch? This patch had been already applied. Best Regards, Jaehoon Chung > > support parse regulator standard property: > regulator-off-in-suspend; > regulator-init-microvolt; > regulator-suspend-microvolt: > regula

Re: [PATCH v5 0/6] power: pmic: support more PMIC

2021-05-26 Thread Jaehoon Chung
Hi, On 5/26/21 5:46 PM, ela...@denx.de wrote: > From: Elaine Zhang > > Support more PMIC and improve compatibility between pmics. I didn't see your full patchset, except [PATCH V5 1/6]. If i missed something, let me know, plz. Best Regards, Jaehoon Chung > > Change in V5: > [PATCH v5 1/6]: F

Re: [PATCH] fastboot: Fix overflow when calculating chunk size

2021-05-26 Thread Tom Rini
On Fri, Apr 16, 2021 at 05:58:21PM -0400, Sean Anderson wrote: > If a chunk was larger than 4GiB, then chunk_data_sz would overflow and > blkcnt would not be calculated correctly. Upgrade it to a u64 and cast > its multiplicands as well. Also fix bytes_written while we're at it. > > Signed-off-by

[PATCH] drivers: tpm2: update reset gpio semantics

2021-05-26 Thread Jorge Ramirez-Ortiz
Use the more generic reset-gpios propery name. Signed-off-by: Jorge Ramirez-Ortiz --- doc/device-tree-bindings/tpm2/tis-tpm2-spi.txt | 2 +- drivers/tpm/tpm2_tis_spi.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/device-tree-bindings/tpm2/tis-tpm

RZ/G2 USB tree question

2021-05-26 Thread Adam Ford
I have a board with multiple USB controllers, but they all seem to show in index of 1 with usb tree. USB device tree: 1 Hub (5 Gb/s, 0mA) U-Boot XHCI Host Controller 1 Hub (480 Mb/s, 0mA) u-boot EHCI Host Controller 1 Hub (480 Mb/s, 0mA) | u-boot EHCI Host Controller |

Re: [PATCH] phy: sun4i-usb: Fix PHY0 routing and passby configuration for MUSB

2021-05-26 Thread Andre Przywara
On Wed, 26 May 2021 23:51:41 +0530 Jagan Teki wrote: Hi, > On Wed, May 26, 2021 at 11:02 PM Andre Przywara > wrote: > > > > On Wed, 26 May 2021 22:37:14 +0530 > > Jagan Teki wrote: > > > > Hi Jagan, > > > > thanks for having a look! > > > > > On Wed, May 26, 2021 at 6:27 AM Andre Przywara

Re: [PATCH] phy: sun4i-usb: Fix PHY0 routing and passby configuration for MUSB

2021-05-26 Thread Jagan Teki
On Wed, May 26, 2021 at 11:02 PM Andre Przywara wrote: > > On Wed, 26 May 2021 22:37:14 +0530 > Jagan Teki wrote: > > Hi Jagan, > > thanks for having a look! > > > On Wed, May 26, 2021 at 6:27 AM Andre Przywara > > wrote: > > > > > > From: Paul Kocialkowski > > > > > > Recent Allwinner platfor

[PATCH v2] siemens: rut: disable video after DM_VIDEO conversion deadline

2021-05-26 Thread Anatolij Gustschin
The board was not converted to DM_VIDEO before deadline, so disable video support for now. Signed-off-by: Anatolij Gustschin --- Changes in v2: - fix build error: undefined reference to `arch_early_init_r' configs/rut_defconfig | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff -

Re: [PATCH u-boot-dm + u-boot-spi v4 00/10] Support SPI NORs and OF partitions in `mtd list`

2021-05-26 Thread Jagan Teki
On Wed, May 26, 2021 at 11:25 PM Marek Behún wrote: > > On Wed, 26 May 2021 22:28:34 +0530 > Jagan Teki wrote: > > > This series have some conflicts wrt my series about MTD UCLASS > > migration. Does this bypass that series? > > > > Jagan. > > Jagan, I was working on top of Tom's master branch...

[PATCH] efi_loader: Fix coverity warnings for efi tcg2 protocol

2021-05-26 Thread Ilias Apalodimas
Coverity reported 3 warnings on the current code. CID 331856, 331855, 331854 on the latest scan. Fix the rest of the warnings by initializing the variables before passing them to tpm2_get_pcr_info(). In order to avoid future warnings and errors initialize them to 0 within the function as well, sin

Re: [PATCH u-boot-dm + u-boot-spi v4 00/10] Support SPI NORs and OF partitions in `mtd list`

2021-05-26 Thread Marek Behún
On Wed, 26 May 2021 22:28:34 +0530 Jagan Teki wrote: > This series have some conflicts wrt my series about MTD UCLASS > migration. Does this bypass that series? > > Jagan. Jagan, I was working on top of Tom's master branch... Are the conflicts big? Marek

Re: [PATCH] phy: sun4i-usb: Fix PHY0 routing and passby configuration for MUSB

2021-05-26 Thread Andre Przywara
On Wed, 26 May 2021 22:37:14 +0530 Jagan Teki wrote: Hi Jagan, thanks for having a look! > On Wed, May 26, 2021 at 6:27 AM Andre Przywara wrote: > > > > From: Paul Kocialkowski > > > > Recent Allwinner platforms (starting with the H3) only use the MUSB > > controller for peripheral mode and u

[PATCH] configs: sam boards: add hash command

2021-05-26 Thread Eugen Hristev
Add hash and hash verify commands. These would be useful for verifying copied data. Signed-off-by: Eugen Hristev --- configs/sam9x60ek_mmc_defconfig| 2 ++ configs/sam9x60ek_nandflash_defconfig | 2 ++ configs/sam9x60ek_qspiflash_defconfig | 2 ++ configs/sama5d

IRC server access

2021-05-26 Thread Tom Rini
Hey all, As you might have seen elsewhere, the Freenode IRC network is undergoing some changes. As such, I've moved over to Libera.Chat (irc.libera.chat) and updated the wiki page to note this. Thanks all. -- Tom signature.asc Description: PGP signature

Re: [PATCH] phy: sun4i-usb: Fix PHY0 routing and passby configuration for MUSB

2021-05-26 Thread Jagan Teki
On Wed, May 26, 2021 at 6:27 AM Andre Przywara wrote: > > From: Paul Kocialkowski > > Recent Allwinner platforms (starting with the H3) only use the MUSB > controller for peripheral mode and use HCI for host mode. As a result, > extra steps need to be taken to properly route USB signals to one or

Re: [PATCH v9 00/28] mtd: spi-nor-core: add xSPI Octal DTR support

2021-05-26 Thread Jagan Teki
On Mon, May 10, 2021 at 6:50 PM Pratyush Yadav wrote: > > Jagan, > > On 05/05/21 03:11PM, Pratyush Yadav wrote: > > Hi, > > > > This series adds support for octal DTR flashes in the SPI NOR framework, > > and then adds hooks for the Cypress S28HS512T and Micron MT35XU512ABA > > flashes. > > > > Th

Re: [PATCH u-boot-dm + u-boot-spi v4 00/10] Support SPI NORs and OF partitions in `mtd list`

2021-05-26 Thread Jagan Teki
On Wed, May 26, 2021 at 5:39 PM Marek Behún wrote: > > Hello, > > this is v4 of patchset that adds support for U-Boot to parse MTD > partitions from device-tree, and also improves support for SPI NOR > access via the `mtd` command. > > Small rebase was needed since last version. > > Finally passin

[scan-ad...@coverity.com: New Defects reported by Coverity Scan for Das U-Boot]

2021-05-26 Thread Tom Rini
- Forwarded message from scan-ad...@coverity.com - Date: Tue, 25 May 2021 01:05:20 + (UTC) From: scan-ad...@coverity.com To: tom.r...@gmail.com Subject: New Defects reported by Coverity Scan for Das U-Boot Hi, Please find the latest report on new defect(s) introduced to Das U-Boot fo

Re: [PATCH v4] Fix flashing of eMMC user area with Fastboot

2021-05-26 Thread Oleh Kravchenko
Hello Tom, coud you please cherry-pick this patch? Lukasz doesn't respond :( 20.05.21 18:23, Oleh Kravchenko пише: > Hello Lukasz, > Could you please review this patch too? > > This patch fixes Fastboot behaviour, > when flashing or erasing of eMMC user area was requested. > > 20.05.21 18:00, Sea

Re: [PATCH v9 1/1] efi_loader: add PE/COFF image measurement

2021-05-26 Thread Alex G.
On 5/25/21 10:09 PM, Masahisa Kojima wrote: "TCG PC Client Platform Firmware Profile Specification" requires to measure every attempt to load and execute a OS Loader(a UEFI application) into PCR[4]. This commit adds the PE/COFF image measurement, extends PCR, and appends measurement into Event Lo

Re: [PATCH RFC 1/2] Revert "lib: introduce HASH_CALCULATE option"

2021-05-26 Thread Alex G.
On 5/26/21 11:06 AM, Heinrich Schuchardt wrote: On 5/24/21 9:28 PM, Alexandru Gagniuc wrote: When we think of Kconfig, we usually think of features that we like to enable or not. Ideally, we wouldn't use Kconfig to fix a build issue, although sometimes it might make sense. With Kconfig it's h

Re: [PATCH RFC 1/2] Revert "lib: introduce HASH_CALCULATE option"

2021-05-26 Thread Heinrich Schuchardt
On 5/24/21 9:28 PM, Alexandru Gagniuc wrote: > When we think of Kconfig, we usually think of features that we like > to enable or not. Ideally, we wouldn't use Kconfig to fix a build > issue, although sometimes it might make sense. With Kconfig it's hard > to guarantee that the fix is universal. We

[PATCH v2 2/7] arm: a37xx: pci: Disable bus mastering when unloading driver

2021-05-26 Thread Pali Rohár
Disable Root Bridge I/O space, memory space and bus mastering in Aardvark's remove method, which is called before booting Linux kernel. This ensures that PCIe device which was initialized and used by U-Boot cannot do new DMA transfers until Linux initializes PCI subsystem and loads appropriate dri

[PATCH v2 7/7] arm: a37xx: pci: Fix configuring PCIe resources

2021-05-26 Thread Pali Rohár
The `ranges` DT property of the PCIe node is currently ignored by Aardvark driver - all entries are used as transparent PCIe MEM, despite some of them being defined for IO in DT. This is because the driver does not setup PCIe outbound windows and thus a default configuration is used. This can cau

[PATCH v2 5/7] arm: a37xx: pci: Fix a3700_fdt_fix_pcie_regions() function

2021-05-26 Thread Pali Rohár
Current version of this function uses a lot of incorrect assumptions about the `ranges` DT property: * parent(#address-cells) == 2 * #size-cells == 2 * number of entries == 2 * address size of first entry == 0x100 * second child address entry == base + 0x100 Trying to increase PCIe M

[PATCH v2 3/7] arm: a37xx: pci: Fix DT compatible string to Linux' DT compatible

2021-05-26 Thread Pali Rohár
Change DT compatible string for A3700 PCIe from 'marvell,armada-37xx-pcie' to 'marvell,armada-3700-pcie' to make U-Boot A3700 PCIe DT node compatible with Linux' DT node. Signed-off-by: Pali Rohár Reviewed-by: Marek Behún --- arch/arm/dts/armada-37xx.dtsi | 2 +- drivers/pci/pci-aardvark.c|

[PATCH v2 4/7] arm: a37xx: pci: Find PCIe controller node by compatible instead of path

2021-05-26 Thread Pali Rohár
Find PCIe DT node by compatible string instead of retrieving it by using hardcoded DT path. Signed-off-by: Pali Rohár Reviewed-by: Marek Behún --- arch/arm/mach-mvebu/armada3700/cpu.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/arm/mach-mvebu/armada3700/cpu.c b/

[PATCH v2 6/7] arm: a37xx: pci: Increase PCIe MEM size from 16 MiB to 127 MiB

2021-05-26 Thread Pali Rohár
For some configurations with more PCIe cards and PCIe bridges, 16 MiB of PCIe MEM space may not be enough. Since TF-A already allocates a 128 MiB CPU window for PCIe, and since IO port space is only 64 KiB in total, use all the remaining space (64 + 32 + 16 + 8 + 4 + 2 + 1 = 127 MiB) for PCIe MEM.

[PATCH v2 1/7] arm: a37xx: pci: Don't put link into LTSSM Recovery state during probe

2021-05-26 Thread Pali Rohár
During our debugging of the Aardvark driver in Linux we have discovered that the PCIE_CORE_LINK_CTRL_STAT_REG register in fact controls standard PCIe Link Control Register for PCIe Root Bridge. This led us to discover that the name of the PCIE_CORE_LINK_TRAINING macro and the corresponding comment

Re: [PULL] u-boot-riscv/master

2021-05-26 Thread Tom Rini
On Wed, May 26, 2021 at 04:12:50PM +0800, Leo Liang wrote: > Hi Tom, > > The following changes since commit eb53b943be2949ca40a8e05532cd74cda058: > > Merge https://source.denx.de/u-boot/custodians/u-boot-sh (2021-05-23 > 10:15:15 -0400) > > are available in the Git repository at: > >

Re: problems with boards with CONFIG_DM disabled

2021-05-26 Thread Marek Behún
On Wed, 26 May 2021 08:52:58 -0400 Tom Rini wrote: > On Wed, May 26, 2021 at 02:25:54AM +0200, Marek Behun wrote: > > On Wed, 26 May 2021 01:27:56 +0200 > > Marek Behun wrote: > > > > > Tom, Simon, > > > > > > now that LTO is merged I am working on > > > Support SPI NORs and OF partitions

Re: [PATCH 0/3] test/py: Rewrite SquashFS commands test suite

2021-05-26 Thread Richard Genoud
Hi, Le 24/05/2021 à 04:31, Joao Marcos Costa a écrit : Hello, This patch series fixes the following issues: - poor strategy to check if files were properly loaded - wrong quoting style for strings - tests failing at the second run because of a wrong clean-up strategy Finally, it improves: - cod

Re: [PULL] u-boot-mips

2021-05-26 Thread Tom Rini
On Tue, May 25, 2021 at 04:59:55PM +0200, Daniel Schwierzeck wrote: > Hi Tom, > > please pull a minor bugfix for MIPS64 Octeon and the removal of qemu_mips > boards. > > Gitlab: > https://source.denx.de/u-boot/custodians/u-boot-mips/-/pipelines/7625 > > Azure: > https://dev.azure.com/danielsch

Re: Pull request for efi-2021-07-rc4

2021-05-26 Thread Tom Rini
On Tue, May 25, 2021 at 05:46:08PM +0200, Heinrich Schuchardt wrote: > Dear Tom, > > The following changes since commit e1bf0336a58cfe873a34c36ff53e5e3806f2d263: > > Prepare v2021.07-rc3 (2021-05-24 20:53:13 -0400) > > are available in the Git repository at: > > https://source.denx.de/u-bo

Re: [PATCH] net: Remove ne2000 driver

2021-05-26 Thread Tom Rini
On Tue, May 25, 2021 at 11:54:41AM -0400, Tom Rini wrote: > With the last user of this driver removed, remove the driver. > > Signed-off-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: problems with boards with CONFIG_DM disabled

2021-05-26 Thread Tom Rini
On Wed, May 26, 2021 at 02:25:54AM +0200, Marek Behun wrote: > On Wed, 26 May 2021 01:27:56 +0200 > Marek Behun wrote: > > > Tom, Simon, > > > > now that LTO is merged I am working on > > Support SPI NORs and OF partitions in `mtd list` > > > > but CI fails for some boards, see > > https://gi

Re: [PATCH] fs/squashfs: fix reading of fragmented files

2021-05-26 Thread João Marcos Costa
Hello, Miquèl Em qua., 26 de mai. de 2021 às 04:52, Miquel Raynal < miquel.ray...@bootlin.com> escreveu: > Hi Joao, > > Joao Marcos Costa wrote on Mon, 17 May 2021 > 18:20:38 -0300: > > > The fragmented files were not correctly read because of two issues: > > > > - The squashfs_file_info struct

[PATCH u-boot-dm + u-boot-spi v4 09/10] mtd: compare also with OF path and device name in get_mtd_device_nm()

2021-05-26 Thread Marek Behún
The get_mtd_device_nm() function (code imported from Linux) simply iterates all registered MTD devices and compares the given name with all MTDs' names. With SPI_FLASH_MTD enabled U-Boot registers a SPI-NOR as a MTD device with name identical to the SPI flash chip name (from SPI ID table). Thus fo

[PATCH u-boot-dm + u-boot-spi v4 10/10] cmd: mtd: expand argument definition in command help

2021-05-26 Thread Marek Behún
The argument can now also be MTD's DM device name or OF path. Mention this is command help. Signed-off-by: Marek Behún Reviewed-by: Miquel Raynal Tested-by: Patrice Chotard Cc: Jagan Teki Cc: Priyanka Jain Cc: Simon Glass Cc: Heiko Schocher Cc: Jagan Teki Cc: Patrick Delaunay --- cmd/mt

[PATCH u-boot-dm + u-boot-spi v4 08/10] cmd: mtd: print device OF path in listing

2021-05-26 Thread Marek Behún
Print MTD's device OF path in the output of `mtd list` command. Signed-off-by: Marek Behún Reviewed-by: Miquel Raynal Tested-by: Patrice Chotard Cc: Jagan Teki Cc: Priyanka Jain Cc: Simon Glass Cc: Heiko Schocher Cc: Jagan Teki Cc: Patrick Delaunay --- cmd/mtd.c | 7 +++ 1 file chang

[PATCH u-boot-dm + u-boot-spi v4 07/10] mtd: probe SPI NOR devices in mtd_probe_devices()

2021-05-26 Thread Marek Behún
In order for `mtd list` U-Boot command to list SPI NOR devices without the need to run `sf probe` before, we have to probe SPI NOR devices in mtd_probe_devices(). Signed-off-by: Marek Behún Reviewed-by: Pali Rohár Reviewed-by: Miquel Raynal Tested-by: Patrice Chotard Cc: Jagan Teki Cc: Priyan

[PATCH u-boot-dm + u-boot-spi v4 06/10] mtd: remove mtd_probe() function

2021-05-26 Thread Marek Behún
The device_probe() function does the same thing as mtd_probe() and mtd_probe() is only used in mtd_probe_uclass_mtd_devs(), where the probing can be made simpler by using uclass_foreach_dev_probe macro. Signed-off-by: Marek Behún Reviewed-by: Pali Rohár Reviewed-by: Miquel Raynal Tested-by: Pat

[PATCH u-boot-dm + u-boot-spi v4 02/10] dm: core: add ofnode_get_path()

2021-05-26 Thread Marek Behún
Add function for retrieving full node path of a given ofnode. This uses np->full_name if OF is live, otherwise a call to fdt_get_path() is made. Signed-off-by: Marek Behún Reviewed-by: Simon Glass Reviewed-by: Miquel Raynal Tested-by: Patrice Chotard --- drivers/core/ofnode.c | 25 +++

[PATCH u-boot-dm + u-boot-spi v4 01/10] dm: core: add non-translating version of ofnode_get_addr_size_index()

2021-05-26 Thread Marek Behún
Add functions ofnode_get_addr_size_index_notrans(), which is a non-translating version of ofnode_get_addr_size_index(). Some addresses are not meant to be translated, for example those of MTD fixed-partitions. Signed-off-by: Marek Behún Reviewed-by: Simon Glass Reviewed-by: Miquel Raynal Teste

[PATCH u-boot-dm + u-boot-spi v4 03/10] mtd: add support for parsing partitions defined in OF

2021-05-26 Thread Marek Behún
Add support for parsing partitions defined in device-trees via the `partitions` node with `fixed-partitions` compatible. The `mtdparts`/`mtdids` mechanism takes precedence. If some partitions are defined for a MTD device via this mechanism, the code won't register partitions for that MTD device fr

[PATCH u-boot-dm + u-boot-spi v4 05/10] mtd: spi-nor: fill-in mtd->dev member

2021-05-26 Thread Marek Behún
Fill in mtd->dev member with nor->dev. This can be used by MTD OF partition parser. Signed-off-by: Marek Behún Reviewed-by: Pali Rohár Reviewed-by: Miquel Raynal Tested-by: Patrice Chotard Cc: Jagan Teki Cc: Priyanka Jain Cc: Simon Glass Cc: Heiko Schocher Cc: Jagan Teki Cc: Patrick Dela

[PATCH u-boot-dm + u-boot-spi v4 04/10] mtd: spi-nor: allow registering multiple MTDs when DM is enabled

2021-05-26 Thread Marek Behún
Currently when the SPI_FLASH_MTD config option is enabled, only one SPI can be registered as MTD at any time - it is the last one probed (since with old non-DM model only one SPI NOR could be probed at any time). When DM is enabled, allow for registering multiple SPI NORs as MTDs by utilizing the

[PATCH u-boot-dm + u-boot-spi v4 00/10] Support SPI NORs and OF partitions in `mtd list`

2021-05-26 Thread Marek Behún
Hello, this is v4 of patchset that adds support for U-Boot to parse MTD partitions from device-tree, and also improves support for SPI NOR access via the `mtd` command. Small rebase was needed since last version. Finally passing CI since LTO is now merged and can optimize away the code increase.

Re: [PATCH] phy: sun4i-usb: Fix PHY0 routing and passby configuration for MUSB

2021-05-26 Thread Andre Przywara
On Wed, 26 May 2021 12:48:27 +0200 Paul Kocialkowski wrote: Hi Paul, > Le Wed 26 May 21, 01:57, Andre Przywara a écrit : > > From: Paul Kocialkowski > > > > Recent Allwinner platforms (starting with the H3) only use the MUSB > > controller for peripheral mode and use HCI for host mode. As a re

[RESEND PATCH v2 2/2] rockchip: rk3568: add clock driver

2021-05-26 Thread Elaine
From: Elaine Zhang Add rk3568 clock driver and cru structure definition. Signed-off-by: Elaine Zhang --- .../include/asm/arch-rockchip/cru_rk3568.h| 504 +++ drivers/clk/rockchip/Makefile |1 + drivers/clk/rockchip/clk_rk3568.c | 2959 + 3 f

[RESEND PATCH v2 0/2] clk: rockchip: rk3568: add clock driver

2021-05-26 Thread Elaine
From: Elaine Zhang Add basic clock for rk3568 which including cpu, bus, mmc, i2c, pwm, gmac ...clocks init. Change in V2: [PATCH v2 0/1]: No change. [PATCH v2 0/2]: update the copyright info and remove unused clock set/get. Elaine Zhang (2): rockchip: rk3568: add device tree file rockchip:

[RESEND PATCH v2 1/2] rockchip: rk3568: add device tree file

2021-05-26 Thread Elaine
From: Elaine Zhang Add dts binding header for rk3568, files origin from kernel. Signed-off-by: Elaine Zhang --- include/dt-bindings/clock/rk3568-cru.h | 925 + 1 file changed, 925 insertions(+) create mode 100644 include/dt-bindings/clock/rk3568-cru.h diff --git a/inc

[PATCH v2 2/2] rockchip: rk3568: add clock driver

2021-05-26 Thread Elaine
From: Elaine Zhang Add rk3568 clock driver and cru structure definition. Signed-off-by: Elaine Zhang --- .../include/asm/arch-rockchip/cru_rk3568.h| 504 +++ drivers/clk/rockchip/Makefile |1 + drivers/clk/rockchip/clk_rk3568.c | 2959 + 3 f

[PATCH v5 1/6] dm: regulator: support regulator more state

2021-05-26 Thread Elaine
From: Joseph Chen support parse regulator standard property: regulator-off-in-suspend; regulator-init-microvolt; regulator-suspend-microvolt: regulator_get_suspend_enable regulator_set_suspend_enable regulator_get_suspend_value regulator_set_suspend_value Signed-off-by: Joseph Chen Signed-o

[PATCH v5 0/6] power: pmic: support more PMIC

2021-05-26 Thread Elaine
From: Elaine Zhang Support more PMIC and improve compatibility between pmics. Change in V5: [PATCH v5 1/6]: Fixed test case run error. [PATCH v5 2/6]: Resolve compile warning. [PATCH v5 3/6]: No change. [PATCH v5 4/6]: No change. [PATCH v5 5/6]: No change. [PATCH v5 6/6]: No change. Change in V

[PATCH v2 0/2] clk: rockchip: rk3568: add clock driver

2021-05-26 Thread Elaine
From: Elaine Zhang Add basic clock for rk3568 which including cpu, bus, mmc, i2c, pwm, gmac ...clocks init. Change in V2: [PATCH v2 0/1]: No change. [PATCH v2 0/2]: update the copyright info and remove unused clock set/get. Elaine Zhang (2): rockchip: rk3568: add device tree file rockchip:

[PATCH v2 1/2] rockchip: rk3568: add device tree file

2021-05-26 Thread Elaine
From: Elaine Zhang Add dts binding header for rk3568, files origin from kernel. Signed-off-by: Elaine Zhang --- include/dt-bindings/clock/rk3568-cru.h | 925 + 1 file changed, 925 insertions(+) create mode 100644 include/dt-bindings/clock/rk3568-cru.h diff --git a/inc

Re: [PATCH] spi: zynqmp_gqspi: Fix write issue

2021-05-26 Thread Michal Simek
On 5/25/21 2:36 PM, Ashok Reddy Soma wrote: > Enable manual start in zynqmp_qspi_fill_gen_fifo(). > Also enable GQSPI_IXR_GFNFULL_MASK and check for it instead of > GQSPI_IXR_GFEMTY_MASK. > > Add dummy write to genfifo register in chipselect. > > Signed-off-by: Ashok Reddy Soma > --- > > dr

Re: [PATCH] phy: sun4i-usb: Fix PHY0 routing and passby configuration for MUSB

2021-05-26 Thread Paul Kocialkowski
Hi Andre, Le Wed 26 May 21, 01:57, Andre Przywara a écrit : > From: Paul Kocialkowski > > Recent Allwinner platforms (starting with the H3) only use the MUSB > controller for peripheral mode and use HCI for host mode. As a result, > extra steps need to be taken to properly route USB signals to o

Uboot raspberry pi watchdog disabled by mistake

2021-05-26 Thread Laurentiu-Cristian Duca
Hello uboot community, In 2019, commit [1] deleted commit [2]. Commit [2] implemented the watchdog feature for raspberry pi. The delete reason is, I quote, "The BCM2835/2836 watchdog is not used in mainline U-Boot at all". I am using commit [2] in conjunction with bootlimit: - uboot increment

[PATCH] rk3399_common: setup fdtoverlay_addr_r value

2021-05-26 Thread Artem Lapkin
fdtoverlay (pxe_utils) require define fdtoverlay_addr_r env variable for example sunxi-common.h meson64.h already have it. Signed-off-by: Artem Lapkin --- include/configs/rk3399_common.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/rk3399_common.h b/include/configs/rk3399_

[PATCH] evb_rk3399: add usb ohci definations

2021-05-26 Thread Artem Lapkin
Problem: not possible to use CONFIG_USB_OHCI_HCD=y and CONFIG_USB_OHCI_GENERIC=y options without CONFIG_USB_OHCI_NEW and CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS definations Add missed definations. Signed-off-by: Artem Lapkin --- include/configs/evb_rk3399.h | 3 +++ 1 file changed, 3 insertions(+)

[PATCH] rk3399: boot_devices fix spinor node name

2021-05-26 Thread Artem Lapkin
Problem: board_spl_was_booted_from return wrong boot_devices[3] value /spi@ff1d and same-as-spl dont work properly for SPINOR flash because arch/arm/mach-rockchip/spl-boot-order.c spl_node_to_boot_device need parse SPINOR flash node as UCLASS_SPI_FLASH spl-boot-order: same-as-spl > *** BOOT_

[PULL] u-boot-riscv/master

2021-05-26 Thread Leo Liang
Hi Tom, The following changes since commit eb53b943be2949ca40a8e05532cd74cda058: Merge https://source.denx.de/u-boot/custodians/u-boot-sh (2021-05-23 10:15:15 -0400) are available in the Git repository at: g...@source.denx.de:u-boot/custodians/u-boot-riscv.git for you to fetch change

Re: [PATCH] fs/squashfs: fix reading of fragmented files

2021-05-26 Thread Miquel Raynal
Hi Joao, Joao Marcos Costa wrote on Mon, 17 May 2021 18:20:38 -0300: > The fragmented files were not correctly read because of two issues: > > - The squashfs_file_info struct has a field named 'comp', which tells if > the file's fragment is compressed or not. This field was always set to > 'tru

Re: [PATCH] net: ravb: Add additional refclk

2021-05-26 Thread Ramon Fried
On Tue, May 25, 2021 at 8:52 PM Adam Ford wrote: > > The ethernet requires an external reference clock, and the driver > currently assumes the clock is always running. For devices using > a programmable clock, this may not be true. Add an optional clock > called 'refclk' to open and enable the r

Re: [PATCH] fastboot: Fix overflow when calculating chunk size

2021-05-26 Thread Lukasz Majewski
Hi Sean, > On 5/13/21 11:54 AM, Sean Anderson wrote: > > Hi Lukasz, > > > > Can this make it into 2020.07? Thanks, > > ping? Should Tom pick this up instead? > Yes, Tom please pick it up - as I will not prepare PR sooner than June. > --Sean > > > > > --Sean > > > > On 4/16/21 5:58 PM, Se