Re: EFI CI failure

2022-08-03 Thread Heinrich Schuchardt
On 8/3/22 20:13, Simon Glass wrote: Hi Heinrich, I am seeing this: https://source.denx.de/u-boot/custodians/u-boot-dm/-/jobs/477636 The EFI sub-system recorded successful execution of the test. Rebooting the system (u_boot_console.restart_uboot()) did not reach the console prompt. Here

Re: [PATCH 1/1] Migration: set deadline for move to DM_GPIO

2022-08-03 Thread Chris Packham
On Thu, Aug 4, 2022 at 5:44 AM Tom Rini wrote: > > On Wed, Aug 03, 2022 at 07:27:50PM +0200, Heinrich Schuchardt wrote: > > On 8/3/22 18:26, Quentin Schulz wrote: > > > Hi Tom, > > > > > > On 8/3/22 18:08, Tom Rini wrote: > > > > On Wed, Aug 03, 2022 at 04:39:52PM +0200, Heinrich Schuchardt

[PATCH 31/31] MAINTAINERS: update maintainer for MediaTek ARM platform

2022-08-03 Thread Weijie Gao
Add new filed for MediaTek ARM platform Signed-off-by: Weijie Gao --- MAINTAINERS | 5 + 1 file changed, 5 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 4d1930f76e..515047db05 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -355,20 +355,25 @@ F:

[PATCH 30/31] tools: mtk_image: add support for nand headers used by newer chips

2022-08-03 Thread Weijie Gao
This patch adds more nand headers in two new types: 1. HSM header, used for spi-nand thru SNFI interface 2. SPIM header, used for spi-nand thru spi-mem interface The original nand header is renamed to AP header. Signed-off-by: Weijie Gao --- tools/mtk_image.c| 23 ++-

[PATCH 29/31] tools: mtk_image: split the code of generating NAND header into a new file

2022-08-03 Thread Weijie Gao
The predefined NAND headers take too much spaces in the mtk_image.c. Moving them into a new file can significantly improve the readability of both mtk_image.c and the new mtk_nand_headers.c. This is a preparation for adding more NAND headers. Signed-off-by: Weijie Gao --- tools/Makefile

[PATCH 28/31] tools: mtk_image: split gfh header verification into a new function

2022-08-03 Thread Weijie Gao
The verification code of gfh header for NAND and non-NAND are identical. It's better to define a individual function to reduce redundancy. Signed-off-by: Weijie Gao --- tools/mtk_image.c | 51 +++ 1 file changed, 21 insertions(+), 30 deletions(-)

[PATCH 27/31] clk: mediatek: add clock driver support for MediaTek MT7981 SoC

2022-08-03 Thread Weijie Gao
This patch adds clock driver support for MediaTek MT7981 SoC Signed-off-by: Weijie Gao --- drivers/clk/mediatek/Makefile | 1 + drivers/clk/mediatek/clk-mt7981.c | 682 + include/dt-bindings/clock/mt7981-clk.h | 267 ++ 3 files changed, 950

[PATCH 26/31] clk: mediatek: add clock driver support for MediaTek MT7986 SoC

2022-08-03 Thread Weijie Gao
This patch adds clock driver support for MediaTek MT7986 SoC Signed-off-by: Weijie Gao --- drivers/clk/mediatek/Makefile | 1 + drivers/clk/mediatek/clk-mt7986.c | 671 + include/dt-bindings/clock/mt7986-clk.h | 249 + 3 files changed, 921

[PATCH 25/31] clk: mediatek: add CLK_XTAL support for clock driver

2022-08-03 Thread Weijie Gao
This add CLK_XTAL macro and flag to mediatek clock driver common part, to make thi SoC that has clock directlly connect to XTAL working. Signed-off-by: Weijie Gao --- drivers/clk/mediatek/clk-mtk.c | 3 +++ drivers/clk/mediatek/clk-mtk.h | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-)

[PATCH 24/31] clk: mediatek: add infrasys clock mux support

2022-08-03 Thread Weijie Gao
This patch adds infrasys clock mux support for mediatek clock drivers. Signed-off-by: Weijie Gao --- drivers/clk/mediatek/clk-mtk.c | 72 ++ drivers/clk/mediatek/clk-mtk.h | 4 +- 2 files changed, 75 insertions(+), 1 deletion(-) diff --git

[PATCH 23/31] clk: mediatek: add support to configure clock driver parent

2022-08-03 Thread Weijie Gao
This patch adds support for a clock node to configure its parent clock where possible. Signed-off-by: Weijie Gao --- drivers/clk/mediatek/clk-mtk.c | 79 -- drivers/clk/mediatek/clk-mtk.h | 2 + 2 files changed, 48 insertions(+), 33 deletions(-) diff --git

[PATCH 21/31] pinctrl: mediatek: add pinctrl driver for MT7986 SoC

2022-08-03 Thread Weijie Gao
This patch adds pinctrl and gpio support for MT7986 SoC Signed-off-by: Weijie Gao --- drivers/pinctrl/mediatek/Kconfig | 4 + drivers/pinctrl/mediatek/Makefile | 1 + drivers/pinctrl/mediatek/pinctrl-mt7986.c | 775 ++ 3 files changed, 780 insertions(+)

[PATCH 22/31] clk: mediatek: add CLK_BYPASS_XTAL flag to allow bypassing searching clock parent of xtal clock

2022-08-03 Thread Weijie Gao
The mtk clock framework in u-boot uses array index for searching clock parent (kernel uses strings for search), so we need to specify a special clock with ID=0 for CLK_XTAL in u-boot. In the mt7622/mt7629 clock tree, the clocks with ID=0 never call mtk_topckgen_get_mux_rate, adn return xtal clock

