Re: [PATCH v7 1/1] Initial support for Wiznet W5500

2025-05-27 Thread neil . armstrong
Hi, On 26/05/2025 21:47, ver...@hpe.com wrote: From: Jean-Marie Verdun Add support for the Wiznet W5500 spi to ethernet controller Signed-off-by: Jean-Marie Verdun --- drivers/net/Kconfig | 9 + drivers/net/Makefile | 1 + drivers/net/w5500.c | 610 +

Re: [PATCH v1 0/2] Add Qualcomm Watchdog Driver Support

2025-05-26 Thread neil . armstrong
Hi, On 26/05/2025 11:31, Balaji Selvanathan wrote: This patch series introduces support for the Qualcomm watchdog timer in U-Boot. It includes a new driver based on the upstream Linux implementation and integrates the driver into the early boot initialization sequence. A watchdog support has a

[PATCH] tcpm: fix pd_transmit poll condition

2025-05-26 Thread Neil Armstrong
tx_complete, false, timeout_us, dev); if (ret < 0) { dev_err(dev, "TCPM: PD transmit data failed: %d\n", ret); return ret; --- base-commit: bab54f5942c428be698216224fd10b91d974d4da change-id: 20250526-topic-tcpm-tx-poll-cond-8dd3ebbbeddc Best regards, -- Neil Armstrong

[PATCH RFT v4 0/3] fastboot: add support for generic block flashing

2025-05-22 Thread Neil Armstrong
welcome to make sure this series doesn't introduce any regressions on the emmc backend. Signed-off-by: Neil Armstrong --- Changes in v4: - Rebase on next - Fixup Kconfig default values & description - Link to v3: https://lore.kernel.org/r/20250506-topic-fastboot-blk-v3-0-d94be5829...@l

[PATCH RFT v4 2/3] fastboot: blk: switch emmc to use the block helpers

2025-05-22 Thread Neil Armstrong
From: Dmitrii Merkurev Switch the mmc backend to this new shared block helpers, reducing block logic and only leaving MMC specific logic. Signed-off-by: Dmitrii Merkurev Reviewed-by: Mattijs Korpershoek Tested-by: Mattijs Korpershoek Signed-off-by: Neil Armstrong --- drivers/fastboot

[PATCH RFT v4 3/3] fastboot: integrate block flashing back-end

2025-05-22 Thread Neil Armstrong
From: Dmitrii Merkurev 1. Get partition info/size 2. Erase partition 3. Flash partition 4. BCB Signed-off-by: Dmitrii Merkurev Reviewed-by: Mattijs Korpershoek Tested-by: Mattijs Korpershoek Signed-off-by: Neil Armstrong --- drivers/fastboot/Kconfig | 29

[PATCH RFT v4 1/3] fastboot: blk: introduce fastboot block flashing support

2025-05-22 Thread Neil Armstrong
the erase operation, except mmc & virtio, so in order to allow erasiong any partition a soft-erase logic has been added to write zero-ed buffers in a loop. Signed-off-by: Dmitrii Merkurev Reviewed-by: Mattijs Korpershoek Tested-by: Mattijs Korpershoek Signed-off-by: Neil Armstrong --- dri

Re: [PATCH RFT v3 0/3] fastboot: add support for generic block flashing

2025-05-22 Thread neil . armstrong
On 22/05/2025 08:58, Mattijs Korpershoek wrote: Hi Tom, On mer., mai 21, 2025 at 13:03, Tom Rini wrote: On Wed, May 21, 2025 at 08:52:41PM +0200, Mattijs Korpershoek wrote: Hi Tom, On mer., mai 21, 2025 at 09:12, Tom Rini wrote: On Wed, May 21, 2025 at 04:49:35PM +0200, Mattijs Korpersho

Re: [PATCH 4/4] usb: gadget: Introduce usb gadget vendor/product default id for ARCH_QCOM

2025-05-20 Thread Neil Armstrong
default 0x350b if ROCKCHIP_RK3588 default 0x350c if ROCKCHIP_RK3528 + default 0x4ee0 if ARCH_QCOM default 0x0 help Product ID of the USB device emulated, reported to the host device. Reviewed-by: Neil Armstrong

Re: [PATCH v2 4/6] phy: qcom: Enable QMP UFS PHY driver for QCS8300

2025-05-14 Thread neil . armstrong
{ .compatible = "qcom,sc7280-qmp-ufs-phy", .data = (ulong)&sc7280_ufsphy_cfg, }, Reviewed-by: Neil Armstrong

Re: [PATCH v2 3/6] clk/qcom: qcs8300: Add GCC clock driver for QCS8300

2025-05-14 Thread neil . armstrong
_CLK(GCC_AGGRE_UFS_PHY_AXI_CLK, 0x830d4, 1), + GATE_CLK(GCC_UFS_PHY_UNIPRO_CORE_CLK, 0x83064, 1), Please replace "1" with BIT(0) is you re-spin Thanks, Reviewed-by: Neil Armstrong +}; + +static int qcs8300_enable(struct clk *clk) +{ + struct msm_clk_priv *priv = dev_get_

Re: [PATCH v1 3/5] clk/qcom: qcs615: Add GCC clock driver for QCS615

2025-05-14 Thread neil . armstrong
}, + { } +}; + +U_BOOT_DRIVER(gcc_qcs615) = { + .name = "gcc_qcs615", + .id = UCLASS_NOP, + .of_match = gcc_qcs615_of_match, + .bind = qcom_cc_bind, + .flags = DM_FLAG_PRE_RELOC | DM_FLAG_DEFAULT_PD_CTRL_OFF, +}; With that: Reviewed-by: Neil Armstrong

