[PATCH v2] cyclic: Add rate limiting in schedule() via CYCLIC_RATELIMIT_US

2023-07-23 Thread Stefan Roese
This patch adds the new Kconfig option CONFIG_CYCLIC_RATELIMIT_US which defines the min allowed time after with a new call into the cyclic infrastructure is allowed. This results in a rate limiting of the all functions hooked into the cyclic interface. As it's been noticed that on some platforms, t

Re: [PATCH v5] event: Add fpga load event

2023-07-23 Thread Michal Simek
On 7/20/23 09:27, christian.taedcke-...@weidmueller.com wrote: From: Christian Taedcke This enables implementing custom logic after a bitstream was loaded into the fpga. Signed-off-by: Christian Taedcke Reviewed-by: Simon Glass --- Changes in v5: - remove changes from kmcent2 board file

[PATCH v7 3/3] binman: Add tests for etype encrypted

2023-07-23 Thread christian . taedcke-oss
From: Christian Taedcke Add tests to reach 100% code coverage for the added etype encrypted. Signed-off-by: Christian Taedcke Reviewed-by: Simon Glass --- (no changes since v5) Changes in v5: - add comments to test functions Changes in v4: - fix failing test testEncryptedKeyFile Changes in

[PATCH v7 2/3] binman: Allow cipher node as special section

2023-07-23 Thread christian . taedcke-oss
From: Christian Taedcke The new encrypted etype generates a cipher node in the device tree that should not be evaluated by binman, but still be kept in the output device tree. Signed-off-by: Christian Taedcke Reviewed-by: Simon Glass --- (no changes since v3) Changes in v3: - rebase on u-boo

[PATCH v7 1/3] binman: Add support for externally encrypted blobs

2023-07-23 Thread christian . taedcke-oss
From: Christian Taedcke This adds a new etype encrypted. It creates a new cipher node in the related image similar to the cipher node used by u-boot, see boot/image-cipher.c. Signed-off-by: Christian Taedcke Reviewed-by: Simon Glass --- Changes in v7: - add revieved-by to all commits - rebas

[PATCH v7 0/3] binman: Add support for externally encrypted blobs

2023-07-23 Thread christian . taedcke-oss
From: Christian Taedcke This series adds the functionality to handle externally encrypted blobs to binman. It includes the functionality itself and the corresponding unit tests. The following block shows an example on how to use this functionality. In the device tree that is parsed by binman a n

[PATCH v3 5/5] MAINTAINERS: add myself as mcf_wdt.c maintainer

2023-07-23 Thread Angelo Dureghello
Signed-off-by: Angelo Dureghello --- Changes for v2: - none Changes for v3: - none --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 87991cccdd..2b157214cb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -867,6 +867,7 @@ S: Maintained T: git h

[PATCH v3 2/5] m68k: move watchdog functions in mcf_wdt driver

2023-07-23 Thread Angelo Dureghello
Move watchdog functions inside a separate watchdog driver. Signed-off-by: Angelo Dureghello --- Changes for v2: - none Changes for v3: - none --- arch/m68k/cpu/mcf523x/cpu.c | 42 - arch/m68k/cpu/mcf52x2/cpu.c | 47 + arch/m68k/

[PATCH v3 4/5] configs: m68k: add watchdog driver

2023-07-23 Thread Angelo Dureghello
Add config options for mcf_wdt driver. Signed-off-by: Angelo Dureghello --- Changes for v2: - none Changes for v3: - none --- configs/M5208EVBE_defconfig | 2 ++ configs/astro_mcf5373l_defconfig | 4 ++-- configs/eb_cpu5282_defconfig | 1 + configs/eb_cpu5282_internal_def

[PATCH v3 3/5] m68k: dts: add watchdog node

2023-07-23 Thread Angelo Dureghello
Add watchdog node for the implemented mcf_wdt driver. Signed-off-by: Angelo Dureghello --- Changes for v2: - remove unnecessary big-endian property Changes for v3: - none --- arch/m68k/dts/M5208EVBE.dts | 5 + arch/m68k/dts/mcf5208.dtsi | 6 ++ arch/m68k/dts/mcf523x.dtsi | 6 ++ ar

[PATCH v3 1/5] drivers: watchdog: add mcf watchdog support

2023-07-23 Thread Angelo Dureghello
This watchdog driver applies to the following mcf families: - mcf52x2 (5271 5275 5282) - mcf532x (5329 5373) - mcf523x (5235) Cpu's not listed for each family does not have WDT module. Note, after some attempts testing by qemu on 5208 i finally abandoned, watchdog seems not implemented properly.

[PATCH v3 0/5] m68k: add ColdFire watchdog driver

2023-07-23 Thread Angelo Dureghello
This patch allows to reach 0 warning for the m68k family. Watchdog driver was the last one producing the "conversion to DM" warning, Angelo Dureghello (5): drivers: watchdog: add mcf watchdog support m68k: move watchdog functions in mcf_wdt driver m68k: dts: add watchdog node configs: m68k

Re: [PATCH v4 5/6] mips: ls1c300: add watchdog support

2023-07-23 Thread Stefan Roese
On 7/23/23 06:39, Du Huanpeng wrote: Signed-off-by: Du Huanpeng A small description is always helpful (mandatory) in the commit text. Please add at least one or two sentences here. --- drivers/watchdog/Kconfig | 8 +++ drivers/watchdog/Makefile | 1 + drivers/watchdog/lsmips

Re: [PATCH] arm: mvebu: x240: Use i2c-gpio instead of built in controller

2023-07-23 Thread Stefan Roese
Hi Chris, On 7/20/23 23:01, Chris Packham wrote: Hi Me, On Thu, Jul 20, 2023 at 3:03 PM Chris Packham wrote: There is an Errata with the built-in I2C controller where various I2C hardware errors cause a complete lockup of the CPU (which eventually results in an watchdog reset). Put the I2C