[PATCH 20/31] pinctrl: mediatek: add pinctrl driver for MT7981 SoC

2022-08-03 Thread Weijie Gao
This patch adds pinctrl and gpio support for MT7981 SoC Signed-off-by: Weijie Gao --- drivers/pinctrl/mediatek/Kconfig |4 + drivers/pinctrl/mediatek/Makefile |1 + drivers/pinctrl/mediatek/pinctrl-mt7981.c | 1049 + 3 files changed, 1054

[PATCH 19/31] dt-bindings: pinctrl: mediatek: add a header for common pinconf parameters

2022-08-03 Thread Weijie Gao
This patch adds a pinctrl header for common pinconf parameters such as pull-up/pull-down resistors and drive strengths. Signed-off-by: Weijie Gao --- include/dt-bindings/pinctrl/mt65xx.h | 41 1 file changed, 41 insertions(+) create mode 100644

[PATCH 17/31] i2c: add support for MediaTek I2C interface

2022-08-03 Thread Weijie Gao
This patch adds support for MediaTek I2C interface Signed-off-by: Weijie Gao --- drivers/i2c/Kconfig | 9 + drivers/i2c/Makefile | 1 + drivers/i2c/mtk_i2c.c | 822 ++ 3 files changed, 832 insertions(+) create mode 100644 drivers/i2c/mtk_i2c.c

[PATCH 18/31] arm: dts: mt7622: add i2c support

2022-08-03 Thread Weijie Gao
Add both hardware and software i2c support for mt7622. Signed-off-by: Weijie Gao --- arch/arm/dts/mt7622-rfb.dts | 18 ++ arch/arm/dts/mt7622.dtsi| 24 2 files changed, 42 insertions(+) diff --git a/arch/arm/dts/mt7622-rfb.dts

[PATCH 16/31] spi: add support for MediaTek spi-mem controller

2022-08-03 Thread Weijie Gao
This patch adds support for spi-mem controller found on newer MediaTek SoCs This controller supports Single/Dual/Quad SPI mode. Signed-off-by: SkyLake.Huang --- drivers/spi/Kconfig| 8 + drivers/spi/Makefile | 1 + drivers/spi/mtk_spim.c | 705 +

[PATCH 15/31] watchdog: mediatek: add support for MediaTek MT7986 SoC

2022-08-03 Thread Weijie Gao
This patch adds watchdog support for MediaTek MT7986 SoC Signed-off-by: Weijie Gao --- drivers/watchdog/mtk_wdt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/watchdog/mtk_wdt.c b/drivers/watchdog/mtk_wdt.c index b098b2e3cf..368b36849c 100644 --- a/drivers/watchdog/mtk_wdt.c +++

[PATCH 14/31] timer: mtk: add support for MediaTek MT7981/MT7986 SoCs

2022-08-03 Thread Weijie Gao
This patch add general-purpose timer support for MediaTek MT7981/MT7986. These two SoCs uses a newer version of timer with its register definition slightly changed. Signed-off-by: Weijie Gao --- drivers/timer/mtk_timer.c | 59 --- 1 file changed, 37

[PATCH 13/31] pwm: mtk: add support for MediaTek MT7981 SoC

2022-08-03 Thread Weijie Gao
This patch adds PWM support for MediaTek MT7981 SoC. MT7981 uses a different register offset so we have to add a version field to indicate the IP core version. Signed-off-by: Weijie Gao --- drivers/pwm/pwm-mtk.c | 34 -- 1 file changed, 32 insertions(+), 2

[PATCH 12/31] pwm: mtk: add support for MediaTek MT7986 SoC

2022-08-03 Thread Weijie Gao
This patch adds PWM support for MediaTek MT7986 SoC. Signed-off-by: Weijie Gao --- drivers/pwm/pwm-mtk.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/pwm/pwm-mtk.c b/drivers/pwm/pwm-mtk.c index aee1d825a0..3100b5caaf 100644 --- a/drivers/pwm/pwm-mtk.c +++

[PATCH 11/31] arm: dts: mt7622: force high-speed mode for uart

2022-08-03 Thread Weijie Gao
The input clock for uart is too slow (25MHz) which introduces frequent data error on both receiving and transmitting even if the baudrate is 115200. Using high-speed can significantly solve this issue. Signed-off-by: Weijie Gao --- arch/arm/dts/mt7622.dtsi | 1 + 1 file changed, 1 insertion(+)

[PATCH 10/31] serial: mtk: add support for using dynamic baud clock souce

2022-08-03 Thread Weijie Gao
The baud clock on some platform may change due to assigned-clock-parent set in DT. In current flow the baud clock is only retrieved during probe stage. If the parent of the source clock changes after probe stage, the setbrg will set wrong baudrate. To get the right clock rate, this patch records

[PATCH 08/31] net: mediatek: add support for PDMA v2

2022-08-03 Thread Weijie Gao
This patch adds support for PDMA v2 hardware. The PDMA v2 has extended the DMA descriptor to 8-words, and some of its fields have changed comparing to the v1 hardware. Signed-off-by: Weijie Gao --- drivers/net/mtk_eth.c | 51 ++--- drivers/net/mtk_eth.h | 53

[PATCH 09/31] net: mediatek: add support for MediaTek MT7981/MT7986

2022-08-03 Thread Weijie Gao
This patch adds support for MediaTek MT7981 and MT7986. Both chips uses PDMA v2. Signed-off-by: Weijie Gao --- drivers/net/mtk_eth.c | 27 +++ drivers/net/mtk_eth.h | 5 + 2 files changed, 32 insertions(+) diff --git a/drivers/net/mtk_eth.c b/drivers/net/mtk_eth.c

