[PATCH 2/5] arm: mach-snapdragon: gpio: introduce msm_special_pin_data

2024-05-28 Thread Neil Armstrong
-off-by: Neil Armstrong --- arch/arm/mach-snapdragon/include/mach/gpio.h | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-snapdragon/include/mach/gpio.h b/arch/arm/mach-snapdragon/include/mach/gpio.h index 53c6ae06490..cc8f405e20b 100644 --- a

[PATCH 3/5] pinctrl: qcom: add support setting pin configuration for special pins

2024-05-28 Thread Neil Armstrong
Use the previously introduced msm_special_pin_data to setup the special pins configuration if the SoC driver have them specified. Signed-off-by: Neil Armstrong --- drivers/pinctrl/qcom/pinctrl-qcom.c | 37 +++-- 1 file changed, 35 insertions(+), 2 deletions

[PATCH 4/5] pinctrl: qcom: sm8550: add special pins pins configuration data

2024-05-28 Thread Neil Armstrong
Add the special pins configuration data to allow setup the bias of the UFS and SDCard pins on the SM8550 SoC. Signed-off-by: Neil Armstrong --- drivers/pinctrl/qcom/pinctrl-sm8550.c | 42 --- 1 file changed, 34 insertions(+), 8 deletions(-) diff --git a/drivers

[PATCH 5/5] pinctrl: qcom: sm8650: add special pins pins configuration data

2024-05-28 Thread Neil Armstrong
Add the special pins configuration data to allow setup the bias of the UFS and SDCard pins on the SM8650 SoC. Signed-off-by: Neil Armstrong --- drivers/pinctrl/qcom/pinctrl-sm8650.c | 42 --- 1 file changed, 34 insertions(+), 8 deletions(-) diff --git a/drivers

[PATCH] usb: dwc3: gadget: fix crash in dwc3_gadget_giveback()

2024-05-28 Thread Neil Armstrong
hat usb_gadget_map_request() hasn't been called yet. Fixes: fd15b58c1a9 ("dwc3: flush cache only if there is a buffer attached to a request") Signed-off-by: Neil Armstrong --- drivers/usb/dwc3/gadget.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/u

[PATCH] ufs: core: remove link_startup_again logic

2024-05-28 Thread Neil Armstrong
link startup for Qualcomm Controllers v5, let's just remove the logic. Signed-off-by: Neil Armstrong --- drivers/ufs/ufs.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/ufs/ufs.c b/drivers/ufs/ufs.c index be64bf971f1..28c244b70e5 100644 --- a/drivers/ufs/ufs.c +++ b/drivers

Re: [PATCH 1/5] pinctrl: qcom: add support for bias-pull-down

2024-05-29 Thread Neil Armstrong
On 29/05/2024 07:33, Sumit Garg wrote: Hi Neil, On Tue, 28 May 2024 at 14:02, Neil Armstrong wrote: Add support for bias-pull-down as an alternate of bias-pull-up. nit: s/alternate/alternative/ Signed-off-by: Neil Armstrong --- drivers/pinctrl/qcom/pinctrl-qcom.c | 1 + 1 file

[PATCH v2 0/5] arm: meson: Switch to using upstream DT for GXL, GXM, AXG, G12A, G12B & SM1 SoCs

2024-03-29 Thread Neil Armstrong
/arm/dts directory for these boards. Keep A1 DTs locally since the architecture is still young. CI built & tested at: https://gitlab.com/amlogic-foss/amlogic-u-boot-autotest/-/pipelines/1233461384 Signed-off-by: Neil Armstrong --- Changes in v2: - add change to remove prefix in fdt

[PATCH v2 1/5] configs: meson64: remove amlogic prefix in fdtfile when CONFIG_OF_UPSTREAM is selected

2024-03-29 Thread Neil Armstrong
Remove amlogic/ path prefix in CFG_EXTRA_ENV_SETTINGS fdtfile when using CONFIG_OF_UPSTREAM, otherwise amlogic/ is added twice. Signed-off-by: Neil Armstrong --- include/configs/meson64.h | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/configs/meson64.h b

[PATCH v2 2/5] dts: meson: Switch GXL, GXM & AXG to using upstream DT

2024-03-29 Thread Neil Armstrong
: Neil Armstrong --- arch/arm/mach-meson/Kconfig| 3 +++ configs/beelink-gt1-ultimate_defconfig | 2 +- configs/jethub_j100_defconfig | 2 +- configs/jethub_j80_defconfig | 2 +- configs/khadas-vim2_defconfig | 2 +- configs/khadas-vim_defconfig | 2

[PATCH v2 4/5] dts: meson-g12a: Switch to using upstream DT

2024-03-29 Thread Neil Armstrong
: Neil Armstrong --- arch/arm/mach-meson/Kconfig | 1 + configs/bananapi-cm4-cm4io_defconfig | 2 +- configs/bananapi-m2-pro_defconfig | 2 +- configs/bananapi-m2s_defconfig| 2 +- configs/bananapi-m5_defconfig | 2 +- configs/beelink-gsking

Re: [PATCH 0/4] arm: meson: Switch to using upstream DT for GXL, GXM, AXG, G12A, G12B & SM1 SoCs

2024-04-02 Thread Neil Armstrong
Hi, On Tue, 19 Mar 2024 15:42:59 +0100, Neil Armstrong wrote: > Enable OF_UPSTREAM to use upstream DT and add amlogic/ prefix to the > DEFAULT_DEVICE_TREE. And thereby directly build DTB from dts/upstream/src/ > including *-u-boot.dtsi files from arch/$(ARCH)/dts/ directory and > dr

Re: [PATCH v2 0/5] arm: meson: Switch to using upstream DT for GXL, GXM, AXG, G12A, G12B & SM1 SoCs

