Re: [PATCH v5 13/13] rockchip: serial: Kconfig: allow ROCKCHIP_SERIAL enabled in TPL

2022-04-10 Thread Kever Yang
On 2022/4/10 00:55, Johan Jonker wrote: The serial_rockchip.c driver converts platdata to the data structure used in the ns16550.c file and then calls the function ns16550_serial_probe(). When compiled with OF_REAL the serial_rockchip.c driver returns now -ENODEV when probed and does no harm.

Re: [PATCH v5 11/13] rockchip: serial: rename U_BOOT_DRIVER name to rockchip_uart

2022-04-10 Thread Kever Yang
On 2022/4/10 00:55, Johan Jonker wrote: When a defconfig for rk3288 is compiled it gives the warning: rockchip_rk3288_uart: Missing .compatible in ./drivers/serial/serial_rockchip.c : WARNING: the driver rockchip_rk3288_uart

Re: [PATCH v5 08/13] rockchip: mmc: rockchip_dw_mmc: add rk3066/rk3188 support

2022-04-10 Thread Kever Yang
On 2022/4/10 00:55, Johan Jonker wrote: The Rockchip SoCs rk3066/rk3188 have MMC DT nodes with as compatible string "rockchip,rk2928-dw-mshc". Add OF_PLATDATA support to the existing driver with help of a DM_DRIVER_ALIAS. This type needs a permanent enabled fifo. The other Rockchip SoCs

Re: [PATCH v5 03/13] rockchip: tpl: change call condition rockchip_stimer_init()

2022-04-10 Thread Kever Yang
On 2022/4/10 00:55, Johan Jonker wrote: The Rockchip SoCs rk3066/rk3188 have no CONFIG_ROCKCHIP_STIMER_BASE defined. Currently there's no exception in TPL. Make this more generic and compile the code inside the function rockchip_stimer_init() only when CONFIG_ROCKCHIP_STIMER_BASE is available.

Re: [PATCH v5 02/13] rockchip: spl: change call condition rockchip_stimer_init()

2022-04-10 Thread Kever Yang
On 2022/4/10 00:55, Johan Jonker wrote: The Rockchip SoCs rk3066/rk3188 have no CONFIG_ROCKCHIP_STIMER_BASE defined. Currently only rk3188 has an exception in SPL. Make this more generic and compile code inside the function rockchip_stimer_init() only when CONFIG_ROCKCHIP_STIMER_BASE is

Re: [PATCH 2/2] mmc: sunxi: Remove unnecessary pinmux option dependency

2022-04-10 Thread Peng Fan (OSS)
On 2022/4/10 13:13, Samuel Holland wrote: Now that the pinmux conflict is handled in the board code (by skipping setup for the one conflicting MMC controller), the driver does not need to be entirely disabled based on the UART pinmux. Signed-off-by: Samuel Holland Reviewed-by: Peng Fan

Re: [PATCH V2 2/6] arch: arm: move COUNTER_FREQUENCY from versal to arm

2022-04-10 Thread Peng Fan (OSS)
On 2022/4/10 23:28, Tom Rini wrote: On Sun, Apr 10, 2022 at 04:31:57PM +0800, Peng Fan (OSS) wrote: From: Peng Fan Make COUNTER_FREQUENCY usable to armv8 and armv7-a, not limited to versal. Signed-off-by: Peng Fan --- arch/arm/Kconfig | 7 +++

[PATCH v10 16/16] doc: rockchip: add rk3066 Rikomagic MK808

2022-04-10 Thread Johan Jonker
Add rk3066 Rikomagic MK808 to the list of mainline supported Rockchip boards. Include instructions for creating and programming images to NAND and SD card. Signed-off-by: Johan Jonker --- Changed V10: add more info --- doc/board/rockchip/rockchip.rst | 111 1

[PATCH v10 15/16] doc: rockchip: add px30/rk3326 boards and examples

2022-04-10 Thread Johan Jonker
There are several PX30/RK3326 boards in use without mentioning in rockchip.rst. Add boards and examples. Signed-off-by: Johan Jonker --- doc/board/rockchip/rockchip.rst | 16 1 file changed, 16 insertions(+) diff --git a/doc/board/rockchip/rockchip.rst

[PATCH v10 14/16] doc: rockchip: restyle rockchip.rst

2022-04-10 Thread Johan Jonker
With more text coming to the rockchip.rst document, give it a restyle first. Changed: sort build examples alphabetically add git clone example fix bash examples fix phrases (grammer) fix typos Signed-off-by: Johan Jonker --- doc/board/rockchip/rockchip.rst | 138

