Re: [PATCH v1 0/6] Fix page permission on arm64 architectures

2025-02-06 Thread Neil Armstrong
| 20 +++ doc/usage/cmd/meminfo.rst | 71 ++--- include/asm-generic/sections.h | 2 + include/cpu_func.h | 16 ++ 23 files changed, 215 insertions(+), 41 deletions(-) -- 2.47.2 Tested-by: Neil Armstrong # on AML-S905X-CC

[PATCH] pci: dw_common: Set INCREASE_REGION_SIZE flag based on limit address

2025-02-06 Thread Neil Armstrong
and SM8650. Based on the Linux commit 777e7c3ab7303 that can be found at [1]. [1] https://lore.kernel.org/all/20220624143428.8334-5-sergey.se...@baikalelectronics.ru/ Signed-off-by: Neil Armstrong --- drivers/pci/pcie_dw_common.c | 8 ++-- drivers/pci/pcie_dw_common.h | 2 ++ 2 files changed

Re: [PATCH 1/4] clk/qcom: apq8016: add PRNG_AHB_CLK

2025-01-31 Thread Neil Armstrong
,0x41008, BIT(0)), + GATE_CLK(GCC_USB_HS_SYSTEM_CLK, 0x41004, BIT(0)), }; /* SDHCI */ This should be 2 patches, but it's still fine for me... Reviewed-by: Neil Armstrong

Re: [PATCH 2/4] rng: msm: don't enable PRNG if it's already enabled

2025-01-31 Thread Neil Armstrong
= readl_relaxed(priv->base + PRNG_LFSR_CFG); val &= ~PRNG_LFSR_CFG_MASK; val |= PRNG_LFSR_CFG_CLOCKS; Good catch ! Reviewed-by: Neil Armstrong

[PATCH] scsi: do not fill the LUN in the second CDB byte

2025-01-23 Thread Neil Armstrong
i-LUN device, if somehow it happens the enquiry command would need to get the SCSI level to handle this case. The Linux fix was added in [1] to fix the exact same issue. [1] https://lore.kernel.org/all/pine.lnx.4.44l0.1409021108380.2308-100...@iolanthe.rowland.org/ Signed-off-by: Neil Arms

Re: [PATCH] armv8: mmu: don't switch to emergency tlb when adding a dynamic mapping

2025-01-10 Thread Neil Armstrong
On 08/01/2025 16:42, Marc Zyngier wrote: On Wed, 08 Jan 2025 15:19:07 +, Caleb Connolly wrote: Hi Marc, Thanks for your comments. On 08/01/2025 16:05, Marc Zyngier wrote: On Wed, 08 Jan 2025 14:22:24 +, Caleb Connolly wrote: This seems to cause crashes on a bunch of Qualcomm plat

Re: [PATCH v2] board: odroid-n2: Update docs for signing

2025-01-10 Thread Neil Armstrong
ddr4_2d.fw \ - --ddrfw7 fip/diag_lpddr4.fw \ --ddrfw8 fip/aml_ddr.fw \ --level v3 Reviewed-by: Neil Armstrong

Re: [PATCH v1] usb: dwc3: core: Fix timeout check

2025-01-10 Thread neil . armstrong
CTL); if (!(reg & DWC3_DCTL_CSFTRST)) break; Good catch ! Reviewed-by: Neil Armstrong

Re: [PATCH] usb: dwc3-of-simple: Remove Amlogic and Rockchip compatible

2025-01-07 Thread neil . armstrong
ompatible = "ti,dwc3" }, { } }; Reviewed-by: Neil Armstrong

Re: [PATCH 2/2] tools: amlimage: Add support for GXBB eMMC header

2025-01-06 Thread Neil Armstrong
of the variant header */ memcpy(tparams->hdr + HEADER_OFFSET, hdr, hdr->header_size); + /* Insert relocate code to move payload from 0x1200 to 0x1000 on GXBB */ + if (!strcmp("gxbb", variant->name)) + memcpy(tparams->hdr + 0x200, + gxbb_relocate, sizeof(gxbb_relocate)); + /* Pad up to payload size of the variant header */ return hdr->payload_size - params->file_size; } Awesome work ! Reviewed-by: Neil Armstrong

Re: [PATCH 1/2] tools: mkimage: Add Amlogic Boot Image type

2025-01-06 Thread Neil Armstrong
header size, datafile will be appended */ + tparams->header_size = PAYLOAD_OFFSET; + + tparams->hdr = calloc(1, tparams->header_size); + if (!tparams->hdr) { + fprintf(stderr, "%s: Can't alloc header: %s\n", + params->cmdname, strerror(errno)); + exit(EXIT_FAILURE); + } + + /* Start with a copy of the variant header */ + memcpy(tparams->hdr + HEADER_OFFSET, hdr, hdr->header_size); + + /* Pad up to payload size of the variant header */ + return hdr->payload_size - params->file_size; +} + +/* + * amlimage parameters + */ +U_BOOT_IMAGE_TYPE( + amlimage, + "Amlogic Boot Image", + 0, + NULL, + amlimage_check_params, + amlimage_verify_header, + amlimage_print_header, + amlimage_set_header, + amlimage_extract_subimage, + amlimage_check_image_type, + NULL, + amlimage_vrec_header +); Reviewed-by: Neil Armstrong Via which tree this should be merged ? Neil

Re: [PATCH 2/2] tools: amlimage: Add support for GXBB eMMC header