2024-04-02 Thread Neil Armstrong
Hi, On Fri, 29 Mar 2024 18:51:47 +0100, Neil Armstrong wrote: > Enable OF_UPSTREAM to use upstream DT and add amlogic/ prefix to the > DEFAULT_DEVICE_TREE. And thereby directly build DTB from dts/upstream/src/ > including *-u-boot.dtsi files from arch/$(ARCH)/dts/ directory and > dr

Re: [PATCH v5 10/16] mach-snapdragon: fixup USB nodes

2024-04-02 Thread Neil Armstrong
+++ b/arch/arm/mach-snapdragon/qcom-priv.h @@ -0,0 +1,20 @@ +// SPDX-License-Identifier: GPL-2.0 + +#ifndef __QCOM_PRIV_H__ +#define __QCOM_PRIV_H__ + +#if CONFIG_IS_ENABLED(OF_LIVE) +/** + * qcom_of_fixup_nodes() - Fixup Qualcomm DT nodes + * + * Adjusts nodes in the live tree to improve compatibility with U-Boot. + */ +void qcom_of_fixup_nodes(void); +#else +static inline void qcom_of_fixup_nodes(void) +{ + log_debug("Unable to dynamically fixup USB nodes, please enable CONFIG_OF_LIVE\n"); +} +#endif /* OF_LIVE */ + +#endif /* __QCOM_PRIV_H__ */ Reviewed-by: Neil Armstrong Also tested on SM8550 & SM8650, so: Tested-by: Neil Armstrong

Re: [PATCH v5 11/16] mach-snapdragon: fixup power-domains

2024-04-02 Thread Neil Armstrong
u64 start = timer_get_us(); \ func(__VA_ARGS__); \ @@ -119,5 +150,6 @@ static void fixup_usb_nodes(void) void qcom_of_fixup_nodes(void) { time_call(fixup_usb_nodes); + time_call(fixup_power_domains); } Reviewed-by: Neil Armstrong Also tested on SM8550 & SM8650, so: Tested-by: Neil Armstrong

Re: [PATCH v5 12/16] mach-snapdragon: call regulators_enable_boot_on()