Re: [PATCH v1 2/5] phy: qcom: Enable QMP UFS PHY driver for QCS615

2025-05-14 Thread neil . armstrong
{ .compatible = "qcom,sm8650-qmp-ufs-phy", .data = (ulong)&sm8650_ufsphy_cfg }, { .compatible = "qcom,sc7280-qmp-ufs-phy", .data = (ulong)&sc7280_ufsphy_cfg, }, + { .compatible = "qcom,qcs615-qmp-ufs-phy", .data = (ulong)&sm6115_ufsphy_cfg, }, { } }; Reviewed-by: Neil Armstrong

Re: [PATCH v4 1/1] Initial support for Wiznet W5500

2025-05-12 Thread neil . armstrong
Hi, Thanks for fixing it ! On 11/05/2025 20:02, ver...@hpe.com wrote: From: Jean-Marie Verdun Add support for the Wiznet W5500 spi to ethernet controller Signed-off-by: Jean-Marie Verdun --- drivers/net/Kconfig | 9 + drivers/net/Makefile | 1 + drivers/net/w5500.c | 584 +

Re: [RFC v1 5/7] usb: onboard-hub: Add support for VL817 USB hub

2025-05-09 Thread Neil Armstrong
2.0 */ + .data = (ulong)&vialab_vl817_data, + }, { + .compatible = "usb2109,2817", /* Via labs VL817 3.1 */ + .data = (ulong)&vialab_vl817_data, } }; Reviewed-by: Neil Armstrong

Re: [RFC v1 3/7] usb: onboard-hub: Add support for Genesys GL853G

2025-05-09 Thread Neil Armstrong
b5e3,620", /* GL852G USB 3.1 */ + .data = (ulong)&genesys_gl853g_data, } }; Reviewed-by: Neil Armstrong

Re: [RFC v1 7/7] usb: onboard-hub: Add conditional compilation for I2C initialization

2025-05-09 Thread Neil Armstrong
On 09/05/2025 09:02, Anand Moon wrote: Add conditional compilation for the usb5744_i2c_init() function based on the CONFIG_DM_I2C configuration, to avoid compilation failure. CC net/net-common.o AR net/built-in.o LDS u-boot.lds LD u-boot aarch64-linux-gnu-ld.bfd: c

Re: [RFC v1 4/7] configs: odorid-n2: Enable Oboard HUB driver

2025-05-09 Thread Neil Armstrong
=y CONFIG_USB_GADGET_VENDOR_NUM=0x1b8e CONFIG_USB_GADGET_PRODUCT_NUM=0xfada Same as patch 2, with that fixed: Reviewed-by: Neil Armstrong

Re: [RFC v1 6/7] configs: odorid-c4: Enable Oboard HUB driver

2025-05-09 Thread Neil Armstrong
CONFIG_USB_GADGET_VENDOR_NUM=0x1b8e CONFIG_USB_GADGET_PRODUCT_NUM=0xfada Same as patch 2, with that fixed: Reviewed-by: Neil Armstrong

Re: [RFC v1 2/7] configs: odorid-c2: Enable Onboard HUB driver

2025-05-09 Thread Neil Armstrong
# CONFIG_VIDEO_BPP8 is not set # CONFIG_VIDEO_BPP16 is not set With that fixed: Reviewed-by: Neil Armstrong

Re: [RFC v1 1/7] usb: onboard-hub: Add support for Genesys GL852G hub

2025-05-09 Thread Neil Armstrong
On 09/05/2025 09:02, Anand Moon wrote: Add support for the Genesys GL852G USB2.0 Hub on Odroid C1+ and Odroid C2. The GL852G driver trigger hub reset signal which toggles the gpio. Signed-off-by: Anand Moon --- Still some issue with USB hub on Odroid C2 What does that mean ? => dm tree v

Re: [PATCH v1 1/1] gpio: msm_gpio: return correct value for gpio read