Re: [PATCH v2 1/5] drivers: watchdog: add mcf watchdog support

2023-07-23 Thread Angelo Dureghello
Hi Stefan, On 24/07/23 8:21 AM, Stefan Roese wrote: Hi Angelo, On 7/23/23 23:35, Angelo Dureghello wrote: This watchdog driver applies to the following mcf families: - mcf52x2 (5271 5275 5282) - mcf532x (5329 5373) - mcf523x (5235) Cpu's not listed for each family does not have WDT module.

Re: [PATCH v2 1/5] drivers: watchdog: add mcf watchdog support

2023-07-23 Thread Stefan Roese
Hi Angelo, On 7/23/23 23:35, Angelo Dureghello wrote: This watchdog driver applies to the following mcf families: - mcf52x2 (5271 5275 5282) - mcf532x (5329 5373) - mcf523x (5235) Cpu's not listed for each family does not have WDT module. Note, after some attempts testing by qemu on 5208 i fi

Re: [PATCH v1 5/5] clk: starfive: jh7110: Add of_xlate ops and macros for clock id conversion

2023-07-23 Thread Leo Liang
On Fri, Jul 07, 2023 at 06:50:11PM +0800, Hal Feng wrote: > From: Xingyu Wu > > Modify the drivers to add of_xlate ops and transform clock id. > > Signed-off-by: Xingyu Wu > Signed-off-by: Hal Feng > --- > drivers/clk/starfive/clk-jh7110-pll.c | 29 ++- > drivers/clk/starfive/clk-jh7110.c

Re: [PATCH v1 4/5] dt-bindings: clock: jh7110: Modify clock id to be same with Linux

2023-07-23 Thread Leo Liang
On Fri, Jul 07, 2023 at 06:50:10PM +0800, Hal Feng wrote: > From: Xingyu Wu > > The clock id needs to be changed to be consistent with Linux. > > Signed-off-by: Xingyu Wu > Signed-off-by: Hal Feng > --- > .../dt-bindings/clock/starfive,jh7110-crg.h | 101 +- > 1 file changed

Re: [PATCH v1 3/5] riscv: dts: jh7110: Add clock source from PLL

2023-07-23 Thread Leo Liang
On Fri, Jul 07, 2023 at 06:50:09PM +0800, Hal Feng wrote: > From: Xingyu Wu > > Change the PLL clock source from syscrg to sys_syscon child node. > > Signed-off-by: Xingyu Wu > Signed-off-by: Hal Feng > --- > arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi | 6 +++--- > arch/riscv/dts/jh7110

Re: [PATCH v1 2/5] riscv: dts: jh7110: Add PLL clock controller node