2024-04-02 Thread Neil Armstrong
@@ -160,8 +161,9 @@ void __weak qcom_board_init(void) } int board_init(void) { + regulators_enable_boot_on(false); show_psci_version(); qcom_of_fixup_nodes(); qcom_board_init(); return 0; Reviewed-by: Neil Armstrong

Re: [PATCH v5 13/16] dts: sdm845-db845c: add u-boot fixups

2024-04-02 Thread Neil Armstrong
ed on. + * https://lore.kernel.org/linux-arm-msm/20240320122515.3243711-1-caleb.conno...@linaro.org/ + */ +&pcie0_3p3v_dual { + regulator-always-on; +}; Reviewed-by: Neil Armstrong

[PATCH 0/3] qcom: add clock driver support for SM8550 and SM8650 SoCc

2024-04-04 Thread Neil Armstrong
ocks for Debug UART, SDCard controller and USB. The TCSRCC gates returns the XO frequency, which is used by the Synopsys eUSB2 driver to determine the PHY configuration. In addition, the drivers are enabled in the Qualcomm defconfig. Signed-off-by: Neil Armstrong --- Neil Armstrong (3):

[PATCH 1/3] clk: qcom: Add SM8550 clock driver

2024-04-04 Thread Neil Armstrong
UART, SDCard controller and USB. The TCSRCC gates returns the XO frequency, which is used by the Synopsys eUSB2 driver to determine the PHY configuration. Signed-off-by: Neil Armstrong --- drivers/clk/qcom/Kconfig| 8 + drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/clock

[PATCH 2/3] clk: qcom: Add SM8650 clock driver

2024-04-04 Thread Neil Armstrong
UART, SDCard controller and USB. The TCSRCC gates returns the XO frequency, which is used by the Synopsys eUSB2 driver to determine the PHY configuration. Signed-off-by: Neil Armstrong --- drivers/clk/qcom/Kconfig| 8 + drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/clock

[PATCH 3/3] qcom_defconfig: enable SM8550 & SM8650 clock driver

2024-04-04 Thread Neil Armstrong
Enable the SM8550 & SM8650 clock driver in the Qualcomm defconfig. Signed-off-by: Neil Armstrong --- configs/qcom_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/qcom_defconfig b/configs/qcom_defconfig index 1abb57345ff..993c2d25f07 100644 --- a/configs/qcom_defco

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

2024-04-04 Thread Neil Armstrong
& SM1 to using upstream DT ---- Neil Armstrong (5): configs: meson64: remove amlogic prefix in fdtfile when CONFIG_OF_UPSTREAM is selected dts: meson: Switch GXL, GXM & AXG to using upstream DT dts: meson: Drop redundant GXL, GXM &

[PATCH 0/3] qcom: add pinctrl driver for SM8550 and SM8650

2024-04-05 Thread Neil Armstrong
Add pinctrl driver for the TLMM block found in the SM8550 & SM8650 SoCs. This driver only handles the gpio and qup debug uart pinmux, and makes sure the pinconf applies on SDC2 pins. Finally enable both drivers in the Qualcomm defconfig Signed-off-by: Neil Armstrong --- Neil Armstron

[PATCH 1/3] pinctrl: qcom: Add SM8550 pinctrl driver

2024-04-05 Thread Neil Armstrong
Add pinctrl driver for the TLMM block found in the SM8550 SoC. This driver only handles the gpio and qup1_se7 pinmux, and makes sure the pinconf applies on SDC2 pins. Signed-off-by: Neil Armstrong --- drivers/pinctrl/qcom/Kconfig | 7 drivers/pinctrl/qcom/Makefile | 1

[PATCH 3/3] qcom_defconfig: enable SM8550 & SM8650 pinctrl driver

2024-04-05 Thread Neil Armstrong
Enable the SM8550 & SM8650 pinctrl drivers for Qualcomm defconfig. Signed-off-by: Neil Armstrong --- configs/qcom_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/qcom_defconfig b/configs/qcom_defconfig index 222db6448ab..a92b6ef7911 100644 --- a/configs/qcom_defco

[PATCH 2/3] pinctrl: qcom: Add SM8650 pinctrl driver

2024-04-05 Thread Neil Armstrong
Add pinctrl driver for the TLMM block found in the SM8650 SoC. This driver only handles the gpio and qup2_se7 pinmux, and makes sure the pinconf applies on SDC2 pins. Signed-off-by: Neil Armstrong --- drivers/pinctrl/qcom/Kconfig | 7 drivers/pinctrl/qcom/Makefile | 1

[PATCH 0/4] smpi: msm: fix version 5 and add version 7 support

2024-04-05 Thread Neil Armstrong
cnfg registers and mark periperal as read-only when the owner id doesn't match - finally add version 7 defines SPMI Arbiter Version 7 is present on SM8450, SM8550 and SM8650 SoC. Signed-off-by: Neil Armstrong --- Neil Armstrong (4): spmi: msm: fix version 5 support spmi

[PATCH 1/4] spmi: msm: fix version 5 support

2024-04-05 Thread Neil Armstrong
Properly use ch_offset in msm_spmi_write() reg access. Fixes: f5a2d6b4b03 ("spmi: msm: add arbiter version 5 support") Signed-off-by: Neil Armstrong --- drivers/spmi/spmi-msm.c | 19 +-- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/drivers/spmi/sp

[PATCH 2/4] spmi: msm: properly format command

2024-04-05 Thread Neil Armstrong
Since version 2, the cmd format has changed, takes helpers from Linux driver and use a switch/case to handle all versions in msm_spmi_write/read() command. Signed-off-by: Neil Armstrong --- drivers/spmi/spmi-msm.c | 75 - 1 file changed, 55

[PATCH 3/4] spmi: msm: handle peripheral ownership

2024-04-05 Thread Neil Armstrong
s and introduce the SPMI_CHANNEL_READ_ONLY flag to mark a peripheral as read-only. Signed-off-by: Neil Armstrong --- drivers/spmi/spmi-msm.c | 33 + 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/drivers/spmi/spmi-msm.c b/drivers/spmi/spmi-msm.c

[PATCH 4/4] spmi: msm: support controller version 7

2024-04-05 Thread Neil Armstrong
Add the defines and support for SPMI arbiters version 7, which can handle up to 1024 peripherals, and can also drive a secondary bus which is not implemented yet. Signed-off-by: Neil Armstrong --- drivers/spmi/spmi-msm.c | 33 + 1 file changed, 29 insertions

[PATCH 0/3] qcom: support SPMI buttons on SM8550 and SM8650

2024-04-05 Thread Neil Armstrong
First add PMIC gpio variant on pm8550-gpio, then rework the qcom-pmic button driver to support data structs for each PMIC variant and finally add the data for the pmk8350 button configs. Signed-off-by: Neil Armstrong --- Neil Armstrong (3): gpio: qcom_pmic_gpio: add support for pm8550-gpio

[PATCH 1/3] gpio: qcom_pmic_gpio: add support for pm8550-gpio

2024-04-05 Thread Neil Armstrong
Add support for PM8550 GPIO controller variant, keep read-only until the GPIO and Pinctrl setup is fixed for new PMICs. Signed-off-by: Neil Armstrong --- drivers/gpio/qcom_pmic_gpio.c | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/drivers/gpio

[PATCH 2/3] button: qcom-pmic: move node name checks to btn_data struct

2024-04-05 Thread Neil Armstrong
Move node name checks to a proper data struct with all information for the supported subnodes. Replace the key offset defines with the Linux driver ones. Signed-off-by: Neil Armstrong --- drivers/button/button-qcom-pmic.c | 84 ++- 1 file changed, 56

[PATCH 3/3] button: qcom-pmic: add support for pmk8350 button configs

2024-04-05 Thread Neil Armstrong
Finally add the entries for the qcom,pmk8350-pwrkey and qcom,pmk8350-resin found on PMICs used with SM8350 and later SoCs. Signed-off-by: Neil Armstrong --- drivers/button/button-qcom-pmic.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/button/button-qcom-pmic.c b

[PATCH 0/2] phy: qcom: add support for the Qualcomm Synopsys eUSB2 PHY

2024-04-05 Thread Neil Armstrong
Add support for the new Qualcomm Synopsys eUSB2 PHY found in the SM8550 and SM8650 SoCs. Finally enable the driver in the Qualcomm defconfig. Signed-off-by: Neil Armstrong --- Neil Armstrong (2): phy: qcom: add Synopsys eUSB2 PHY driver qcom_defconfig: enable the Qualcomm Synopsys

[PATCH 1/2] phy: qcom: add Synopsys eUSB2 PHY driver

2024-04-05 Thread Neil Armstrong
Add a driver for the new Synopsys eUSB2 PHY found in the SM8550 and SM8650 SoCs. Signed-off-by: Neil Armstrong --- drivers/phy/qcom/Kconfig | 8 + drivers/phy/qcom/Makefile | 1 + drivers/phy/qcom/phy-qcom-snps-eusb2.c | 365 + 3

[PATCH 2/2] qcom_defconfig: enable the Qualcomm Synopsys eUSB2 PHY driver

2024-04-05 Thread Neil Armstrong
Enable the Qualcomm Synopsys eUSB2 PHY driver in 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 1abb57345ff..b0ae5eb4df3 100644 --- a/configs/qcom_defconfig

Re: [PATCH 1/2] phy: qcom: add Synopsys eUSB2 PHY driver

2024-04-05 Thread Neil Armstrong
On 05/04/2024 10:35, Neil Armstrong wrote: Add a driver for the new Synopsys eUSB2 PHY found in the SM8550 and SM8650 SoCs. Signed-off-by: Neil Armstrong --- drivers/phy/qcom/Kconfig | 8 + drivers/phy/qcom/Makefile | 1 + drivers/phy/qcom/phy-qcom-snps-eusb2

Re: [PATCH 3/3] button: qcom-pmic: add support for pmk8350 button configs

2024-04-05 Thread Neil Armstrong
On 05/04/2024 10:27, Neil Armstrong wrote: Finally add the entries for the qcom,pmk8350-pwrkey and qcom,pmk8350-resin found on PMICs used with SM8350 and later SoCs. Signed-off-by: Neil Armstrong --- drivers/button/button-qcom-pmic.c | 14 ++ 1 file changed, 14 insertions

Re: [PATCH 3/4] pinctrl: qcom: add sm8250 pinctrl driver

2024-04-08 Thread Neil Armstrong
On 08/04/2024 15:07, Caleb Connolly wrote: This SoC features a pinctrl block with north, south, and west tiles accessible to the AP. Signed-off-by: Caleb Connolly --- drivers/pinctrl/qcom/Kconfig | 7 +++ drivers/pinctrl/qcom/Makefile | 1 + drivers/pinctrl/qcom/pinctrl-s

Re: [PATCH] MAINTAINERS: add Qualcomm mailing list

2024-04-09 Thread Neil Armstrong
On 09/04/2024 17:02, Caleb Connolly wrote: Add the newly created u-boot-qcom mailing list to keep track of Qualcomm patches. Additionally, link to the U-Boot Snapdragon custodian tree. Signed-off-by: Caleb Connolly --- Cc: Neil Armstrong Cc: Sumit Garg Cc: u-boot@lists.denx.de

Re: [PATCH 4/7] mmc: msm_sdhci: use a more sensible default clock rate

2024-04-10 Thread Neil Armstrong
Hi, On 09/04/2024 20:03, Caleb Connolly wrote: We currently default to the lowest rate but this actually doesn't work on most platforms. Default to the HS400 speed instead which is most common on Qualcomm platforms. Signed-off-by: Caleb Connolly --- drivers/mmc/msm_sdhci.c | 2 +- 1 file ch

Re: [PATCH 3/7] mmc: msm_sdhci: print core version

2024-04-10 Thread Neil Armstrong
re_major, core_minor); + /* * Support for some capabilities is not advertised by newer * controller versions and must be explicitly enabled. */ Reviewed-by: Neil Armstrong