2025-05-08 Thread neil . armstrong
T_REG(dev, gpio)) & BIT(GPIO_IN)); } static int msm_gpio_get_function_special(struct msm_gpio_bank *priv, Reviewed-by: Neil Armstrong

Re: [PATCH RFT v3 0/3] fastboot: add support for generic block flashing

2025-05-07 Thread Neil Armstrong
b to harmonize the fastboot emmc backend with the generic block backend: https://source.denx.de/u-boot/custodians/u-boot-dfu/-/issues/6 Nice ! Signed-off-by: Neil Armstrong --- Changes in v3: - Move Kconfig/Makefile changes over the 2 patches - Relicence to GPL2 with Dmitrii approval - Move soft e

Re: Odroid n2+ usb broken on reboot

2025-05-07 Thread neil . armstrong
On 05/05/2025 15:12, Wayne Schroeder wrote: If I add the usb reset command, it works reliably at reboot, but it does not work on a fresh power-up with that change. OK this means there's a dangling resource, Does USB always work within U-Boot or it breaks U-Boot and Linux in those cases ? On

[PATCH RFT v3 2/3] fastboot: blk: switch emmc to use the block helpers

2025-05-06 Thread neil . armstrong
From: Dmitrii Merkurev Switch the mmc backend to this new shared block helpers, reducing block logic and only leaving MMC specific logic. Signed-off-by: Dmitrii Merkurev Signed-off-by: Neil Armstrong --- drivers/fastboot/Kconfig | 4 +- drivers/fastboot/Makefile | 3 +- drivers/fastboot

[PATCH RFT v3 3/3] fastboot: integrate block flashing back-end

2025-05-06 Thread neil . armstrong
From: Dmitrii Merkurev 1. Get partition info/size 2. Erase partition 3. Flash partition 4. BCB Signed-off-by: Dmitrii Merkurev Reviewed-by: Mattijs Korpershoek Signed-off-by: Neil Armstrong --- drivers/fastboot/Kconfig | 24 drivers/fastboot/Makefile | 1

[PATCH RFT v3 0/3] fastboot: add support for generic block flashing

2025-05-06 Thread neil . armstrong
welcome to make sure this series doesn't introduce any regressions on the emmc backend. Signed-off-by: Neil Armstrong --- Changes in v3: - Move Kconfig/Makefile changes over the 2 patches - Relicence to GPL2 with Dmitrii approval - Move soft erase in a separate function - Update help text of Kc

[PATCH RFT v3 1/3] fastboot: blk: introduce fastboot block flashing support

2025-05-06 Thread neil . armstrong
the erase operation, except mmc & virtio, so in order to allow erasiong any partition a soft-erase logic has been added to write zero-ed buffers in a loop. Signed-off-by: Dmitrii Merkurev Signed-off-by: Neil Armstrong --- drivers/fastboot/fb_block.c |

Re: [PATCH v3 1/1] Initial support for Wiznet W5500

2025-05-06 Thread neil . armstrong
Hi, On 05/05/2025 19:58, ver...@hpe.com wrote: From: Jean-Marie Verdun Add support for the Wiznet W5500 spi to ethernet controller Signed-off-by: Jean-Marie Verdun --- drivers/net/Kconfig | 9 + drivers/net/Makefile | 1 + drivers/net/w5500.c | 618 +

Re: [PATCH v2 3/4] env: Add support for storing env variables in SCSI devices

2025-05-06 Thread neil . armstrong
On 06/05/2025 09:24, Varadarajan Narayanan wrote: Allow SCSI to be able to store environment variables. Signed-off-by: Varadarajan Narayanan --- env/Kconfig| 15 +- env/Makefile | 1 + env/env.c | 3 ++ env/scsi.c | 115 ++

Re: [PATCH v2 2/4] scsi: Implement get_blk() function

2025-05-06 Thread neil . armstrong
On 06/05/2025 09:24, Varadarajan Narayanan wrote: Add a function to obtain the block device for SCSI. Signed-off-by: Varadarajan Narayanan --- drivers/scsi/scsi-uclass.c | 30 ++ include/scsi.h | 11 +++ 2 files changed, 41 insertions(+) diff

Re: [PATCH v2 5/5] mach-snapdragon: Enable workaround of ignoring androidboot addr

2025-05-05 Thread Neil Armstrong
ANDROID_BOOT_IMAGE_IGNORE_BLOB_ADDR imply OF_UPSTREAM imply CMD_DM imply DM_USB_GADGET Reviewed-by: Neil Armstrong

Re: [PATCH v2 2/5] mach-snapdragon: Enhance android image handling memory footprint

2025-05-05 Thread Neil Armstrong
c(SZ_4M)); status |= env_set_hex("pxefile_addr_r", addr_alloc(SZ_4M)); addr = addr_alloc(SZ_2M); Anyway Reviewed-by: Neil Armstrong

Re: [PATCH v2 1/5] boot/image-android: Workaround kernel/ramdisk invalid addr