[PATCH 07/31] net: mediatek: stop using bitfileds for DMA descriptors

2022-08-03 Thread Weijie Gao
This patch is a preparation for adding a new version of PDMA of which the DMA descriptor fields has changed. Using bitfields will result in a complex modification. Convert bitfields to u32 units can solve this problem easily. Signed-off-by: Weijie Gao --- drivers/net/mtk_eth.c | 144

[PATCH 06/31] net: mediatek: use a struct to cover variations of all SoCs

2022-08-03 Thread Weijie Gao
Using a single soc id to control different initialization and TX/RX flow for all SoCs is not extensible if more hardware variations are added in the future. This patch introduces a struct to replace the original mtk_soc to allow the driver be able handle newer hardwares. Signed-off-by: Weijie

[PATCH 05/31] mmc: mediatek: add support for MediaTek MT7891/MT7986 SoCs

2022-08-03 Thread Weijie Gao
This patch adds eMMC and SDXC support for MediaTek MT7981/MT7986 SoCs Signed-off-by: Weijie Gao --- drivers/mmc/mtk-sd.c | 68 ++-- 1 file changed, 53 insertions(+), 15 deletions(-) diff --git a/drivers/mmc/mtk-sd.c b/drivers/mmc/mtk-sd.c index

[PATCH 04/31] board: mediatek: add MT7981 reference boards

2022-08-03 Thread Weijie Gao
This patch adds general board files based on MT7981 SoCs. Signed-off-by: Weijie Gao --- arch/arm/dts/Makefile | 5 + arch/arm/dts/mt7981-emmc-rfb.dts | 139 + arch/arm/dts/mt7981-rfb.dts| 133 +++

[PATCH 03/31] board: mediatek: add MT7986 reference boards

2022-08-03 Thread Weijie Gao
This patch adds general board files based on MT7986 SoCs. The SD/eMMC controller on MT7986A and MT7986B have different pin configurations so that four different reference board configs has to be added. Signed-off-by: Weijie Gao --- arch/arm/dts/Makefile | 4 +

[PATCH 02/31] arm: mediatek: add support for MediaTek MT7981 SoC

2022-08-03 Thread Weijie Gao
This patch adds basic support for MediaTek MT7981 SoC. This include the file that will initialize the SoC after boot and its device tree. Signed-off-by: Weijie Gao --- arch/arm/dts/mt7981.dtsi | 288 ++ arch/arm/mach-mediatek/Kconfig| 12 +-

[PATCH 01/31] arm: mediatek: add support for MediaTek MT7986 SoC

2022-08-03 Thread Weijie Gao
This patch adds basic support for MediaTek MT7986 SoC. This include the file that will initialize the SoC after boot and its device tree. Signed-off-by: Weijie Gao --- arch/arm/dts/mt7986-u-boot.dtsi | 33 ++ arch/arm/dts/mt7986.dtsi | 341 ++

[PATCH 00/31] Add support for MediaTek MT7981/MT7986 SoCs

2022-08-03 Thread Weijie Gao
This patch series add support for MediaTek MT7981/MT7986 SoCs with their reference boards and related drivers. This patch series add basic boot support on eMMC/SD/SPI-NOR/SPI-NAND for these boards. The clock, pinctrl drivers and the SoC initializaton code are also included. Product spec for

Re: [PATCH] arm: bcmbca: add bcm63138 SoC support

2022-08-03 Thread Florian Fainelli
On 8/1/2022 3:18 PM, William Zhang wrote: BCM63138 is an ARM A9 based DSL Broadband SoC. It is part of the BCA (Broadband Carrier Access origin) chipset family so it's added under ARCH_BCMBCA platform. This initial support includes a bare-bone implementation and dts with CPU subsystem,

Re: [PATCH] timer: bcmbca: Add Broadcom BCMBCA timer support

2022-08-03 Thread Florian Fainelli
On 8/2/2022 5:07 PM, William Zhang wrote: Hi Rafal, On 08/01/2022 10:26 PM, Rafał Miłecki wrote: On 2.08.2022 00:03, William Zhang wrote: This driver supports the peripheral block timer found on the Broadcom BCA SoCs. It is 30-bit up-count timer running at 50MHz and can be used as the

[PATCH] binman: Example for csf signing

2022-08-03 Thread Simon Glass
This is a starting point for running a csf tool to sign some sections of the image and add the signature in. It is missing the test in ftest.py Signed-off-by: Simon Glass --- arch/arm/dts/imx8mm-u-boot.dtsi | 96 +--- tools/binman/btool/csf.py| 87

Re: [PATCH v2] gpio: aspeed: port Linux dt-bindings header file

2022-08-03 Thread Joel Stanley
On Thu, 4 Aug 2022 at 01:02, Dhananjay Phadke wrote: > > Ported as is, makes it easier to add readable GPIO definitions > in DTS files. > > Signed-off-by: Dhananjay Phadke > --- > include/dt-bindings/gpio/aspeed-gpio.h | 49 ++ > 1 file changed, 49 insertions(+) >

Re: [PATCH 0/5] arm: mvebu: Cleanup u-boot,dm-pre-reloc code

2022-08-03 Thread Tony Dinh
Hi Pali, I ran 3 tests: UART booting, SPI NOR booting from SPL, and SPI NOR booting from BootROM (CONFIG_SPL_SPI is not set). All tests work great! Synology DS116 (Armada 385). Tested-by: Tony Dinh Thanks, Tony On Wed, Aug 3, 2022 at 4:01 AM Pali Rohár wrote: > > This patch series cleanup

[PATCH v2] gpio: aspeed: port Linux dt-bindings header file