2023-07-23 Thread Leo Liang
On Fri, Jul 07, 2023 at 06:50:08PM +0800, Hal Feng wrote: > From: Xingyu Wu > > Add child node about PLL clock controller in sys_syscon node. > > Signed-off-by: Xingyu Wu > Signed-off-by: Hal Feng > --- > arch/riscv/dts/jh7110.dtsi | 8 +++- > 1 file changed, 7 insertions(+), 1 deletion(-

Re: [PATCH v1 1/5] clk: starfive: jh7110: Separate the PLL driver

2023-07-23 Thread Leo Liang
On Fri, Jul 07, 2023 at 06:50:07PM +0800, Hal Feng wrote: > From: Xingyu Wu > > Drop the PLL part in SYSCRG driver and separate to be a single > PLL driver of which the compatible is "starfive,jh7110-pll". > > Signed-off-by: Xingyu Wu > Signed-off-by: Hal Feng > --- > drivers/clk/starfive/clk

Re: [RESEND PATCH v2] riscv: setup per-hart stack earlier

2023-07-23 Thread Leo Liang
On Sun, Jun 11, 2023 at 04:54:17PM -0700, Bo Gan wrote: > Harts need to use per-hart stack before any function call, even if that > function is a simple one. When the callee uses stack for register save/ > restore, especially RA, if nested call, concurrent access by multiple > harts on the same sta

Re: [PATCH v2 2/9] cmd: boot: implement PMIC based poweroff

2023-07-23 Thread Simon Glass
Hi Svyatoslav, On Sun, 23 Jul 2023 at 03:00, Svyatoslav Ryhel wrote: > > нд, 23 лип. 2023 р. о 06:48 Simon Glass пише: > > > > Hi Svyatoslav, > > > > On Thu, 20 Jul 2023 at 02:48, Svyatoslav Ryhel wrote: > > > > > > Use new PMIC ops to perform device poweroff. > > > > > > Signed-off-by: Svyatos

Re: [PATCH v4 1/9] core: read: add dev_read_addr_size_index_ptr function

2023-07-23 Thread Simon Glass
Hi Jonas, On Sat, 22 Jul 2023 at 07:30, Jonas Karlman wrote: > > Add dev_read_addr_size_index_ptr function with the same functionality as > dev_read_addr_size_index, but instead a return pointer is given. > Use map_sysmem() function as cast for the return. > > Signed-off-by: Jonas Karlman > Revi

Re: [PATCH v3 7/7] power: regulator: tps65911: add regulator support

2023-07-23 Thread Simon Glass
Hi Svyatoslav, On Sun, 23 Jul 2023 at 06:28, Svyatoslav Ryhel wrote: > > The driver provides regulator set/get voltage enable/disable > functions for TI TPS5911 PMIC. > > Signed-off-by: Svyatoslav Ryhel > --- > drivers/power/regulator/Kconfig | 8 + > drivers/power/regulator/Make

Re: [PATCH v3 4/7] power: pmic: add the base TPS80031 PMIC support

2023-07-23 Thread Simon Glass
Hi Svyatoslav, On Sun, 23 Jul 2023 at 06:28, Svyatoslav Ryhel wrote: > > Add support to bind the regulators/child nodes with the pmic. > Also adds the pmic i2c based read/write functions to access pmic > registers. > > Signed-off-by: Svyatoslav Ryhel > --- > doc/device-tree-bindings/pmic/tps800

Re: [PATCH v3 5/7] power: regulator: tps80031: add regulator support

2023-07-23 Thread Simon Glass
Hi Svyatoslav, On Sun, 23 Jul 2023 at 06:28, Svyatoslav Ryhel wrote: > > The driver provides regulator set/get voltage enable/disable > functions for TI TPS80031/TPS80032 PMICs. > > Signed-off-by: Svyatoslav Ryhel > --- > drivers/power/regulator/Kconfig | 8 + > drivers/power/reg

Re: [PATCH v3 3/7] power: regulator: max77663: add regulator support

2023-07-23 Thread Simon Glass
Hi Svyatoslav, On Sun, 23 Jul 2023 at 06:28, Svyatoslav Ryhel wrote: > > The driver provides regulator set/get voltage > enable/disable functions for MAXIM MAX77663 PMICs. > > Signed-off-by: Svyatoslav Ryhel > --- > drivers/power/regulator/Kconfig | 8 + > drivers/power/regulator

Re: [PATCH v3 1/7] power: pmic: palmas: support TI TPS65913 PMIC

2023-07-23 Thread Simon Glass
On Sun, 23 Jul 2023 at 06:28, Svyatoslav Ryhel wrote: > > Existing PALMAS PMIC driver is fully compatible with TI TPS65913 > PMIC found in many Tegra 4 devices, like Tegra Note 7 and ASUS > TF701T. TPS65913 shares same structure of regulators like TPS659038 > so data can be reused. > > Tested-by:

Re: [PATCH v3 2/7] power: pmic: add the base MAX77663 PMIC support

2023-07-23 Thread Simon Glass
Hi Svyatoslav, On Sun, 23 Jul 2023 at 06:28, Svyatoslav Ryhel wrote: > > Add support to bind the regulators/child nodes with the pmic. > Also adds the pmic i2c based read/write functions to access pmic > registers. > > Signed-off-by: Svyatoslav Ryhel > --- > doc/device-tree-bindings/pmic/max776

Re: [PATCH 14/18] console: Print out complete stdio device list

2023-07-23 Thread Simon Glass
On Sun, 23 Jul 2023 at 08:17, Bin Meng wrote: > > Hi Heinrich, > > On Sun, Jul 23, 2023 at 8:48 PM Heinrich Schuchardt > wrote: > > > > > > > > Am 23. Juli 2023 14:04:39 MESZ schrieb Bin Meng : > > >Hi Heinrich, > > > > > >On Sun, Jul 23, 2023 at 2:38 PM Heinrich Schuchardt > > >wrote: > > >>

Re: [PATCH v2 3/4] net: rtl8169: Add one device ID 0x8161

2023-07-23 Thread Leo Liang
On Thu, Jul 20, 2023 at 07:37:28PM +0800, Minda Chen wrote: > Add rtl8169 NIC device ID and reorder the device ID. > > Signed-off-by: Minda Chen > --- > drivers/net/rtl8169.c | 6 -- > 1 file changed, 4 insertions(+), 2 deletions(-) Reviewed-by: Leo Yu-Chi Liang

Re: [PATCH v2 2/4] net: rtl8169: Fix DMA minimal aligned compile warning in RISC-V

2023-07-23 Thread Leo Liang
On Thu, Jul 20, 2023 at 07:37:27PM +0800, Minda Chen wrote: > For RISC-V architeture, hardware maintain the dcache coherency. > Software do not flush the cache. So even cache-line size larger > than descriptor size, driver can work. > > Signed-off-by: Minda Chen > --- > drivers/net/rtl8169.c | 4

Re: [PATCH v2 1/4] net: rtl8169: Fix compile warning in rtl8169

2023-07-23 Thread Leo Liang
On Thu, Jul 20, 2023 at 07:37:26PM +0800, Minda Chen wrote: > While compiling rtl8169.c, There are many "make pointer from > integer without a cast" compile warnings. fix them with > adding cast. > > Signed-off-by: Minda Chen > --- > drivers/net/rtl8169.c | 12 ++-- > 1 file changed, 6 i

Re: [PATCH v2 4/4] configs: starfive-jh7110: Add CONFIG_RTL8169

2023-07-23 Thread Leo Liang
On Thu, Jul 20, 2023 at 07:37:29PM +0800, Minda Chen wrote: > Add PCIe device rtl8169 net adapter driver support. > > Signed-off-by: Minda Chen > --- > configs/starfive_visionfive2_defconfig | 1 + > 1 file changed, 1 insertion(+) Reviewed-by: Leo Yu-Chi Liang

Re: [PATCH 1/2] configs: visionfive2: add a trailing space to prompt

2023-07-23 Thread Leo Liang
On Fri, Jul 14, 2023 at 06:41:08PM +0900, Chanho Park wrote: > Adds a trailing space to SYS_PROMPT to make it easier to distinguish > between commands and the prompt. > > Signed-off-by: Chanho Park > --- > configs/starfive_visionfive2_defconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletio

Re: [PATCH 2/2] doc: visionfive2: apply a trailing space to the prompt

2023-07-23 Thread Leo Liang
On Fri, Jul 14, 2023 at 06:41:09PM +0900, Chanho Park wrote: > Apply the trailing space changes in the guide document. > > Signed-off-by: Chanho Park > --- > doc/board/starfive/visionfive2.rst | 18 +- > 1 file changed, 9 insertions(+), 9 deletions(-) Reviewed-by: Leo Yu-Chi Lia

Re: [PATCH 01/18] dm: video: Cosmetic style fix

2023-07-23 Thread Simon Glass
On Sat, 22 Jul 2023 at 22:41, Bin Meng wrote: > > Some coding convention fixes for video_post_bind(). > > Signed-off-by: Bin Meng > --- > > drivers/video/video-uclass.c | 6 -- > 1 file changed, 4 insertions(+), 2 deletions(-) Reviewed-by: Simon Glass Tested-by: Simon Glass # qemu-x86_64

Re: [PATCH 07/18] video: kconfig: Drop the superfluous dependency

2023-07-23 Thread Simon Glass
On Sat, 22 Jul 2023 at 22:41, Bin Meng wrote: > > PCI is always selected by X86 architecture hence "X86 && PCI" does > not make it better. > > Signed-off-by: Bin Meng > --- > > drivers/video/Kconfig | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) Reviewed-by: Simon Glass Tested