Re: [PATCH 2/7] mmc: msm_sdhci: use modern DT handling

2024-04-10 Thread Neil Armstrong
dex); + if (ret) + host->index = 0; + priv->base = dev_read_addr_index_ptr(dev, 1); + + if (!host->ioaddr) return -EINVAL; + if (!var_info->mci_removed && !priv->base) { + printf("msm_sdhci: MCI base address not found\n"); + return -EINVAL; + } + return 0; } static int msm_sdc_bind(struct udevice *dev) Reviewed-by: Neil Armstrong

Re: [PATCH 1/7] mmc: msm_sdhci: correct vendor_spec_cap0 register for v5

2024-04-10 Thread Neil Armstrong
{ .compatible = "qcom,sdhci-msm-v4", .data = (ulong)&msm_sdhc_mci_var }, Reviewed-by: Neil Armstrong

Re: [PATCH 6/7] pinctrl: qcom: sdm845: add special pin names

2024-04-10 Thread Neil Armstrong
selector - 150]); + else + snprintf(pin_name, MAX_PIN_NAME_LEN, "gpio%u", selector); + return pin_name; } static unsigned int sdm845_get_function_mux(__maybe_unused unsigned int pin, At some point we should add the pinconf settings for SDC and UFS, but for now it's ok! Reviewed-by: Neil Armstrong

Re: [PATCH 1/3] clk: qcom: Add SM8550 clock driver

2024-04-10 Thread Neil Armstrong
On 10/04/2024 11:13, Sumit Garg wrote: Hi Neil, On Thu, 4 Apr 2024 at 22:16, Neil Armstrong wrote: Add the GCC and TCSRCC clock driver for the SM8550 SoC. The GCC driver uses the clk-qcom infrastructure to support GDSCs, Resets and gates. While the TCSRCC is a simpler clock driver which

Re: [PATCH 1/3] clk: qcom: Add SM8550 clock driver

2024-04-10 Thread neil . armstrong
On 10/04/2024 11:27, Sumit Garg wrote: On Wed, 10 Apr 2024 at 14:46, Neil Armstrong wrote: On 10/04/2024 11:13, Sumit Garg wrote: Hi Neil, On Thu, 4 Apr 2024 at 22:16, Neil Armstrong wrote: Add the GCC and TCSRCC clock driver for the SM8550 SoC. The GCC driver uses the clk-qcom

[PATCH v2 0/3] qcom: support SPMI buttons on SM8550 and SM8650

2024-04-10 Thread Neil Armstrong
First add PMIC gpio variant on pm8550-gpio, then rework the qcom-pmic button driver to support data structs for each PMIC variant and finally add the data for the pmk8350 button configs. Signed-off-by: Neil Armstrong --- Changes in v2: - added missing qcom,pmk8350-pon compatible - Link to v1

[PATCH v2 1/3] gpio: qcom_pmic_gpio: add support for pm8550-gpio

2024-04-10 Thread Neil Armstrong
Add support for PM8550 GPIO controller variant, keep read-only until the GPIO and Pinctrl setup is fixed for new PMICs. Signed-off-by: Neil Armstrong --- drivers/gpio/qcom_pmic_gpio.c | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/drivers/gpio

[PATCH v2 2/3] button: qcom-pmic: move node name checks to btn_data struct

2024-04-10 Thread Neil Armstrong
Move node name checks to a proper data struct with all information for the supported subnodes. Replace the key offset defines with the Linux driver ones. Signed-off-by: Neil Armstrong --- drivers/button/button-qcom-pmic.c | 84 ++- 1 file changed, 56

[PATCH v2 3/3] button: qcom-pmic: add support for pmk8350 button configs

2024-04-10 Thread Neil Armstrong
Finally add the entries for the qcom,pmk8350-pwrkey and qcom,pmk8350-resin found on PMICs used with SM8350 and later SoCs. Signed-off-by: Neil Armstrong --- drivers/button/button-qcom-pmic.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/button/button-qcom-pmic.c

[PATCH v2 0/2] phy: qcom: add support for the Qualcomm Synopsys eUSB2 PHY

2024-04-10 Thread Neil Armstrong
Add support for the new Qualcomm Synopsys eUSB2 PHY found in the SM8550 and SM8650 SoCs. Finally enable the driver in the Qualcomm defconfig. Signed-off-by: Neil Armstrong --- Changes in v2: - fixed driver build failure due to missin } - Link to v1: https://lore.kernel.org/r/20240405-topic

