Re: [PATCH v3 04/11] imx8mp: power-domain: Don't power off pd_bus

2024-03-21 Thread Sumit Garg
On Fri, 22 Mar 2024 at 00:47, Marek Vasut wrote: > > On 3/21/24 6:46 AM, Sumit Garg wrote: > > On Thu, 21 Mar 2024 at 11:06, Marek Vasut wrote: > >> > >> On 3/15/24 11:41 AM, Sumit Garg wrote: > >>> On Fri, 15 Mar 2024 at 14:53, Marek Vasut wrote: > > On 3/15/24 6:31 AM, Sumit Garg

Re: [PATCH v3 07/11] phy: phy-imx8m-pcie: Add support for i.MX8M{M/P} PCIe PHY

2024-03-21 Thread Sumit Garg
On Fri, 22 Mar 2024 at 00:47, Marek Vasut wrote: > > On 3/21/24 1:40 PM, Sumit Garg wrote: > > On Thu, 14 Mar 2024 at 09:46, Marek Vasut wrote: > >> > >> On 3/12/24 8:03 AM, Sumit Garg wrote: > >>> Add initial support for i.MX8M{M/P} PCIe PHY. On i.MX8M{M/P} SoCs PCIe > >>> PHY initialization

[PATCH] arm: dts: kirkwood: Enable upstream DT on Kirkwood boards

2024-03-21 Thread Tony Dinh
Enable OF_UPSTREAM to use upstream DT and add marvell/ prefix to the DEFAULT_DEVICE_TREE for Kirkwood boards. And so we can directly build DTBs from dts/upstream/src/arm/marvell, and including *-u-boot.dtsi files from arch/arm/dts/ directory. Background: Hi Stefan, Hi Michael, I did a survey

Re: [PATCH v2 4/6] usb: Add environment based device blocklist

