[PATCH] button: add udevice forward declaration

2021-02-18 Thread Neil Armstrong
After 401d1c4f5d2d ("common: Drop asm/global_data.h from common header") build fails with : drivers/button/button-uclass.c:13:5: error: conflicting types for 'button_get_by_label' int button_get_by_label(const char *label, struct udevice **devp) ^~~ Adding struct udevice forw

Re: [PATCH u-boot-marvell 00/18] Upgrade A38x DDR3 training to version 14.0.0

2021-02-18 Thread Stefan Roese
Hi Marek, On 18.02.21 20:56, Marek Behun wrote: Chris put his Tested-by on this series and noone else replyied to it. What do you think about this? How about the issue of size increase in the SPL? IIRC, then one patch resulted in a too big image for one of the MVEBU boards. The only thing th

[PATCH 9/9] imx8mp_evk: Enable the DWC EQoS iMX driver

2021-02-18 Thread Ye Li
Enable the EQoS i.MX driver in defconfig, also enable the PHYLIB to facilitate the case that only has FEC enabled. Signed-off-by: Ye Li --- configs/imx8mp_evk_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/imx8mp_evk_defconfig b/configs/imx8mp_evk_defconfig index e70c430

[PATCH 8/9] imx8mp_evk: Delete noncached memory config

2021-02-18 Thread Ye Li
DWC EQOS driver has removed to use noncached memory, so delete the configuration from iMX8MP EVK head file. Signed-off-by: Ye Li --- include/configs/imx8mp_evk.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/configs/imx8mp_evk.h b/include/configs/imx8mp_evk.h index 4850b1b..8c2e5

[PATCH 7/9] imx8mp_evk: Remove EQoS PHY reset codes

2021-02-18 Thread Ye Li
Since we uses the DTS and PHY reset gpio in EQoS driver to do the reset, remove the duplicated codes from board file. Signed-off-by: Ye Li --- board/freescale/imx8mp_evk/imx8mp_evk.c | 19 --- 1 file changed, 19 deletions(-) diff --git a/board/freescale/imx8mp_evk/imx8mp_evk.c

[PATCH 6/9] imx8mp_evk: Fix incorrect cascade for FEC and EQOS setup

2021-02-18 Thread Ye Li
The setup functions should be independent for two ethernet controllers Signed-off-by: Ye Li --- board/freescale/imx8mp_evk/imx8mp_evk.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/board/freescale/imx8mp_evk/imx8mp_evk.c b/board/freescale/imx8mp_evk/imx8mp_evk.c inde

[PATCH 5/9] arm: dts: imx8mp-evk: Enable the EQoS ethernet port

2021-02-18 Thread Ye Li
i.MX8MP EVK has two ethernet ports. Add relevant nodes and properties for EQoS port to the EVK DTS file. In -u-boot.dtsi, change the u-boot eqos compatible string, add PHY reset gpio and remove assigned clocks as not supported in CCF. Signed-off-by: Ye Li --- arch/arm/dts/imx8mp-evk-u-boot.dtsi

[PATCH 4/9] arm: dts: imx8mp: Add EQoS controller node

2021-02-18 Thread Ye Li
Add node for EQoS ethernet controller as the second ethernet port on i.MX8MP Signed-off-by: Ye Li --- arch/arm/dts/imx8mp.dtsi | 23 +++ 1 file changed, 23 insertions(+) diff --git a/arch/arm/dts/imx8mp.dtsi b/arch/arm/dts/imx8mp.dtsi index ecccfbb..813dc66 100644 --- a/arch

[PATCH 3/9] arm: mach-imx: Allow to build mac.c for EQoS driver

2021-02-18 Thread Ye Li
i.MX8MP has one DWC EQoS controller, so allow to build mac.c when only this driver is enabled. Signed-off-by: Ye Li --- arch/arm/mach-imx/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-imx/Makefile b/arch/arm/mach-imx/Makefile index 1aa26a5..df2253d 100644 --- a/arch/

[PATCH 2/9] arm: mach-imx: Update MAC fuse for i.MX8MP

2021-02-18 Thread Ye Li
i.MX8MP has two ENET controllers, have to update the function to enable loading two MAC addresses. Signed-off-by: Ye Li --- arch/arm/mach-imx/mac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/mac.c b/arch/arm/mach-imx/mac.c index 3b1496b..9bb63d2 100644

[PATCH 1/9] net: eqos: Add PHY reset control for i.MX platform

2021-02-18 Thread Ye Li
Parse the "phy-reset-gpios", "phy-reset-post-delay" and "phy-reset-duration" properties from eqos node to control the ethernet PHY reset at driver probe. Reset PHY once is enough that can reduce the time cost to get IP after the first time. Signed-off-by: Ye Li --- drivers/net/dwc_eth_qos.c | 55

Please pull mmc-2021-2-19

2021-02-18 Thread Peng Fan (OSS)
Hi Tom, Please pull mmc-2021-2-19 Sorry for delay, I have been quite busy in the past days. = mmc_spi improvement added mmc-pwrseq to remove duplicated code fix response timeout after switch command sdhci: skip cache invalidation if DMA is not used = Thank

[PATCH] arm: dts: imx8mp-evk: Add FEC PHY reset timing

2021-02-18 Thread Ye Li
Add phy-reset-duration and phy-reset-post-delay to FEC node for PHY reset, otherwise the PHY does not work correctly. Signed-off-by: Ye Li --- arch/arm/dts/imx8mp-evk-u-boot.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/dts/imx8mp-evk-u-boot.dtsi b/arch/arm/dts/imx8mp-evk-