[PATCH v2 1/2] phy: qcom: add Synopsys eUSB2 PHY driver

2024-04-10 Thread Neil Armstrong
Add a driver for the new Synopsys eUSB2 PHY found in the SM8550 and SM8650 SoCs. Signed-off-by: Neil Armstrong --- drivers/phy/qcom/Kconfig | 8 + drivers/phy/qcom/Makefile | 1 + drivers/phy/qcom/phy-qcom-snps-eusb2.c | 366 + 3

[PATCH v2 2/2] qcom_defconfig: enable the Qualcomm Synopsys eUSB2 PHY driver

2024-04-10 Thread Neil Armstrong
Enable the Qualcomm Synopsys eUSB2 PHY driver in 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 1abb57345ff..b0ae5eb4df3 100644 --- a/configs/qcom_defconfig

Re: [PATCH v2 0/4] qcom: pinctrl drivers for qcm2290/sm6115/sm8250

2024-04-11 Thread Neil Armstrong
, 396 insertions(+) --- change-id: 20240408-b4-qcom-rbx-soc-44ee99c8b799 base-commit: 4ba549b0a4e67c563785ab144edf47e108b34822 // Caleb (they/them) Reviewed-by: Neil Armstrong

Re: [PATCH] usb: dwc3: support USB 3.1 controllers

2024-04-12 Thread neil . armstrong
ot a DesignWare USB3 DRD Core\n"); ret = -ENODEV; goto err0; } Reviewed-by: Neil Armstrong Tested-by: Neil Armstrong # on SM8550

Re: [PATCH 1/7] mmc: msm_sdhci: correct vendor_spec_cap0 register for v5

2024-04-12 Thread Neil Armstrong
On 11/04/2024 15:59, Sumit Garg wrote: On Tue, 9 Apr 2024 at 23:33, Caleb Connolly wrote: The V4 and V5 controllers have quite varied register layouts. Inherit the register offsets and naming from the Linux driver. More version specific offsets can be inherited from Linux as needed. Fixes: 36

Re: [PATCH v4 4/7] pinctrl: qcom: Add support for driving GPIO pins output

2024-04-12 Thread neil . armstrong
riv, pin_selector)); + setbits_le32(priv->base + GPIO_CONFIG_REG(priv, pin_selector), +TLMM_GPIO_OE_MASK); + break; default: return 0; } Reviewed-by: Neil Armstrong

[PATCH 0/2] i2c: Add support for Qualcomm Generic Interface (GENI) I2C controller

2024-04-18 Thread Neil Armstrong
orted from Linux. Only FIFO mode is implemented, nor SE DMA nor GPI DMA is implemented. Finally enable the driver in the default Qualcomm defconfig. Signed-off-by: Neil Armstrong --- Neil Armstrong (2): i2c: Add support for Qualcomm Generic Interface (GENI) I2C controller configs: qcom

[PATCH 1/2] i2c: Add support for Qualcomm Generic Interface (GENI) I2C controller

2024-04-18 Thread Neil Armstrong
orted from Linux. Only FIFO mode is implemented, nor SE DMA nor GPI DMA is implemented. Signed-off-by: Neil Armstrong --- drivers/i2c/Kconfig| 10 + drivers/i2c/Makefile | 1 + drivers/i2c/geni_i2c.c | 576 + include/soc/qcom/geni-

[PATCH 2/2] configs: qcom_defconfig: enable GENI I2C Driver

2024-04-18 Thread Neil Armstrong
Enable the GENI I2C driver in the default 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 1abb57345ff..8d440b23625 100644 --- a/configs/qcom_defconfig +++ b

Re: [PATCH 1/3] mach-snapdragon: use OF_UPSTREAM

2024-04-19 Thread Neil Armstrong
+- configs/qcom_defconfig| 2 +- 5 files changed, 4 insertions(+), 7 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index c0d2b5138fca..d0a4a28b401d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -605,12 +605,8 @@ M: Neil Armstrong R:Sumit Garg L:u-boot-q