2025-05-05 Thread Neil Armstrong
k_ptr; } else { ramdisk_ptr = img_data.ramdisk_addr; I like this and should be the default except rare cases, exposing the whole memory to image loading sound really dangerous.. Reviewed-by: Neil Armstrong @Mattijs would this still work on Amlogic board

Re: [PATCH 0/3] RFC: test: Bring in the test hooks

2025-05-05 Thread neil . armstrong
Hi, On 02/05/2025 04:50, Simon Glass wrote: During a recent discussion with Heinrich we discussed why the hooks are kept in a separate repo. The amount of code is small, a tenth of the size of the recently added lwip, just by way of example. Testing is a critical part of U-Boot and one of the t

Re: [PATCH] mach-snapdragon: Update fdtfile logic to work for RB1 and RB2

2025-05-05 Thread neil . armstrong
On 05/05/2025 09:23, Neil Armstrong via groups.io wrote: Hi, On 23/04/2025 07:11, Sumit Garg wrote: From: Sumit Garg RB1 and RB2 have three root compatibles where the last one can't be used to decode fdtfile name (qcm* vs qrb*). So rather just rely on the first compatible to retrieve th

Re: [PATCH] mach-snapdragon: Update fdtfile logic to work for RB1 and RB2

2025-05-05 Thread neil . armstrong
Hi, On 23/04/2025 07:11, Sumit Garg wrote: From: Sumit Garg RB1 and RB2 have three root compatibles where the last one can't be used to decode fdtfile name (qcm* vs qrb*). So rather just rely on the first compatible to retrieve the SoC name. OK, so "soc" would be qcm2290 instead of qrb2210,

Re: Odroid n2+ usb broken on reboot

2025-05-05 Thread neil . armstrong
Hi, +CC u-boot-amlo...@groups.io +CC linux-amlo...@lists.infradead.org On 05/05/2025 00:34, Wayne Schroeder wrote: Hello. I am not sure if this is a bug, or even related to u-boot, but I am reporting it here because it was easiest to resolve via a u-boot change. I am using u-boot-2025.04 (sou

[PATCH] net: mdio: mux-meson-gxl: set reversed bit when using internal phy

2025-05-01 Thread Neil Armstrong
250502-u-boot-topic-mdio-mux-gxl-bit28-a6d03bf8e383 Best regards, -- Neil Armstrong

Re: [PATCH v2 1/2] sysreset: Implement PSCI based reset to EDL mode for QCOM SoCs

2025-04-30 Thread neil . armstrong
On 30/04/2025 10:54, Varadarajan Narayanan wrote: The SYSRESET_PSCI interface presently available doesn't support booting into Emergency DownLoad (EDL) mode. The EDL mode is used to flash the board with different firmware. Since EDL is Qcom specific, implement a Qcom specific SYSRESET_PSCI handl

Re: [PATCH RFT v2 1/3] fastboot: blk: introduce fastboot block flashing support

2025-04-29 Thread neil . armstrong
Hi, But using raw partition descriptors[1] does not work with the above [1] https://docs.u-boot.org/en/latest/android/fastboot.html#raw-partition-descriptors Right, not all features will work with generic block backend, but it's a start! + +config FASTBOOT_FLASH_BLOCK_DEVICE_ID +

Re: [PATCH RFT v2 1/3] fastboot: blk: introduce fastboot block flashing support

2025-04-29 Thread neil . armstrong
On 29/04/2025 14:32, Mattijs Korpershoek wrote: On mar., avril 29, 2025 at 11:45, Dmitrii Merkurev wrote: Dmitrii, are you okay to re-licence this code under GPL v2 (which is common licence for this project) Yes, I'm ok with that. Fantastic, thanks a lot for answering so quickly! Thank

Re: [PATCH v2 1/1] Initial support for Wiznet W5500

2025-04-25 Thread neil . armstrong
Hi, On 25/04/2025 03:07, ver...@hpe.com wrote: From: Jean-Marie Verdun Add support for the Wiznet W5500 spi to ethernet controller Signed-off-by: Jean-Marie Verdun --- drivers/net/Kconfig | 9 + drivers/net/Makefile | 1 + drivers/net/w5500.c | 508 +

Re: Wiznet w5500 support

2025-04-23 Thread neil . armstrong
On 23/04/2025 11:03, Quentin Schulz wrote: Hi Jean-Marie, On 4/22/25 8:36 PM, Verdun, Jean-Marie wrote: [You don't often get email from ver...@hpe.com. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ] Hi, I have written a small patch for the wiznet W5500 adapter

Re: [PATCH RFT v2 1/3] fastboot: blk: introduce fastboot block flashing support

2025-04-23 Thread Neil Armstrong
dded to write zero-ed buffers in a loop. Signed-off-by: Dmitrii Merkurev Signed-off-by: Neil Armstrong --- drivers/fastboot/Kconfig| 20 ++- drivers/fastboot/Makefile | 4 +- drivers/fastboot/fb_block.c | 313 include/fb_blo

Re: [PATCH v3] watchdog: qcom: introduce qcom-wdt driver

2025-04-23 Thread Neil Armstrong
;qcom_wdt_ops, + .probe = qcom_wdt_probe, + .priv_auto = sizeof(struct qcom_wdt), +}; --- base-commit: 0eebdd17888005751cd77cf3794c5292d36f481a change-id: 20250413-b4-qcom-wdt-e7b913fc375e Best regards, -- Paul Sajna Reviewed-by: Neil Armstrong

Re: [PATCH 0/6] clk: qcom: apq8016: Clock fixes for U-Boot v2025.07

2025-04-22 Thread Neil Armstrong
deletions(-) --- base-commit: cde0050618968aae335dfbc930641656d51ff5d0 change-id: 20250419-apq8016-clock-fixes2-66ace5b26ab4 Best regards, Reviewed-by: Neil Armstrong

Re: [PATCH RFT v2 0/3] fastboot: add support for generic block flashing

2025-04-14 Thread Neil Armstrong
since only 2 block drivers exposes the erase operation. Tests are welcome to make sure this series doesn't introduce any regressions on the emmc backend. Could you get an eye on this v2 ? Thanks, Neil Signed-off-by: Neil Armstrong --- Changes in v2: - Dropped applied virtio erase

Re: [PATCH] watchdog: qcom: introduce qcom-wdt driver

2025-04-14 Thread Neil Armstrong
Hi, On 13/04/2025 12:12, Paul Sajna wrote: From: Caleb Connolly Some Qualcomm device vendors decide to turn the watchdog on in the bootloader, resulting in the device being reset if it isn't petted every ~30 seconds. Introduce a driver to disable the watchdog and prevent this annoying behaviou

[PATCH 2/2] ARM: mach-meson: use livetree by default

2025-04-11 Thread Neil Armstrong
Finally enable OF_LIVE by default on the Amlogic support, this add some cost to build the live tree, but makes DT parsing from driver much faster. Signed-off-by: Neil Armstrong --- arch/arm/mach-meson/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-meson/Kconfig b/arch

[PATCH 1/2] pinctrl: meson: convert to livetree

2025-04-11 Thread neil . armstrong
From: Beniamino Galvani Update the Meson pinctrl/gpio driver to support a live device tree. Signed-off-by: Beniamino Galvani Link: https://lore.kernel.org/r/20170709223006.3998-5-b.galv...@gmail.com Signed-off-by: Neil Armstrong --- drivers/pinctrl/meson/pinctrl-meson.c | 73

Re: [PATCH v2 4/8] mach-snapdragon: of_fixup: remove confusing log message

2025-04-11 Thread Neil Armstrong
e it is typically the superspeed one. +*/ + if (!strncmp("usb3-phy", second_phy_name, strlen("usb3-phy"))) hsphy_idx = 0; - } /* Overwrite the "phys" property to only contain the high-speed phy */ ret = of_write_prop(dwc3,

[PATCH 0/2] ARM: meson: finally switch to livetree

2025-04-11 Thread neil . armstrong
Never late than never, finally try to land Beniamino's "pinctrl: meson: convert to livetree" from 2017 to finally be a modern platform with OF_LIVE ! Signed-off-by: Neil Armstrong --- Beniamino Galvani (1): pinctrl: meson: convert to livetree Neil Armstrong (1): ARM:

Re: [PATCH v2 5/8] mach-snapdragon: of_fixup: update comment

2025-04-11 Thread Neil Armstrong
p for a couple * of reasons: it has a much nicer API, is most likely more efficient, * and our changes are only applied to U-Boot. This allows us to use a Reviewed-by: Neil Armstrong

Re: [PATCH v2 1/8] event: signal when livetree has been built

2025-04-11 Thread Neil Armstrong
On 11/04/2025 14:47, Caleb Connolly wrote: OF_LIVE offers a variety of benefits, one of them being that the live tree can be modified without caring about the underlying FDT. This is particularly valuable for working around U-Boot limitations like lacking USB superspeed support on Qualcomm platfo

Re: [PATCH v2 2/8] mach-snapdragon: use EVT_OF_LIVE_INIT to apply DT fixups

2025-04-11 Thread Neil Armstrong
Hi, On 11/04/2025 14:47, Caleb Connolly wrote: This will now apply fixups prior to devices being bound, which makes it possible to enable/disable devices and adjust more properties that might be read before devices probe. Subject should be EVT_OF_LIVE_BUILT Neil Signed-off-by: Caleb Connol

Re: [PATCH 06/13] board: dragonboard410c: Drop unused linux_image

2025-04-10 Thread Neil Armstrong
+ */ loadaddr=0x8100 initrd_high=0x -linux_image=Image kernel_addr_r=0x8100 fdtfile=qcom/apq8016-sbc.dtb fdt_addr_r=0x8300 Reviewed-by: Neil Armstrong

Re: [PATCH v2 1/2] qcom_defconfig: Disable MMC HS200 mode support

2025-04-10 Thread neil . armstrong
806450dc 100644 --- a/configs/qcom_defconfig +++ b/configs/qcom_defconfig @@ -81,7 +81,6 @@ CONFIG_QCOM_HYP_SMMU=y CONFIG_MISC=y CONFIG_NVMEM=y CONFIG_I2C_EEPROM=y -CONFIG_MMC_HS200_SUPPORT=y CONFIG_MMC_SDHCI=y CONFIG_MMC_SDHCI_ADMA=y CONFIG_MMC_SDHCI_MSM=y Reviewed-by: Neil Armstrong

[PATCH v2 3/3] block: use part_get_info_cached() API when scanning partitions

2025-04-10 Thread Neil Armstrong
allocation since for each scan it would allocate and free the gpt_pte table up to 1024 times, now it would only do 8 allocations, reducing memory fragmentation. Signed-off-by: Neil Armstrong --- drivers/block/blk-uclass.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git

Re: [PATCH 08/13] board: dragonboard410c: Fix counter frequency

2025-04-10 Thread Neil Armstrong
nfigs/dragonboard410c_defconfig +++ b/configs/dragonboard410c_defconfig @@ -1,6 +1,6 @@ CONFIG_ARM=y CONFIG_SYS_BOARD="dragonboard410c" -CONFIG_COUNTER_FREQUENCY=1900 +CONFIG_COUNTER_FREQUENCY=1920 CONFIG_ENABLE_ARM_SOC_BOOT0_HOOK=y CONFIG_ARCH_SNAPDRAGON=y CONFIG_TEXT_BASE=0x8f60 Re

Re: [PATCH 05/13] board: dragonboard410c: Drop reflash functionality

2025-04-10 Thread Neil Armstrong
ragonboard/rescue/emmc_appsboot.mbn, 7) -REFLASH(dragonboard/u-boot.img, 8) -usb stop && -echo Reflash completed - loadaddr=0x8100 initrd_high=0x linux_image=Image Reviewed-by: Neil Armstrong

Re: [PATCH 10/13] board: dragonboard410c: Use BOOTSTD instead of DISTRO_DEFAULTS

2025-04-10 Thread Neil Armstrong
SB, usb, 0) \ - func(MMC, mmc, 1) \ - func(MMC, mmc, 0) \ - func(DHCP, dhcp, na) - -#include - -#define CFG_EXTRA_ENV_SETTINGS BOOTENV - #endif Reviewed-by: Neil Armstrong