Re: [PATCH 3/3] firmware: scmi: fix inline comments and minor coding style issues

2021-02-18 Thread Etienne Carriere
Hello Simon, On Fri, 19 Feb 2021 at 05:52, Simon Glass wrote: > > Hi Etienne, > > On Thu, 18 Feb 2021 at 05:55, Etienne Carriere > wrote: > > > > Fix inline comments and empty line in scmi driver and test files. > > Condition SCMI clock and reset tests to U-Boot configuration. > > > > Change-Id:

Re: [PATCH 1/1] arm: qemu: support qfw

2021-02-18 Thread Heinrich Schuchardt
On 2/19/21 1:52 AM, Asherah Connor wrote: Adds support for QFW on Arm platforms by checking the device tree for a "qemu,fw-cfg-mmio"-compatible node in arch_early_init_r and initialising the driver if found. Both MMIO and DMA are supported on this architecture. The device shows up as: fw-cfg@

[PATCH] Makefile: Add target to generate hex output for combined spl and dtb

2021-02-18 Thread Siew Chin Lim
From: Dalon Westergreen Some architectures, Stratix10/Agilex, require a hex formatted spl that combines the spl image and dtb. This adds a target to create said hex file with and offset of SPL_TEXT_BASE. Signed-off-by: Dalon Westergreen Signed-off-by: Siew Chin Lim --- Makefile

Re: [PATCH 1/1] test: missing dependency for test/cmd/setexpr.c

2021-02-18 Thread Heinrich Schuchardt
On 2/19/21 5:52 AM, Simon Glass wrote: Hi Heinrich, On Wed, 17 Feb 2021 at 04:58, Heinrich Schuchardt wrote: test/cmd/setexpr.c cannot be linked with CONFIG_CMD_SETEXPR=n: ld.bfd: test/built-in.o: in function `setexpr_test_sub': test/cmd/setexpr.c:227: undefined reference to `setexpr_regex_s

Re: [PATCH 0/1] Add preliminary support for QFW on Arm

2021-02-18 Thread Heinrich Schuchardt
On 2/19/21 1:52 AM, Asherah Connor wrote: This patch adds preliminary support for the QEMU firmware interface (aka. QEMU fw_cfg) on the Arm platform. I'm sending this to see if there's interest in accepting this support; ultimately, I'd like to get the QEMU "ramfb" display working, which require

Re: [PATCH] fdt/sunxi: Remove OF_STDOUT_PATH

2021-02-18 Thread Simon Glass
Hi Andre, On Thu, 18 Feb 2021 at 09:03, Andre Przywara wrote: > > On Wed, 17 Feb 2021 21:45:29 -0700 > Simon Glass wrote: > > Hi Simon, > > > On Sun, 14 Feb 2021 at 05:35, Andre Przywara wrote: > > > > > > OF_STDOUT_PATH was meant to hold the devicetree path to the serial > > > console, to be p

Re: [PATCH 3/3] firmware: scmi: fix inline comments and minor coding style issues

2021-02-18 Thread Simon Glass
Hi Etienne, On Thu, 18 Feb 2021 at 05:55, Etienne Carriere wrote: > > Fix inline comments and empty line in scmi driver and test files. > Condition SCMI clock and reset tests to U-Boot configuration. > > Change-Id: Iac37398cedc1942cf1cc114fc60cbe04c599313e > Signed-off-by: Etienne Carriere > ---

Re: [PATCH 1/1] doc: booti man-page

2021-02-18 Thread Simon Glass
On Wed, 17 Feb 2021 at 09:59, Heinrich Schuchardt wrote: > > Provide a man-page for the booti command. > > Signed-off-by: Heinrich Schuchardt > --- > doc/usage/booti.rst | 114 > doc/usage/index.rst | 1 + > 2 files changed, 115 insertions(+) > cre

Re: [PATCH 1/1] test: missing dependency for test/cmd/setexpr.c

2021-02-18 Thread Simon Glass
Hi Heinrich, On Wed, 17 Feb 2021 at 04:58, Heinrich Schuchardt wrote: > > test/cmd/setexpr.c cannot be linked with CONFIG_CMD_SETEXPR=n: > > ld.bfd: test/built-in.o: in function `setexpr_test_sub': > test/cmd/setexpr.c:227: undefined reference to `setexpr_regex_sub' > ld.bfd: test/built-in.o: in

Re: [PATCH 1/1] lib: rsa: struct udevice build warning

2021-02-18 Thread Simon Glass
On Wed, 17 Feb 2021 at 04:54, Heinrich Schuchardt wrote: > > Avoid build warnings observed with gcc 10.2 > > In file included from lib/rsa/rsa-keyprop.c:16: > include/u-boot/rsa-mod-exp.h:65:24: warning: > ‘struct udevice’ declared inside parameter list will not be visible > outside of this defini

Re: [PATCH v2 4/4] test: Don't unmount not (yet) mounted system

2021-02-18 Thread Simon Glass
On Thu, 18 Feb 2021 at 03:56, Andy Shevchenko wrote: > > On Thu, Feb 18, 2021 at 6:46 AM Simon Glass wrote: > > > > Hi Andy, > > > > On Thu, 11 Feb 2021 at 07:40, Andy Shevchenko > > wrote: > > > > > > When test suite tries to create a file for a new filesystem test case and > > > fails, > > >