[PATCH v10 11/16] rockchip: rk3066: add core support

2022-04-10 Thread Johan Jonker
Add the core architecture code for the rk3066. Signed-off-by: Johan Jonker --- arch/arm/include/asm/arch-rk3066/boot0.h | 8 +++ arch/arm/include/asm/arch-rk3066/gpio.h | 8 +++ arch/arm/include/asm/arch-rk3066/timer.h | 6 ++ arch/arm/mach-rockchip/Kconfig|

[PATCH v10 13/16] rockchip: rk3066: add mk808_defconfig

2022-04-10 Thread Johan Jonker
This commit adds the default configuration file and relevant description for a MK808 board. Signed-off-by: Johan Jonker Reviewed-by: Kever Yang --- changed V9: enable led gpio disable STIMER Changed V8: use default log level ENV_IS_NOWHERE --- configs/mk808_defconfig | 100

[PATCH v10 12/16] rockchip: rk3066: add Rikomagic MK808 board

2022-04-10 Thread Johan Jonker
MK808 is a RK3066-based board with 1 USB host and 1 USB OTG port, HDMI and a micro-SD card slot. It also includes on-board NAND and 1GB of SDRAM. Signed-off-by: Johan Jonker Reviewed-by: Kever Yang --- arch/arm/mach-rockchip/rk3066/Kconfig | 9 + board/rikomagic/mk808/Kconfig

[PATCH v10 08/16] arm: dts: rockchip: add rk3066a.dtsi

2022-04-10 Thread Johan Jonker
In the Linux DT the file rk3xxx.dtsi is shared between rk3066 and rk3188. Add rk3066a.dtsi. Move U-boot specific things in a rk3066a-u-boot.dtsi file. Signed-off-by: Johan Jonker Reviewed-by: Kever Yang --- Changed V9: fix include rk3066a-u-boot.dtsi Changed V8: update dtsi ---

[PATCH v10 09/16] arm: dts: rockchip: add rk3066a-mk808.dts

2022-04-10 Thread Johan Jonker
MK808 is a RK3066-based board with 1 USB host and 1 USB OTG port, HDMI and a micro-SD card slot. It also includes on-board NAND and 1GB of SDRAM. Add rk3066a-mk808.dts. Move U-boot specific things in a rk3066a-mk808-u-boot.dtsi file. Signed-off-by: Johan Jonker Reviewed-by: Kever Yang ---

[PATCH v10 10/16] rockchip: tools: add rk3066 support to rkcommon.c

2022-04-10 Thread Johan Jonker
Add rk3066 support to rkcommon.c Signed-off-by: Johan Jonker Reviewed-by: Kever Yang --- tools/rkcommon.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/rkcommon.c b/tools/rkcommon.c index 29f2676c19..860785f839 100644 --- a/tools/rkcommon.c +++ b/tools/rkcommon.c @@ -123,6 +123,7

[PATCH v10 07/16] arm: dts: rockchip: fix include rk3xxx-u-boot.dtsi

2022-04-10 Thread Johan Jonker
Move the include for rk3xxx-u-boot.dtsi to rk3188-u-boot.dtsi to stay in line with U-boot dtsi files. Signed-off-by: Johan Jonker Reviewed-by: Kever Yang --- arch/arm/dts/rk3188-u-boot.dtsi | 1 + arch/arm/dts/rk3188.dtsi| 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v10 06/16] arm: dts: rockchip: fix rk3xxx-u-boot.dtsi

2022-04-10 Thread Johan Jonker
The file rk3xxx-u-boot.dtsi was original only for rk3188 and SPL. With rk3066 added some nodes are also needed in TPL, so change them to u-boot,dm-pre-reloc Signed-off-by: Johan Jonker Reviewed-by: Kever Yang --- arch/arm/dts/rk3xxx-u-boot.dtsi | 8 1 file changed, 4 insertions(+), 4

[PATCH v10 05/16] rockchip: rk3066: add sdram driver

2022-04-10 Thread Johan Jonker
From: Paweł Jarosz Add rockchip rk3066 sdram driver Signed-off-by: Paweł Jarosz Signed-off-by: Johan Jonker Reviewed-by: Kever Yang --- Changed V7: restyle rename TEST_PATTERN changed function prefix changed #if where possible restyle U_BOOT_DRIVER structure remove

[PATCH v10 03/16] rockchip: rk3066: add clock driver for rk3066 soc