Re: [PATCH 02/18] video: bochs: Drop inclusion of

2023-07-23 Thread Simon Glass
On Sat, 22 Jul 2023 at 22:41, Bin Meng wrote: > > The driver does not call any MTRR APIs. > > Signed-off-by: Bin Meng > --- > > drivers/video/bochs.c | 1 - > 1 file changed, 1 deletion(-) > Reviewed-by: Simon Glass Tested-by: Simon Glass # qemu-x86_64

Re: [PATCH 12/18] console: Make stdio_print_current_devices() static

2023-07-23 Thread Simon Glass
On Sat, 22 Jul 2023 at 22:42, Bin Meng wrote: > > As it is only called in common/console.c > > Signed-off-by: Bin Meng > --- > > common/console.c| 2 +- > include/stdio_dev.h | 2 -- > 2 files changed, 1 insertion(+), 3 deletions(-) > Reviewed-by: Simon Glass Tested-by: Simon Glass # qem

Re: [PATCH 11/18] console: kconfig: Drop the redundant VIDEO dependency

2023-07-23 Thread Simon Glass
On Sun, 23 Jul 2023 at 00:39, Heinrich Schuchardt wrote: > > On 7/23/23 06:40, Bin Meng wrote: > > The VIDEO dependency is described twice in CONSOLE_MUX. > > > > Signed-off-by: Bin Meng > > Reviewed-by: Heinrich Schuchardt > > > --- > > > > common/Kconfig | 2 +- > > 1 file changed, 1 insert

Re: [PATCH 05/18] video: bochs: Remove the x86 dependency

2023-07-23 Thread Simon Glass
On Sat, 22 Jul 2023 at 22:41, Bin Meng wrote: > > Now that the driver is legacy free, remove the x86 dependency so > that it can be used on non-x86 architectures. > > Signed-off-by: Bin Meng > --- > > drivers/video/Kconfig | 1 - > 1 file changed, 1 deletion(-) > Reviewed-by: Simon Glass Teste

Re: [PATCH 08/18] video: kconfig: Set default FB size for Bochs

2023-07-23 Thread Simon Glass
On Sat, 22 Jul 2023 at 22:41, Bin Meng wrote: > > Set up a default frame buffer size of 8MiB for Bochs for non-x86 > architecturs as PCI is normally not enumerated before relocation > on these architectures. > > Signed-off-by: Bin Meng > --- > > drivers/video/Kconfig | 6 -- > 1 file changed

Re: [PATCH 09/18] video: bochs: Set the frame buffer size per configuration

2023-07-23 Thread Simon Glass
On Sat, 22 Jul 2023 at 22:41, Bin Meng wrote: > > At present the uclass stored frame buffer size is set to a hard > coded value, but we can calculate the correct value based on what > is configured. > > Signed-off-by: Bin Meng > --- > > drivers/video/bochs.c | 4 ++-- > 1 file changed, 2 inserti

Re: [PATCH 06/18] video: kconfig: Fix wrong text for the PCI default FB size

2023-07-23 Thread Simon Glass
On Sat, 22 Jul 2023 at 22:41, Bin Meng wrote: > > There is an example in the VIDEO_PCI_DEFAULT_FB_SIZE help text to > tell people how to calculate its value but the resolution given > does not match the value. Fix it. > > Signed-off-by: Bin Meng > --- > > drivers/video/Kconfig | 4 ++-- > 1 file

Re: [PATCH 04/18] video: bochs: Avoid using IO instructions to access VGA IO port