2025-01-06 Thread Neil Armstrong
On 05/01/2025 11:24, Ferass El Hafidi wrote: Hi Jonas and Simon, On Sat Jan 4, 2025 at 10:23 PM UTC, Jonas Karlman wrote: Hi Simon, On 2025-01-04 20:31, Simon Glass wrote: Hi Jonas, On Sat, 4 Jan 2025 at 10:59, Jonas Karlman wrote: GXBB BL1 only tries to read boot image from sector 0 on e

Re: [PATCH v1 1/5] dts: sa8775p-ride-r3-u-boot: add override dtsi

2025-01-03 Thread neil . armstrong
On 03/01/2025 06:14, Varadarajan Narayanan wrote: Add initial support for the QCS9100 (derived from SA8775p) Ride platforms. Define memory layout statically. Signed-off-by: Varadarajan Narayanan --- arch/arm/dts/sa8775p-ride-r3-u-boot.dtsi | 22 ++ arch/arm/dts/sa8775p-ri

Re: [PATCH v1 4/5] qcom_defconfig: enable SA8775P clock driver

2025-01-03 Thread neil . armstrong
CONFIG_CLK_QCOM_SM8150=y Reviewed-by: Neil Armstrong

Re: [PATCH v1 3/5] phy: qcom: Add SA8775 to QMP UFS PHY driver