2022-04-10 Thread Johan Jonker
From: Paweł Jarosz Add the clock driver for the rk3066 platform. Derived from the rk3288 and rk3188 driver it supports only a bare minimum to bring up the system to reduce the TPL size for: SDRAM clock configuration. The boot devices NAND, EMMC, SDMMC, SPI. A UART for the debug messages

[PATCH v10 04/16] rockchip: rk3066: add rk3066 pinctrl driver

2022-04-10 Thread Johan Jonker
From: Paweł Jarosz Add driver supporting pin multiplexing on rk3066 platform. Signed-off-by: Paweł Jarosz Signed-off-by: Johan Jonker Reviewed-by: Kever Yang --- Changed V9: change regmap source Changed V7: restyle changed function prefix. restyle U_BOOT_DRIVER structure use

[PATCH v10 02/16] rockchip: rk3066: add grf header file

2022-04-10 Thread Johan Jonker
From: Paweł Jarosz grf is needed by various drivers for rk3066 soc. Signed-off-by: Paweł Jarosz Signed-off-by: Johan Jonker Reviewed-by: Kever Yang --- Changed V9: fix TAB Changed V8: add GRF_GPIO3B_IOMUX for SDMMC0 use GENMASK, __bf_shf and REG defines add includes ---

[PATCH v10 01/16] rockchip: rk3066-power: sync power domain dt-binding header from Linux

2022-04-10 Thread Johan Jonker
In order to update the DT for rk3066 sync the power domain dt-binding header. This is the state as of v5.12 in Linux. Signed-off-by: Johan Jonker Reviewed-by: Kever Yang --- include/dt-bindings/power/rk3066-power.h | 22 ++ 1 file changed, 22 insertions(+) create mode

[PATCH v10 00/16] Add Rikomagic MK808 board

2022-04-10 Thread Johan Jonker
MK808 is a RK3066-based board with 1 USB host and 1 USB OTG port, HDMI and a micro-SD card slot. It also includes on-board NAND and 1GB of SDRAM. Changed V10: add u-boot,spl-fifo-mode property combine patches core support restyle doc rockchip.rst add more px30 doc info add more rk3066

Re: Pull request for efi-2022-07-rc1

2022-04-10 Thread Tom Rini
On Sun, Apr 10, 2022 at 09:38:06AM +0200, Heinrich Schuchardt wrote: > Dear Tom, > > The following changes since commit d46e86d25c2a504b3e2e4ab17d70b2f0be440f34: > > configs: Resync with savedefconfig (2022-04-08 13:36:51 -0400) > > are available in the Git repository at: > >

Re: [PATCH 3/3] binman: add test for sign option

2022-04-10 Thread Alper Nebi Yasak
I initially ignored this test because I didn't like the implementation anyway, but I disagree with some of Sean's comments here so I wanted to add on what I think. On 08/04/2022 22:26, Ivan Mikhaylov wrote: > On Fri, 2022-04-08 at 11:39 -0400, Sean Anderson wrote: >> On 3/21/22 5:43 PM, Ivan

Re: [PATCH] Revert "env: Load env when ENV_IS_NOWHERE is only location selected"

2022-04-10 Thread Marek Vasut
On 4/10/22 13:54, felix.vietme...@jila.colorado.edu wrote: From your description it seems like the board I was working on must have had an environment on NOR or eMMC which could be loaded but did not allow the board to come up. Then, the patch forces u-boot to use the default environment

[PATCH v2] cmd: bootefi: restore ability to boot arbitrary blob

2022-04-10 Thread kevans
From: Kyle Evans Up until commit 5f59518a7b1ae ("efi_loader: setting boot device"), we could boot an arbitrary blob with bootefi. Indeed, efi_run_image() even has a special case for missing device paths indicating a payload that was directly loaded via JTAG, for example. Restore the ability to

Re: [PATCH 1/1] binman: don't import deprecated distutils package

2022-04-10 Thread Alper Nebi Yasak
On 09/04/2022 15:53, Heinrich Schuchardt wrote: > 'make tests' fails on Ubuntu 22.04 with: > > binman: ./tools/binman/binman:12: DeprecationWarning: > The distutils package is deprecated and slated for removal in Python 3.12. > Use setuptools or check PEP 632 for potential alternatives > from

Re: [PATCH V2 2/6] arch: arm: move COUNTER_FREQUENCY from versal to arm