Re: [PATCH 1/6] event: signal when livetree has been built

2025-04-10 Thread Neil Armstrong
ct device_node *root) Looks good :-) Reviewed-by: Neil Armstrong

[PATCH v2] pinctrl: qcom: handle reserved ranges

2025-04-10 Thread neil . armstrong
drivers don't try to interact with these pins. Signed-off-by: Caleb Connolly Signed-off-by: Neil Armstrong --- Changes in v2: - Switch to bitmap - Link to v1: https://lore.kernel.org/r/20250401-topic-sm8x50-pinctrl-reserved-ranges-v1-1-0fe88b491...@linaro.org --- arch/arm/mach-snapd

Re: [PATCH 2/6] mach-snapdragon: use EVT_OF_LIVE_INIT to apply DT fixups

2025-04-10 Thread Neil Armstrong
F_LIVE */ - #endif /* __QCOM_PRIV_H__ */ Reviewed-by: Neil Armstrong

Re: [PATCH] pinctrl: qcom: handle reserved ranges

2025-04-10 Thread Neil Armstrong
On 10/04/2025 01:40, Alexey Minnekhanov wrote: On 4/1/25 10:46, Neil Armstrong via groups.io wrote: From: Caleb Connolly Some Qualcomm boards feature reserved ranges of pins which are protected by firmware. Attempting to read or write any registers associated with these pins results the board