2023-07-23 Thread Simon Glass
On Sat, 22 Jul 2023 at 22:41, Bin Meng wrote: > > At present the driver uses IO instructions to access the legacy > VGA IO ports, which unfortunately limits the driver to work only > on x86. It turns out the IO instruction is not necessary as Bochs > VGA card remaps the legacy VGA IO ports (0x3c0

Re: [PATCH 03/18] video: bochs: Drop the useless argument of bochs_vga_write()

2023-07-23 Thread Simon Glass
On Sat, 22 Jul 2023 at 22:41, Bin Meng wrote: > > bochs_vga_write() takes 'index' as one argument, but never uses it. > > While we are here, use macros instead of magic numbers for the > VGA IO port register name and value. > > Signed-off-by: Bin Meng > --- > > drivers/video/bochs.c | 7 ---

Re: [PATCH 1/1] spl: initialize PCI before booting from SATA

2023-07-23 Thread Simon Glass
Hi Heinrich, On Sat, 22 Jul 2023 at 15:56, Heinrich Schuchardt wrote: > > Many SATA controllers are PCI bus devices. Before calling scsi_scan() we > must bind the PCI devices. > > Signed-off-by: Heinrich Schuchardt > --- > common/spl/spl_sata.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff

[PATCH] board: rockchip: Add Radxa E25 Carrier Board

2023-07-23 Thread Jonas Karlman
Radxa E25 is a network application carrier board for the Radxa CM3I SoM with a RK3568 SoC. It features dual 2.5G ethernet, mini PCIe, M.2 B Key, USB3, eMMC, SD and nano sim card slot. Features tested on a Radxa E25 v1.4: - SD-card boot - eMMC boot - USB host - PCIe/Ethernet adapters is detected D

Re: [PATCH 1/5] x86: fsp: Use mtrr_set_next_var() for graphics memory

2023-07-23 Thread Simon Glass
Hi Bin, On Sun, 23 Jul 2023 at 09:50, Bin Meng wrote: > > Hi Simon, > > On Sun, Jul 23, 2023 at 11:43 AM Simon Glass wrote: > > > > Hi Bin, > > > > On Fri, 21 Jul 2023 at 10:12, Bin Meng wrote: > > > > > > At present this uses mtrr_add_request() & mtrr_commit() combination > > > to program the

Re: [PATCH v3 5/6] sysinfo: rcar3: Use int instead of char for revision

2023-07-23 Thread Marek Vasut
On 7/14/23 20:27, Detlev Casanova wrote: On Friday, July 14, 2023 1:33:01 P.M. EDT Marek Vasut wrote: On 7/14/23 18:43, Detlev Casanova wrote: To be used with the sysinfo command, revision values must be considered as integers, not chars as some boards will implement BOARD_REVISION_* and might

Re: [PATCH v3 4/6] sysinfo: Add documentation

2023-07-23 Thread Marek Vasut
On 7/17/23 14:27, Detlev Casanova wrote: On Friday, July 14, 2023 1:31:00 P.M. EDT Marek Vasut wrote: On 7/14/23 18:43, Detlev Casanova wrote: [...] +Return value + + +The return value $? is set to 0 (true) if the command succededd succeeded -- typo . If an +error occurs, the

[PATCH] board: m68k add missing maintainer

2023-07-23 Thread Angelo Dureghello
Add myself as a maintainer for orphaned boards. All these boards are covered by buildman m68k test. Signed-off-by: Angelo Dureghello --- board/cobra5272/MAINTAINERS | 2 +- board/freescale/m5208evbe/MAINTAINERS | 2 +- board/freescale/m5249evb/MAINTAINERS | 2 +- board/freescale/m5272

Re: [PATCH v2 1/4] cmd: bind: Add unbind command with driver filter

2023-07-23 Thread Marek Vasut
On 7/23/23 19:49, Miquel Raynal wrote: Hi Marek, Hi, ma...@denx.de wrote on Mon, 17 Jul 2023 13:21:34 +0200: Extend the driver core to perform lookup by both OF node and driver bound to the node. Use this to look up specific device instances to unbind from nodes in the unbind command. One e

Re: [PATCH 1/1] spl: spl_legacy: simplify spl_parse_legacy_validate

2023-07-23 Thread Marek Vasut
On 7/22/23 22:37, Heinrich Schuchardt wrote: Hi, diff --git a/common/spl/spl_legacy.c b/common/spl/spl_legacy.c index 095443c63d..9246f555e3 100644 --- a/common/spl/spl_legacy.c +++ b/common/spl/spl_legacy.c @@ -22,10 +22,7 @@ static void spl_parse_legacy_validate(uintptr_t start, uintptr_t si

[PATCH v2 5/5] MAINTAINERS: add myself as mcf_wdt.c maintainer

2023-07-23 Thread Angelo Dureghello
Signed-off-by: Angelo Dureghello --- Changes for v2: - none --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 87991cccdd..2b157214cb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -867,6 +867,7 @@ S: Maintained T: git https://source.denx.de/u

[PATCH v2 4/5] configs: m68k: add watchdog driver

2023-07-23 Thread Angelo Dureghello
Add config options for mcf_wdt driver. Signed-off-by: Angelo Dureghello --- Changes for v2: - none --- configs/M5208EVBE_defconfig | 2 ++ configs/astro_mcf5373l_defconfig | 4 ++-- configs/eb_cpu5282_defconfig | 1 + configs/eb_cpu5282_internal_defconfig | 1 + 4 files c

[PATCH v2 3/5] m68k: dts: add watchdog node

2023-07-23 Thread Angelo Dureghello
Add watchdog node for the implemented mcf_wdt driver. Signed-off-by: Angelo Dureghello --- Changes for v2: - remove unnecessary big-endian property --- arch/m68k/dts/M5208EVBE.dts | 5 + arch/m68k/dts/mcf5208.dtsi | 6 ++ arch/m68k/dts/mcf523x.dtsi | 6 ++ arch/m68k/dts/mcf5271.dts

[PATCH v2 2/5] m68k: move watchdog functions in mcf_wdt driver

2023-07-23 Thread Angelo Dureghello
Move watchdog functions inside a separate watchdog driver. Signed-off-by: Angelo Dureghello --- Changes for v2: - none --- arch/m68k/cpu/mcf523x/cpu.c | 42 - arch/m68k/cpu/mcf52x2/cpu.c | 47 + arch/m68k/cpu/mcf532x/cpu.c | 44

[PATCH v2 1/5] drivers: watchdog: add mcf watchdog support

2023-07-23 Thread Angelo Dureghello
This watchdog driver applies to the following mcf families: - mcf52x2 (5271 5275 5282) - mcf532x (5329 5373) - mcf523x (5235) Cpu's not listed for each family does not have WDT module. Note, after some attempts testing by qemu on 5208 i finally abandoned, watchdog seems not implemented properly.

[PATCH v2 0/5] m68k: add ColdFire watchdog driver

2023-07-23 Thread Angelo Dureghello
This patch allows to reach 0 warning for the m68k family. Watchdog driver was the last one producing the "conversion to DM" warning, Angelo Dureghello (5): drivers: watchdog: add mcf watchdog support m68k: move watchdog functions in mcf_wdt driver m68k: dts: add watchdog node configs: m68k

[PATCH 1/2] clk: move clk_get_ops() to a common header

2023-07-23 Thread Yang Xiwen via B4 Relay
From: Yang Xiwen This allows it to be used by other source files. Signed-off-by: Yang Xiwen --- drivers/clk/clk-uclass.c | 5 - include/clk.h| 17 + 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/drivers/clk/clk-uclass.c b/drivers/clk/clk-uclas

[PATCH 2/2] clk: ccf: invoke ops provided by clk directly

2023-07-23 Thread Yang Xiwen via B4 Relay
From: Yang Xiwen Invoking clk_enable() or clk_disable() in clk->ops context causes a recursion, results in a clock being enabled twice. Signed-off-by: Yang Xiwen --- drivers/clk/clk.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/clk/clk.c b/drivers/clk

[PATCH 0/2] clk: fix a bug in CCF which results in a clock being enabled twice.

2023-07-23 Thread Yang Xiwen via B4 Relay
Currently, ccf_clk_endisable() calls clk_enable() / clk_disable() directly depending on the request. However, this function is also referenced in clk->ops, which is also called in clk_enable() / clk_disable(). This caused a recursion and made the clock enabled twice if clk_enable() is invoked. So

Re: [PATCH 0/2] Fix network commands w/ USB Eth gadget

2023-07-23 Thread Tom Rini
On Sun, Jul 23, 2023 at 07:14:17PM +0200, Miquel Raynal wrote: > Hi Tom, > > tr...@konsulko.com wrote on Sat, 22 Jul 2023 10:43:37 -0400: > > > On Sat, Jul 22, 2023 at 12:25:35AM +0200, Miquel Raynal wrote: > > > > > Hello, > > > > > > I recently came across serious issues using U-Boot on Beagl

Re: [PATCH v2 1/4] cmd: bind: Add unbind command with driver filter

2023-07-23 Thread Miquel Raynal
Hi Marek, ma...@denx.de wrote on Mon, 17 Jul 2023 13:21:34 +0200: > Extend the driver core to perform lookup by both OF node and driver > bound to the node. Use this to look up specific device instances to > unbind from nodes in the unbind command. One example where this is > needed is USB periph

Re: [PATCH 0/2] Fix network commands w/ USB Eth gadget

2023-07-23 Thread Miquel Raynal
Hi Tom, tr...@konsulko.com wrote on Sat, 22 Jul 2023 10:43:37 -0400: > On Sat, Jul 22, 2023 at 12:25:35AM +0200, Miquel Raynal wrote: > > > Hello, > > > > I recently came across serious issues using U-Boot on Beagle Bone > > Black. The USB Ethernet gadget is behaving in a way that is not > > co

Re: [PATCH 1/5] x86: fsp: Use mtrr_set_next_var() for graphics memory

2023-07-23 Thread Bin Meng
Hi Simon, On Sun, Jul 23, 2023 at 11:43 AM Simon Glass wrote: > > Hi Bin, > > On Fri, 21 Jul 2023 at 10:12, Bin Meng wrote: > > > > At present this uses mtrr_add_request() & mtrr_commit() combination > > to program the MTRR for graphics memory. This usage has two major > > issues as below: > > >

Re: [PATCH 5/5] board: rockchip: Add Pine64 SOQuartz on CM4-IO

2023-07-23 Thread Jonas Karlman
On 2023-07-23 16:55, Jonas Karlman wrote: > The Pine64 SOQuartz compute module is mostly pin-compatible with the RPi > CM4 form factor. Therefore, it can slot into the official Raspberry Pi > CM4 IO carrier board. Add this configuration to U-Boot. > > Features tested with a SOQuartz 4GB v1.1 2022-

Re: [PATCH 4/5] board: rockchip: Add Pine64 SOQuartz on Blade

2023-07-23 Thread Jonas Karlman
On 2023-07-23 16:55, Jonas Karlman wrote: > The Pine64 SOQuartz Blade board is a carrier board for the SOQuartz > CM4-compatible compute module. It features PoE, an M.2 slot, an SD card > slot, HDMI, USB, serial and ethernet. > > Features tested with a SOQuartz 4GB v1.1 2022-07-11: > - SD-card boo

Re: [PATCH 3/5] board: rockchip: Add Pine64 SOQuartz on Model A

2023-07-23 Thread Jonas Karlman
On 2023-07-23 16:55, Jonas Karlman wrote: > The Pine64 SOQuartz Model A board is a carrier board for the SOQuartz > CM4-compatible compute module. It exposes PCIe, ethernet, USB, HDMI, > CSI, DSI, eDP and a 40 pin GPIO header, and is powered by 12V DC. > > Features tested with a SOQuartz 4GB v1.1

Re: [PATCH 2/5] board: rockchip: Add Pine64 Quartz64-B Board

2023-07-23 Thread Jonas Karlman
On 2023-07-23 16:55, Jonas Karlman wrote: > The Pine64 Quartz64 Model B is a credit-card sized single-board > computer based on the Rockchip RK3566 SoC. The board features an M.2 > PCIe slot, USB3, USB2, eMMC, SD, ethernet, HDMI, analog audio out, a > 40 pin GPIO header and a DSI and CSI port, as w

Re: [PATCH 1/5] board: rockchip: Add Pine64 Quartz64-A Board

2023-07-23 Thread Jonas Karlman
On 2023-07-23 16:55, Jonas Karlman wrote: > The Pine64 Quartz64 Model A is a single-board computer based on the > Rockchip RK3566 SoC. The board features USB3, SATA, PCIe, HDMI, USB2.0, > CSI, DSI, eDP, eMMC, SD, and an e-paper parallel port, as well as a > 20 pin GPIO header. > > Features tested

[PATCH 3/5] board: rockchip: Add Pine64 SOQuartz on Model A

2023-07-23 Thread Jonas Karlman
The Pine64 SOQuartz Model A board is a carrier board for the SOQuartz CM4-compatible compute module. It exposes PCIe, ethernet, USB, HDMI, CSI, DSI, eDP and a 40 pin GPIO header, and is powered by 12V DC. Features tested with a SOQuartz 4GB v1.1 2022-07-11: - SD-card boot - eMMC boot - PCIe/NVMe/A

[PATCH 5/5] board: rockchip: Add Pine64 SOQuartz on CM4-IO

2023-07-23 Thread Jonas Karlman
The Pine64 SOQuartz compute module is mostly pin-compatible with the RPi CM4 form factor. Therefore, it can slot into the official Raspberry Pi CM4 IO carrier board. Add this configuration to U-Boot. Features tested with a SOQuartz 4GB v1.1 2022-07-11: - SD-card boot - eMMC boot - USB host Device

[PATCH 4/5] board: rockchip: Add Pine64 SOQuartz on Blade

2023-07-23 Thread Jonas Karlman
The Pine64 SOQuartz Blade board is a carrier board for the SOQuartz CM4-compatible compute module. It features PoE, an M.2 slot, an SD card slot, HDMI, USB, serial and ethernet. Features tested with a SOQuartz 4GB v1.1 2022-07-11: - SD-card boot - eMMC boot - PCIe/NVMe - USB host Device tree is i

[PATCH 2/5] board: rockchip: Add Pine64 Quartz64-B Board

2023-07-23 Thread Jonas Karlman
The Pine64 Quartz64 Model B is a credit-card sized single-board computer based on the Rockchip RK3566 SoC. The board features an M.2 PCIe slot, USB3, USB2, eMMC, SD, ethernet, HDMI, analog audio out, a 40 pin GPIO header and a DSI and CSI port, as well as on-board Wi-Fi. Features tested on a Quart

[PATCH 1/5] board: rockchip: Add Pine64 Quartz64-A Board

2023-07-23 Thread Jonas Karlman
The Pine64 Quartz64 Model A is a single-board computer based on the Rockchip RK3566 SoC. The board features USB3, SATA, PCIe, HDMI, USB2.0, CSI, DSI, eDP, eMMC, SD, and an e-paper parallel port, as well as a 20 pin GPIO header. Features tested on a Quartz64-A 8GB v2.0 2021-04-27: - SD-card boot -

[PATCH 0/5] board: rockchip: Add Pine64 Quartz64 and SOQuartz boards

2023-07-23 Thread Jonas Karlman
This series was created in collaboration with Nicolas Frattaroli and add support for Pine64 Quartz64 and SOQuartz boards with a RK3566 SoC. - Pine64 Quartz64-A Board - Pine64 Quartz64-B Board - Pine64 SOQuartz on Model A - Pine64 SOQuartz on Blade - Pine64 SOQuartz on CM4-IO Device trees have bee

Re: [PATCH 14/18] console: Print out complete stdio device list

2023-07-23 Thread Bin Meng
Hi Heinrich, On Sun, Jul 23, 2023 at 8:48 PM Heinrich Schuchardt wrote: > > > > Am 23. Juli 2023 14:04:39 MESZ schrieb Bin Meng : > >Hi Heinrich, > > > >On Sun, Jul 23, 2023 at 2:38 PM Heinrich Schuchardt > >wrote: > >> > >> On 7/23/23 06:40, Bin Meng wrote: > >> > At present if both CONSOLE_MU

Re: [PATCH] dm: core: of_access: fix return value in of_property_match_string

2023-07-23 Thread Simon Glass
of_property_match_string calls of_find_property to search for the string property. If the device node does not exist, of_find_property returns NULL, and of_property_match_string returns -EINVAL, which is correct. However, if the device node exists, but the property is not found, of_find_property st

Re: [PATCH] core: read: fix dev_read_addr_size()

2023-07-23 Thread Simon Glass
On Thu, 1 Jun 2023 at 15:11, John Keeping wrote: > > The behaviour of dev_read_addr_size() is surprising as it does not > handle #address-cells and #size-cells but instead hardcodes the values > based on sizeof(fdt_addr_t). > > This is different from dev_read_addr_size_index() and > dev_read_addr_

Re: [PATCH v2] sandbox: fix a compilation error

2023-07-23 Thread Simon Glass
Hi, On Tue, 13 Jun 2023 at 18:33, Tom Rini wrote: > > On Tue, Jun 13, 2023 at 07:05:52PM +0300, Sergei Antonov wrote: > > On Tue, 13 Jun 2023 at 17:58, Simon Glass wrote: > > > The problem with this is it then cannot be built on non-sandbox > > > boards. I think v1 was OK. > > > > Before the pat

Re: [PATCH v5 11/20] binman: Drop __bss_size variable in bss_data.c

2023-07-23 Thread Simon Glass
This is not needed since the linker script sets it up. Drop the variable to avoid confusion. Fix the prototype for main() while we are here. Signed-off-by: Simon Glass --- (no changes since v1) tools/binman/test/bss_data.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) Applied to u-

Re: [PATCH 1/1] cmd: fix loads, saves on sandbox

2023-07-23 Thread Simon Glass
Hi Heinrich, On Mon, 26 Jun 2023 at 11:35, Heinrich Schuchardt wrote: > > On 6/26/23 11:07, Simon Glass wrote: > > Hi Heinrich, > > > > On Sun, 25 Jun 2023 at 10:54, Heinrich Schuchardt > > wrote: > >> > >> The loads and saves commands crash on the sandbox due to illegal memory > >> access. > >>

Re: [PATCH 1/2] tools: Fix README file in pyproject.toml of u_boot_pylib.

2023-07-23 Thread Simon Glass
On Fri, 7 Jul 2023 at 15:17, Maxim Cournoyer wrote: > > * tools/u_boot_pylib/pyproject.toml (readme): Replace README.md with > README.rst. > > Signed-off-by: Maxim Cournoyer > --- > > tools/u_boot_pylib/pyproject.toml | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Simon Gl

Re: [PATCH 2/2] tools: Fix package discovery in pyproject.toml of u_boot_pylib.

2023-07-23 Thread Simon Glass
On Fri, 7 Jul 2023 at 15:17, Maxim Cournoyer wrote: > > When building from source, setuptools would complain about not finding > package via its auto-discovery mechanism. Manually specify how to > locate the files, relative to the package's directory. > > * tools/u_boot_pylib/pyproject.toml: New

Re: [PATCH v5 02/20] binman: Init align_default in entry_Section

2023-07-23 Thread Simon Glass
This should be set up in the init function, to avoid a warning about a property not set up there. Fix it. Signed-off-by: Simon Glass --- (no changes since v1) tools/binman/etype/section.py | 1 + 1 file changed, 1 insertion(+) Applied to u-boot-dm, thanks!

Re: [PATCH v5 03/20] binman: Use GetEntries() to obtain section contents

2023-07-23 Thread Simon Glass
Some section types don't have a simple _entries list. Use the GetEntries() method in GetEntryContents() and other places to handle this. This makes the behaviour more consistent. Signed-off-by: Simon Glass --- (no changes since v1) tools/binman/etype/section.py | 18 +- 1 file

Re: [PATCH v5 04/20] binman: Read _multiple_data_files in the correct place

2023-07-23 Thread Simon Glass
Move this to the ReadEntries() function where it belongs. Signed-off-by: Simon Glass --- (no changes since v1) tools/binman/etype/mkimage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) Applied to u-boot-dm, thanks!