Re: [PATCH 2/3] arm: dts: drop qcom dts files

2024-04-19 Thread Neil Armstrong
- arch/arm/dts/sdm845.dtsi| 5752 --- 18 files changed, 19183 deletions(-) Reviewed-by: Neil Armstrong

Re: [PATCH 3/3] qcom_defconfig: set SYS_INIT_SP_BSS_OFFSET

2024-04-19 Thread Neil Armstrong
TTON_CMD=y CONFIG_FIT=y CONFIG_FIT_VERBOSE=y CONFIG_BOOTSTD_FULL=y Reviewed-by: Neil Armstrong

Re: [PATCH v4 2/3] dt-bindings: drop generic headers

2024-04-19 Thread Neil Armstrong
-bindings/usb/pd.h | 88 --- 13 files changed, 1193 deletions(-) Reviewed-by: Neil Armstrong

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

2024-04-19 Thread Neil Armstrong
CONFIG_OF_UPSTREAM_BUILD_VENDOR),y) +ifeq ($(CONFIG_ARM64),y) +dt_dir := $(srctree)/dts/upstream/src/arm64 +else +dt_dir := $(srctree)/dts/upstream/src/$(ARCH) +endif + +dtb-vendor_dts := $(patsubst %.dts,%.dtb,$(wildcard $(dt_dir)/$(subst ",,$(CONFIG_OF_UPSTREAM_VENDOR))/*.dts)) + +dtb-y += $(

Re: [PATCH 1/2] i2c: Add support for Qualcomm Generic Interface (GENI) I2C controller

2024-04-22 Thread Neil Armstrong
On 19/04/2024 13:47, Caleb Connolly wrote: Hi Neil, On 18/04/2024 23:47, Neil Armstrong wrote: Add Support for the Qualcomm Generic Interface (GENI) I2C interface found on newer Qualcomm SoCs. \o/ The Generic Interface (GENI) is a firmware based Qualcomm Universal Peripherals (QUP) Serial

[PATCH v2 0/2] i2c: Add support for Qualcomm Generic Interface (GENI) I2C controller

2024-04-22 Thread Neil Armstrong
orted from Linux. Only FIFO mode is implemented, neither SE DMA nor GPI DMA are implemented. Finally enable the driver in the default Qualcomm defconfig. Signed-off-by: Neil Armstrong --- Changes in v2: - Fixed commit msg, removed useless debug, switched to dev_err() in probe - Fixed some possi

[PATCH v2 2/2] configs: qcom_defconfig: enable GENI I2C Driver

2024-04-22 Thread Neil Armstrong
Enable the GENI I2C driver in the default Qualcomm defconfig. Reviewed-by: Caleb Connolly 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 1abb57345ff..8d440b23625 100644 --- a

[PATCH v2 1/2] i2c: Add support for Qualcomm Generic Interface (GENI) I2C controller

2024-04-22 Thread Neil Armstrong
orted from Linux. Only FIFO mode is implemented, neither SE DMA nor GPI DMA are implemented. Signed-off-by: Neil Armstrong --- drivers/i2c/Kconfig| 10 + drivers/i2c/Makefile | 1 + drivers/i2c/geni_i2c.c | 575 + include/soc/qcom

Re: [PATCH v1] arm: dts: meson-axg: add NAND controller node for AXG

2024-04-26 Thread Neil Armstrong
Hi, On 25/04/2024 19:50, Arseniy Krasnov wrote: nfc: Synced from Linux commit 7ca2ef33179f ("Linux 6.6-rc1") nand_all_pins: Synced from Linux commit be18d53c32b2 ("Linux 6.7-rc3") No need to sync DT anymore, this is handled by OF_UPSTREAM and for next release it's already aligned with v6.9 DT.

Re: [PATCH v1] arm: dts: meson-axg: add NAND controller node for AXG

2024-04-26 Thread neil . armstrong
On 26/04/2024 10:40, Arseniy Krasnov wrote: Hi, On 26.04.2024 11:21, Neil Armstrong wrote: Hi, On 25/04/2024 19:50, Arseniy Krasnov wrote: nfc: Synced from Linux commit 7ca2ef33179f ("Linux 6.6-rc1") nand_all_pins: Synced from Linux commit be18d53c32b2 ("Linux 6.7-rc3")

[GIT PULL] Please pull u-boot-amlogic-fixes-20240201

2024-02-01 Thread Neil Armstrong
) - stop printing board model twice after sysinfo update Neil Armstrong (1): ARM: meson: stop printing board model after sysinfo update arch/arm/mach-meson/board-info.c | 10 -- 1 file changed, 10 deletions(-)

Re: [PATCH] configs: khadas-vim3*_android: fix AVB oom error

2024-02-12 Thread Neil Armstrong
base-commit: 076529725f16f07a5cb2d5feba25d62b5f5a5872 change-id: 20240209-vim3-avb-malloc-aa3de534d6a0 Best regards, Reviewed-by: Neil Armstrong

Re: [PATCH] button: qcom-pmic: demote "unknown button" message to debug

2024-02-12 Thread Neil Armstrong
n", + debug("Unknown button node '%s' should be 'pwrkey' or 'resin'\n", ofnode_get_name(node)); device_unbind(dev); } Reviewed-by: Neil Armstrong

Re: [PATCH v4 06/39] clock/qcom: qcs404: fix clk_set_rate

2024-02-19 Thread Neil Armstrong
nable(struct clk *clk) clk_rcg_set_rate(priv->base, &blsp1_qup4_i2c_apps_regs, 0, CFG_CLK_SRC_CXO); break; + case GCC_SDCC1_AHB_CLK: + clk_enable_cbc(priv->base + SDCC_AHB_CBCR(1)); + break; default: return 0; } Reviewed-by: Neil Armstrong

Re: [PATCH v4 07/39] serial: msm: add debug UART

2024-02-19 Thread Neil Armstrong
readl(priv->base + UARTDM_ISR) & UARTDM_ISR_TX_READY)) + ; + + writel(UARTDM_CR_CMD_RESET_TX_READY, priv->base + UARTDM_CR); + + writel(1, priv->base + UARTDM_NCF_TX); + writel(ch, priv->base + UARTDM_TF); +} + +DEBUG_UART_FUNCS + +#endif Reviewed-by: Neil Armstrong