Re: [PATCH v2 2/2] phy: phy-qcom-qusb2: Fix USB PHY power on sequence

2025-04-10 Thread neil . armstrong
override = true, + .se_clk_scheme_default = true, .autoresume_en = BIT(0), .update_tune1_with_efuse = true, }; Reviewed-by: Neil Armstrong

Re: [PATCH v2 2/2] phy: phy-qcom-qusb2: Fix USB PHY power on sequence

2025-04-10 Thread neil . armstrong
override = true, + .se_clk_scheme_default = true, .autoresume_en = BIT(0), .update_tune1_with_efuse = true, }; Reviewed-by: Neil Armstrong

Re: [PATCH 6/6] pinctrl: qcom: qcm2290: fix off by 1 in pin_count

2025-04-10 Thread Neil Armstrong
ount = 134, .special_pins_start = 127, }, .functions_count = ARRAY_SIZE(msm_pinctrl_functions), .get_function_name = qcm2290_get_function_name, Reviewed-by: Neil Armstrong

Re: [PATCH 5/6] mach-snapdragon: of_fixup: set dr_mode for RB1/2 boards

2025-04-10 Thread Neil Armstrong
_for_each_node_by_compatible(node, blob, 0, "snps,dwc3") { - log_debug("%s: Setting 'dr_mode' to OTG\n", fdt_get_name(blob, node, NULL)); - fdt_setprop_string(fdt, node, "dr_mode", "otg"); - break; - } - } - return 0; } Reviewed-by: Neil Armstrong

Re: [PATCH 4/6] clk/qcom: qcm2290: show clock name in set_rate()

2025-04-10 Thread Neil Armstrong
ase GCC_QUPV3_WRAP0_S4_CLK: /*UART2*/ freq = qcom_find_freq(ftbl_gcc_qupv3_wrap0_s0_clk_src, rate); Reviewed-by: Neil Armstrong

Re: [PATCH 3/6] mach-snapdragon: of_fixup: skip disabled USB nodes

2025-04-10 Thread Neil Armstrong
if (ret) log_warning("Failed to fixup node %s: %d\n", glue_np->name, ret); } Reviewed-by: Neil Armstrong

Re: [PATCH 12/13] board: dragonboard410c: Use button_cmd instead of custom code

2025-04-09 Thread Neil Armstrong
OARD_SETUP=y @@ -22,7 +23,6 @@ CONFIG_SYS_CBSIZE=512 CONFIG_SYS_PBSIZE=548 # CONFIG_DISPLAY_CPUINFO is not set # CONFIG_DISPLAY_BOARDINFO is not set -CONFIG_MISC_INIT_R=y CONFIG_SYS_PROMPT="dragonboard410c => " CONFIG_CMD_MD5SUM=y CONFIG_CMD_MEMINFO=y Reviewed-by: Neil Armstrong

[PATCH RFT v2 2/3] fastboot: blk: switch emmc to use the block helpers

2025-04-09 Thread neil . armstrong
From: Dmitrii Merkurev Switch the mmc backend to this new shared block helpers, reducing block logic and only leaving MMC specific logic. Signed-off-by: Dmitrii Merkurev Signed-off-by: Neil Armstrong --- drivers/fastboot/fb_mmc.c | 210 +++--- 1 file

[PATCH RFT v2 3/3] fastboot: integrate block flashing back-end