Re: [PATCH v5 06/20] stm32mp15: Avoid writing symbols in SPL

2023-07-23 Thread Simon Glass
These boards use SPL in a mkimage entry and apparently access the symbol containing the image position of U-Boot, but put U-Boot in another image. This means that binman is unable to fill in the symbol correctly in the SPL binary. This doesn't matter at present since mkimage doesn't support symbol

Re: [PATCH v5 05/20] binman: Allow disabling symbol writing

2023-07-23 Thread Simon Glass
Some boards don't use symbol writing but do access the symbols in SPL. Provide an option to work around this. Signed-off-by: Simon Glass --- (no changes since v1) tools/binman/binman.rst | 7 ++ tools/binman/entry.py | 4 +++- tools/binman/etype/blob

Re: [PATCH v5 07/20] binman: Update elf to return number of written symbols

2023-07-23 Thread Simon Glass
Update the LookupAndWriteSymbols() function to return the number of symbols written. Also add some logging for when debugging is not enabled. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Add new patch for elf to return number of written symbols tools/binman/elf.py

Re: [PATCH v5 08/20] binman: Add more detail on how ObtainContents() works

2023-07-23 Thread Simon Glass
This area of binman can be a bit confusing. Add some more comments to help. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Add new patch with more detail on how ObtainContents() works tools/binman/entry.py | 3 +++ tools/binman/etype/section.py | 32 +++