Re: [PATCH v4 08/39] serial: msm: fix clock handling and pinctrl

2024-02-19 Thread Neil Armstrong
_rate); if (ret < 0) @@ -218,7 +203,6 @@ static int msm_serial_probe(struct udevice *dev) if (ret) return ret; - pinctrl_select_state(dev, "uart"); uart_dm_init(priv); return 0; @@ -251,6 +235,7 @@ U_BOOT_DRIVER(serial_msm) = { .priv_auto = sizeof(struct msm_serial_data), .probe = msm_serial_probe, .ops= &msm_serial_ops, + .flags = DM_FLAG_PRE_RELOC, }; #ifdef CONFIG_DEBUG_UART_MSM Reviewed-by: Neil Armstrong

Re: [PATCH v4 12/39] sandbox: dts: fix qcom pmic gpio

2024-02-19 Thread Neil Armstrong
es = <&spmi_gpios 0 0 4>; #gpio-cells = <2>; - gpio-bank-name="spmi"; }; }; }; Reviewed-by: Neil Armstrong

Re: [PATCH v4 15/39] pinctrl: qcom: apq8016: init pre-reloaction

2024-02-19 Thread Neil Armstrong
bind = msm_pinctrl_bind, + .flags = DM_FLAG_PRE_RELOC, }; Reviewed-by: Neil Armstrong

Re: [PATCH v4 13/39] pinctrl: qcom: stub support for special GPIOs

2024-02-19 Thread Neil Armstrong
sure we don't indadvertently treat all pins as special pins. */ + if (!data->pin_data.special_pins_start) + data->pin_data.special_pins_start = data->pin_data.pin_count; + drv = lists_driver_lookup_name("pinctrl_qcom"); if (!drv) return -ENOENT; Reviewed-by: Neil Armstrong

Re: [PATCH v4 14/39] pinctrl: qcom: fix DT compatibility