2025-04-09 Thread neil . armstrong
From: Dmitrii Merkurev 1. Get partition info/size 2. Erase partition 3. Flash partition 4. BCB Signed-off-by: Dmitrii Merkurev Reviewed-by: Mattijs Korpershoek Signed-off-by: Neil Armstrong --- drivers/fastboot/fb_command.c | 8 drivers/fastboot/fb_common.c | 16

[PATCH RFT v2 1/3] fastboot: blk: introduce fastboot block flashing support

2025-04-09 Thread neil . armstrong
the erase operation, except mmc & virtio, so in order to allow erasiong any partition a soft-erase logic has been added to write zero-ed buffers in a loop. Signed-off-by: Dmitrii Merkurev Signed-off-by: Neil Armstrong --- drivers/fastboot/Kconfig| 20 ++- drivers/fastboot/Makefile |

[PATCH RFT v2 0/3] fastboot: add support for generic block flashing

2025-04-09 Thread neil . armstrong
welcome to make sure this series doesn't introduce any regressions on the emmc backend. Signed-off-by: Neil Armstrong --- Changes in v2: - Dropped applied virtio erase patch - Reorganize patches, introducing helpers first, using them in mmc afterwards - Added soft-erase logic - Added move helpe

Re: [PATCH 11/13] board: dragonboard410c: Enable support for Android boot images

2025-04-08 Thread Neil Armstrong
On 08/04/2025 09:01, Stephan Gerhold wrote: On Mon, Apr 07, 2025 at 08:10:24PM +0200, Neil Armstrong wrote: On 07/04/2025 18:59, Stephan Gerhold wrote: The U-Boot port for DB410c still has plenty of extra space available at this point, so avoid disabling features that would be normally enabled

Re: [PATCH v2 2/3] part: efi: add GPT PTE cache used with part_get_info_cached() API

2025-04-08 Thread Neil Armstrong
On 08/04/2025 12:57, Heinrich Schuchardt wrote: On 08.04.25 11:13, Neil Armstrong wrote: Implement a simple cache for part_efi to be used by the newly introduced part_get_info_cached() API. The cache simply stores a successfully scanned GPT PTE if called from the part_get_info_cached() ops

Re: [PATCH v2 1/3] part: add part_get_info_cached() API

2025-04-08 Thread Neil Armstrong
On 08/04/2025 11:55, Heinrich Schuchardt wrote: On 08.04.25 11:13, Neil Armstrong wrote: Introduce a new part_get_info_cached() API that's used to get the part_info of a blk_desc allowing to use an eventual partition scanning cache to avoid rescanning the entire disk partition scheme for

Re: [PATCH 04/13] board: dragonboard410c: Drop UNSTUFF_BITS() macro

2025-04-08 Thread Neil Armstrong
/* MMC serial number */ + return mmc_dev->cid[2] << 16 | mmc_dev->cid[3] >> 16; } static void msm_generate_mac_addr(u8 *mac) Reviewed-by: Neil Armstrong

[PATCH v2 1/3] part: add part_get_info_cached() API

2025-04-08 Thread Neil Armstrong
ssary computation is saved, leading to a faster boot time when partitions are scanned, especially with storage medias with potentially multiple large hardware partitions like UFS, NVMe or eMMC. Signed-off-by: Neil Armstrong --- disk/part.c

[PATCH v2 2/3] part: efi: add GPT PTE cache used with part_get_info_cached() API

2025-04-08 Thread Neil Armstrong
if not. The cache will only operate if called from the part_get_info_cached() API, all the over calls will operate uncached, making sure we can still update & re-scan the GPT partitions like before. Signed-off-by: Neil Armstrong --- disk/part_efi.c |

[PATCH v2 0/3] part_efi: cache last scanned GPT for next partition

2025-04-08 Thread Neil Armstrong
ocate and free the gpt_pte table up to 1024 times, now it would only do 8 allocations, reducing memory fragmentation. Signed-off-by: Neil Armstrong --- Changes in v2: - add part_info_get_cached API - only use cache when called from part_info_get_cached - Link to v1: https://lore.kernel.org/all/202

Re: [PATCH 01/13] mach-snapdragon: Fix EL2 boot on DragonBoard 410c

2025-04-07 Thread Neil Armstrong
ENABLE_ARM_SOC_BOOT0_HOOK select SYSRESET select SYSRESET_PSCI Good catch Reviewed-by: Neil Armstrong

Re: [PATCH 03/13] board: dragonboard410c: Fix BD address

2025-04-07 Thread Neil Armstrong
/ 2; ++i) { + u8 tmp = mac[i]; + + mac[i] = mac[ARP_HLEN - 1 - i]; + mac[ARP_HLEN - 1 - i] = tmp; + } + do_fixup_by_compat(blob, "qcom,wcnss-bt", "local-bd-address", mac, ARP_HLEN, 1); return 0; Reviewed-by: Neil Armstrong

Re: [PATCH 13/13] board: dragonboard410c: Update maintainers

2025-04-07 Thread Neil Armstrong
agonboard410c.h Acked-by: Neil Armstrong

Re: [PATCH 11/13] board: dragonboard410c: Enable support for Android boot images

2025-04-07 Thread Neil Armstrong
On 07/04/2025 18:59, Stephan Gerhold wrote: The U-Boot port for DB410c still has plenty of extra space available at this point, so avoid disabling features that would be normally enabled by default. In particular, this incldues support for Android boot images, which is quite likely to be used tog