2022-08-03 Thread Dhananjay Phadke
Ported as is, makes it easier to add readable GPIO definitions in DTS files. Signed-off-by: Dhananjay Phadke --- include/dt-bindings/gpio/aspeed-gpio.h | 49 ++ 1 file changed, 49 insertions(+) create mode 100644 include/dt-bindings/gpio/aspeed-gpio.h diff --git

Re: [PATCH] gpio: aspeed: port Linux dt-bindings header file

2022-08-03 Thread Dhananjay Phadke
On 8/2/2022 10:34 PM, Billy Tsai wrote: Hello, On 2022/8/3, 10:10 AM, "Billy Tsai" wrote: Reviewed-by: Billy Tsai On 2022/8/3, 9:46 AM, "ChiaWei Wang" wrote: Acked-by: Chia-Wei Wang > > From: Dhananjay Phadke > > Sent: Wednesday, August 3, 2022 4:55

[PATCH] gpio: Remove mvgpio driver

2022-08-03 Thread Chris Packham
The last user of this driver was removed in commit dee08b1999e2 ("arm: Remove gplugd board"). Remove the unused driver. Signed-off-by: Chris Packham --- drivers/gpio/Makefile | 1 - drivers/gpio/mvgpio.c | 97 --- drivers/gpio/mvgpio.h | 53

[PATCH] Makefile: Unify condition for mpc85xx reset vector

2022-08-03 Thread Pali Rohár
Use 'CONFIG_MPC85XX_HAVE_RESET_VECTOR && CONFIG_OF_SEPARATE' pattern instead of 'CONFIG_MPC85XX_HAVE_RESET_VECTOR && !CONFIG_OF_EMBED' also in OBJCOPYFLAGS_u-boot-nodtb.bin as this pattern is used in rest of Makefile. Signed-off-by: Pali Rohár --- Makefile | 2 +- 1 file changed, 1

[PATCH v3] Provide more details of exactly how configuration signatures are calculated

2022-08-03 Thread Martin Bonner
The only changes from [PATCH v2] are 1. It is (I think) a valid patch file 2. It has come from my corporate email address (which surprisingly forces less mangling than gmail). 3. I have extended the commit message slightly Apologies for the irrelevant email footer - it is automatically added by

Re: [PATCH v4 8/8] rockchip: add u-boot-rockchip-spi.bin image for booting from SPI-NOR flash

2022-08-03 Thread Simon Glass
On Wed, 3 Aug 2022 at 06:19, Quentin Schulz wrote: > > From: Quentin Schulz > > This new image is similar to u-boot-rockchip.bin except that it's > destined to be flashed on SPI-NOR flashes. > > Cc: Quentin Schulz > Signed-off-by: Quentin Schulz > --- > > v3: > - added filename property so

Re: [PATCH 1/1] block: fix blk_get_devnum_by_typename()

2022-08-03 Thread Simon Glass
Hi Heinrich, On Tue, 2 Aug 2022 at 10:22, Heinrich Schuchardt wrote: > > > > On 8/2/22 14:41, Simon Glass wrote: > > Hi Heinrich, > > > > On Tue, 2 Aug 2022 at 03:50, Heinrich Schuchardt > > wrote: > >> > >> Both the 'host' and the 'efiloader' block devices use the same parent > >> uclass root.

Re: [PATCH 2/3] binman: Remove header from compressed data

2022-08-03 Thread Simon Glass
Hi Stefan, On Tue, 2 Aug 2022 at 07:45, Stefan Herbrechtsmeier wrote: > > Hi Simon, > > Am 02.08.2022 um 14:41 schrieb Simon Glass: > > Hi Stefan, > > > > On Tue, 2 Aug 2022 at 06:29, Stefan Herbrechtsmeier > > wrote: > >> > >> From: Stefan Herbrechtsmeier > >> > >> Remove header from

Re: [PATCH v4 7/8] rockchip: allow to build SPI images even without HAS_ROM option

2022-08-03 Thread Simon Glass
On Wed, 3 Aug 2022 at 06:19, Quentin Schulz wrote: > > From: Quentin Schulz > > This prepares for the creation of a u-boot-rockchip-spi.bin image > similar to u-boot-rockchip.bin to the exception it's destined for > SPI-NOR flashes instead of MMC storage medium. > > Cc: Quentin Schulz >

Re: [PATCH v4 2/8] binman: allow user-defined filenames for mkimage entry

2022-08-03 Thread Simon Glass
On Wed, 3 Aug 2022 at 06:19, Quentin Schulz wrote: > > From: Quentin Schulz > > mkimage entry currently creates a file whose name is derived from the > section name containing said entry. > > Let's allow the user to define a filename for the mkimage-generated > binary by using the 'filename' DT

Re: [PATCH v4 6/8] rockchip: simplify binman image dependencies addition to INPUTS

2022-08-03 Thread Simon Glass
On Wed, 3 Aug 2022 at 06:19, Quentin Schulz wrote: > > From: Quentin Schulz > > By factoring SPL check in the first condition, this makes the checks a > bit less convoluted and more readable. > > Cc: Quentin Schulz > Signed-off-by: Quentin Schulz > --- > > v4: > - fixed wrong place for endif

Re: [PATCH v4 3/8] rockchip: remove binman temporary files when cleaning

2022-08-03 Thread Simon Glass
On Wed, 3 Aug 2022 at 06:19, Quentin Schulz wrote: > > From: Quentin Schulz > > Binman mkimage entry generates temporary files so let's remove them > when calling `make clean`. > > Fixes: 9b312e26fc77 ("rockchip: Enable building a SPI ROM image on jerry") > Cc: Quentin Schulz > Reported-by:

Re: GPIO and PINCTRL drivers question

2022-08-03 Thread Simon Glass
Hi Oleh, On Wed, 3 Aug 2022 at 05:11, Oleh Kravchenko wrote: > > Hi all, > I'm looking for advice on properly implementing GPIO and PINCTRL drivers. > My SoC provides the possibility to enable a pull-up/down resistor for > specific GPIO. > And drive strength for GPIO can have four possible

EFI CI failure

2022-08-03 Thread Simon Glass
Hi Heinrich, I am seeing this: https://source.denx.de/u-boot/custodians/u-boot-dm/-/jobs/477636 _ test_efi_selftest_text_input _ test/py/tests/test_efi_selftest.py:116: in test_efi_selftest_text_input u_boot_console.restart_uboot()

Re: Submitting patches

2022-08-03 Thread Simon Glass
Hi Martin, On Wed, 3 Aug 2022 at 04:05, Martin Bonner wrote: > > I and my colleagues have a number of patches we would like to > contribute back to the community, however for various reasons > (principally operating inside corporate firewalls), it isn't possible > to use `git send-email`, and I

[PATCH v3 2/2] ci: Add a test for a non-LTO build

2022-08-03 Thread Simon Glass
Check that sandbox builds and runs tests OK with LTO disabled. Signed-off-by: Simon Glass --- (no changes since v1) .azure-pipelines.yml | 4 .gitlab-ci.yml | 7 +++ 2 files changed, 11 insertions(+) diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index

[PATCH v3 1/2] Makefile: Allow LTO to be disabled for a build

2022-08-03 Thread Simon Glass
LTO (Link-Time Optimisation) is an very useful feature which can significantly reduce the size of U-Boot binaries. So far it has been made available for selected ARM boards and sandbox. However, incremental builds are much slower when LTO is used. For example, an incremental build of sandbox

[PATCH] Makefile: Correct the rule removing old of-platdata files

2022-08-03 Thread Simon Glass
This makes use of makefile variables that don't exist anymore. Fix it and also remove the object files in that directory. Also add FORCE as a dependency as required by the if_changed macro. Fixes 354d2324635 ("Makefile: Remove old of-platdata files before regenerating") Reported-by: Heinrich

Re: [PATCH 1/1] Migration: set deadline for move to DM_GPIO

2022-08-03 Thread Tom Rini
On Wed, Aug 03, 2022 at 07:27:50PM +0200, Heinrich Schuchardt wrote: > On 8/3/22 18:26, Quentin Schulz wrote: > > Hi Tom, > > > > On 8/3/22 18:08, Tom Rini wrote: > > > On Wed, Aug 03, 2022 at 04:39:52PM +0200, Heinrich Schuchardt wrote: > > > > > > > Only five boards are left that need to be

Re: [PATCH 1/1] Migration: set deadline for move to DM_GPIO

2022-08-03 Thread Tom Rini
On Wed, Aug 03, 2022 at 07:27:50PM +0200, Heinrich Schuchardt wrote: > On 8/3/22 18:26, Quentin Schulz wrote: > > Hi Tom, > > > > On 8/3/22 18:08, Tom Rini wrote: > > > On Wed, Aug 03, 2022 at 04:39:52PM +0200, Heinrich Schuchardt wrote: > > > > > > > Only five boards are left that need to be

Re: [PATCH 1/1] Migration: set deadline for move to DM_GPIO

2022-08-03 Thread Heinrich Schuchardt
On 8/3/22 18:26, Quentin Schulz wrote: Hi Tom, On 8/3/22 18:08, Tom Rini wrote: On Wed, Aug 03, 2022 at 04:39:52PM +0200, Heinrich Schuchardt wrote: Only five boards are left that need to be migrated to DM_GPIO. Set a 2023.04 deadline. * edminiv2_defconfig * mx28evk_auart_console_defconfig

Re: Submitting patches

2022-08-03 Thread Ralph Siemsen
Hi Martin, On Wed, Aug 3, 2022 at 6:05 AM Martin Bonner wrote: > > I and my colleagues have a number of patches we would like to > contribute back to the community, however for various reasons > (principally operating inside corporate firewalls), it isn't possible > to use `git send-email`, and

Re: [PATCH 1/1] Migration: set deadline for move to DM_GPIO

2022-08-03 Thread Tom Rini
On Wed, Aug 03, 2022 at 06:26:19PM +0200, Quentin Schulz wrote: > Hi Tom, > > On 8/3/22 18:08, Tom Rini wrote: > > On Wed, Aug 03, 2022 at 04:39:52PM +0200, Heinrich Schuchardt wrote: > > > > > Only five boards are left that need to be migrated to DM_GPIO. Set a > > > 2023.04 deadline. > > > >

Re: [PATCH 1/1] Migration: set deadline for move to DM_GPIO

2022-08-03 Thread Quentin Schulz
Hi Tom, On 8/3/22 18:08, Tom Rini wrote: On Wed, Aug 03, 2022 at 04:39:52PM +0200, Heinrich Schuchardt wrote: Only five boards are left that need to be migrated to DM_GPIO. Set a 2023.04 deadline. * edminiv2_defconfig * mx28evk_auart_console_defconfig * mx28evk_nand_defconfig *

Re: Broken commit de47ff536363289f92f85ed1e4901724d238432d