2022-04-10 Thread Tom Rini
On Sun, Apr 10, 2022 at 04:31:57PM +0800, Peng Fan (OSS) wrote: > From: Peng Fan > > Make COUNTER_FREQUENCY usable to armv8 and armv7-a, not limited to > versal. > > Signed-off-by: Peng Fan > --- > arch/arm/Kconfig | 7 +++ > arch/arm/mach-versal/Kconfig | 6 -- > 2 files

Re: [PATCH] Revert "env: Load env when ENV_IS_NOWHERE is only location selected"

2022-04-10 Thread Tom Rini
On Sun, Apr 10, 2022 at 06:46:52AM +0200, Marek Vasut wrote: > This reverts commit 8d61237edbf6314a701cf78da2c5893a73ff5438. > > This commit broke environment on literally every board I have access > to, with this revert in place, environment works as it should again. > The problem I observe

Re: [PATCH] gpio: pca953x_gpio: add PCA957X support

2022-04-10 Thread Tom Rini
On Tue, Mar 22, 2022 at 03:38:36PM +0100, Luca Ellero wrote: > From: Luca Ellero > > Take as reference Linux kernel code: > drivers/gpio/gpio-pca953x.c > > Signed-off-by: Luca Ellero > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP

Re: [PATCH v3] gpio: Enable hogging support in SPL

2022-04-10 Thread Tom Rini
On Mon, Feb 07, 2022 at 05:09:01PM -0600, Eddie James wrote: > Use the CONFIG macros to conditionally build the GPIO hogging support in > either the SPL or U-Boot, or both, depending on the configuration. Also > call the GPIO hog probe function in the common SPL board initialization > as an

Re: [PATCH] gpio: Add gpio_request_by_line_name()

2022-04-10 Thread Tom Rini
On Mon, Jan 31, 2022 at 01:54:05PM +1030, Andrew Jeffery wrote: > Add support for the upstream gpio-line-names property already described > in the common GPIO binding document[1]. The ability to search for a line > name allows boards to lift the implementation of common GPIO behaviours > away

Re: [PATCH] test/py:Update python tests for ‘gpio’ cmd

2022-04-10 Thread Tom Rini
On Mon, May 31, 2021 at 04:23:51PM +0530, opensource@gmail.com wrote: > From: Adarsh Babu Kalepalli > > Generic Python Test cases are developed to verfiy 'gpio' command. > > Signed-off-by: Adarsh Babu Kalepalli Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP

Re: [PATCH] Revert "env: Load env when ENV_IS_NOWHERE is only location selected"

2022-04-10 Thread Felix . Vietmeyer
>From your description it seems like the board I was working on must have had an environment on NOR or eMMC which could be loaded but did not allow the board to come up. Then, the patch forces u-boot to use the default environment despite an existing env on NOR or eMMC. > This reverts commit

[PATCH V2 4/6] configs: set CONFIG_COUNTER_FREQUENCY

2022-04-10 Thread Peng Fan (OSS)
From: Peng Fan Set CONFIG_COUNTER_FREQUENCY according to COUNTER_FREQUENCY in config header file. Signed-off-by: Peng Fan --- configs/a3y17lte_defconfig| 1 + configs/a5y17lte_defconfig| 1 + configs/a7y17lte_defconfig| 1 +

[PATCH 4/6] configs: set CONFIG_COUNTER_FREQUENCY

2022-04-10 Thread Peng Fan (OSS)
From: Peng Fan Set CONFIG_COUNTER_FREQUENCY according to COUNTER_FREQUENCY in config header file. Signed-off-by: Peng Fan --- configs/a3y17lte_defconfig| 1 + configs/a5y17lte_defconfig| 1 + configs/a7y17lte_defconfig| 1 +

Re: [PATCH v9 16/16] doc: rockchip: add rk3066 Rikomagic MK808

2022-04-10 Thread Johan Jonker
On 4/9/22 06:00, Kever Yang wrote: > > On 2022/4/4 22:19, Johan Jonker wrote: >> Add rk3066 Rikomagic MK808 to the list of >> mainline supported Rockchip boards. >> >> Signed-off-by: Johan Jonker > > Is there any document need for setup build/flash firmware environment > for rk3066? How

[PATCH 3/3] configs: imx8mp_evk: enable CONFIG_DM_SERIAL

2022-04-10 Thread Peng Fan (OSS)
From: Peng Fan Enable CONFIG_DM_SERIAL. uart2 and its pinmux was already marked with u-boot,dm-spl. File generated with make savedefconfig Signed-off-by: Peng Fan --- configs/imx8mn_ddr4_evk_defconfig | 4 ++-- configs/imx8mn_evk_defconfig | 4 ++-- 2 files changed, 4 insertions(+), 4