Re: [PATCH 09/13] board: dragonboard410c: Enable RTL8152 ethernet

2025-04-07 Thread Neil Armstrong
GET=y CONFIG_USB_GADGET_VENDOR_NUM=0x18d1 Reviewed-by: Neil Armstrong

Re: [PATCH 07/13] board: dragonboard410c: Use dynamically allocated load addresses

2025-04-07 Thread Neil Armstrong
iptaddr=0x9000 -pxefile_addr_r=0x9010 +fastboot=fastboot -l $fastboot_addr_r usb 0 Reviewed-by: Neil Armstrong

Re: [PATCH 02/13] board: dragonboard410c: Fix RAM size

2025-04-07 Thread Neil Armstrong
/ memory@8000 { - reg = <0 0x8000 0 0x3da0>; + reg = <0 0x8000 0 0x4000>; }; }; Reviewed-by: Neil Armstrong

Re: [PATCH 3/5] clk/qcom: apq8096: fix the sdhci clock

2025-04-07 Thread neil . armstrong
On 07/04/2025 16:17, Jorge Ramirez wrote: On 07/04/25 14:36:51, neil.armstr...@linaro.org wrote: On 07/04/2025 14:05, Jorge Ramirez-Ortiz wrote: Select the right clock for sdhci. Signed-off-by: Jorge Ramirez-Ortiz Reviewed-by: Neil Armstrong --- drivers/clk/qcom/clock-apq8096.c | 2

Re: [PATCH 3/7] mmc: msm_sdhci: handle bulk clock initialization error

2025-04-07 Thread Neil Armstrong
On 07/04/2025 11:02, neil.armstr...@linaro.org wrote: On 07/04/2025 10:19, Jorge Ramirez-Ortiz wrote: Some boards do not require all clocks to be available (i.e: dragonboard820c). Can you specify which clock isn't available ? Because we have clk-stub for that Enable: CONFIG_CLK_STUB=y and c

Re: [PATCH 1/7] board: qualcomm: dragonboard820c: udpate readme

2025-04-07 Thread neil . armstrong
ooting using the fdt blob at 0x14860 +Working FDT set to 14860 + Loading Kernel Image to 8008 + Using Device Tree in place at 00014860, end 00014860c4f5 +Working FDT set to 14860 Starting kernel ... Reviewed-by: Neil Armstrong

Re: [PATCH 4/5] clk: stub: add qcom,glink-smd-rpm

2025-04-07 Thread neil . armstrong
On 07/04/2025 14:05, Jorge Ramirez-Ortiz wrote: Add support for the resource power manager clocks over SMD/GLINK to be stubbed. Signed-off-by: Jorge Ramirez-Ortiz --- drivers/clk/clk-stub.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/clk-stub.c b/drivers/clk/clk-stub.c in

Re: [PATCH 3/5] clk/qcom: apq8096: fix the sdhci clock

2025-04-07 Thread neil . armstrong
On 07/04/2025 14:05, Jorge Ramirez-Ortiz wrote: Select the right clock for sdhci. Signed-off-by: Jorge Ramirez-Ortiz Reviewed-by: Neil Armstrong --- drivers/clk/qcom/clock-apq8096.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/qcom/clock-apq8096.c b

Re: [PATCH 3/7] mmc: msm_sdhci: handle bulk clock initialization error

2025-04-07 Thread Neil Armstrong
On 07/04/2025 11:38, Jorge Ramirez wrote: On 07/04/25 11:10:45, Neil Armstrong wrote: On 07/04/2025 11:02, neil.armstr...@linaro.org wrote: On 07/04/2025 10:19, Jorge Ramirez-Ortiz wrote: Some boards do not require all clocks to be available (i.e: dragonboard820c). Can you specify which

Re: [PATCH 5/7] configs: dragonboard820: enable GPIO

2025-04-07 Thread neil . armstrong
100644 --- a/configs/dragonboard820c_defconfig +++ b/configs/dragonboard820c_defconfig @@ -45,4 +45,5 @@ CONFIG_PINCTRL_QCOM_APQ8096=y CONFIG_DM_PMIC=y CONFIG_PMIC_QCOM=y CONFIG_MSM_SERIAL=y +CONFIG_MSM_GPIO=y CONFIG_SPMI_MSM=y Reviewed-by: Neil Armstrong

Re: [PATCH 6/7] mach-snapdragon: board interface to enforce fdt

2025-04-07 Thread neil . armstrong
Hi, On 07/04/2025 10:19, Jorge Ramirez-Ortiz wrote: Some platforms might require the external fdt to boot. Why ? we may want to build the fdt in, and discard the external fdt for some reasons. This change provides a mechanism to the board initializaion code to make the requet explicit. Si

Re: [PATCH 4/7] clk/qcom: apq8096: fix the sdhci clock

2025-04-07 Thread neil . armstrong
case GCC_SDCC1_APPS_CLK: /* SDC1 */ + case GCC_SDCC2_APPS_CLK: /* SDC2 */ return clk_init_sdc(priv, rate); break; case GCC_BLSP2_UART2_APPS_CLK: /*UART2*/ Reviewed-by: Neil Armstrong

  1   2   3   4   5   6   7   8   9   10   >