Re: [PATCH 1/1] sandbox: enable cros-ec-keyb in test.dtb

2021-02-18 Thread Simon Glass
On Thu, 18 Feb 2021 at 05:01, Heinrich Schuchardt wrote: > > Currently keyboard input fails in the GUI window opened by > > ./u-boot -T -l > > Add the missing include to test.dts. > > Signed-off-by: Heinrich Schuchardt > --- > arch/sandbox/dts/test.dts | 1 + > 1 file changed, 1 insertion(+)

[PATCH] lib: sha512: include "compiler.h"

2021-02-18 Thread Siew Chin Lim
Include "compiler.h" in sha512.c. This is needed by 'cpu_to_be64' macro that used in 'sha512_base_do_finalize' function. Signed-off-by: Siew Chin Lim --- lib/sha512.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/sha512.c b/lib/sha512.c index f1e2acf0fb..35f31e3dc5 100644 --- a/lib/sha

[PATCH] arm: include: secure: Don't include asm\global_data.h in .S file

2021-02-18 Thread Siew Chin Lim
Commit "common: Drop asm/global_data.h from common header" added asm\global_data.h into secure.h. However, secure.h will be included by psci.S. Adding asm\global_data.h has caused compilation failure in pcsi.S. Update secure.h to only include asm\global_data.h in non-assembly section. Signed-off-b

[PATCH v5 10/10] mtd: spi-nor-tiny: Add fixups for Cypress s25hl-t/s25hs-t

2021-02-18 Thread tkuw584924
From: Takahiro Kuwano Fixes mode clocks for SPINOR_OP_READ_FAST_4B and volatile QE bit in tiny. The volatile QE bit function, spansion_quad_enable_volatile() supports dual/quad die package parts, by taking 'die_size' parameter that is used to iterate register update for all dies in the device. S

[PATCH v5 09/10] mtd: spi-nor-core: Add fixups for Cypress s25hl-t/s25hs-t

2021-02-18 Thread tkuw584924
From: Takahiro Kuwano This patch adds Flash specific fixups and hooks for Cypress S25HL-T/S25HS-T family, based on the features introduced in [0][1][2]. The nor->ready() and spansion_sr_ready() introduced in #5 and #6 in this series are used for multi-die package parts. The nor->quad_enable() s

[PATCH v5 08/10] mtd: spi-nor-core: Add Cypress manufacturer ID in set_4byte

2021-02-18 Thread tkuw584924
From: Takahiro Kuwano Cypress chips support SPINOR_OP_EN4B(B7h)/SPINOR_OP_EX4B(E9h) to enable/disable 4-byte addressing mode. Signed-off-by: Takahiro Kuwano --- drivers/mtd/spi/spi-nor-core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/spi/spi-nor-core.c b/drivers/mtd/spi/s

[PATCH v5 06/10] mtd: spi-nor-core: Read status by Read Any Register

2021-02-18 Thread tkuw584924
From: Takahiro Kuwano The spansion_sr_ready() reads status register 1 by Read Any Register commnad. This function is called from Flash specific hook with die address and dummy cycles to support multi-die package parts from Spansion/Cypress. Signed-off-by: Takahiro Kuwano --- Changes in v5: -

[PATCH v5 07/10] mtd: spi-nor-core: Add non-uniform erase for Spansion/Cypress

2021-02-18 Thread tkuw584924
From: Takahiro Kuwano Some of Spansion/Cypress chips have overlaid 4KB sectors at top and/or bottom, depending on the device configuration, while U-Boot supports uniform sector layout only. The spansion_erase_non_uniform() erases overlaid 4KB sectors, non-overlaid portion of normal sector, and r

[PATCH v5 05/10] mtd: spi-nor-core: Add the ->ready() hook

2021-02-18 Thread tkuw584924
From: Takahiro Kuwano For dual/quad die package devices from Spansion/Cypress, the device's status needs to be checked by reading status registers in all dies, by using Read Any Register command. To support this, a Flash specific hook that can overwrite the legacy status check is needed. The cha

[PATCH v5 04/10] mtd: spi-nor-core: Add support for volatile QE bit

2021-02-18 Thread tkuw584924
From: Takahiro Kuwano Some of Spansion/Cypress chips support volatile version of configuration registers and it is recommended to update volatile registers in the field application due to a risk of the non-volatile registers corruption by power interrupt. This patch adds a function to set Quad En

[PATCH v5 03/10] mtd: spi-nor-core: Add support for Read/Write Any Register

2021-02-18 Thread tkuw584924
From: Takahiro Kuwano Some of Spansion/Cypress chips support Read/Write Any Register commands. These commands are mainly used to write volatile registers and access to the registers in second and subsequent die for multi-die package parts. The Read Any Register instruction (65h) is followed by r

[PATCH v5 02/10] mtd: spi-nor-ids: Add Cypress s25hl-t/s25hs-t

2021-02-18 Thread tkuw584924
From: Takahiro Kuwano The S25HL-T/S25HS-T family is the Cypress Semper Flash with Quad SPI. https://www.cypress.com/file/424146/download (256Mb/512Mb/1Gb, single die) https://www.cypress.com/file/499246/download (2Gb/4Gb, dual/quad die) The full version can be found in the following links (regi

[PATCH v5 01/10] mtd: spi-nor: Add Cypress manufacturer ID