[PATCH 2/3] configs: imx8mm_evk: enable CONFIG_DM_SERIAL

2022-04-10 Thread Peng Fan (OSS)
From: Peng Fan Enable CONFIG_DM_SERIAL. uart2 and its pinmux was already marked with u-boot,dm-spl. File generated with make savedefconfig Signed-off-by: Peng Fan --- configs/imx8mm_evk_defconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 1/3] configs: imx8mp_evk: enable CONFIG_DM_SERIAL

2022-04-10 Thread Peng Fan (OSS)
From: Peng Fan Enable CONFIG_DM_SERIAL. uart2 and its pinmux was already marked with u-boot,dm-spl. File generated with make savedefconfig Signed-off-by: Peng Fan --- configs/imx8mp_evk_defconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH V2 6/6] include/configs: drop COUNTER_FREQUENCY

2022-04-10 Thread Peng Fan (OSS)
From: Peng Fan Since we have CONFIG_COUNTER_FREQUENCY enabled, no need COUNTER_FREQUENCY Signed-off-by: Peng Fan --- arch/arm/cpu/armv8/fsl-layerscape/spintable.S | 2 +- include/configs/apalis-imx8.h | 1 - include/configs/apalis-imx8x.h| 1 -

[PATCH V2 5/6] armv8: set cntfrq_el0 if CONFIG_COUNTER_FREQUENCY is valid

2022-04-10 Thread Peng Fan (OSS)
From: Peng Fan Since COUNTER_FREQUENCY is obselete, so set cntfrq_el0 if CONFIG_COUNTER_FREQUENCY is valid Signed-off-by: Peng Fan --- arch/arm/cpu/armv8/start.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/cpu/armv8/start.S b/arch/arm/cpu/armv8/start.S

[PATCH V2 3/6] arch: arm: Kconfig: set default COUNTER_FREQUENCY for i.MX

2022-04-10 Thread Peng Fan (OSS)
From: Peng Fan i.MX6UL/ULL/7D/8QM/8QXP all has system counter frequency run at 8MHz, so set default value for them. Signed-off-by: Peng Fan --- arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index d84c10d732e5..c515abb73ffc 100644 ---

[PATCH V2 2/6] arch: arm: move COUNTER_FREQUENCY from versal to arm

2022-04-10 Thread Peng Fan (OSS)
From: Peng Fan Make COUNTER_FREQUENCY usable to armv8 and armv7-a, not limited to versal. Signed-off-by: Peng Fan --- arch/arm/Kconfig | 7 +++ arch/arm/mach-versal/Kconfig | 6 -- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/arch/arm/Kconfig

[PATCH V2 1/6] xilinx: versal: board: use CONFIG_COUNTER_FREQUENCY

2022-04-10 Thread Peng Fan (OSS)
From: Peng Fan Since versal has CONFIG_COUNTER_FREQUENCY, so use it. And COUNTER_FREQUENCY will be dropped. Signed-off-by: Peng Fan --- board/xilinx/versal/board.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/xilinx/versal/board.c b/board/xilinx/versal/board.c

[PATCH V2 0/6] Convert COUNTER_FREQUENCY to CONFIG_COUNTER_FREQUENCY

2022-04-10 Thread Peng Fan (OSS)
From: Peng Fan V2: Drop imx93 which is wrongly included This patchset is to convert COUNTER_FREQUENCY to CONFIG_COUNTER_FREQUENCY for arm64. arm32 is not included for now, this could be in following up patches if this patchset is accepted. This patchset touches lots of boards, so please help

Pull request for efi-2022-07-rc1

2022-04-10 Thread Heinrich Schuchardt
Dear Tom, The following changes since commit d46e86d25c2a504b3e2e4ab17d70b2f0be440f34: configs: Resync with savedefconfig (2022-04-08 13:36:51 -0400) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-efi.git tags/efi-2022-07-rc1 for you to fetch

Fwd: Network U-Boot Custodian Tree | Failed pipeline for next | 19ca279e

2022-04-10 Thread Ramon Fried
Lyle, please see below. you commit fails the CI. -- Forwarded message - From: DENX GitLab Date: Sun, Apr 10, 2022 at 8:59 AM Subject: Network U-Boot Custodian Tree | Failed pipeline for next | 19ca279e To: Pipeline #11640 has failed! Project: Network U-Boot Custodian Tree (