2024-02-19 Thread Neil Armstrong
* these pins. +*/ }; static const char *qcs404_get_function_name(struct udevice *dev, @@ -49,7 +87,7 @@ static const char *qcs404_get_pin_name(struct udevice *dev, unsigned int selector) { if (selector < 120) { - snprintf(pin_name, MAX_PIN_NAME_LEN, "GPIO_%u", selector); + snprintf(pin_name, MAX_PIN_NAME_LEN, "gpio%u", selector); return pin_name; } else { return msm_pinctrl_pins[selector - 120]; @@ -62,7 +100,7 @@ static unsigned int qcs404_get_function_mux(unsigned int selector) } static struct msm_pinctrl_data qcs404_data = { - .pin_data = { .pin_count = 126, }, + .pin_data = { .pin_count = 126, .pin_offsets = qcs404_pin_offsets, .special_pins_start = 120, }, .functions_count = ARRAY_SIZE(msm_pinctrl_functions), .get_function_name = qcs404_get_function_name, .get_function_mux = qcs404_get_function_mux, Reviewed-by: Neil Armstrong

Re: [PATCH v4 21/39] mach-snapdragon: dynamic load addresses

2024-02-19 Thread Neil Armstrong
agonboard410c.c b/board/qualcomm/dragonboard410c/dragonboard410c.c index 0136cc2237de..fbbfc0e65e24 100644 --- a/board/qualcomm/dragonboard410c/dragonboard410c.c +++ b/board/qualcomm/dragonboard410c/dragonboard410c.c @@ -88,7 +88,7 @@ int misc_init_r(void) return 0; } -int board_late_init(void) +int qcom_late_init(void) { char serial[16]; Reviewed-by: Neil Armstrong

Re: [PATCH v4 26/39] doc: board/qualcomm: link to APQ8016 TRM

2024-02-19 Thread Neil Armstrong
://developer.qualcomm.com/qfile/35259/lm80-p0436-100_d_snapdragon_410e_apq8016e_tech_reference_manual_revd.pdf + Installation First, setup ``CROSS_COMPILE`` for aarch64. Then, build U-Boot for ``dragonboard410c``:: Reviewed-by: Neil Armstrong

Re: [PATCH v4 11/39] gpio: qcom_pmic: add pinctrl driver

2024-02-19 Thread Neil Armstrong
pins_count, + .get_pin_name = qcom_pmic_pinctrl_get_pin_name, + .set_state = pinctrl_generic_set_state, + .pinconf_num_params = ARRAY_SIZE(qcom_pmic_pinctrl_conf_params), + .pinconf_params = qcom_pmic_pinctrl_conf_params, + .pinconf_set = qcom_pmic_pinctrl_pinconf_set, + .get_function_name = qcom_pmic_pinctrl_get_function_name, + .get_functions_count = qcom_pmic_pinctrl_generic_get_functions_count, + .pinmux_set = qcom_pmic_pinctrl_generic_pinmux_set_mux, +}; + +U_BOOT_DRIVER(qcom_pmic_pinctrl) = { + .name = "qcom_pmic_pinctrl", + .id = UCLASS_PINCTRL, + .ops= &qcom_pmic_pinctrl_ops, +}; Reviewed-by: Neil Armstrong

Re: [PATCH v4 10/39] gpio: qcom_pmic: add a quirk to skip GPIO configuration

2024-02-21 Thread Neil Armstrong
On 20/02/2024 06:56, Sumit Garg wrote: On Fri, 16 Feb 2024 at 02:22, Caleb Connolly wrote: Some platforms hard reset when attempting to configure PMIC GPIOs. Add support for quirks specified in match data with a single quirk to skip this configuration. We rely on the GPIO already be configured

Re: [PATCH] configs: khadas-vim3*_android: fix AVB oom error

2024-02-23 Thread Neil Armstrong
Hi, On Fri, 09 Feb 2024 09:58:35 +0100, Mattijs Korpershoek wrote: > When booting Android with AVB enabled, an OOM is observed: > > => avb init ${mmcdev} > => avb verify _a > ## Android Verified Boot 2.0 version 1.1.0 > read_is_device_unlocked not supported yet > read_rollback_index not

[PULL] Please pull u-boot-amlogic-fixes-20240223

2024-02-23 Thread neil . armstrong
From: Neil Armstrong Please pull this simple config fixes for the Khadas VIM3 Android setup to fix an Out Of Memory error for AVB. Thanks, Neil The following changes since commit 5e4a0c7f4a2c9d4670b75a6a2056243b1a56512b: Merge branch 'qcom-fixes-2024.04' of https://gitlab.denx

Re: [PATCH v1 0/3] board: amlogic: jethubj100: small updates

2024-02-27 Thread Neil Armstrong
/MAINTAINERS | 2 +- doc/board/amlogic/jethub-j100.rst | 9 ++--- include/configs/jethub.h | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) base-commit: d49fa3defa50c6d3f04acbb52fd486c13c14ab6a Reviewed-by: Neil Armstrong

Re: [PATCH v6 00/11] An effort to bring DT bindings compliance within U-Boot

2024-03-01 Thread neil . armstrong
On 01/03/2024 14:30, Sumit Garg wrote: On Fri, 1 Mar 2024 at 18:27, Tom Rini wrote: On Thu, 22 Feb 2024 15:05:56 +0530, Sumit Garg wrote: Changes in v6: -- - v6_dt: https://github.com/b49020/u-boot/tree/v6_dt - Patch #3: Incorporate fix for sandbox CI failure. - Patch #6: Incorpo

Re: [PATCH] adc: meson-saradc: use correct printf code

2020-12-29 Thread Neil Armstrong
o channel %u instead of %u\n", > fifo_chan, channel); > return -EINVAL; > } > -- > 2.29.2 > Acked-by: Neil Armstrong

Re: [PATCH] board: amlogic: add MMC boot device detection for environment load

2020-12-29 Thread Neil Armstrong
On 18/12/2020 15:26, Marek Szyprowski wrote: > Detect eMMC or SD card boot on Odroid-C4/N2 and Khadas VIM3(l) boards and > report proper MMC device for the environment loading code. This allows to > automatically load and store environment variables on the FAT partition > or RAW offset of the MMC d

[PATCH 0/4] phy: add support for Amlogic Meson AXG MIPI-DSI PHY function

2020-12-29 Thread Neil Armstrong
"configure" PHY op is added to permit dynamic (re)configuration of the PHY function. Finally, the Linux MIPI D-PHY configuration helpers are imported to provide a standard set of default D-PHY timings, timings struct and correct calculations. Neil Armstrong (4): phy: dphy: Add con

[PATCH 1/4] phy: dphy: Add configuration helpers

2020-12-29 Thread Neil Armstrong
commit 9123e3a74ec7 ("Linux 5.9-rc1"). Signed-off-by: Neil Armstrong --- drivers/phy/Kconfig | 5 + drivers/phy/Makefile | 1 + drivers/phy/phy-core-mipi-dphy.c | 161 ++ include/phy-mipi-dphy.h | 284 ++

[PATCH 2/4] generic-phy: add configure op

2020-12-29 Thread Neil Armstrong
Add the PHY configure op callback to the generic PHY uclass to permit configuring the PHY. It's useful for MIPI DSI PHYs to setup the link timings. Signed-off-by:Neil Armstrong Signed-off-by: Neil Armstrong --- drivers/phy/phy-uclass.c | 11 +++ include/generic-phy.h

[PATCH 4/4] phy: Add Amlogic AXG MIPI PCIe Analog PHY driver

2020-12-29 Thread Neil Armstrong
The Amlogic AXG MIPI + PCIe Analog PHY provides function for both PCIe and MIPI DSI at the same time, and provides the Analog part of MIPI DSI transmission and Analog part of the PCIe lines. Signed-off-by: Neil Armstrong --- drivers/phy/Kconfig | 9 + drivers/phy/Makefile

[PATCH 3/4] phy: Add Amlogic AXG MIPI D-PHY driver

2020-12-29 Thread Neil Armstrong
The Amlogic AXG SoCs embeds a MIPI D-PHY used to communicate with DSI panels. This D-PHY depends on a separate analog PHY. Signed-off-by:Neil Armstrong Signed-off-by: Neil Armstrong --- drivers/phy/Kconfig | 9 + drivers/phy/Makefile | 1 + drivers/phy/meson

[PATCH v2] cmd: pxe: add support for FDT overlays

2021-01-04 Thread Neil Armstrong
usage of a new variable called fdtoverlay_addr_r used to load the overlay files without overwritting anything important. Cc: Tom Rini Cc: Andre Heider Cc: Jernej Škrabec Cc: Jonas Karlman Signed-off-by: Neil Armstrong --- Hi Tom, This is repost of my last year's attempt. It fills a hole to a

<    1   2   3   4   5   6   7   8   9   10   >