Re: [PATCH 19/33] arm: meson: Remove and add needed includes

2024-05-02 Thread Neil Armstrong
On 30/04/2024 15:35, Tom Rini wrote: Remove from all mach-meson files and when needed add missing include files directly. Signed-off-by: Tom Rini --- Cc: Neil Armstrong Cc: u-boot-amlo...@groups.io --- arch/arm/mach-meson/board-a1.c | 2 +- arch/arm/mach-meson/board-axg.c| 1

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")

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

[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

[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

[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

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

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

2024-04-19 Thread Neil Armstrong
G_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 += $(subst

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 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 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 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

[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

[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 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

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

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:

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 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

[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

[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 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 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 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 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 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

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

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 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/7] mmc: msm_sdhci: correct vendor_spec_cap0 register for v5

2024-04-10 Thread Neil Armstrong
atible = "qcom,sdhci-msm-v4", .data = (ulong)_sdhc_mci_var }, Reviewed-by: Neil Armstrong

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

2024-04-10 Thread Neil Armstrong
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 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 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

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 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 +

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 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

[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

[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 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 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 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 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 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 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 3/4] spmi: msm: handle peripheral ownership

2024-04-05 Thread Neil Armstrong
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 index

[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 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 0/4] smpi: msm: fix version 5 and add version 7 support

2024-04-05 Thread Neil Armstrong
into the 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: msm

[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 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 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 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

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

2024-04-04 Thread Neil Armstrong
sing 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 & AXG devicetre

[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

[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 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 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):

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

2024-04-02 Thread Neil Armstrong
on. + * https://lore.kernel.org/linux-arm-msm/20240320122515.3243711-1-caleb.conno...@linaro.org/ + */ +_3p3v_dual { + regulator-always-on; +}; Reviewed-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 11/16] mach-snapdragon: fixup power-domains

2024-04-02 Thread Neil Armstrong
s(); \ 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 10/16] mach-snapdragon: fixup USB nodes

2024-04-02 Thread Neil Armstrong
er: 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 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 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

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

2024-03-29 Thread Neil Armstrong
-by: 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

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

2024-03-29 Thread Neil Armstrong
-by: 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 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 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

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

2024-03-28 Thread neil . armstrong
"ramdisk_addr_r=" RAMDISK_ADDR_R "\0" \ -   "fdtfile=amlogic/" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0" \ +   "fdtfile=" FDTFILE_NAME "\0" \      "dfu_alt_info=fitimage ram " KERNEL_ADDR_R " 0x400 \0" \ B

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

2024-03-28 Thread Neil Armstrong
Hi Mattijs, On 19/03/2024 15:42, 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 drop redundant files from

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

2024-03-28 Thread neil . armstrong
t;fdtoverlay_addr_r=" FDTOVERLAY_ADDR_R "\0" \ "ramdisk_addr_r=" RAMDISK_ADDR_R "\0" \ - "fdtfile=amlogic/" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0" \ + "fdtfile=" FDTFILE_NAME "\0" \ "dfu_alt_inf

Re: [PATCH v1] board: amlogic: jethubj100: fix update docs

2024-03-26 Thread Neil Armstrong
On 26/03/2024 09:19, Viacheslav Bocharov wrote: Fix linter errors Fixes: 2fc5e3c1668cffdb4b894986e98c1ee10f6e9955 Signed-off-by: Viacheslav Bocharov --- doc/board/amlogic/jethub-j100.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/board/amlogic/jethub-j100.rst

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

2024-03-25 Thread Neil Armstrong
gic: add meson_generate_serial_ethaddr fallback to p200 Neil Armstrong (1): board: amlogic: fix buffler overflow in seria, mac & usid read ...b-wetek-u-boot.dtsi => meson-gxbb-wetek-hub-u-boot.dtsi} | 0 arch/arm/dts/meson-gxbb-wetek-play2-u-boot.dtsi | 13 + board/amlogi

Re: [PATCH v1 3/3] board: amlogic: jethubj100: update docs

2024-03-25 Thread Neil Armstrong
On 27/02/2024 07:54, Viacheslav Bocharov wrote: Improove documentation, add new revision. Signed-off-by: Viacheslav Bocharov --- doc/board/amlogic/jethub-j100.rst | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/doc/board/amlogic/jethub-j100.rst

Re: [PATCH v2] board: amlogic: fix buffler overflow in seria, mac & usid read

2024-03-25 Thread Neil Armstrong
Hi, On Wed, 20 Mar 2024 09:46:11 +0100, Neil Armstrong wrote: > While meson_sm_read_efuse() doesn't overflow, the string is not > zero terminated and env_set*() will buffer overflow and add random > characters to environment. > > Thanks, Applied to https://source.denx.de/u-bo

Re: [PATCH v2 0/2] ARM: dts: fix Ethernet and random MAC's on WeTek Hub/Play2

2024-03-25 Thread Neil Armstrong
Hi, On Sun, 24 Mar 2024 15:19:03 +, Christian Hewitt wrote: > In submitting the original patches for WeTek Hub/Play2 I appear to have > squashed an experimental change to place the u-boot.dtsi file on the common > board dtsi, but this was incorrect and results in broken Ethernet. Patch 1 >

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

2024-03-25 Thread Neil Armstrong
Hi, On Tue, 27 Feb 2024 09:54:03 +0300, Viacheslav Bocharov wrote: > Update JetHub D1/D1+ board support files. > > Viacheslav Bocharov (3): > board: amlogic: jethubj100: fix common config header > board: amlogic: jethubj100: update MAINTAINERS > board: amlogic: jethubj100: update docs > >

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

2024-03-22 Thread Neil Armstrong
Hi Viacheslav, On 19/03/2024 15:42, 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 drop redundant files from

[PATCH v2] board: amlogic: fix buffler overflow in seria, mac & usid read

2024-03-20 Thread Neil Armstrong
While meson_sm_read_efuse() doesn't overflow, the string is not zero terminated and env_set*() will buffer overflow and add random characters to environment. Signed-off-by: Neil Armstrong --- Changes in v2: - Also fix mac_addr - Link to v1: https://lore.kernel.org/r/20240319-u-boot-fix-p200

Re: [PATCH] board: amlogic: fix buffler overflow in serial & usid read

2024-03-20 Thread Neil Armstrong
On 20/03/2024 06:28, Dan Carpenter wrote: On Tue, Mar 19, 2024 at 03:53:24PM +0100, Neil Armstrong wrote: While meson_sm_read_efuse() doesn't overflow, the string is not zero terminated and env_set() will buffer overflow and add random characters to environment. In the Linux kernel we would

[PATCH] board: amlogic: fix buffler overflow in serial & usid read

2024-03-19 Thread Neil Armstrong
While meson_sm_read_efuse() doesn't overflow, the string is not zero terminated and env_set() will buffer overflow and add random characters to environment. Signed-off-by: Neil Armstrong --- board/amlogic/jethub-j80/jethub-j80.c | 6 -- board/amlogic/p200/p200.c | 3 ++- board

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

2024-03-19 Thread Neil Armstrong
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. Cc: Sumit Garg Signed-off-by: Neil Armstrong --- arch/arm/mach-meson/Kconfig

[PATCH 1/4] dts: meson: Switch GXL, GXM & AXG to using upstream DT

2024-03-19 Thread Neil Armstrong
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. Cc: Sumit Garg Signed-off-by: Neil Armstrong --- arch/arm/mach-meson/Kconfig

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

2024-03-19 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/1219273552 Signed-off-by: Neil Armstrong --- Neil Armstrong (4): dts: meson: Switch GXL, GXM &

Re: [PATCH 3/3] configs: amlogic: set board family to avoid random MAC on WeTek Hub/Play2

2024-03-18 Thread neil . armstrong
Hi, On 16/03/2024 14:54, Christian Hewitt wrote: Add CONFIG_SYS_BOARD="p200" to the Hub/Play2 board configs to ensure the factory programmed MAC is correctly read from efuse. Signed-off-by: Christian Hewitt --- configs/wetek-hub_defconfig | 1 + configs/wetek-play2_defconfig | 1 + 2

Re: [PATCH 2/3] ARM: board: meson: update efuse MAC reading code

2024-03-18 Thread neil . armstrong
Hi, On 16/03/2024 14:54, Christian Hewitt wrote: Current code used for reading the factory programmed MAC from efuse on p200 boards does not appear to work resulting in a random MAC being generated. Update the p200 board data reusing the function from the VIM3 source. I'm pretty sure this code

Re: [PATCH 1/3] ARM: dts: fix Ethernet on WeTek Hub/Play2

2024-03-18 Thread neil . armstrong
si @@ -0,0 +1,13 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2019 BayLibre, SAS. + * Author: Neil Armstrong + */ + +#include "meson-gx-u-boot.dtsi" + + { + snps,reset-gpio = < GPIOZ_14 0>; + snps,reset-delays-us = <0 1 100>; +

Re: [PATCH v2 14/14] qcom_defconfig: enable USB

2024-03-15 Thread Neil Armstrong
On 15/03/2024 16:10, Caleb Connolly wrote: Enable support for the DWC3 USB controller and required dependencies for Qualcomm boards, specifically the DB845c: * IOMMU / SMMU * USB high-speed PHYs * Mass storage and ACM gadgets I don't see configs for ACM ? Neil Signed-off-by: Caleb Connolly

Re: [PATCH v2 13/14] qcom_defconfig: enable livetree

2024-03-15 Thread Neil Armstrong
=y CONFIG_CMD_LOG=y +CONFIG_OF_LIVE=y +# CONFIG_NET is not set +# CONFIG_OFNODE_MULTI_TREE is not set CONFIG_BUTTON_QCOM_PMIC=y CONFIG_CLK=y CONFIG_CLK_QCOM_QCS404=y CONFIG_CLK_QCOM_SDM845=y Reviewed-by: Neil Armstrong

Re: [PATCH v2 09/14] serial: msm-geni: support livetree

2024-03-15 Thread Neil Armstrong
_VAL(DEBUG_UART_BASE) Reviewed-by: Neil Armstrong

Re: [PATCH v2 06/14] clk/qcom: sdm845: add gdscs

2024-03-15 Thread Neil Armstrong
, .num_clks = ARRAY_SIZE(sdm845_clks), + .power_domains = sdm845_gdscs, + .num_power_domains = ARRAY_SIZE(sdm845_gdscs), .enable = sdm845_clk_enable, .set_rate = sdm845_clk_set_rate, }; Reviewed-by: Neil Armstrong

Re: [PATCH v2 01/14] mailmap: update Bhupesh's email address

2024-03-15 Thread Neil Armstrong
@@ -29,8 +29,9 @@ Ashok Reddy Soma Atish Patra Bharat Kumar Gogada Bharat Kumar Gogada Bhargava Sreekantappa Gayathri +Bhupesh Sharma Bin Meng Boris Brezillon Boris Brezillon Christian Kohn Reviewed-by: Neil Armstrong

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

2024-03-15 Thread Neil Armstrong
drivers/usb/gadget/storage_common.c | 12 +++-- include/usb_mass_storage.h | 1 - 8 files changed, 156 insertions(+), 55 deletions(-) --- base-commit: e03a71b2cefd86ba58df166d4ea820a215ebb655 // Caleb (they/them) LGTM Reviewed-by: Neil Armstrong

Re: [PATCH RFC 00/26] Drop DT upstream compatible dt-binding headers

2024-03-11 Thread Neil Armstrong
arduous (as is the case with Qualcomm). To: Tom Rini To: Neil Armstrong To: Sumit Garg To: Patrice Chotard To: Patrick Delaunay To: Jagan Teki To: Simon Glass To: Philipp Tomsich To: Kever Yang To: Lukasz Majewski To: Sean Anderson To: Sam Protsenko To: Matthias Brugger To: Peter

Re: [PATCH RFC 07/26] amlogic: drop dt-binding headers

2024-03-11 Thread Neil Armstrong
/meson-aiu.h | 18 --- include/dt-bindings/sound/meson-g12a-toacodec.h| 10 -- include/dt-bindings/sound/meson-g12a-tohdmitx.h| 13 -- 31 files changed, 2212 deletions(-) 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:

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

[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.de/u-boot

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

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

  1   2   3   4   5   6   7   8   9   10   >