2024-03-21 Thread Marek Vasut
On 3/19/24 10:17 PM, Janne Grunau wrote: Hi, sorry for the abysmal delay in response. On Mon, Mar 18, 2024 at 03:17:33PM +0100, Marek Vasut wrote: On 3/18/24 8:33 AM, Janne Grunau wrote: +static int usb_blocklist_parse_error(const char *blocklist, size_t pos) +{ +

[PATCH v3] tools: copyfile: use 64k instead of 512 buffer

2024-03-21 Thread Ahelenia Ziemiańska
This is a trivial but significant optimization: mkimage took >200ms (and 49489 writes (of which 49456 512)), now it takes 110ms (and 419 writes (of which 386 64k)). sendfile is much more appropriate for this and is done in one syscall, but doesn't bring any significant speedups over 64k r/w

[PATCH v2 22/24] dt-bindings: drop remaining device headers

2024-03-21 Thread Caleb Connolly
Drop in favour of dts/upstream. Remaining device headers for small vendors Signed-off-by: Caleb Connolly --- include/dt-bindings/arm/coresight-cti-dt.h | 37 - include/dt-bindings/arm/ux500_pm_domains.h | 15 -- include/dt-bindings/bus/moxtet.h | 16 --

[PATCH v2 23/24] dt-bindings: drop generic headers

2024-03-21 Thread Caleb Connolly
Drop all the subsystem headers that are compatible with the headers in dts/upstream. Signed-off-by: Caleb Connolly Tested-by: Neil Armstrong # on AML-S805X-AC Tested-by: Neil Armstrong # on AML-S905X-CC Tested-by: Neil Armstrong # on BPI-M2S Tested-by: Neil Armstrong # on BPI-M5 ---

[PATCH v2 24/24] dts: support building all dtb files for a specific vendor

2024-03-21 Thread Caleb Connolly
This adjusts OF_UPSTREAM to behave more like the kernel by allowing for all the devicetree files for a given vendor to be compiled. This is useful for Qualcomm in particular as most boards are supported by a single U-Boot build just provided with a different DT. Signed-off-by: Caleb Connolly ---

[PATCH v2 21/24] dt-bindings: drop clock headers

2024-03-21 Thread Caleb Connolly
Drop in favour of dts/upstream. Clock headers for remaining smaller vendors that are compatible with dts/upstream. Signed-off-by: Caleb Connolly --- include/dt-bindings/clock/actions,s700-cmu.h | 118 --- include/dt-bindings/clock/actions,s900-cmu.h | 129

[PATCH v2 20/24] sifive: drop clock headers

2024-03-21 Thread Caleb Connolly
Drop in favour of dts/upstream. Small driver/dts change to fix compatibility. Signed-off-by: Caleb Connolly --- arch/riscv/dts/fu540-c000-u-boot.dtsi | 26 +- drivers/clk/sifive/fu540-prci.c | 8

[PATCH v2 19/24] hisi: drop dt-binding headers

2024-03-21 Thread Caleb Connolly
Drop in favour of dts/upstream Signed-off-by: Caleb Connolly --- include/dt-bindings/clock/hi3660-clock.h | 214 --- include/dt-bindings/clock/hi6220-clock.h | 173 - include/dt-bindings/pinctrl/hisi.h | 74 --- 3 files changed,

[PATCH v2 17/24] mtk: drop dt-binding headers

2024-03-21 Thread Caleb Connolly
Drop in favour of dts/upstream Signed-off-by: Caleb Connolly --- include/dt-bindings/clock/mt7622-clk.h| 270 --- include/dt-bindings/clock/mt7629-clk.h| 206 -- include/dt-bindings/clock/mt8183-clk.h| 329 -

[PATCH v2 18/24] microchip: drop dt-binding headers

2024-03-21 Thread Caleb Connolly
Drop in favour of dts/upstream Adjust header include path naming for mpfs clock. Signed-off-by: Caleb Connolly --- arch/riscv/dts/mpfs.dtsi | 2 +- drivers/clk/microchip/mpfs_clk.c | 2 +- drivers/clk/microchip/mpfs_clk_cfg.c | 2 +-

[PATCH v2 16/24] xlnx: drop dt-binding headers

2024-03-21 Thread Caleb Connolly
Drop in favour of dts/upstream Signed-off-by: Caleb Connolly --- include/dt-bindings/clock/xlnx-versal-clk.h| 123 --- include/dt-bindings/clock/xlnx-zynqmp-clk.h| 126 include/dt-bindings/dma/xlnx-zynqmp-dpdma.h| 16 ---

[PATCH v2 14/24] tegra: drop clock dt-binding headers

2024-03-21 Thread Caleb Connolly
Drop in favour of dts/upstream. Signed-off-by: Caleb Connolly --- include/dt-bindings/clock/tegra114-car.h| 343 - include/dt-bindings/clock/tegra124-car-common.h | 345 - include/dt-bindings/clock/tegra124-car.h| 19 - include/dt-bindings/clock/tegra186-clock.h

[PATCH v2 15/24] tegra: drop dt-binding headers

2024-03-21 Thread Caleb Connolly
Drop in favour of dts/upstream. Small driver adjustment to fix compatibility. Signed-off-by: Caleb Connolly --- arch/arm/dts/tegra186.dtsi | 2 +- drivers/mailbox/tegra-hsp.c | 2 +- include/dt-bindings/gpio/tegra-gpio.h| 51 --

[PATCH v2 13/24] ti: drop dt-binding headers

2024-03-21 Thread Caleb Connolly
Drop in favour of dts/upstream Signed-off-by: Caleb Connolly --- drivers/net/phy/dp83869.c | 2 + include/dt-bindings/bus/ti-sysc.h | 28 include/dt-bindings/clk/ti-dra7-atl.h | 40 - include/dt-bindings/clock/am3.h| 227

[PATCH v2 11/24] exynos: drop dt-binding headers

2024-03-21 Thread Caleb Connolly
Drop in favour of dts/upstream. Small driver and DTS adjustments to use upstream headers. Signed-off-by: Caleb Connolly --- arch/arm/dts/exynos7420.dtsi | 2 +- drivers/clk/exynos/clk-exynos7420.c | 2 +- include/dt-bindings/clock/exynos7420-clk.h | 207

[PATCH v2 12/24] bcm: drop dt-binding headers

2024-03-21 Thread Caleb Connolly
Drop in favour of dts/upstream Fix bcm6318 USB clock name Signed-off-by: Caleb Connolly --- arch/mips/dts/brcm,bcm6318.dtsi| 2 +- include/dt-bindings/clock/bcm-nsp.h| 51 include/dt-bindings/clock/bcm2835-aux.h| 9 -

[PATCH v2 10/24] rockchip: drop remaining dt-binding headers

2024-03-21 Thread Caleb Connolly
Drop in favour of dts/upstream. Small driver adjustment to fix compatibility, adjusted rk3368-sheep.dts to replace some GPIO defines with literals. Signed-off-by: Caleb Connolly --- arch/arm/dts/rk3368-sheep.dts | 8 +- drivers/pinctrl/rockchip/pinctrl-rk3568.c |

[PATCH v2 08/24] stm: drop dt-binding headers

2024-03-21 Thread Caleb Connolly
Dropped in favour of dts/upstream Signed-off-by: Caleb Connolly --- include/dt-bindings/clock/ste-ab8500.h | 12 - include/dt-bindings/clock/stih407-clks.h | 90 --- include/dt-bindings/clock/stih410-clks.h | 25 --

[PATCH v2 07/24] amlogic: drop dt-binding headers

2024-03-21 Thread Caleb Connolly
Dropped in favour of dts/upstream Signed-off-by: Caleb Connolly Reviewed-by: Neil Armstrong Tested-by: Neil Armstrong # on AML-S805X-AC Tested-by: Neil Armstrong # on AML-S905X-CC Tested-by: Neil Armstrong # on BPI-M2S Tested-by: Neil Armstrong # on BPI-M5 ---

[PATCH v2 06/24] imx: drop dt-binding headers

2024-03-21 Thread Caleb Connolly
Drop in favour of dts/upstream. Signed-off-by: Caleb Connolly --- include/dt-bindings/interconnect/fsl,imx8mp.h | 59 --- include/dt-bindings/interconnect/imx8mm.h | 50 include/dt-bindings/interconnect/imx8mn.h | 41

[PATCH v2 05/24] imx: drop clock dt-binding headers

2024-03-21 Thread Caleb Connolly
Drop in favour of dts/upstream. Signed-off-by: Caleb Connolly --- include/dt-bindings/clock/imx5-clock.h | 219 - include/dt-bindings/clock/imx6qdl-clock.h | 278 - include/dt-bindings/clock/imx6sl-clock.h| 178 ---

[PATCH v2 04/24] sunxi: drop remaining dt-binding headers

2024-03-21 Thread Caleb Connolly
Drop in favour of dts/upstream. Signed-off-by: Caleb Connolly --- include/dt-bindings/dma/sun4i-a10.h | 56 --- include/dt-bindings/pinctrl/sun4i-a10.h | 62 include/dt-bindings/reset/sun20i-d1-ccu.h | 79

[PATCH v2 03/24] sunxi: drop clock dt-binding headers

2024-03-21 Thread Caleb Connolly
Drop in favour of dts/upstream Signed-off-by: Caleb Connolly --- include/dt-bindings/clock/sun20i-d1-ccu.h | 158 include/dt-bindings/clock/sun20i-d1-r-ccu.h | 19 --- include/dt-bindings/clock/sun4i-a10-ccu.h | 202 --

[PATCH v2 02/24] qcom: drop remaining dt-binding headers

2024-03-21 Thread Caleb Connolly
Drop in favour of dts/upstream Signed-off-by: Caleb Connolly --- include/dt-bindings/dma/qcom-gpi.h | 11 - include/dt-bindings/firmware/qcom,scm.h| 39 -- include/dt-bindings/iio/qcom,spmi-vadc.h | 300 ---

[PATCH v2 01/24] qcom: drop clock dt-binding headers

2024-03-21 Thread Caleb Connolly
Drop in favour of dts/upstream. This is just the clock headers. Signed-off-by: Caleb Connolly --- include/dt-bindings/clock/qcom,camcc-sdm845.h| 116 include/dt-bindings/clock/qcom,dispcc-sdm845.h | 56 include/dt-bindings/clock/qcom,gcc-ipq4019.h | 169 ---

[PATCH v2 00/24] Drop DT upstream compatible dt-binding headers

2024-03-21 Thread Caleb Connolly
Many of the dt-binding headers in U-Boot are based on the upstream ones from Linux, occasionally with minor changes. Although some have additional things defined or are totally different. This series attempts to drop as many of these headers as is easily possible. Those with differing APIs were

Re: [PATCH v3] tools: copyfile: use 64k instead of 512 buffer

2024-03-21 Thread Dragan Simic
On 2024-03-21 21:37, Ahelenia Ziemiańska wrote: This is a trivial but significant optimization: mkimage took >200ms (and 49489 writes (of which 49456 512)), now it takes 110ms (and 419 writes (of which 386 64k)). sendfile is much more appropriate for this and is done in one syscall, but

Re: [PATCH RFC 26/26] dts: support building all dtb files for a specific vendor

2024-03-21 Thread Caleb Connolly
Hi Sumit, On 06/03/2024 11:50, Sumit Garg wrote: > On Tue, 5 Mar 2024 at 19:45, Caleb Connolly wrote: >> >> [trimmed CC list a bit as this is getting offtopic for the original thread] >> >> On 05/03/2024 13:14, Sumit Garg wrote: >>> On Tue, 5 Mar 2024 at 18:21, Caleb Connolly >>> wrote:

[PATCH 1/1] rtc: goldfish_rtc_probe should be static

2024-03-21 Thread Heinrich Schuchardt
There is no need to export goldfish_rtc_probe(). Fixes: 2d6dc19fd25d ("rtc: driver for Goldfish RTC") Signed-off-by: Heinrich Schuchardt --- drivers/rtc/goldfish_rtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/goldfish_rtc.c b/drivers/rtc/goldfish_rtc.c

Re: [PATCH v2] tools: copyfile: use 64k instead of 512 buffer

2024-03-21 Thread Dragan Simic
Hello Ahelenia, Please see my comments below. On 2024-03-21 19:29, Ahelenia Ziemiańska wrote: This is a trivial but significant optimisation: s/optimisation/optimization/ mkimage took >200ms (and 49489 writes (of which 49456 512)), now it takes 110ms (and 419 writes (of which 386

Re: [PATCH 1/2] usb: udc: dwc3: Fold board dm_usb_gadget_handle_interrupts() into DWC3 gadget

2024-03-21 Thread Marek Vasut
On 3/21/24 11:01 AM, Mattijs Korpershoek wrote: Hi Marek, Thank you for the patch. On dim., mars 17, 2024 at 05:42, Marek Vasut wrote: The dm_usb_gadget_handle_interrupts() has no place in board code. Move this into DWC3 driver. The OMAP implementation is special, add new weak

Re: [PATCH 1/2] usb: udc: dwc3: Fold board dm_usb_gadget_handle_interrupts() into DWC3 gadget

2024-03-21 Thread Marek Vasut
On 3/21/24 6:05 PM, Caleb Connolly wrote: On 20/03/2024 20:18, Marek Vasut wrote: On 3/18/24 1:47 PM, Caleb Connolly wrote: On 17/03/2024 04:42, Marek Vasut wrote: The dm_usb_gadget_handle_interrupts() has no place in board code. Move this into DWC3 driver. The OMAP implementation is

Re: [PATCH v3 04/11] imx8mp: power-domain: Don't power off pd_bus

2024-03-21 Thread Marek Vasut
On 3/21/24 6:46 AM, Sumit Garg wrote: On Thu, 21 Mar 2024 at 11:06, Marek Vasut wrote: On 3/15/24 11:41 AM, Sumit Garg wrote: On Fri, 15 Mar 2024 at 14:53, Marek Vasut wrote: On 3/15/24 6:31 AM, Sumit Garg wrote: On Thu, 14 Mar 2024 at 09:45, Marek Vasut wrote: On 3/12/24 8:03 AM,

Re: [PATCH v3 07/11] phy: phy-imx8m-pcie: Add support for i.MX8M{M/P} PCIe PHY

2024-03-21 Thread Marek Vasut
On 3/21/24 1:40 PM, Sumit Garg wrote: On Thu, 14 Mar 2024 at 09:46, Marek Vasut wrote: On 3/12/24 8:03 AM, Sumit Garg wrote: Add initial support for i.MX8M{M/P} PCIe PHY. On i.MX8M{M/P} SoCs PCIe PHY initialization moved to this standalone PHY driver. Inspired from counterpart Linux kernel

Re: [PATCH v3 2/3] configs: imx93-phyboard-segin: Add USB support

2024-03-21 Thread Marek Vasut
On 3/21/24 3:45 PM, Mathieu Othacehe wrote: Add USB support by enabling `usb` command and required USB drivers. Signed-off-by: Mathieu Othacehe --- configs/imx93-phyboard-segin_defconfig | 8 1 file changed, 8 insertions(+) diff --git a/configs/imx93-phyboard-segin_defconfig

Re: [PATCH v3 1/3] arm: dts: imx93-phyboard-segin: Add USB support

2024-03-21 Thread Marek Vasut
On 3/21/24 3:45 PM, Mathieu Othacehe wrote: Enable both usbotg1 and usbotg2 ports. Disable over-current as OC pins are not connected to the SoC. This "This addition to ...-u-boot.dtsi is temporary, ..." would be clearer. is temporary, until USB support is added to imx93-phyboard-segin.dts

Re: [PATCH v4 08/11] pcie_imx: Update header to describe it as a legacy driver

2024-03-21 Thread Marek Vasut
On 3/21/24 3:55 PM, Sumit Garg wrote: Since now we have the modern pcie_dw_imx.c driver for iMX SoCs, encourage people to switch to that for any further new iMX SoC support or even for the older iMX6 SoCs too. Suggested-by: Peter Robinson Signed-off-by: Sumit Garg Reviewed-by: Marek Vasut

[PATCH v2] tools: open FIT image read-only

2024-03-21 Thread Ahelenia Ziemiańska
Open for reading as O_RDONLY instead of O_RDWR: the only usage of the fd is for the single read() below; this prevented mkimage -f auto -A arm64 \ -T kernel -C lz4 -d Image-6.6.15.lz4 \ -b mt8173-elm-hana-6.6.15.dtb outf when the inputs were unwritable.

[PATCH v2] tools: copyfile: use 64k instead of 512 buffer

2024-03-21 Thread Ahelenia Ziemiańska
This is a trivial but significant optimisation: mkimage took >200ms (and 49489 writes (of which 49456 512)), now it takes 110ms (and 419 writes (of which 386 64k)). sendfile is much more appropriate for this and is done in one syscall, but doesn't bring any significant speedups over 64k r/w

Re: [PATCH v1] board: toradex: verdin-am62_r5: Increase SPL_STACK_R_MALLOC_SIMPLE_LEN

2024-03-21 Thread Tom Rini
On Thu, Mar 21, 2024 at 06:07:32PM +0100, Francesco Dolcini wrote: > On Wed, Mar 20, 2024 at 01:48:45PM -0300, Hiago De Franco wrote: > > From: Hiago De Franco > > > > Increase the SPL_STACK_R_MALLOC_SIMPLE_LEN to 0x20 to accommodate the > > size of tispl.bin fit image. With the recent

Re: Pull request efi-2024-04-rc5-2

2024-03-21 Thread Tom Rini
On Thu, Mar 21, 2024 at 08:56:12AM +0100, Heinrich Schuchardt wrote: > Dear Tom, > > The following changes since commit 6ec096a7116a5f1f7dfac5f69ef192429331905c: > > Merge tag 'u-boot-imx-master-20240317' of > https://gitlab.denx.de/u-boot/custodians/u-boot-imx (2024-03-17 19:43:02 > -0400) >

[PATCH v2 6/6] doc: describe Milk-V Mars board

2024-03-21 Thread Heinrich Schuchardt
Add instructions to build U-Boot for the Milk-V Mars board Signed-off-by: Heinrich Schuchardt --- v2: describe how to preset fdtfile --- doc/board/starfive/index.rst | 1 + doc/board/starfive/milk-v_mars.rst | 111 + 2 files changed, 112 insertions(+)

[PATCH v2 5/6] riscv: starfive: avoid including common.h

2024-03-21 Thread Heinrich Schuchardt
The usage of common.h is deprecated. Remove it from board files. Signed-off-by: Heinrich Schuchardt --- v2: no change --- board/starfive/visionfive2/spl.c| 1 - board/starfive/visionfive2/starfive_visionfive2.c | 1 -

[PATCH v2 4/6] board: starfive: support Milk-V Mars board

2024-03-21 Thread Heinrich Schuchardt
The differences between the Milk-V Mars board and the VisionFive 2 board are small enough that we can support both using the same U-Boot build. * The model and compatible property are taken from proposed Linux patches. * The EEPROM is atmel,24c02 according to the vendor U-Boot. * The second

[PATCH v2 2/6] eeprom: starfive: function get_product_id_from_eeprom()

2024-03-21 Thread Heinrich Schuchardt
Export a function get_product_id_from_eeprom() to read the product ID. This value can be used for fixing up the device-tree on JH7110 based products. Signed-off-by: Heinrich Schuchardt --- v2: no change --- arch/riscv/include/asm/arch-jh7110/eeprom.h | 9 +

[PATCH v2 3/6] riscv: set fdtfile on Milk-V Mars

2024-03-21 Thread Heinrich Schuchardt
Set environment variable fdtfile to the correct value for the Milk-V Mars board. Signed-off-by: Heinrich Schuchardt --- v2: rebase patch --- .../visionfive2/starfive_visionfive2.c| 43 +-- 1 file changed, 30 insertions(+), 13 deletions(-) diff --git

[PATCH v2 1/6] riscv: do not set default fdt for VisionFive 2

2024-03-21 Thread Heinrich Schuchardt
Currently in set_fdtfile() we set the value of environment variable fdtfile unconditionally. The implies that a value in the environment will be ignored. With the patch environment variable fdtfile will only be set if it does not yet exist. This requires that CONFIG_DEFAULT_FDT_FILE is not set.

[PATCH v2 0/6] riscv: add support for Milk-V Mars board

2024-03-21 Thread Heinrich Schuchardt
The Milk-V Mars board is technically very close to the StarFive VisionFive 2 board. With this patch series the VisionFive 2 U-Boot SPL will detect that it is running on a Milk-V board and patch the device-tree accordingly. This is the same approach that has been taken to handle the differences

[PATCH] tpm: display message when using gpio-reset instead of when missing it

2024-03-21 Thread Tim Harvey
Instead of displaying what looks like an error message if a gpio-reset dt prop is missing for a TPM dipslay a more informative message about resetting the TPM if the gpio is found: before: tpm_tis_spi_probe: missing reset GPIO after: tpm@0: performing 1ms reset on gpio@3021:12 Note that the

Re: [PATCH v1] board: toradex: verdin-am62_r5: Increase SPL_STACK_R_MALLOC_SIMPLE_LEN

2024-03-21 Thread Francesco Dolcini
On Wed, Mar 20, 2024 at 01:48:45PM -0300, Hiago De Franco wrote: > From: Hiago De Franco > > Increase the SPL_STACK_R_MALLOC_SIMPLE_LEN to 0x20 to accommodate the > size of tispl.bin fit image. With the recent upgrade of ti-linux-firmware > from version v9.1.0 to v9.2.5, the size of

Re: [PATCH 1/2] usb: udc: dwc3: Fold board dm_usb_gadget_handle_interrupts() into DWC3 gadget

2024-03-21 Thread Caleb Connolly
On 20/03/2024 20:18, Marek Vasut wrote: > On 3/18/24 1:47 PM, Caleb Connolly wrote: >> >> >> On 17/03/2024 04:42, Marek Vasut wrote: >>> The dm_usb_gadget_handle_interrupts() has no place in board code. Move >>> this into DWC3 driver. The OMAP implementation is special, add new weak >>>

Re: [PATCH] usb: gadget: UMS: fix 64-bit division on ARM32

2024-03-21 Thread Caleb Connolly
On 21/03/2024 16:48, Mattijs Korpershoek wrote: > Hi Caleb, > > Thank you for the patch. > > On jeu., mars 21, 2024 at 15:28, Caleb Connolly > wrote: > >> The patch introducing support for dynamic sector sizes changed the types >> used in some divisions, resulting in the compiler

Re: [PATCH] usb: gadget: UMS: fix 64-bit division on ARM32

2024-03-21 Thread Mattijs Korpershoek
Hi Caleb, Thank you for the patch. On jeu., mars 21, 2024 at 15:28, Caleb Connolly wrote: > The patch introducing support for dynamic sector sizes changed the types > used in some divisions, resulting in the compiler attempting to use > libgcc helpers (__aeabi_ldivmod). Replace these

[RFC][PATCH] syscon: Add syscon_regmap_lookup_by_compatible wrapper

2024-03-21 Thread Marek Vasut
Add a wrapper to look up a system controller by a compatible string. This operates by looking up the given name in the device (device tree property) of the device using the system controller. Signed-off-by: Marek Vasut --- Cc: Johan Jonker Cc: Simon Glass Cc: Sumit Garg Cc: Tom Rini ---

Re: [PATCH] arm64: zynqmp: Also support JTAG as alternative boot mode

2024-03-21 Thread Sean Anderson
On 3/20/24 07:18, Michal Simek wrote: > if (reg >> BOOT_MODE_ALT_SHIFT) condition rules out alternative jtag boot > mode which is 0. When 0 was used origin(HW) boot mode was used instead. > That's why directly fill reg variable with requested boot mode and don't > let code to read value back.

[PATCH] arm64: zynqmp: Describe DisplayPort connector for Kria

2024-03-21 Thread Michal Simek
From: Vishal Sagar Add a device tree node to describe the DisplayPort connector, and connect it to the DPSUB output. The patch was tested on kv260-revB/rev2 and also kr260-revB. Signed-off-by: Vishal Sagar Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-sck-kr-g-revB.dtso | 20

Re: [PATCH v3 1/3] arm: dts: imx93-phyboard-segin: Add USB support

2024-03-21 Thread Fabio Estevam
Hi Mathieu, On Thu, Mar 21, 2024 at 11:46 AM Mathieu Othacehe wrote: > > Enable both usbotg1 and usbotg2 ports. Disable over-current as OC pins are > not connected to the SoC. > > This is temporary, until USB support is added to imx93-phyboard-segin.dts > in Linux. > > Signed-off-by: Mathieu

[PATCH] usb: gadget: UMS: fix 64-bit division on ARM32

2024-03-21 Thread Caleb Connolly
The patch introducing support for dynamic sector sizes changed the types used in some divisions, resulting in the compiler attempting to use libgcc helpers (__aeabi_ldivmod). Replace these divisions with calls to lldiv() to handle this correctly. Fixes: 74e56e0c5065 ("usb: gadget: UMS: support

Re: [PATCH 1/2] spl: Introduce architecture specific init function

2024-03-21 Thread Michal Simek
čt 21. 3. 2024 v 8:55 odesílatel Lukas Funke < lukas.funke-...@weidmueller.com> napsal: > On 20.03.2024 16:49, Andre Przywara wrote: > > On Wed, 20 Mar 2024 11:33:16 -0400 > > Tom Rini wrote: > > > > Hi, > > > >> On Wed, Mar 20, 2024 at 08:52:30PM +0530, Devarsh Thakkar wrote: > >>> Hi Tom,

[PATCH v4 04/11] imx8mp: power-domain: Add PCIe support

2024-03-21 Thread Sumit Garg
Add support for GPCv2 power domains and clock handling for PCIe and PCIe PHY. Tested-by: Tim Harvey #imx8mp-venice* Tested-by: Adam Ford #imx8mp-beacon-kit Reviewed-by: Marek Vasut Signed-off-by: Sumit Garg --- drivers/power/domain/imx8mp-hsiomix.c | 117 +- 1 file

[PATCH v3 2/3] configs: imx93-phyboard-segin: Add USB support

2024-03-21 Thread Mathieu Othacehe
Add USB support by enabling `usb` command and required USB drivers. Signed-off-by: Mathieu Othacehe --- configs/imx93-phyboard-segin_defconfig | 8 1 file changed, 8 insertions(+) diff --git a/configs/imx93-phyboard-segin_defconfig b/configs/imx93-phyboard-segin_defconfig index

[PATCH v3 1/3] arm: dts: imx93-phyboard-segin: Add USB support

2024-03-21 Thread Mathieu Othacehe
Enable both usbotg1 and usbotg2 ports. Disable over-current as OC pins are not connected to the SoC. This is temporary, until USB support is added to imx93-phyboard-segin.dts in Linux. Signed-off-by: Mathieu Othacehe --- arch/arm/dts/imx93-phyboard-segin-u-boot.dtsi | 15 +++ 1

[PATCH v3 3/3] configs: imx93-phyboard-segin: Add fastboot support

2024-03-21 Thread Mathieu Othacehe
Enable the `fastboot` command. Reviewed-by: Marek Vasut Signed-off-by: Mathieu Othacehe --- configs/imx93-phyboard-segin_defconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git a/configs/imx93-phyboard-segin_defconfig b/configs/imx93-phyboard-segin_defconfig index

[PATCH v3 0/3] imx93-phyboard-segin: Add USB support.

2024-03-21 Thread Mathieu Othacehe
Hello, This series adds USB support to imx93-phyboard-segin, in the same way as it has been done for imx93_var_som here: https://lists.denx.de/pipermail/u-boot/2024-February/546301.html Thanks, Mathieu Changelog: v1: https://lists.denx.de/pipermail/u-boot/2024-March/548613.html Mathieu

Re: Pull request efi-next-20240321

2024-03-21 Thread Tom Rini
le in the Git repository at: > > https://source.denx.de/u-boot/custodians/u-boot-efi.git > tags/efi-next-20240321 > > for you to fetch changes up to 884785adc1dc5e7b91acb542ba83941951ff2b77: > > doc: typo Synopis (2024-03-21 07:00:12 +0100) > > Gitlab CI showed no i

[PATCH v4 11/11] MAINTAINERS: Add entry for PCIe DWC IMX driver

2024-03-21 Thread Sumit Garg
Add myself as maintainer for PCIe DWC IMX driver support. Acked-by: Marek Vasut Signed-off-by: Sumit Garg --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 8b316c8550e..83fd68e3f39 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1371,6

[PATCH v4 10/11] imx8mp_venice_defconfig: Enable PCIe/NVMe support

2024-03-21 Thread Sumit Garg
From: Tim Harvey Enable PCIe/NVMe support. Also, enable the reset, regmap and syscon drivers which are a prerequisite for PCIe support. Signed-off-by: Tim Harvey [SG: rebased to next branch tip] Signed-off-by: Sumit Garg --- configs/imx8mp_venice_defconfig | 8 1 file changed, 8

[PATCH v4 09/11] verdin-imx8mp_defconfig: Enable PCIe/NVMe support

2024-03-21 Thread Sumit Garg
Enable PCIe/NVMe support. Also, enable the reset driver which is a prerequisite for PCIe support. Acked-by: Francesco Dolcini Tested-by: Marcel Ziswiler Signed-off-by: Sumit Garg --- configs/verdin-imx8mp_defconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git

[PATCH v4 08/11] pcie_imx: Update header to describe it as a legacy driver

2024-03-21 Thread Sumit Garg
Since now we have the modern pcie_dw_imx.c driver for iMX SoCs, encourage people to switch to that for any further new iMX SoC support or even for the older iMX6 SoCs too. Suggested-by: Peter Robinson Signed-off-by: Sumit Garg --- drivers/pci/pcie_imx.c | 8 1 file changed, 8

[PATCH v4 07/11] pci: Add DW PCIe controller support for iMX8MP SoC

2024-03-21 Thread Sumit Garg
pcie_imx doesn't seem to share any useful code for iMX8 SoC and it is tied to quite old port of pcie_designware driver from Linux which suffices only iMX6 specific needs. But currently we have the common DWC specific bits which alligns pretty well with DW PCIe controller on iMX8MP SoC. So lets

[PATCH v4 06/11] phy: phy-imx8m-pcie: Add support for i.MX8M{M/P} PCIe PHY

2024-03-21 Thread Sumit Garg
Add initial support for i.MX8M{M/P} PCIe PHY. On i.MX8M{M/P} SoCs PCIe PHY initialization moved to this standalone PHY driver. Inspired from counterpart Linux kernel v6.8-rc3 driver: drivers/phy/freescale/phy-fsl-imx8m-pcie.c. Use last Linux kernel driver reference commit 7559e7572c03 ("phy:

[PATCH v4 05/11] imx8mp: power-domain: Expose high performance PLL clock

2024-03-21 Thread Sumit Garg
Expose the high performance PLL as clock framework clock, so the PCIe PHY can use it when there is no external refclock provided. Inspired from counterpart Linux kernel v6.8-rc3 driver: drivers/pmdomain/imx/imx8mp-blk-ctrl.c. Use last Linux kernel driver reference commit 7476ddfd36ac ("pmdomain:

[PATCH v4 03/11] reset: imx: Add support for i.MX8MP reset controller

2024-03-21 Thread Sumit Garg
Add support for i.MX8MP reset controller, it has same reset IP inside as the other iMX7 and iMX8M variants but with different module layout. Inspired from counterpart Linux kernel v6.8-rc3 driver: drivers/reset/reset-imx7.c. Use last Linux kernel driver reference commit bad8a8afe19f ("reset:

[PATCH v4 02/11] reset: imx: Refactor driver to simplify function names

2024-03-21 Thread Sumit Garg
imx7_reset_{deassert/assert}_imx* are a bit more confusing when compared with imx*_reset_{deassert/assert}. So refactor driver to use function names easier to understand. This shouldn't affect the functionality though. Suggested-by: Marek Vasut Reviewed-by: Marek Vasut Signed-off-by: Sumit Garg

[PATCH v4 01/11] clk: imx8mp: Add support for PCIe clocks

2024-03-21 Thread Sumit Garg
Add support for PCIe clocks required to enable PCIe support on iMX8MP SoC. Tested-by: Tim Harvey #imx8mp-venice* Tested-by: Adam Ford #imx8mp-beacon-kit Reviewed-by: Marek Vasut Signed-off-by: Sumit Garg --- drivers/clk/imx/clk-imx8mp.c | 6 ++ 1 file changed, 6 insertions(+) diff --git

[PATCH v4 00/11] imx8mp: Enable PCIe/NVMe support

2024-03-21 Thread Sumit Garg
pcie_imx doesn't seem to share any useful code for iMX8MP SoC and it is rather tied to quite old port of pcie_designware driver from Linux which suffices only iMX6 specific needs. But currently we have the common DWC specific bits which alligns pretty well with DW PCIe controller on iMX8MP SoC.

Re: [PATCH v4 0/5] Qualcomm DWC3 USB support

2024-03-21 Thread Mattijs Korpershoek
Hi Caleb, It seems CI got broken with this series. Baseline CI (passed): https://source.denx.de/u-boot/u-boot/-/pipelines/20006 With series applied (failed): https://source.denx.de/u-boot/custodians/u-boot-dfu/-/jobs/802278 It seems the change on UMS introduced some linking errors on arm32:

Re: [PATCH 1/5] usb: dwc3-generic: implement Qualcomm wrapper

2024-03-21 Thread Mattijs Korpershoek
On jeu., mars 21, 2024 at 11:34, Caleb Connolly wrote: > Hi, > > On 21/03/2024 09:25, Mattijs Korpershoek wrote: >> Hi Caleb, Marek, >> >> On jeu., mars 21, 2024 at 06:34, Marek Vasut wrote: >> >>> On 3/13/24 7:22 PM, Caleb Connolly wrote: >>> >>> [...] >>> >> +static inline void

Re: [PATCH v4 2/2] android_ab: Fix ANDROID_AB_BACKUP_OFFSET

2024-03-21 Thread Colin
Hi Mattijs, Sorry, I did not realize there were outstanding issues for me to address. I would be happy to send a v5, but if you doing the fixups gets this merged quicker, that sounds better to me. Happy to contribute, *_* *Colin McAllister* On Thu, Mar 21, 2024 at 4:29 AM

Re: [PATCH v3 07/11] phy: phy-imx8m-pcie: Add support for i.MX8M{M/P} PCIe PHY

2024-03-21 Thread Sumit Garg
On Thu, 14 Mar 2024 at 09:46, Marek Vasut wrote: > > On 3/12/24 8:03 AM, Sumit Garg wrote: > > Add initial support for i.MX8M{M/P} PCIe PHY. On i.MX8M{M/P} SoCs PCIe > > PHY initialization moved to this standalone PHY driver. > > > > Inspired from counterpart Linux kernel v6.8-rc3 driver: > >

Re: [PATCH v3] test: dm: add button_cmd test

2024-03-21 Thread Tom Rini
On Tue, 19 Mar 2024 13:24:42 +, Caleb Connolly wrote: > Add a test for the button_cmd feature. This validates that commands can > be mapped to two buttons, that the correct command runs based on which > button is pressed, that only 1 command is run, and that no command runs > if

Re: [PATCH] Makefile: Add missing OF_UPSTREAM Makefile for 32bit ARM

2024-03-21 Thread Tom Rini
On Mon, 18 Mar 2024 16:03:14 +0100, Marek Vasut wrote: > Copy dts/upstream/src/arm64/Makefile into dts/upstream/src/arm/Makefile > and create a commit. This makes 32bit ARM buildable with OF_UPSTREAM . > > Applied to u-boot/next, thanks! -- Tom

Re: [PATCH next v1 0/1] Add new bmc dts for ASUS X4TF server

2024-03-21 Thread Tom Rini
On Wed, 13 Mar 2024 18:27:24 +0800, Kelly Hung wrote: > Add bmc dts to ASUS X4TF server, we also submitted dts to linux place. > Please refer to here, https://lore.kernel.org/lkml/?q=x4tf. > > Kelly Hung (1): > arm: dts: ast2600-x4tf: Add new dts for ASUS X4TF > > arch/arm/dts/Makefile

Re: [PATCH] gpio: mcp230xx: Add support for models with SPI interface.

2024-03-21 Thread Tom Rini
On Wed, 13 Mar 2024 12:54:56 +0100, Piotr Wojtaszczyk wrote: > Applied to u-boot/next, thanks! -- Tom

Re: [PATCH 1/1] spl: Improve error message for SPL memory allocation

2024-03-21 Thread Tom Rini
On Wed, 13 Mar 2024 14:53:15 +0800, Leo Yu-Chi Liang wrote: > There could be two memory allocation scheme in SPL phase. > Explicitly print the corresponding error message. > > Applied to u-boot/next, thanks! -- Tom

Re: [PATCH v2 0/3] imx93-phyboard-segin: Add USB support.

2024-03-21 Thread Fabio Estevam
Hi Mathieu, On Thu, Mar 21, 2024 at 3:57 AM Mathieu Othacehe wrote: > Mathieu Othacehe (3): > arm: dts: imx93-phyboard-segin: Add USB support > configs: imx93-phyboard-segin: Add USB support > configs: imx93-phyboard-segin: Add fastboot support > > arch/arm/dts/imx93-phyboard-segin.dts

Re: [PATCH 1/5] usb: dwc3-generic: implement Qualcomm wrapper

2024-03-21 Thread Caleb Connolly
Hi, On 21/03/2024 09:25, Mattijs Korpershoek wrote: > Hi Caleb, Marek, > > On jeu., mars 21, 2024 at 06:34, Marek Vasut wrote: > >> On 3/13/24 7:22 PM, Caleb Connolly wrote: >> >> [...] >> > +static inline void dwc3_qcom_setbits(void __iomem *base, u32 offset, > u32 val) > +{ >

[PATCH] imx: ele_ahab: Add ahab_commit command support

2024-03-21 Thread Mathieu Othacehe
This message is used to commit into the fuses any new SRK revocation and FW version information that have been found into the NXP (ELE FW) and OEM containers. Signed-off-by: Mathieu Othacehe --- arch/arm/include/asm/mach-imx/ele_api.h | 2 ++ arch/arm/mach-imx/ele_ahab.c| 29

[PATCH v2 3/3] configs: imx93-phyboard-segin: Add fastboot support

2024-03-21 Thread Mathieu Othacehe
Enable the `fastboot` command. Reviewed-by: Marek Vasut Signed-off-by: Mathieu Othacehe --- configs/imx93-phyboard-segin_defconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git a/configs/imx93-phyboard-segin_defconfig b/configs/imx93-phyboard-segin_defconfig index

[PATCH v2 2/3] configs: imx93-phyboard-segin: Add USB support

2024-03-21 Thread Mathieu Othacehe
Add USB support by enabling `usb` command and required USB drivers. Signed-off-by: Mathieu Othacehe --- configs/imx93-phyboard-segin_defconfig | 8 1 file changed, 8 insertions(+) diff --git a/configs/imx93-phyboard-segin_defconfig b/configs/imx93-phyboard-segin_defconfig index

[PATCH v2 1/3] arm: dts: imx93-phyboard-segin: Add USB support

2024-03-21 Thread Mathieu Othacehe
Enable both usbotg1 and usbotg2 ports. Disable over-current as OC pins are not connected to the SoC. Signed-off-by: Mathieu Othacehe --- arch/arm/dts/imx93-phyboard-segin.dts | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/dts/imx93-phyboard-segin.dts

[PATCH v2 0/3] imx93-phyboard-segin: Add USB support.

2024-03-21 Thread Mathieu Othacehe
Hello, This series adds USB support to imx93-phyboard-segin, in the same way as it has been done for imx93_var_som here: https://lists.denx.de/pipermail/u-boot/2024-February/546301.html Thanks, Mathieu Changelog: v1: https://lists.denx.de/pipermail/u-boot/2024-March/548613.html Mathieu

[PATCH] image-host: Fix error value paths and emit error messages to stderr.

2024-03-21 Thread Hugo Cornelis
A recent refactoring in image-host.c messed up the return values of the function that reads the encryptiong keys. This patch fixes this and also makes sure that error output goes to stderr instead of to stdout. Signed-off-by: Hugo Cornelis --- tools/image-host.c | 10 +- 1 file

Re: [PATCH v6] remoteproc: uclass: Add methods to load firmware to rproc and boot rproc

2024-03-21 Thread MD Danish Anwar
On 20/03/24 6:08 pm, Tom Rini wrote: > On Wed, Mar 20, 2024 at 11:19:01AM +0530, MD Danish Anwar wrote: >> Hi Tom, >> >> On 20/03/24 4:10 am, Tom Rini wrote: >>> On Wed, Feb 28, 2024 at 05:36:45PM +0530, MD Danish Anwar wrote: >>> Add APIs to set a firmware_name to a rproc and boot the

[PATCH v7] remoteproc: uclass: Add methods to load firmware to rproc and boot rproc

2024-03-21 Thread MD Danish Anwar
Add APIs to set a firmware_name to a rproc and boot the rproc with the same firmware. Clients can call rproc_set_firmware() API to set firmware_name for a rproc whereas rproc_boot() will load the firmware set by rproc_set_firmware() to a buffer by calling request_firmware_into_buf(). rproc_boot()

Re: [PATCH v3] test: dm: add button_cmd test

2024-03-21 Thread Mattijs Korpershoek
Hi Caleb, Thank you for the patch. On mar., mars 19, 2024 at 13:24, Caleb Connolly wrote: > Add a test for the button_cmd feature. This validates that commands can > be mapped to two buttons, that the correct command runs based on which > button is pressed, that only 1 command is run, and

Re: [PATCH 2/2] usb: udc: dwc3: Fold dwc3_uboot_handle_interrupt into dm_usb_gadget_handle_interrupts

2024-03-21 Thread Mattijs Korpershoek
Hi Marek, Thank you for the patch. On dim., mars 17, 2024 at 05:42, Marek Vasut wrote: > The only call site of dwc3_uboot_handle_interrupt() is the > dm_usb_gadget_handle_interrupts(), fold the former into the > later. This makes dwc3_uboot_handle_interrupt() unavailable > to be called from

  1   2   >