2021-02-18 Thread tkuw584924
From: Takahiro Kuwano This patch adds Cypress manufacturer ID (34h) definition. Signed-off-by: Takahiro Kuwano Reviewed-by: Pratyush Yadav --- include/linux/mtd/spi-nor.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/mtd/spi-nor.h b/include/linux/mtd/spi-nor.h index 8e6744

[PATCH v5 00/10] mtd: spi-nor: Add support for Cypress s25hl-t/s25hs-t

2021-02-18 Thread tkuw584924
From: Takahiro Kuwano The S25HL-T/S25HS-T family is the Cypress Semper Flash with Quad SPI. The summary datasheets can be found in the following links. https://www.cypress.com/file/424146/download (256Mb/512Mb/1Gb, single die) https://www.cypress.com/file/499246/download (2Gb/4Gb, dual/quad die)

Re: [PATCH 4/5] sun7i: add support for Micronova srl s027_3 board

2021-02-18 Thread Andre Przywara
On Fri, 19 Feb 2021 00:26:19 +0100 Giulio Benetti wrote: Hi Giulio, > From: Giulio Benetti > > Add support for Micronova srl s027_3 board by adding new vendor/board > folders and using in local Makefile the already present > board/sunxi/Makefile. The reason is that s027_3 needs a pin to be ass

Re: [PATCH v2 00/38] ppc: qemu: Convert qemu-ppce500 to driver model and enable additional driver support

2021-02-18 Thread Bin Meng
On Thu, Feb 18, 2021 at 11:58 PM Bin Meng wrote: > > At present when building qemu-ppce500 the following warnings are seen: > > = WARNING == > This board does not use CONFIG_DM. CONFIG_DM will be > compulsory starting with the v2020.01 release. > Failure to

[PATCH 1/1] arm: qemu: support qfw

2021-02-18 Thread Asherah Connor
Adds support for QFW on Arm platforms by checking the device tree for a "qemu,fw-cfg-mmio"-compatible node in arch_early_init_r and initialising the driver if found. Both MMIO and DMA are supported on this architecture. Signed-off-by: Asherah Connor --- arch/arm/Kconfig| 1 + arc

[PATCH 0/1] Add preliminary support for QFW on Arm

2021-02-18 Thread Asherah Connor
This patch adds preliminary support for the QEMU firmware interface (aka. QEMU fw_cfg) on the Arm platform. I'm sending this to see if there's interest in accepting this support; ultimately, I'd like to get the QEMU "ramfb" display working, which requires the use of fw_cfg to configure. Please no

[PATCH] rockchip: rk3399-puma: Increase environment size to 16 kiB.

2021-02-18 Thread Christoph Muellner
On Puma we have the environment at an offset of 16 kiB. On the eMMC this gives us 16 kiB for the environment before the SPL starts. On the SPI NOR we also have 16 kiB until end of flash. So let's increase the environment size from 8 kiB to its maximum of 16 kiB for both MMC and SPI NOR. Signed-off

[PATCH] rockchip: rk3399-puma: Restore correct VDD_LOG supply.