2022-08-03 Thread Tom Rini
On Wed, Aug 03, 2022 at 06:00:13PM +0200, Pali Rohár wrote: > On Tuesday 02 August 2022 06:58:26 Tom Rini wrote: > > On Tue, Aug 02, 2022 at 11:13:38AM +0200, Pali Rohár wrote: > > > > > Hello Tom! > > > > > > Your commit de47ff536363289f92f85ed1e4901724d238432d ("Convert > > >

[PATCH] arm: Remove warp board

2022-08-03 Thread Tom Rini
This board is missing migration to CONFIG_DM, which had a deadline of v2020.01, which is now more than 2 years passed due. Remove it. Cc: Otavio Salvador Signed-off-by: Tom Rini --- arch/arm/mach-imx/mx6/Kconfig | 6 - board/warp/Kconfig| 12 -- board/warp/MAINTAINERS|

Re: [PATCH 1/1] Migration: set deadline for move to DM_GPIO

2022-08-03 Thread Tom Rini
On Wed, Aug 03, 2022 at 04:39:52PM +0200, Heinrich Schuchardt wrote: > Only five boards are left that need to be migrated to DM_GPIO. Set a > 2023.04 deadline. > > * edminiv2_defconfig > * mx28evk_auart_console_defconfig > * mx28evk_nand_defconfig > * mx28evk_spi_defconfig > * warp_defconfig >

Re: [PATCH] mx28evk: Remove AUART/NAND/SPI variants

2022-08-03 Thread Heinrich Schuchardt
On 8/3/22 04:04, Fabio Estevam wrote: From: Fabio Estevam To ease maintenance, let's keep only the main mx28evk_defconfig and remove the other variants that have not been migrated to DM. Signed-off-by: Fabio Estevam --- board/freescale/mx28evk/MAINTAINERS | 3 --

Re: Broken commit de47ff536363289f92f85ed1e4901724d238432d

2022-08-03 Thread Pali Rohár
On Tuesday 02 August 2022 06:58:26 Tom Rini wrote: > On Tue, Aug 02, 2022 at 11:13:38AM +0200, Pali Rohár wrote: > > > Hello Tom! > > > > Your commit de47ff536363289f92f85ed1e4901724d238432d ("Convert > > CONFIG_SYS_MPC85XX_NO_RESETVEC to Kconfig") seems to be broken. > > I thought I had

Re: [PATCH 1/1] doc: man-page for gpio command

2022-08-03 Thread Fabio Estevam
Hi Heinrich, On Wed, Aug 3, 2022 at 11:31 AM Heinrich Schuchardt wrote: > Fabio Estevam > * mx28evk_nand_defconfig > * mx28evk_auart_console_defconfig > * mx28evk_spi_defconfig I have sent a patch removing these defconfigs:

Re: [PATCH] gpio: aspeed: port Linux dt-bindings header file

2022-08-03 Thread Billy Tsai
Hello, On 2022/8/3, 10:10 AM, "Billy Tsai" wrote: Reviewed-by: Billy Tsai On 2022/8/3, 9:46 AM, "ChiaWei Wang" wrote: Acked-by: Chia-Wei Wang > > From: Dhananjay Phadke > > Sent: Wednesday, August 3, 2022 4:55 AM > > > > Ported as is,

[PATCH 1/1] Migration: set deadline for move to DM_GPIO

2022-08-03 Thread Heinrich Schuchardt
Only five boards are left that need to be migrated to DM_GPIO. Set a 2023.04 deadline. * edminiv2_defconfig * mx28evk_auart_console_defconfig * mx28evk_nand_defconfig * mx28evk_spi_defconfig * warp_defconfig Signed-off-by: Heinrich Schuchardt --- Makefile | 1 +

Re: [PATCH 1/1] doc: man-page for gpio command

2022-08-03 Thread Heinrich Schuchardt
On 8/3/22 13:56, Quentin Schulz wrote: Hi Heinrich, On 8/3/22 13:21, Heinrich Schuchardt wrote: On 8/3/22 11:59, Quentin Schulz wrote: Hi Heinrich, On 8/2/22 14:28, Heinrich Schuchardt wrote: Provide a man-page for the gpio command. Signed-off-by: Heinrich Schuchardt ---  

Re: [PATCH 20/21] smdkc100: Remove legacy non-DM_ETH code

2022-08-03 Thread Minkyu Kang
Hi, On Tue, 2 Aug 2022 at 20:39, Tom Rini wrote: > Now that we are about to enable DM_ETH by default, remove legacy code. > > Cc: Minkyu Kang > Signed-off-by: Tom Rini > --- > board/samsung/smdkc100/smdkc100.c | 9 - > 1 file changed, 9 deletions(-) > > diff --git

Re: imx8mn eMMC boot partition

2022-08-03 Thread Heiko Thiery
HI Michael, Am Mi., 3. Aug. 2022 um 15:02 Uhr schrieb Michael Nazzareno Trimarchi : > > Hi Heiko > > On Wed, Aug 3, 2022 at 2:51 PM Heiko Thiery wrote: > > > > Hi Michael, > > > > Am Mi., 3. Aug. 2022 um 14:40 Uhr schrieb Michael Nazzareno Trimarchi > > : > > > > > > Hi > > > > > > On Wed, Aug

Re: [PATCH v1 08/26] imx6ul/imx6ull: synchronise device trees with linux

2022-08-03 Thread Frieder Schrempf
Hi Marcel, hi Stefano, Am 03.08.22 um 15:02 schrieb Stefano Babic: > On 03.08.22 14:58, Marcel Ziswiler wrote: >> Hi Frieder >> >> On Mon, 2022-08-01 at 10:08 +0200, Frieder Schrempf wrote: >>> Hi Marcel, >>> >>> Am 21.07.22 um 15:27 schrieb Marcel Ziswiler: From: Marcel Ziswiler

Re: [PATCH 1/3] gpio: Allow to print pin's label even for pin with GPIOF_FUNC function

2022-08-03 Thread Patrice CHOTARD
Hi Simon On 8/2/22 14:41, Simon Glass wrote: > On Tue, 2 Aug 2022 at 03:09, Patrice Chotard > wrote: >> >> Currently, if pin's function is GPIOF_FUNC, only "func" if displayed >> without any other information. It would be interesting, if information is >> available, to indicate which pinmuxing's

Re: [PATCH 0/3] gpio: update gpio_get_status()

2022-08-03 Thread Patrice CHOTARD
Hi Heinrich On 8/2/22 16:56, Heinrich Schuchardt wrote: > On 8/2/22 11:09, Patrice Chotard wrote: >> >> Currently, if pin's function is GPIOF_FUNC, only "func" if displayed >> without any other information. It would be interesting, if information is >> available, to indicate which pinmuxing's

Re: imx8mn eMMC boot partition

2022-08-03 Thread Michael Nazzareno Trimarchi
Hi Heiko On Wed, Aug 3, 2022 at 2:51 PM Heiko Thiery wrote: > > Hi Michael, > > Am Mi., 3. Aug. 2022 um 14:40 Uhr schrieb Michael Nazzareno Trimarchi > : > > > > Hi > > > > On Wed, Aug 3, 2022 at 2:19 PM Heiko Thiery wrote: > > > > > > Hi,What is not clear to be if 0x40 can be used as > > > > >

Re: [PATCH v1 08/26] imx6ul/imx6ull: synchronise device trees with linux

2022-08-03 Thread Stefano Babic
On 03.08.22 14:58, Marcel Ziswiler wrote: Hi Frieder On Mon, 2022-08-01 at 10:08 +0200, Frieder Schrempf wrote: Hi Marcel, Am 21.07.22 um 15:27 schrieb Marcel Ziswiler: From: Marcel Ziswiler Synchronise device trees with linux v5.19-rc5. Signed-off-by: Marcel Ziswiler Thanks for the

Re: imx8mn eMMC boot partition

2022-08-03 Thread Heiko Thiery
Hi Michael, Am Mi., 3. Aug. 2022 um 14:40 Uhr schrieb Michael Nazzareno Trimarchi : > > Hi > > On Wed, Aug 3, 2022 at 2:19 PM Heiko Thiery wrote: > > > > Hi, > > > > Does anyone have an idea where to find the definition of the offset > > used when booting from eMMCs boot partition? > > > > I

Re: imx8mn eMMC boot partition

2022-08-03 Thread Michael Nazzareno Trimarchi
Hi On Wed, Aug 3, 2022 at 2:19 PM Heiko Thiery wrote: > > Hi, > > Does anyone have an idea where to find the definition of the offset > used when booting from eMMCs boot partition? > > I tried to write the flash.bin image to offset 32k (page 0x40) into > the boot partition of the eMMC and

[PATCH v4 8/8] rockchip: add u-boot-rockchip-spi.bin image for booting from SPI-NOR flash

2022-08-03 Thread Quentin Schulz
From: Quentin Schulz This new image is similar to u-boot-rockchip.bin except that it's destined to be flashed on SPI-NOR flashes. Cc: Quentin Schulz Signed-off-by: Quentin Schulz --- v3: - added filename property so that idblaoder-spi.img binary is generated by binman, as per community

[PATCH v4 7/8] rockchip: allow to build SPI images even without HAS_ROM option

2022-08-03 Thread Quentin Schulz
From: Quentin Schulz This prepares for the creation of a u-boot-rockchip-spi.bin image similar to u-boot-rockchip.bin to the exception it's destined for SPI-NOR flashes instead of MMC storage medium. Cc: Quentin Schulz Signed-off-by: Quentin Schulz --- arch/arm/dts/rk3288-u-boot.dtsi | 2 +-

[PATCH v4 6/8] rockchip: simplify binman image dependencies addition to INPUTS

2022-08-03 Thread Quentin Schulz
From: Quentin Schulz By factoring SPL check in the first condition, this makes the checks a bit less convoluted and more readable. Cc: Quentin Schulz Signed-off-by: Quentin Schulz --- v4: - fixed wrong place for endif for ARM32 boards, Makefile | 9 ++--- 1 file changed, 2

[PATCH v4 5/8] rockchip: generate u-boot-rockchip.bin with binman for ARM64 boards

2022-08-03 Thread Quentin Schulz
From: Quentin Schulz This allows to build u-boot-rockchip.bin binary with binman for Rockchip ARM64 boards instead of the legacy Makefile way. Cc: Quentin Schulz Reviewed-by: Simon Glass Signed-off-by: Quentin Schulz --- v4: - added Reviewed-by, Makefile | 26

[PATCH v4 4/8] rockchip: generate idbloader.img content for u-boot-rockchip.bin with binman for ARM

2022-08-03 Thread Quentin Schulz
From: Quentin Schulz idbloader.img content - currently created by way of Makefile - can be created by binman directly. So let's do that for Rockchip ARM platforms. Cc: Quentin Schulz Reviewed-by: Simon Glass Signed-off-by: Quentin Schulz --- v4: - added Reviewed-by, v3: - moved spl back

[PATCH v4 3/8] rockchip: remove binman temporary files when cleaning

2022-08-03 Thread Quentin Schulz
From: Quentin Schulz Binman mkimage entry generates temporary files so let's remove them when calling `make clean`. Fixes: 9b312e26fc77 ("rockchip: Enable building a SPI ROM image on jerry") Cc: Quentin Schulz Reported-by: Johan Jonker Signed-off-by: Quentin Schulz --- added in v3

[PATCH v4 2/8] binman: allow user-defined filenames for mkimage entry

2022-08-03 Thread Quentin Schulz
From: Quentin Schulz mkimage entry currently creates a file whose name is derived from the section name containing said entry. Let's allow the user to define a filename for the mkimage-generated binary by using the 'filename' DT property. Cc: Quentin Schulz Signed-off-by: Quentin Schulz ---

[PATCH v4 1/8] binman: add support for skipping file concatenation for mkimage

2022-08-03 Thread Quentin Schulz
From: Quentin Schulz Some image types handled by mkimage require the datafiles to be passed independently (-d data1:data2) for specific handling of each. A concatenation of datafiles prior to passing them to mkimage wouldn't work. That is the case for rkspi for example which requires page

[PATCH v4 0/8] migrate u-boot-rockchip.bin to binman and generate an image for SPI

2022-08-03 Thread Quentin Schulz
From: Quentin Schulz This migrates the generation of u-boot-rockchip.bin from Makefile to binman completely. This also adds support for generating the same kind of image than u-boot-rockchip.bin but for SPI flashes (specifically, a different image type generated by mkimage is necessary, in

imx8mn eMMC boot partition

2022-08-03 Thread Heiko Thiery
Hi, Does anyone have an idea where to find the definition of the offset used when booting from eMMCs boot partition? I tried to write the flash.bin image to offset 32k (page 0x40) into the boot partition of the eMMC and seledted the bootpartition with "mmc partconfig 2 0 1 0". The board did not

Re: [PATCH 1/1] doc: man-page for gpio command

2022-08-03 Thread Quentin Schulz
Hi Heinrich, On 8/3/22 13:21, Heinrich Schuchardt wrote: On 8/3/22 11:59, Quentin Schulz wrote: Hi Heinrich, On 8/2/22 14:28, Heinrich Schuchardt wrote: Provide a man-page for the gpio command. Signed-off-by: Heinrich Schuchardt ---   doc/usage/cmd/gpio.rst | 90

Re: [PATCH 2/2] Makefile: Build final mpc85xx non-SPL image in standard file u-boot.bin

2022-08-03 Thread Pali Rohár
On Monday 01 August 2022 19:15:46 Tom Rini wrote: > On Mon, Aug 01, 2022 at 09:39:00PM +0200, Pali Rohár wrote: > > On Monday 01 August 2022 13:13:22 Simon Glass wrote: > > > Hi Pali, > > > > > > On Mon, 1 Aug 2022 at 09:43, Pali Rohár wrote: > > > > > > > > Currently Makefile produces final

Re: [PATCH u-boot-marvell] arm: mvebu: turris_omnia: Add Winbond SPI flash support

2022-08-03 Thread Stefan Roese
On 03.08.22 10:53, Marek Behún wrote: Some new Omnia boards will come with Winbond SPI flash. Add to defconfig. Signed-off-by: Marek Behún Reviewed-by: Stefan Roese Thanks, Stefan --- configs/turris_omnia_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH] Makefile: Reduce usage of custom mpc85xx u-boot.bin target

2022-08-03 Thread Pali Rohár
Building of final u-boot.bin binary for mpc85xx via binman is needed only when inserting DTB binary in the middle of the u-boot ELF binary (before .bootpg and .resetvec ELF sections). These requirements are met when CONFIG_MPC85XX_HAVE_RESET_VECTOR is enabled (= generating .bootpg/.resetvec

Re: [PATCH 1/1] doc: man-page for gpio command

2022-08-03 Thread Heinrich Schuchardt
On 8/3/22 11:59, Quentin Schulz wrote: Hi Heinrich, On 8/2/22 14:28, Heinrich Schuchardt wrote: Provide a man-page for the gpio command. Signed-off-by: Heinrich Schuchardt ---   doc/usage/cmd/gpio.rst | 90 ++   doc/usage/index.rst    |  1 +   2 files

[PATCH] powerpc: dts: keymile: Deduplicate binman code

2022-08-03 Thread Pali Rohár
kmcent2-u-boot.dtsi file contains copy of powerpc u-boot.dtsi binman file. So remove code duplication and replace it by including u-boot.dtsi file. Signed-off-by: Pali Rohár --- arch/powerpc/dts/kmcent2-u-boot.dtsi | 22 ++ 1 file changed, 2 insertions(+), 20 deletions(-)

GPIO and PINCTRL drivers question

2022-08-03 Thread Oleh Kravchenko
Hi all, I'm looking for advice on properly implementing GPIO and PINCTRL drivers. My SoC provides the possibility to enable a pull-up/down resistor for specific GPIO. And drive strength for GPIO can have four possible states. The question is, where should I implement this functionality? I'm

[PATCH 3/5] arm: mvebu: Remove redundant u-boot, dm-pre-reloc from all 32-bit Armada SoCs

2022-08-03 Thread Pali Rohár
Replace it by including of mvebu-u-boot.dtsi file. When board does not use -u-boot.dtsi then mvebu-u-boot.dtsi is included automatically by makefile scripts/Makefile.lib. Signed-off-by: Pali Rohár --- arch/arm/dts/armada-370-xp.dtsi | 1 - arch/arm/dts/armada-375-db.dts

[PATCH 2/5] arm: mvebu: Introduce mvebu-u-boot.dtsi for 32-bit Armada SoCs

2022-08-03 Thread Pali Rohár
Set u-boot,dm-pre-reloc for /soc/, /soc/internal-regs/ and nodes as it is required on every 32-bit Armada SoCs. And set also u-boot,dm-pre-reloc for when going to boot from SPI because otherwise SPL SPI drivers do not load. Signed-off-by: Pali Rohár --- arch/arm/dts/mvebu-u-boot.dtsi | 24

  1   2   >