2025-01-03 Thread neil . armstrong
y_ops qmp_ufs_ops = { }; static const struct udevice_id qmp_ufs_ids[] = { + { .compatible = "qcom,sa8775p-qmp-ufs-phy", .data = (ulong)&sa8775p_ufsphy_cfg, }, { .compatible = "qcom,sdm845-qmp-ufs-phy", .data = (ulong)&sdm845_ufsphy_cfg }, { .compatibl

Re: [PATCH v1 2/5] clk/qcom: add initial clock driver for qcs9100

2025-01-03 Thread neil . armstrong
id = UCLASS_NOP, + .of_match = gcc_sa8775p_of_match, + .bind = qcom_cc_bind, + .flags = DM_FLAG_PRE_RELOC | DM_FLAG_DEFAULT_PD_CTRL_OFF, +}; Reviewed-by: Neil Armstrong

Re: [PATCH v4 3/3] usb: dwc3: invalidate dcache on buffer used in interrupt handling

2024-12-30 Thread Neil Armstrong
On 28/12/2024 14:46, Ahmad Fatoum wrote: Hi, On 11.10.24 16:38, Neil Armstrong wrote: On Qualcomm systems, the setup buffer and even buffers are in a bad state at interrupt handling, so invalidate the dcache lines for the setup_buf and event buffer to make sure we read correct data written by

[PATCH v2 6/6] ufs: core: sync ufshci.h with Linux v6.12

2024-12-30 Thread Neil Armstrong
Sync ufshci.h with the version found in the Linux v6.12 version commit adc218676eef ("Linux 6.12"). It adds new defines, and moves defines to the same place as the Linux header. No functional changes intended. Acked-by: Neha Malcom Francis Tested-by: Love Kumar Signed-off-by: Neil

[PATCH v2 4/6] ufs: core: move ufshci defines in a separate header

2024-12-30 Thread Neil Armstrong
Splitting the header will help synchronizing the defines again with Linux. Acked-by: Neha Malcom Francis Tested-by: Love Kumar Signed-off-by: Neil Armstrong --- drivers/ufs/ufs.h| 329 +- drivers/ufs/ufshci.h | 334

[PATCH v2 1/6] ufs: core: include missing include/ufs.h

2024-12-30 Thread Neil Armstrong
Add missing ufs.h causing build warning on some symbols. Tested-by: Love Kumar Reviewed-by: Neha Malcom Francis Signed-off-by: Neil Armstrong --- drivers/ufs/ufs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/ufs/ufs.c b/drivers/ufs/ufs.c index

[PATCH v2 5/6] ufs: core: sync unipro.h with Linux v6.12

2024-12-30 Thread Neil Armstrong
Sync unipro.h with the version found in the Linux v6.12 version commit adc218676eef ("Linux 6.12"). It adds new defines, and moves defines to the same place as the Linux header. No functional changes intended. Acked-by: Neha Malcom Francis Tested-by: Love Kumar Signed-off-by: Neil

[PATCH v2 3/6] ufs: core: cosmetic fixups

2024-12-30 Thread Neil Armstrong
Fixes some alignment warnings, missing comments on write barrier, missing parenthesis around macro parameters and a comment typo. No functional changes intended. Reviewed-by: Neha Malcom Francis Tested-by: Love Kumar Signed-off-by: Neil Armstrong --- drivers/ufs/ufs.c| 16

[PATCH v2 2/6] ufs: core: mark unexported functions as static

2024-12-30 Thread Neil Armstrong
Mark the remaining local functions as static to avoid build warnings. Also drop the EXPORT_SYMBOL of ufshcd_map_desc_id_to_length. Tested-by: Love Kumar Signed-off-by: Neil Armstrong --- drivers/ufs/ufs.c | 27 +-- 1 file changed, 13 insertions(+), 14 deletions

[PATCH v2 0/6] ufs: core: initial cleanup and defines sync with Linux v6.12

2024-12-30 Thread Neil Armstrong
This serie fixes the build and checkpatch warnings, and does a split of the ufs.h into a separate ufshci.h which helps syndhronizing the defines from Linux v6.12. No functional changes intended, tests on hardware are welcome. Signed-off-by: Neil Armstrong --- Changes in v2: - Colect tested

Re: [PATCH] board: odroid-n2: Add script and update docs for signing

2024-12-30 Thread Neil Armstrong
Hi, On 23/12/2024 23:23, Baltazár Radics wrote: The previous instructions resulted in a bootloader that wouldn't fit in an mbr gap. I have updated the docs based on upstream's build process. Note that the script should be compatible with other g12 based odroid boards, but I'm unable to test tho

Re: [PATCH 2/6] ufs: core: mark unexported functions as static

2024-12-06 Thread Neil Armstrong
On 06/12/2024 08:55, Neha Malcom Francis wrote: On 20/11/24 14:52, Neil Armstrong wrote: Mark the remaining local functions as static to avoid build warnings. Signed-off-by: Neil Armstrong ---   drivers/ufs/ufs.c | 26 +-   1 file changed, 13 insertions(+), 13 deletions

Re: [PATCH 0/6] ufs: core: initial cleanup and defines sync with Linux v6.12

2024-12-04 Thread Neil Armstrong
Hi, On 20/11/2024 10:22, Neil Armstrong wrote: This serie fixes the build and checkpatch warnings, and does a split of the ufs.h into a separate ufshci.h which helps syndhronizing the defines from Linux v6.12. No functional changes intended, tests on hardware are welcome. Signed-off-by: Neil

Re: [PATCH 0/6] ufs: core: initial cleanup and defines sync with Linux v6.12

2024-11-26 Thread Neil Armstrong
On 26/11/2024 07:43, Love Kumar wrote: Hi, On 20/11/24 2:52 pm, Neil Armstrong wrote: This serie fixes the build and checkpatch warnings, and does a split of the ufs.h into a separate ufshci.h which helps syndhronizing the defines from Linux v6.12. No functional changes intended, tests on

[PATCH 1/2] rng: msm: add support for newer Qualcomm hwrandom IPs

2024-11-25 Thread Neil Armstrong
NIST SP800 90B compliant entropic source. Signed-off-by: Neil Armstrong --- drivers/rng/msm_rng.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/rng/msm_rng.c b/drivers/rng/msm_rng.c index 658c153d3edb2590b0b470e3067da9

[PATCH 2/2] configs: qcom_defconfig: enable RNG driver and command

2024-11-25 Thread Neil Armstrong
Enable the MSM RNG driver by default with the associated command, this will fill KASLR seed when booting Linux. Signed-off-by: Neil Armstrong --- configs/qcom_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/qcom_defconfig b/configs/qcom_defconfig index

[PATCH 0/2] rng: msm: support newer SoCs

2024-11-25 Thread Neil Armstrong
Add support for RNG on newer SoCs which shares the RNG hardware between different Execution Environments (EE). Also enable it by default to fill KASL seed when running Linux. Signed-off-by: Neil Armstrong --- Neil Armstrong (2): rng: msm: add support for newer Qualcomm hwrandom IPs

[PATCH 1/2] pci: pcie_dw_common: introduce pcie_dw_find_capability()

2024-11-25 Thread Neil Armstrong
Add PCIe config space capability search function specific for the host controller, which are bridges *to* PCI devices but are not PCI devices themselves. Signed-off-by: Neil Armstrong --- drivers/pci/pcie_dw_common.c | 42 ++ drivers/pci/pcie_dw_common.h

[PATCH 2/2] pci: Add support for Qualcomm PCIe controller

2024-11-25 Thread Neil Armstrong
0 - sm8450 - sm8550 - sm8650 - x1e80100 But it has only been tested on: - sc7280 - sm8550 - sm8650 - x1e80100 It supports setting the IOMMU SID table for supported platforms. Signed-off-by: Neil Armstrong --- drivers/pci/Kconfig| 8 + drivers/pci/Makefile | 1 + drivers/pci/pcie

[PATCH 0/2] pci: Add support for Qualcomm PCIe controller

2024-11-25 Thread Neil Armstrong
Add support for the DWC PCIe controllers found on the Qualcomm SoCs, it requires introducing pcie_dw_find_capability() to properly configure the Host controller capabilities. Signed-off-by: Neil Armstrong --- Neil Armstrong (2): pci: pcie_dw_common: introduce pcie_dw_find_capability

[PATCH] phy: qcom: add QMP PCIe PHY driver

2024-11-25 Thread Neil Armstrong
Add support for the PCIe QMP PHY on the SM8550, SM8650 and x1e80100 SoCs. The driver is based on the Linux phy/qualcomm/phy-qcom-qmp-pcie.c driver and adapted to U-Boot. Signed-off-by: Neil Armstrong --- drivers/phy/qcom/Kconfig |6 + drivers/phy/qcom/Makefile

[PATCH 2/4] clk: qcom: sm8550: add support for PCIe clocks

2024-11-25 Thread Neil Armstrong
Add the PCIe clocks for the SM8550 GCC. Signed-off-by: Neil Armstrong --- drivers/clk/qcom/clock-sm8550.c | 36 1 file changed, 36 insertions(+) diff --git a/drivers/clk/qcom/clock-sm8550.c b/drivers/clk/qcom/clock-sm8550.c index

[PATCH 0/4] clk: qcom: add PCIe clocks

2024-11-25 Thread Neil Armstrong
Add the PCIe clocks for the SM8550, SM8650 and X1E80100 platforms to enable support for PCIe feature. Depends on: - https://lore.kernel.org/all/20241118-topic-x1e80100-clk-v1-0-8841e87ad...@linaro.org/ Signed-off-by: Neil Armstrong --- Neil Armstrong (4): clk: qcom: add

[PATCH 4/4] clk: qcom: x1e80100: add support for PCIe clocks

2024-11-25 Thread Neil Armstrong
Add the PCIe clocks for the x1e80100 GCC. Signed-off-by: Neil Armstrong --- drivers/clk/qcom/clock-x1e80100.c | 54 +++ 1 file changed, 54 insertions(+) diff --git a/drivers/clk/qcom/clock-x1e80100.c b/drivers/clk/qcom/clock-x1e80100.c index

[PATCH 3/4] clk: qcom: sm8650: add support for PCIe clocks

2024-11-25 Thread Neil Armstrong
Add the PCIe clocks for the SM8650 GCC. Signed-off-by: Neil Armstrong --- drivers/clk/qcom/clock-sm8650.c | 36 1 file changed, 36 insertions(+) diff --git a/drivers/clk/qcom/clock-sm8650.c b/drivers/clk/qcom/clock-sm8650.c index

[PATCH 1/4] clk: qcom: add clk_phy_mux_enable() for PCIe PIPE clock

2024-11-25 Thread Neil Armstrong
The PCIe PIPE clock requires a special setup function to mux & enable the clock from the PCIe PHY before the PHY has enabled the clock. Import the clk_phy_mux_enable() from the Linux driver to use the same implementation regarding the PIPE clock. Signed-off-by: Neil Armstrong --- drivers

[PATCH 3/3] pinctrl: qcom: x1e80100: add pcie[3456ab]_clk functions

2024-11-25 Thread Neil Armstrong
Add the missing PCIe clk_req function for the x1e80100 TLMM. Signed-off-by: Neil Armstrong --- drivers/pinctrl/qcom/pinctrl-x1e80100.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/pinctrl/qcom/pinctrl-x1e80100.c b/drivers/pinctrl/qcom/pinctrl-x1e80100.c index

[PATCH 2/3] pinctrl: qcom: sm8650: add pcie[01]_clk_req_n function

2024-11-25 Thread Neil Armstrong
Add the missing PCIe clk_req functions for the SM8650 TLMM. Signed-off-by: Neil Armstrong --- drivers/pinctrl/qcom/pinctrl-sm8650.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/pinctrl/qcom/pinctrl-sm8650.c b/drivers/pinctrl/qcom/pinctrl-sm8650.c index

[PATCH 0/3] pinctrl: qcom: add clk_req functions

2024-11-25 Thread Neil Armstrong
Add the missing PCIe clk_req functions for the SM8550, SM8650 and X1E80100 TLMM. Depends on: - https://lore.kernel.org/all/20241115-topic-x1e80100-pinctrl-v1-0-35f984226...@linaro.org/ Signed-off-by: Neil Armstrong --- Neil Armstrong (3): pinctrl: qcom: sm8550: add pcie1_clk_req_n

[PATCH 1/3] pinctrl: qcom: sm8550: add pcie1_clk_req_n function

2024-11-25 Thread Neil Armstrong
Add the missing PCIe clk_req function for the SM8550 TLMM. Signed-off-by: Neil Armstrong --- drivers/pinctrl/qcom/pinctrl-sm8550.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pinctrl/qcom/pinctrl-sm8550.c b/drivers/pinctrl/qcom/pinctrl-sm8550.c index

[PATCH] regulator: qcom-rpmh-regulator: add support for pmc8380 regulators

2024-11-25 Thread Neil Armstrong
Add the PMC8380 regulator data found on the Snapdragon X Elite platforms. The tables are imported from the Linux driver. Signed-off-by: Neil Armstrong --- drivers/power/regulator/qcom-rpmh-regulator.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/power

Re: [PATCH 2/4] fastboot: blk: add block device flashing configuration

2024-11-21 Thread neil . armstrong
Hi Dmitrii, So you plan to send a new version of this patchset ? It would be very useful to enable fastboot onr UFS/SCSI based devices. Thanks, Neil On 06/03/2024 19:59, Dmitrii Merkurev wrote: Signed-off-by: Dmitrii Merkurev Cc: Patrick Delaunay Cc: Simon Glass Cc: Mattijs Korpershoek Cc

[PATCH 1/6] ufs: core: include missing include/ufs.h

2024-11-20 Thread Neil Armstrong
Add missing ufs.h causing build warning on some symbols. Signed-off-by: Neil Armstrong --- drivers/ufs/ufs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/ufs/ufs.c b/drivers/ufs/ufs.c index f7d8c40c448c6865b7c04e03bab6f3f93a44a591..31c2959aeb12931b2bbdf26b3c676ae1a7b0fd1a

[PATCH 6/6] ufs: core: sync ufshci.h with Linux v6.12

2024-11-20 Thread Neil Armstrong
Sync ufshci.h with the version found in the Linux v6.12 version commit adc218676eef ("Linux 6.12"). It adds new defines, and moves defines to the same place as the Linux header. No functional changes intended. Signed-off-by: Neil Armstrong --- drivers/ufs/ufsh

[PATCH 4/6] ufs: core: move ufshci defines in a separate header

2024-11-20 Thread Neil Armstrong
Splitting the header will help synchronizing the defines again with Linux. Signed-off-by: Neil Armstrong --- drivers/ufs/ufs.h| 329 +- drivers/ufs/ufshci.h | 334 +++ 2 files changed, 335

[PATCH 5/6] ufs: core: sync unipro.h with Linux v6.12

2024-11-20 Thread Neil Armstrong
Sync unipro.h with the version found in the Linux v6.12 version commit adc218676eef ("Linux 6.12"). It adds new defines, and moves defines to the same place as the Linux header. No functional changes intended. Signed-off-by: Neil Armstrong --- drivers/ufs/unip

[PATCH 0/6] ufs: core: initial cleanup and defines sync with Linux v6.12

2024-11-20 Thread Neil Armstrong
This serie fixes the build and checkpatch warnings, and does a split of the ufs.h into a separate ufshci.h which helps syndhronizing the defines from Linux v6.12. No functional changes intended, tests on hardware are welcome. Signed-off-by: Neil Armstrong --- Neil Armstrong (6): ufs: core

[PATCH 3/6] ufs: core: cosmetic fixups

2024-11-20 Thread Neil Armstrong
Fixes some alignment warnings, missing comments on write barrier, missing parenthesis around macro parameters and a comment typo. No functional changes intended. Signed-off-by: Neil Armstrong --- drivers/ufs/ufs.c| 16 ++-- drivers/ufs/ufs.h| 6 +++--- drivers/ufs/unipro.h

[PATCH 2/6] ufs: core: mark unexported functions as static

2024-11-20 Thread Neil Armstrong
Mark the remaining local functions as static to avoid build warnings. Signed-off-by: Neil Armstrong --- drivers/ufs/ufs.c | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/ufs/ufs.c b/drivers/ufs/ufs.c index

Re: [PATCH v2 0/5] Add support of Android Boot Image version 2 and non-AB image

2024-11-19 Thread Neil Armstrong
Hi, On 14/11/2024 22:29, Guillaume La Roque wrote: Actually bootmethod android only support android boot image version 4 and with AB image, some old platform wtill use android boot image version 2 with AB or without AB slot. This patchset add support of both version 2 and non-AB slot images. It

[PATCH 0/2] clock: add support for X1E80100 Global Clock Controller

2024-11-18 Thread Neil Armstrong
Add support for GCC in X1E80100, and enable it in qcom_defconfig Signed-off-by: Neil Armstrong --- Neil Armstrong (2): clk: qcom: Add X1E80100 clock driver qcom_defconfig: enable X1E80100 clock driver configs/qcom_defconfig| 1 + drivers/clk/qcom/Kconfig

Re: [PATCH 0/2] clock: add support for X1E80100 Global Clock Controller

2024-11-18 Thread Neil Armstrong
On 18/11/2024 15:59, Caleb Connolly wrote: Hi Neil, On 11/18/24 15:41, Neil Armstrong wrote: Add support for GCC in X1E80100, and enable it in qcom_defconfig Thanks for sending this! In my testing so far on the Yoga Slim 7x UART doesn't seem to work correctly unless I skip the UART

[PATCH 2/2] qcom_defconfig: enable X1E80100 clock driver

2024-11-18 Thread Neil Armstrong
Enable the X1E80100 clock driver in the Qualcomm defconfig. Signed-off-by: Neil Armstrong --- configs/qcom_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/qcom_defconfig b/configs/qcom_defconfig index ea0dd3e58018c8bf08e4a455a47e29cf1bbd3c60

[PATCH 1/2] clk: qcom: Add X1E80100 clock driver

2024-11-18 Thread Neil Armstrong
Add Clock driver for the GCC block found in the X1E80100 SoC. Signed-off-by: Neil Armstrong --- drivers/clk/qcom/Kconfig | 8 + drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/clock-x1e80100.c | 348 ++ 3 files changed, 357 insertions

[PATCH 1/2] pinctrl: qcom: Add X1E80100 pinctrl driver

2024-11-15 Thread Neil Armstrong
Add pinctrl driver for the TLMM block found in the X1E80100 SoC. Signed-off-by: Neil Armstrong --- drivers/pinctrl/qcom/Kconfig| 7 +++ drivers/pinctrl/qcom/Makefile | 1 + drivers/pinctrl/qcom/pinctrl-x1e80100.c | 100 3 files changed

[PATCH 2/2] qcom_defconfig: enable X1E80100 pinctrl driver

2024-11-15 Thread Neil Armstrong
Enable the X1E80100 pinctrl driver in the Qualcomm defconfig. Signed-off-by: Neil Armstrong --- configs/qcom_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/qcom_defconfig b/configs/qcom_defconfig index ea0dd3e58018c8bf08e4a455a47e29cf1bbd3c60

[PATCH 0/2] pinctrl: add support for X1E80100 TLMM

2024-11-15 Thread Neil Armstrong
Add support for TLMM in X1E80100, and enable it in qcom_defconfig Signed-off-by: Neil Armstrong --- Neil Armstrong (2): pinctrl: qcom: Add X1E80100 pinctrl driver qcom_defconfig: enable X1E80100 pinctrl driver configs/qcom_defconfig | 1 + drivers/pinctrl/qcom

Re: [PATCH v2 4/5] configs: khadas-vim3_android{_ab}: move on bootmeth android

2024-11-15 Thread Neil Armstrong
;setenv dtb_index 1;" \ - "elif test $board_name = vim3; then " \ - "echo \" Reading DTB for vim3...\"; " \ - "setenv dtb_index 3;" \ "else " \ "echo Error: Android boot is not supported for $board_name; " \ "exit; " \ Acked-by: Neil Armstrong

Re: [PATCH v2 3/5] configs: khadas-vim3l_android{_ab}: move on bootmeth android

2024-11-15 Thread Neil Armstrong
.\"; " \ "setenv dtb_index 1;" \ - "elif test $board_name = vim3l; then " \ - "echo \" Reading DTB for vim3l...\"; " \ - "setenv dtb_index 2;" \ "elif test $board_name = vim3; then " \ "echo \" Reading DTB for vim3...\"; " \ "setenv dtb_index 3;" \ Acked-by: Neil Armstrong

Re: [PATCH] iommu: qcom-smmu: allow SID 0

2024-11-14 Thread Neil Armstrong
;Error: %s: iommus property not found or wrong number of cells\n", __func__); return -EINVAL; } Reviewed-by: Neil Armstrong

Re: [PATCH] mach-snapdragon: configure logging

2024-11-14 Thread Neil Armstrong
pr_fmt(fmt) "QCOM: " fmt + #include #include #include #include @@ -28,8 +30,9 @@ #include #include #include #include +#include #include "qcom-priv.h" DECLARE_GLOBAL_DATA_PTR; Reviewed-by: Neil Armstrong

Re: [PATCH] iommu: qcom-smmu: handle running in el2

2024-11-14 Thread Neil Armstrong
/* Read SMMU config */ val = gr0_readl(priv, ARM_SMMU_GR0_ID0); priv->num_smr = FIELD_GET(ARM_SMMU_ID0_NUMSMRG, val); Reviewed-by: Neil Armstrong

[GIT PULL] Please pull u-boot-amlogic-next-20241113

2024-11-13 Thread Neil Armstrong
Hi Tom, Here's a small fix for khadas-vim3{l} android config, and a drop of obsolete dtsi and include bindings in favor or the upstream ones. Thanks, Neil The following changes since commit 56accc56b9aab87ef4809ccc588e1257969cd271: bios_emulator: fix first argument of pci_{read,write}_config

Re: [PATCH v1 0/4] Remove legacy Amlogic dtsi and bindings

2024-11-13 Thread neil . armstrong
From: Neil Armstrong Hi, On Tue, 12 Nov 2024 15:58:32 +0300, Alexey Romanov wrote: > We should remove bindings and dtsi from include/ folder for A1 > and AXG Amlogic devices. We have exactly the same, or with minor > differences in dts/upstream folder. > > I tested this cha

Re: [PATCH v2] cmd: add a fetch utility

2024-11-13 Thread Neil Armstrong
On 13/11/2024 15:40, Heinrich Schuchardt wrote: Am 13. November 2024 14:32:57 MEZ schrieb Neil Armstrong : On 13/11/2024 05:22, Caleb Connolly wrote: Add a small utility for displaying some information about U-Boot and the hardware it's running on in a similar fashion to the popular neo

Re: [PATCH v2] cmd: add a fetch utility

2024-11-13 Thread Neil Armstrong
INERS @@ -1724,8 +1724,13 @@ M: Heiko Schocher S:Maintained T:git https://source.denx.de/u-boot/custodians/u-boot-ubi.git F:drivers/mtd/ubi/ +UFETCH +M: Caleb Connolly +S: Maintained +F: cmd/ufetch.c + UFS M: Neil Armstrong M:Bhupesh Sharma

Re: (subset) [PATCH 0/6] Add support of Android Boot Image version 2 and non-AB image

2024-11-08 Thread Neil Armstrong
Hi, On Thu, 17 Oct 2024 18:10:24 +0200, Guillaume La Roque wrote: > Actually bootmethod android only support android boot image version 4 > and with AB image, some old platform wtill use android boot image > version 2 with AB or without AB slot. > > This patchset add support of both version 2 and

Re: [PATCH 3/6] configs: khadas-vim3{l}: fix userdata size

2024-11-08 Thread Neil Armstrong
On 08/11/2024 11:05, Mattijs Korpershoek wrote: Hi Neil, On jeu., oct. 17, 2024 at 18:10, Guillaume La Roque wrote: After increase boot and recovery partition userdata was not resize. so on VIM3 16GB and VIM3L `fastboot oem format` or `gpt write mmc 2 $partitions` fail because end of last pa

Re: [PATCH] gpio: qcom_pmic: add again the quirk to skip GPIO configuration on PM8550

2024-10-30 Thread Neil Armstrong
Hi Caleb, On 16/10/2024 11:16, Neil Armstrong wrote: The qcom_pmic code is broken for new PMICs and should be fixed, without the QUIRK the code is broken and the GPIOs don't work anymore on SM8550 and SM8650 platforms. Partially revert the revert and only add the quirk on the PM8550

Re: [PATCH] mmc: msm_sdhci: enable vqmmc at probe if available

2024-10-24 Thread Neil Armstrong
On 24/10/2024 15:11, Caleb Connolly wrote: Hi Neil, On 16/10/2024 11:17, Neil Armstrong wrote: On earlier platforms, the vqmmc regulator was enabled by the previous bootloader, but on the newest (SM8650) it's not and we need vqmmc to be enabled in order to have the card to respond.

Re: [PATCH] lmb: notify when adjacent regions are added

2024-10-18 Thread neil . armstrong
gion(lmb_rgn_lst, base, size); - if (ret) + if (ret < 0) return ret; if (lmb_should_notify(LMB_NONE)) return lmb_map_update_notify(base, size, MAP_OP_ADD); Tested-by: Neil Armstrong Thanks ! Neil

[PATCH v2] usb: dwc3-generic: use DR_MODE_OTG when dr_mode isn't specified

2024-10-18 Thread Neil Armstrong
dr_mode device tree helper") https://github.com/torvalds/linux/commit/a45c82b84c844cd85b2ed1aa32596f1bffa32716 Reviewed-by: Caleb Connolly Signed-off-by: Neil Armstrong --- Changes in v2: - add ref to linux behaviour - Link to v1: https://lore.kernel.org/r/20241016-topic-usb-dwc3-d

Re: [PATCH] usb: dwc3-generic: use DR_MODE_OTG when dr_mode isn't specified

2024-10-17 Thread Neil Armstrong
On 17/10/2024 15:52, Marek Vasut wrote: On 10/17/24 1:07 PM, Caleb Connolly wrote: On 16/10/2024 10:26, Neil Armstrong via groups.io wrote: The USB DRD bindingsa at [1] are clear, if not specified the dr_mode property defaults to otg, and this is how Linux behaves. I guess this is (kind of

[PATCH v2 3/3] image: android: handle ramdisk default address

2024-10-17 Thread Neil Armstrong
eader version 3 and later, the ramdisk can't be used in-place to use ramdisk_addr_r in this case. Signed-off-by: Neil Armstrong --- boot/image-android.c | 38 ++ 1 file changed, 30 insertions(+), 8 deletions(-) diff --git a/boot/image-android.c b/boot/image

[PATCH v2 2/3] image: android: do not boot XIP when kernel is compressed

2024-10-17 Thread Neil Armstrong
. Signed-off-by: Neil Armstrong --- boot/image-android.c | 20 +++- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/boot/image-android.c b/boot/image-android.c index bb5f4f84487d40e0cf24dc3b57042993967e66d5..3adcc69a392f74ae64f3fbcf1b85204f60ac9aff 100644 --- a/boot

[PATCH v2 1/3] image: android: use ulong for kernel address

2024-10-17 Thread Neil Armstrong
When booting with platforms having > 4GiB of memory, the kernel physical address can be more than 32bits. Use ulong like all the other addresses, and fix the print to show the > 32bits address numbers. Signed-off-by: Neil Armstrong --- boot/image-android.c| 4 ++-- include/android_i

[PATCH v2 0/3] image: android: misc fixes when using on Qualcomm platforms

2024-10-17 Thread Neil Armstrong
e kernel. Finally, the ramdisk also uses a default load address, and it should be taken in account like for the kernel address. Signed-off-by: Neil Armstrong --- Changes in v2: - Fix patch 2 prefix - Fix patch 3 commit msg - Fix patch 3 behavior when using boot image header version > 2, use th

Re: [PATCH v4 4/4] qcom_defconfig: enable capsule update support

2024-10-17 Thread neil . armstrong
On 17/10/2024 15:19, Caleb Connolly wrote: On 14/10/2024 08:53, Neil Armstrong wrote: On 12/10/2024 15:57, Caleb Connolly wrote: Enable all the necessary options for capsule updates to work, as well as a few additional EFI features. Capsule updates themselves are only enabled for the RB3

Re: [PATCH 0/3] image: android: misc fixes when using on Qualcomm platforms

2024-10-17 Thread neil . armstrong
On 17/10/2024 14:14, Mattijs Korpershoek wrote: On jeu., oct. 17, 2024 at 14:07, Mattijs Korpershoek wrote: Hi Neil, On jeu., oct. 17, 2024 at 14:01, Neil Armstrong wrote: On 17/10/2024 13:58, Mattijs Korpershoek wrote: Hi Neil, On jeu., oct. 17, 2024 at 13:33, Mattijs Korpershoek

Re: [PATCH 0/3] image: android: misc fixes when using on Qualcomm platforms

2024-10-17 Thread Neil Armstrong
On 17/10/2024 13:58, Mattijs Korpershoek wrote: Hi Neil, On jeu., oct. 17, 2024 at 13:33, Mattijs Korpershoek wrote: Hi Neil, Thank you for the series. On mer., oct. 16, 2024 at 17:46, Neil Armstrong wrote: When trying to use the Android boot image with header version 2 on recent

[PATCH] qcom_defconfig: enable PINCONF

2024-10-17 Thread Neil Armstrong
The SM8550 and SM8650 SoCs requires PINCONF to properly setup SDC pins in order to function correctly. Signed-off-by: Neil Armstrong --- configs/qcom_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/qcom_defconfig b/configs/qcom_defconfig index

[PATCH 3/3] image: android: handle ramdisk default address

2024-10-16 Thread Neil Armstrong
eader version 3 and later, the ramdisk can't be used in-place to use ramdisk_addr_r in this case. Signed-off-by: Neil Armstrong --- boot/image-android.c | 36 +--- 1 file changed, 29 insertions(+), 7 deletions(-) diff --git a/boot/image-android.c b/boot/image

[PATCH 2/3] boot: image-android: do not boot XIP when kernel is compressed

2024-10-16 Thread Neil Armstrong
. Signed-off-by: Neil Armstrong --- boot/image-android.c | 20 +++- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/boot/image-android.c b/boot/image-android.c index bb5f4f84487..3adcc69a392 100644 --- a/boot/image-android.c +++ b/boot/image-android.c @@ -208,7 +208,8

[PATCH 1/3] image: android: use ulong for kernel address

2024-10-16 Thread Neil Armstrong
When booting with platforms having > 4GiB of memory, the kernel physical address can be more than 32bits. Use ulong like all the other addresses, and fix the print to show the > 32bits address numbers. Signed-off-by: Neil Armstrong --- boot/image-android.c| 4 ++-- include/android_i

[PATCH 0/3] image: android: misc fixes when using on Qualcomm platforms

2024-10-16 Thread Neil Armstrong
e kernel. Finally, the ramdisk also uses a default load address, and it should be taken in account like for the kernel address. Signed-off-by: Neil Armstrong --- Neil Armstrong (3): image: android: use ulong for kernel address boot: image-android: do not boot XIP when kernel is co

Re: [PATCH] usb: dwc3-generic: use DR_MODE_OTG when dr_mode isn't specified

2024-10-16 Thread Neil Armstrong
Hi, On 16/10/2024 13:22, Marek Vasut wrote: On 10/16/24 10:26 AM, Neil Armstrong wrote: The USB DRD bindingsa at [1] are clear, if not specified the dr_mode property defaults to otg, and this is how Linux behaves. A cleanup is ongoing on the Linux Device Trees to remove dr_mode when set to

[PATCH] ARM: mach-snapdragon: configure a larger default SYS_MALLOC_LEN for fastboot

2024-10-16 Thread Neil Armstrong
Fastboot is very hungry when it flashes larges chunks, and 8MiB is way too small, allocate a much bigger size like other platforms using Fastboot. Signed-off-by: Neil Armstrong --- arch/arm/mach-snapdragon/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-snapdragon

[PATCH] mmc: msm_sdhci: enable vqmmc at probe if available

2024-10-16 Thread Neil Armstrong
On earlier platforms, the vqmmc regulator was enabled by the previous bootloader, but on the newest (SM8650) it's not and we need vqmmc to be enabled in order to have the card to respond. Signed-off-by: Neil Armstrong --- drivers/mmc/msm_sdhci.c | 12 1 file changed, 12 inser

[PATCH] gpio: qcom_pmic: add again the quirk to skip GPIO configuration on PM8550

2024-10-16 Thread Neil Armstrong
igned-off-by: Neil Armstrong --- drivers/gpio/qcom_pmic_gpio.c | 21 +++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/drivers/gpio/qcom_pmic_gpio.c b/drivers/gpio/qcom_pmic_gpio.c index f2ef4e5ce14..cd9f3926ac4 100644 --- a/drivers/gpio/qcom_pmic_gpio.c +++ b/dr

[PATCH] usb: dwc3-generic: use DR_MODE_OTG when dr_mode isn't specified

2024-10-16 Thread Neil Armstrong
pecified in the glue or dwc3 node. [1] https://www.kernel.org/doc/Documentation/devicetree/bindings/usb/usb-drd.yaml Signed-off-by: Neil Armstrong --- drivers/usb/dwc3/dwc3-generic.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/usb/dwc3/dwc3-generic.c b/d

[PATCH] phy: qcom: ufs: drop unused ufsphy_v2_regs_layout

2024-10-16 Thread Neil Armstrong
The ufsphy_v2_regs_layout is not used, drop it and fix: phy-qcom-qmp-ufs.c:87:27: warning: ‘ufsphy_v2_regs_layout’ defined but not used [-Wunused-const-variable=] Signed-off-by: Neil Armstrong --- drivers/phy/qcom/phy-qcom-qmp-ufs.c | 6 -- 1 file changed, 6 deletions(-) diff --git a

[PATCH] dt-bindings: remove phy/phy-qcom-qmp.h in favor of dts/upstream

2024-10-16 Thread Neil Armstrong
The upstream version has new defines use to build DT, drop it in favor of the dts/upstream more recent one. Signed-off-by: Neil Armstrong --- include/dt-bindings/phy/phy-qcom-qmp.h | 20 1 file changed, 20 deletions(-) diff --git a/include/dt-bindings/phy/phy-qcom-qmp.h b

Re: [PATCH] phy: qcom: ufs: add sc7280

2024-10-16 Thread Neil Armstrong
quot;qcom,sc7280-qmp-ufs-phy", .data = (ulong)&sc7280_ufsphy_cfg, }, { } }; U_BOOT_DRIVER(qcom_qmp_ufs) = { Reviewed-by: Neil Armstrong

Re: device that supports both usb host & usb device modes?

2024-10-14 Thread neil . armstrong
Hi, On 10/10/2024 09:31, Marek Behún wrote: Hi all, I am searching for HW that supports both USB host & USB device/gadget mode, on the same USB port, capable of switching between these modes at runtime. Preferably supported in upstream kernel. The following commercial dev boards support dual

Re: [PATCH] scsi: fix disk capacity too small by one sector

2024-10-14 Thread Neil Armstrong
= 1; *blksz = ((uint64_t)pccb->pdata[8] << 56) | ((uint64_t)pccb->pdata[9] << 48) | --- base-commit: 29e5dbc55c64c6450f066c55a5bc48bd1717aa1b change-id: 20241014-fix-scsi-disksize-d73a017cadf4 Best regards, Reviewed-by: Neil Armstrong Tested-by: Neil Armstr

[GIT PULL] Please pull u-boot-ufs-next-20241014

2024-10-14 Thread Neil Armstrong
start' ufs: Add Support for Qualcomm UFS HC driver Marek Vasut (2): ufs: Add UFSHCD_QUIRK_BROKEN_64BIT_ADDRESS ufs: Add UFSHCD_QUIRK_HIBERN_FASTAUTO Neil Armstrong (9): ufs: allocate descriptors with size aligned with DMA_MINALIGN ufs: fix dcache flush and inva

  1   2   3   4   5   6   7   8   9   10   >