2021-02-18 Thread Christoph Muellner
A commit from last year re-imported the DTS files form the upstream kernel. By doing so the VDD_LOG regulator in the board's DTS was dropped. Let's restore this, but move it into the u-boot overlay to prevent this issue in the future. Fixes: 167efc2c7a46 ("arm64: dts: rk3399: Sync v5.7-rc1 from Li

Re: [RESEND v2 PATCH 00/16] Nokia RX-51: Fix USB TTY console and enable it

2021-02-18 Thread Pali Rohár
On Tuesday 16 February 2021 09:28:06 Lukasz Majewski wrote: > Hi Pali, > > > On Monday 08 February 2021 23:34:06 Pali Rohár wrote: > > > On Monday 08 February 2021 23:21:38 Pali Rohár wrote: > > > > On Monday 08 February 2021 23:15:33 Lukasz Majewski wrote: > > > > > Hi Pali, > > > > > > >

[PATCH v2 3/3] mx23evk: Add myself as maintainer

2021-02-18 Thread Fabio Estevam
I would like to help supporting this board, so add myself as a maintainer. Now that the board has been converted to DM, also add its devicetree in the MAINTAINERS files entry. Signed-off-by: Fabio Estevam --- Changes since v1: - None board/freescale/mx23evk/MAINTAINERS | 2 ++ 1 file changed,

[PATCH v2 2/3] mx23evk: Convert to driver model

2021-02-18 Thread Fabio Estevam
Make the conversion to driver model as it is mandatory. Successfully tested booting Linux from the SD card. Dropped splash screen support as this needs to be properly converted to DM and tested. Signed-off-by: Fabio Estevam --- Changes since v1: - Fix subject mx28->mx23 arch/arm/dts/Makefile

[PATCH v2 1/3] mx23-evk: Import devicetree file from Linux

2021-02-18 Thread Fabio Estevam
Import the imx23-evk devicetree files from Linux kernel version 5.11. This is in preparation for converting the mx23evk_defconfig target to driver model. Signed-off-by: Fabio Estevam --- Changes since v1: - Fix subject mx28->mx23 arch/arm/dts/imx23-evk.dts | 145 arch/arm/dts/imx23-

Re: [PATCH 0/5] Add Micronova srl S027_3 board support

2021-02-18 Thread Giulio Benetti
Sorry I've forgotten to send patch for adding dts uart1_pa_pins. I wait for some comment before sending v2. On 2/19/21 12:26 AM, Giulio Benetti wrote: Add Micronova srl S027_3 board support Giulio Benetti (5): arm: allwinner: dts: a20: add uart2_pa_pins sunxi: allow SYS_BOARD to be set

[PATCH 3/3] mx23evk: Add myself as maintainer

2021-02-18 Thread Fabio Estevam
I would like to help supporting this board, so add myself as a maintainer. Now that the board has been converted to DM, also add its devicetree in the MAINTAINERS files entry. Signed-off-by: Fabio Estevam --- board/freescale/mx23evk/MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --gi

[PATCH 1/3] mx28-evk: Import devicetree file from Linux

2021-02-18 Thread Fabio Estevam
Import the imx23-evk devicetree files from Linux kernel version 5.11. This is in preparation for converting the mx23evk_defconfig target to driver model. Signed-off-by: Fabio Estevam --- arch/arm/dts/imx23-evk.dts | 145 arch/arm/dts/imx23-pinfunc.h | 333 ++ arch/arm

[PATCH 2/3] mx28evk: Convert to driver model

2021-02-18 Thread Fabio Estevam
Make the conversion to driver model as it is mandatory. Successfully tested booting Linux from the SD card. Dropped splash screen support as this needs to be properly converted to DM and tested. Signed-off-by: Fabio Estevam --- arch/arm/dts/Makefile | 3 +++ arch/arm/dts/imx23-ev

[PATCH 5/5] pwm: sunxi: enable pwm0 support on sun7i

2021-02-18 Thread Giulio Benetti
From: Giulio Benetti sun7i pwm is equal to sun4i and sun5i so enable pwm0 the same way for sun7i. Signed-off-by: Giulio Benetti Signed-off-by: Giulio Benetti --- arch/arm/include/asm/arch-sunxi/pwm.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/include/asm/ar

[PATCH 4/5] sun7i: add support for Micronova srl s027_3 board

2021-02-18 Thread Giulio Benetti
From: Giulio Benetti Add support for Micronova srl s027_3 board by adding new vendor/board folders and using in local Makefile the already present board/sunxi/Makefile. The reason is that s027_3 needs a pin to be asserted to enable lcd before setting controller up and sunxi board doesn't provide

[PATCH 3/5] sunxi: add SYS_VENDOR to Kconfig

2021-02-18 Thread Giulio Benetti
From: Giulio Benetti After allowing SYS_BOARD to be set we also need SYS_VENDOR to be set, so let's add it to Kconfig. Signed-off-by: Giulio Benetti Signed-off-by: Giulio Benetti --- arch/arm/mach-sunxi/Kconfig | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-sunxi/Kconfi

[PATCH 2/5] sunxi: allow SYS_BOARD to be set

2021-02-18 Thread Giulio Benetti
From: Giulio Benetti At the moment SYS_BOARD is always defaulted to "sunxi" but we need it to be set, so let's add string field to it allowing to be setup. Signed-off-by: Giulio Benetti Signed-off-by: Giulio Benetti --- arch/arm/mach-sunxi/Kconfig | 1 + 1 file changed, 1 insertion(+) diff -

[PATCH 1/5] arm: allwinner: dts: a20: add uart2_pa_pins

2021-02-18 Thread Giulio Benetti
From: Giulio Benetti Signed-off-by: Giulio Benetti Signed-off-by: Giulio Benetti --- arch/arm/dts/sun7i-a20.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/dts/sun7i-a20.dtsi b/arch/arm/dts/sun7i-a20.dtsi index a013805831..8bf1921500 100644 --- a/arch/arm/dts/sun7i-a20.d

[PATCH 0/5] Add Micronova srl S027_3 board support

2021-02-18 Thread Giulio Benetti
Add Micronova srl S027_3 board support Giulio Benetti (5): arm: allwinner: dts: a20: add uart2_pa_pins sunxi: allow SYS_BOARD to be set sunxi: add SYS_VENDOR to Kconfig sun7i: add support for Micronova srl s027_3 board pwm: sunxi: enable pwm0 support on sun7i arch/arm/dts/Makefile

[PATCH] pwm: sunxi: enable pwm0 support on sun7i

2021-02-18 Thread Giulio Benetti
From: Giulio Benetti sun7i pwm is equal to sun4i and sun5i so enable pwm0 the same way for sun7i. Signed-off-by: Giulio Benetti Signed-off-by: Giulio Benetti --- arch/arm/include/asm/arch-sunxi/pwm.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/include/asm/ar

Re: [PATCH] rng: iProc rng200: Rename ..._platdata variables to just ..._plat

2021-02-18 Thread Peter Robinson
On Thu, Feb 18, 2021 at 8:36 PM Heinrich Schuchardt wrote: > > On 18.02.21 21:06, Peter Robinson wrote: > > In 8a8d24bd Simon dropped data from all the various _platdata calls > > but it seems this wasn't caught for the RNG200 driver from when it > > was posted to merged. This fixes that issue. >

Re: [PATCH] rng: iProc rng200: Rename ..._platdata variables to just ..._plat

2021-02-18 Thread Heinrich Schuchardt
On 18.02.21 21:06, Peter Robinson wrote: > In 8a8d24bd Simon dropped data from all the various _platdata calls > but it seems this wasn't caught for the RNG200 driver from when it > was posted to merged. This fixes that issue. > > Fixes: 537f0018 (rng: Add iProc RNG200 driver) > Signed-off-by: Pete

Re: [PATCH] board: sl28: add DSA support for variant 2

2021-02-18 Thread Michael Walle
Am 2021-02-16 23:53, schrieb Vladimir Oltean: On Tue, Feb 16, 2021 at 11:25:25PM +0100, Michael Walle wrote: + aliases { + eth0 = &mscc_felix_port0; + eth1 = &mscc_felix_port1; + eth2 = &enetc2; [..] But the address cannot be inherited unless the

[PATCH] rng: iProc rng200: Rename ..._platdata variables to just ..._plat

2021-02-18 Thread Peter Robinson
In 8a8d24bd Simon dropped data from all the various _platdata calls but it seems this wasn't caught for the RNG200 driver from when it was posted to merged. This fixes that issue. Fixes: 537f0018 (rng: Add iProc RNG200 driver) Signed-off-by: Peter Robinson --- drivers/rng/iproc_rng200.c | 20 +++

Re: [PATCH u-boot-marvell 00/18] Upgrade A38x DDR3 training to version 14.0.0

2021-02-18 Thread Marek Behun
Hi Stefan, Chris put his Tested-by on this series and noone else replyied to it. What do you think about this? The only thing that may be problematic is that this series does not preserve original commit authors (the ones who authored these commitsin mv-ddr) in the From header, only in the first

[PATCH 1/1] efi_selftest: compiler flags for dtbdump.o

2021-02-18 Thread Heinrich Schuchardt
Fix a typo. Apply the correct compiler flags to dtbdump.o. Signed-off-by: Heinrich Schuchardt --- lib/efi_selftest/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/efi_selftest/Makefile b/lib/efi_selftest/Makefile index 7d6ea30102..b02fd56e0a 100644 --- a/lib/efi_

[PATCH 2/2] efi_selftest: multi part device path to text

2021-02-18 Thread Heinrich Schuchardt
Test EFI_DEVICE_PATH_TO_TEXT_PROTOCOL.ConvertDevicePathToText() for a multi part device path. Signed-off-by: Heinrich Schuchardt --- lib/efi_selftest/efi_selftest_devicepath.c | 65 ++ 1 file changed, 65 insertions(+) diff --git a/lib/efi_selftest/efi_selftest_devicepath.c

[PATCH 1/2] efi_loader: multi part device paths to text

2021-02-18 Thread Heinrich Schuchardt
Our current implementation of EFI_DEVICE_PATH_TO_TEXT_PROTOCOL.ConvertDevicePathToText() truncates multi part device paths after the first part. We should convert all parts. Render device path instance ends as commas. This is not explicitly described in the UEFI spec but mimics what EDK II does.

[PATCH 0/2] efi_loader: multi part device paths to text

2021-02-18 Thread Heinrich Schuchardt
Our current implementation of EFI_DEVICE_PATH_TO_TEXT_PROTOCOL.ConvertDevicePathToText() truncates multi part device paths after the first part. We should convert all parts. Render device path instance ends as commas. This is not explicitly described in the UEFI spec but mimics what EDK II does.

Re: [PATCH v2] net: tftp: Avoid sending extra ack on completion

2021-02-18 Thread Tom Rini
On Wed, Feb 03, 2021 at 09:28:59PM +0200, Ramon Fried wrote: > in tftpboot, if ack was already sent previously for this > packet, don't send again. > > Fixes: cc6b87ecaa96 ("net: tftp: Add client support for RFC 7440") > > Reported-by: Suneel Garapati > Signed-off-by: Ramon Fried > Tested-by:

Re: [GIT PULL] rpi: updates for v2021.04

2021-02-18 Thread Tom Rini
On Thu, Feb 18, 2021 at 02:04:00PM +0100, Matthias Brugger wrote: > Hi Tom, > > Please find below the updates for the Raspberry Pi for v202.04. The most > important are the support for Compute Module 4 and RPi400. Apart from that we > now have support for the RNG device found on RPi4. > > I run

Re: [PATCH] fdt/sunxi: Remove OF_STDOUT_PATH

2021-02-18 Thread Andre Przywara
On Wed, 17 Feb 2021 21:45:29 -0700 Simon Glass wrote: Hi Simon, > On Sun, 14 Feb 2021 at 05:35, Andre Przywara wrote: > > > > OF_STDOUT_PATH was meant to hold the devicetree path to the serial > > console, to be put into the linux,stdout-path property of the chosen node. > > > > The only user o

[PATCH v2 38/38] doc: Add a reST document for qemu-ppce500

2021-02-18 Thread Bin Meng
Add a reST document to describe how to build and run U-Boot for the QEMU ppce500 machine. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v2: - add descriptions for VirtIO BLK, RTC and power off doc/board/emulation/index.rst| 1 + doc/board/emulation/qemu-ppce500.rst

[PATCH v2 37/38] ppc: qemu: Move board directory from board/freescale to board/emulation

2021-02-18 Thread Bin Meng
board/emulation is the place for other QEMU targets like x86, arm, riscv. Let's move the qemu-ppce500 board codes there. List me as a co-maintainer for this board. Signed-off-by: Bin Meng --- (no changes since v1) arch/powerpc/cpu/mpc85xx/Kconfig | 2 +- board/{frees

[PATCH v2 36/38] ppc: qemu: Drop fixed_sdram()

2021-02-18 Thread Bin Meng
This function is not called anywhere. Only fsl_ddr_sdram_size() is necessary [1] for QEMU. Drop it. [1] arch/powerpc/cpu/mpc85xx/cpu.c::dram_init() Signed-off-by: Bin Meng --- Changes in v2: - new patch: ppc: qemu: Drop fixed_sdram() board/freescale/qemu-ppce500/qemu-ppce500.c | 5 - 1 f

[PATCH v2 35/38] ppc: qemu: Drop a custom env variable 'fdt_addr_r'

2021-02-18 Thread Bin Meng
Now that we have switched to CONFIG_OF_CONTROL, and we can use the env variable 'fdtcontroladdr' directly instead of creating one that is duplicated. Signed-off-by: Bin Meng --- Changes in v2: - new patch: ppc: qemu: Drop a custom env variable 'fdt_addr_r' board/freescale/qemu-ppce500/qemu-pp

[PATCH v2 34/38] ppc: qemu: Delete the temporary FDT virtual-physical mapping after U-Boot is relocated

2021-02-18 Thread Bin Meng
After U-Boot is relocated to RAM already, the previous temporary FDT virtual-physical mapping that was used in the pre-relocation phase is no longer needed. Let's delete the mapping. get_fdt_virt() might be used before and after relocation, update it to return different virtual address of FDT. Si

[PATCH v2 33/38] ppc: qemu: Enable RTC support via I2C

2021-02-18 Thread Bin Meng
The QEMU ppce500 target integrates a Freescale I2C controller and has a Pericom pt7c4338 RTC connected to it. Enable corresponding DM drivers so that 'date' command is actually useful. Signed-off-by: Bin Meng --- Changes in v2: - new patch: ppc: qemu: Enable RTC support via I2C configs/qemu-p

[PATCH v2 32/38] ppc: qemu: Enable support for power off via GPIO

2021-02-18 Thread Bin Meng
The QEMU ppce500 target provides the power off functionality via the GPIO pin#0, and we can support this using the sysreset gpio poweroff driver. Let's enable it. Signed-off-by: Bin Meng --- Changes in v2: - new patch: ppc: qemu: Enable support for power off via GPIO configs/qemu-ppce500_defc

[PATCH v2 31/38] dm: sysreset: Add a Kconfig option for the 'reset' command

2021-02-18 Thread Bin Meng
sysreset uclass driver provides an implementation of 'reset' command using the sysreset_ APIs unconditionally. It also supports the 'poweroff' command using the sysreset_ APIs, but under a Kconfig option CONFIG_SYSRESET_CMD_POWEROFF. Let's do the same for the 'reset' command, by introducing a new

[PATCH v2 27/38] ppc: qemu: Enable VirtIO BLK support

2021-02-18 Thread Bin Meng
Enable VirtIO BLK driver so that we can store a kernel image to a disk image and boot from there. Signed-off-by: Bin Meng --- Changes in v2: - new patch: ppc: qemu: Enable VirtIO BLK support configs/qemu-ppce500_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/qemu-ppc

[PATCH v2 30/38] ppc: qemu: Enable GPIO support

2021-02-18 Thread Bin Meng
QEMU ppce500 target integrates a GPIO controller that is compatible with the QorIQ GPIO controller. Enable the DM GPIO driver for it and the 'gpio' command. Signed-off-by: Bin Meng --- Changes in v2: - new patch: ppc: qemu: Enable GPIO support configs/qemu-ppce500_defconfig | 3 +++ 1 file ch

[PATCH v2 29/38] gpio: mpc8xxx: Support controller register physical address beyond 32-bit

2021-02-18 Thread Bin Meng
dev_read_addr_size_index() returns fdt_addr_t which might be a 64-bit physical address. This might be true for some 85xx SoCs whose CCSBAR is mapped beyond 4 GiB. Signed-off-by: Bin Meng --- Changes in v2: - new patch: gpio: mpc8xxx: Support controller register physical address beyond 32-bit

[PATCH v2 28/38] ppc: mpc85xx: Add 'gpibe' register to 'struct ccsr_gpio'

2021-02-18 Thread Bin Meng
Without this, the DM GPIO driver for MPC8xxx does not compile for MPC85xx SoCs. Signed-off-by: Bin Meng --- Changes in v2: - new patch: ppc: mpc85xx: Add 'gpibe' register to 'struct ccsr_gpio' arch/powerpc/include/asm/immap_85xx.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/power

[PATCH v2 26/38] virtio: Fix VirtIO BLK driver dependency

2021-02-18 Thread Bin Meng
The VirtIO BLK driver depends on the blk uclass driver. Add the dependency in the Kconfig. Signed-off-by: Bin Meng --- Changes in v2: - new patch: virtio: Fix VirtIO BLK driver dependency drivers/virtio/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/virtio/Kconfig b/drive

[PATCH v2 25/38] ppc: qemu: Enable VirtIO NET support

2021-02-18 Thread Bin Meng
By default the QEMU ppce500 machine connects a VirtIO NET to the PCI controller, although it can be replaced to an e1000 NIC via additional command line options. Now that we have switched over to DM PCI, VirtIO support becomes possible. This commit enables the support. Signed-off-by: Bin Meng --

[PATCH v2 22/38] ppc: qemu: Switch over to use DM ETH and PCI

2021-02-18 Thread Bin Meng
At present the board supports non-DM version PCI and E1000 drivers. Switch over to use DM ETH and PCI by: - Rewrite the PCI address map functions using DM APIs - Enable CONFIG_MISC_INIT_R to do the PCI initialization and address map - Drop unnecessary ad-hoc config macros - Remove board_eth_init

[PATCH v2 23/38] ppc: qemu: Drop CONFIG_OF_BOARD_SETUP

2021-02-18 Thread Bin Meng
ft_board_setup() is now empty. Drop it. Signed-off-by: Bin Meng --- (no changes since v1) board/freescale/qemu-ppce500/qemu-ppce500.c | 7 --- configs/qemu-ppce500_defconfig | 1 - 2 files changed, 8 deletions(-) diff --git a/board/freescale/qemu-ppce500/qemu-ppce500.c b/boa

[PATCH v2 24/38] cmd: Fix virtio command dependency

2021-02-18 Thread Bin Meng
The 'virtio' command calls blk_common_cmd() which is only available when CONFIG_HAVE_BLOCK_DEVICE is on. Fix the Kconfig dependency. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- (no changes since v1) cmd/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/Kconfig b/cmd/Kco

[PATCH v2 21/38] pci: mpc85xx: Support 64-bit bus and cpu address

2021-02-18 Thread Bin Meng
At present the driver only supports 32-bit bus and cpu address. The controller's outbound registers/fields for extended address are not programmed. Let's program them to support 64-bit bus and cpu address. Signed-off-by: Bin Meng --- (no changes since v1) drivers/pci/pci_mpc85xx.c | 16 +++

[PATCH v2 20/38] pci: mpc85xx: Support controller register physical address beyond 32-bit

2021-02-18 Thread Bin Meng
devfdt_get_addr_index() returns fdt_addr_t which might be a 64-bit physical address. Use map_physmem() to return the virtual address that can be used by a 32-bit machine. Signed-off-by: Bin Meng --- (no changes since v1) drivers/pci/pci_mpc85xx.c | 5 ++--- 1 file changed, 2 insertions(+), 3 d

[PATCH v2 19/38] pci: mpc85xx: Wrap LAW programming with CONFIG_FSL_LAW

2021-02-18 Thread Bin Meng
For the QEMU ppce500 machine, LAW registers are not implemented hence CONFIG_FSL_LAW is not turned on and all LAW APIs are not available. We should wrap all LAW registers programming in the mpc85xx PCI driver with CONFIG_FSL_LAW. Signed-off-by: Bin Meng --- (no changes since v1) drivers/pci/pc

[PATCH v2 18/38] ppc: qemu: Switch over to use DM serial

2021-02-18 Thread Bin Meng
The QEMU ppce500 target integrates 2 NS16550 serial ports. Switch over to use the DM version of the driver by: - drop unnecessary ad-hoc config macros - add get_serial_clock() in the board codes Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- (no changes since v1) board/freescale/qemu-p

[PATCH v2 17/38] common: Move initr_addr_map() to a bit earlier

2021-02-18 Thread Bin Meng
At present initr_addr_map() is put at a late stage in the init_sequence_r[] calls. This won't work because lot of device driver initialization (e.g.: serial port) happens before it but is lack of the address translation support. This moves the call to a bit earlier, right after the DM initializati

[PATCH v2 15/38] lib: kconfig: Mention CONFIG_ADDR_MAP limitation in the help

2021-02-18 Thread Bin Meng
Mention that CONFIG_ADDR_MAP only works in the post-relocation phase. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- (no changes since v1) lib/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Kconfig b/lib/Kconfig index 7f4c30e..7288340 100644 --- a/lib/Kconfig +++ b/li

[PATCH v2 16/38] ppc: io.h: Use addrmap_ translation APIs only in post-relocation phase

2021-02-18 Thread Bin Meng
In phys_to_virt() and virt_to_phys(), if CONFIG_ADDR_MAP is defined, they use addrmap_ translation APIs to do the address translation. However these APIs only work in post-relocation phase. Update the code logic to fall back to use the default one when in pre-relocation phase. Signed-off-by: Bin

[PATCH v2 14/38] test: cmd: Add a basic test for 'addrmap' command

2021-02-18 Thread Bin Meng
This adds a basic test for the newly introduced 'addrmap' command. Signed-off-by: Bin Meng --- Changes in v2: - new patch: test: cmd: Add a basic test for 'addrmap' command include/test/suites.h | 2 ++ test/cmd/Makefile | 1 + test/cmd/addrmap.c| 38

[PATCH v2 13/38] cmd: Add a command to display the address map

2021-02-18 Thread Bin Meng
This adds a new command 'addrmap' to display the address map for non-identity virtual-physical memory mappings. Signed-off-by: Bin Meng --- Changes in v2: - add doc/usage/addrmap.rst cmd/Kconfig | 7 +++ cmd/Makefile | 1 + cmd/addrmap.c | 35 +

[PATCH v2 12/38] lib: addr_map: Move address_map[] type to the header file

2021-02-18 Thread Bin Meng
At present address_map[] is static and its type is unknown to external modules. In preparation to create a command to list its contents, this patch moves its type definition and declaration to the header file. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- (no changes since v1) include/

[PATCH v2 11/38] include: Remove extern from addr_map.h

2021-02-18 Thread Bin Meng
Remove the extern of the header because they are useless. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- (no changes since v1) include/addr_map.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/addr_map.h b/include/addr_map.h index d322dd2..85e737d 10

[PATCH v2 10/38] ppc: qemu: Enable driver model

2021-02-18 Thread Bin Meng
At present QEMU ppce500 target has not been migrated to driver model yet. As a start, let's enable driver model and the 'dm' command. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- (no changes since v1) configs/qemu-ppce500_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a

  1   2   >