Re: [PATCH v5 09/20] binman: Convert mkimage to Entry_section

2023-07-23 Thread Simon Glass
From: Marek Vasut This is needed to handle mkimage with inner section located itself in a section. Signed-off-by: Marek Vasut Use BuildSectionData() instead of ObtainContents(), add tests and a few other minor fixes: Signed-off-by: Simon Glass --- Changes in v5: - Drop method implementations

Re: [PATCH v5 10/20] binman: Provide a way to specify the fdt-list directly

2023-07-23 Thread Simon Glass
Sometimes multiple boards are built with binman and it is useful to specify a different FDT list for each. At present this is not possible without providing multiple values of the of-list entryarg (which is not supported in the U-Boot build system). Allow a fit,fdt-list-val string-list property to

Re: [PATCH v5 12/20] binman: Correct handling of zero bss size

2023-07-23 Thread Simon Glass
Fix the check for the __bss_size symbol, since it may be 0. Unfortunately there was no test coverage for this. Signed-off-by: Simon Glass --- (no changes since v1) tools/binman/elf_test.py | 5 + tools/binman/etype/u_boot_spl_bss_pad.py | 2 +- tools/binman/etype/u_boot_t

Re: [PATCH v5 13/20] dtoc: Support copying the contents of a node into another

2023-07-23 Thread Simon Glass
This permits implementation of a simple templating system, where a node can be reused as a base for others. For now this adds new subnodes after any existing ones. Signed-off-by: Simon Glass --- (no changes since v4) Changes in v4: - Avoid copying phandle nodes Changes in v3: - Add a new devi

Re: [PATCH v5 14/20] dtoc: Allow inserting a list of nodes into another

2023-07-23 Thread Simon Glass
Provide a way to specify a phandle list of nodes which are to be inserted into an existing node. Signed-off-by: Simon Glass --- (no changes since v4) Changes in v4: - Support copying over properties from each template node - Make sure phandles are not copied Changes in v3: - Adjust to use the

  1   2   >