[PATCH RESEND 2/2] nvme: Update nvme_scan_namespace to keep trying on busy

2023-12-01 Thread Moritz Fischer
A busy controller shouldn't be game-over for all controllers, so keep trying on hitting -EBUSY. This change brings the actual behavior of the routine in line with what the descriptions says. Fixes: 982388eaa991 ("nvme: Add NVM Express driver support") Signed-off-by: Moritz Fischer --- drivers/n

[PATCH RESEND 1/2] nvme: Fix error code and log to indicate busy

2023-12-01 Thread Moritz Fischer
Return -EBUSY if controller is found busy rather than -ENOMEM and update the error message accordingly. Fixes: 982388eaa991 ("nvme: Add NVM Express driver support") Signed-off-by: Moritz Fischer --- drivers/nvme/nvme.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drive

[PULL] u-boot-usb/master

2023-12-01 Thread Marek Vasut
The following changes since commit 43f2873fa98b1da6eb56d756315c7bd7db63db27: MAINTAINERS: Step up as co-maintainer of Tegra SOC platform (2023-11-28 11:23:02 -0500) are available in the Git repository at: git://source.denx.de/u-boot-usb.git master for you to fetch changes up to 493e0e2577b

Re: [PATCH v2 0/3] rpi5: initial support

2023-12-01 Thread Simon Glass
Hi Dmitry, On Fri, 1 Dec 2023 at 20:04, Dmitry Malkin wrote: > > Hi Peter, > > > I've given these a cursory look over, I have a system to test and will > > give them a whirl in the next few days, I was planning to start > > playing over the weekend so you've provided a great start :) > > Did you

[PATCH v9 2/2] arm64: boot: Support Flat Image Tree

2023-12-01 Thread Simon Glass
Add a script which produces a Flat Image Tree (FIT), a single file containing the built kernel and associated devicetree files. Compression defaults to gzip which gives a good balance of size and performance. The files compress from about 86MB to 24MB using this approach. The FIT can be used by b

[PATCH v9 1/2] arm64: Add BOOT_TARGETS variable

2023-12-01 Thread Simon Glass
Add a new variable containing a list of possible targets. Mark them as phony. This matches the approach taken for arch/arm Signed-off-by: Simon Glass --- (no changes since v7) Changes in v7: - Drop the kbuild tag Changes in v6: - Drop the unwanted .gz suffix arch/arm64/Makefile | 6 +- 1

[PATCH v9 0/2] arm64: Add a build target for Flat Image Tree

2023-12-01 Thread Simon Glass
Flat Image Tree (FIT) is a widely used file format for packaging a kernel and associated devicetree files[1]. It is not specific to any one bootloader, as it is supported by U-Boot, coreboot, Linuxboot, Tianocore and Barebox. This series adds support for building a FIT as part of the kernel build.

Re: [PATCH v2 0/3] rpi5: initial support

2023-12-01 Thread Dmitry Malkin
Hi Peter, > I've given these a cursory look over, I have a system to test and will > give them a whirl in the next few days, I was planning to start > playing over the weekend so you've provided a great start :) Did you have any chance to test my patches? > > Hi guys, > > First of all, thank y

Re: [PATCH] env: mmc: fix environment on hw boot partition 2

2023-12-01 Thread Javier Viguera
Hi all, Please disregard this patch. I'm not sure if CONFIG_VAL is the correct macro when there are no SPL_,TPL_ versions for SYS_MMC_ENV_PART option. So back on square one. How do we solve this to support SYS_MMC_ENV_PART = 2? We have a configuration where we want the environment on "mmcblk0b

Re: [PATCH] ARM: imx: Enable CAAM on DH i.MX8M Plus DHCOM

2023-12-01 Thread Fabio Estevam
On Fri, Dec 1, 2023 at 10:58 PM Marek Vasut wrote: > > Enable CAAM in U-Boot to make crypto available early in the boot process. > > This has a side-effect that in case an older kernel version contains a > broken CAAM initialization timeout code, initialization in bootloader > will help that old k

Re: [PATCH] ARM: imx: Enable CAAM on Data Modul i.MX8M Mini/Plus eDM SBC

2023-12-01 Thread Fabio Estevam
On Fri, Dec 1, 2023 at 10:56 PM Marek Vasut wrote: > > Enable CAAM in U-Boot to make crypto available early in the boot process. > > This has a side-effect that in case an older kernel version contains a > broken CAAM initialization timeout code, initialization in bootloader > will help that old k

Re: [PATCH] ddr: imx: Add 3600 MTps rate support

2023-12-01 Thread Fabio Estevam
On Fri, Dec 1, 2023 at 10:49 PM Marek Vasut wrote: > > Add PLL settings for DDR 3600 MTps . This is very similar to 3200 MTps > PLL setting, except the divider is not 9 but 8 . > > Signed-off-by: Marek Vasut Reviewed-by: Fabio Estevam

Re: [PATCH] ddr: imx: Handle 3734 in addition to 3733 and 3732 MTps rates

2023-12-01 Thread Fabio Estevam
On Fri, Dec 1, 2023 at 10:48 PM Marek Vasut wrote: > > The new MX8M DDR tool 3.31 now generates a programming file which uses > data rate 3734 instead of 3733 or 3732 . Handle another rounding option . > > Signed-off-by: Marek Vasut Reviewed-by: Fabio Estevam

[PATCH] ARM: imx: Enable CAAM on DH i.MX8M Plus DHCOM

2023-12-01 Thread Marek Vasut
Enable CAAM in U-Boot to make crypto available early in the boot process. This has a side-effect that in case an older kernel version contains a broken CAAM initialization timeout code, initialization in bootloader will help that old kernel version function correctly. Signed-off-by: Marek Vasut

[PATCH] ARM: imx: Enable CAAM on Data Modul i.MX8M Mini/Plus eDM SBC

2023-12-01 Thread Marek Vasut
Enable CAAM in U-Boot to make crypto available early in the boot process. This has a side-effect that in case an older kernel version contains a broken CAAM initialization timeout code, initialization in bootloader will help that old kernel version function correctly. Signed-off-by: Marek Vasut

[PATCH] ddr: imx: Add 3600 MTps rate support

2023-12-01 Thread Marek Vasut
Add PLL settings for DDR 3600 MTps . This is very similar to 3200 MTps PLL setting, except the divider is not 9 but 8 . Signed-off-by: Marek Vasut --- Cc: "NXP i.MX U-Boot Team" Cc: Fabio Estevam Cc: Jacky Bai Cc: Peng Fan Cc: Ramon Fried Cc: Rasmus Villemoes Cc: Stefano Babic Cc: Ye Li C

[PATCH] ddr: imx: Handle 3734 in addition to 3733 and 3732 MTps rates

2023-12-01 Thread Marek Vasut
The new MX8M DDR tool 3.31 now generates a programming file which uses data rate 3734 instead of 3733 or 3732 . Handle another rounding option . Signed-off-by: Marek Vasut --- Cc: "NXP i.MX U-Boot Team" Cc: Fabio Estevam Cc: Jacky Bai Cc: Peng Fan Cc: Ramon Fried Cc: Rasmus Villemoes Cc: St

Re: [PATCH v2] arm: apple: t602x: Add missing MMIO regions to memmap

2023-12-01 Thread Neal Gompa
On Fri, Dec 1, 2023 at 2:12 AM Janne Grunau via B4 Relay wrote: > > From: Janne Grunau > > The memory maps for Apple's M2 Pro/Max/Ultra left MMIO space out which > was not used by any driver at the time. The display out exposed as > simple-framebuffer use a power-domain controlled by a device in

[PATCH 1/2] arm: mach-k3: j72xx: add new 'virtual' mux

2023-12-01 Thread Reid Tonking
From: Bryan Brattlof In order for the Cortex-A72s to operate at different frequencies other than the default 2GHz, add in a new 'virtual' mux (a mux that does not physically exist in the clock tree) that can be selected. CC: Vishal Mahaveer Signed-off-by: Bryan Brattlof Signed-off-by: Apurva N

[PATCH 0/2] Fix J7200 kernel boot when using upstream u-boot

2023-12-01 Thread Reid Tonking
Since the 09.01.00.002 release of ti-linux-firmware [0] upstream uboot has led to the kernel hanging during boot [1] for the TI J7200 S0C. The issue was found to be a few patches that had be added to ti-u-boot, but not yet upstreamed. This series adds the missing two patches to allow upstream u-boo

[PATCH 2/2] arm: dts: k3-j7200-r5-common-proc-board: Set parent clock for clock ID 323

2023-12-01 Thread Reid Tonking
From: Apurva Nandan This virtual clock mux configuration enables the use of dynamic frequency scaling on A72 clock ID 202 by setting up the required register. Signed-off-by: Apurva Nandan Signed-off-by: Reid Tonking --- arch/arm/dts/k3-j7200-r5-common-proc-board.dts | 3 ++- 1 file changed, 2

Re: [PATCH v8 2/2] arm64: boot: Support Flat Image Tree

2023-12-01 Thread Masahiro Yamada
On Sat, Dec 2, 2023 at 3:09 AM Simon Glass wrote: > > Hi Masahiro, > > On Fri, 1 Dec 2023 at 10:30, Masahiro Yamada wrote: > > > > On Fri, Dec 1, 2023 at 5:34 AM Simon Glass wrote: > > > > > > Add a script which produces a Flat Image Tree (FIT), a single file > > > containing the built kernel an

[PATCH 1/1] correct documentation for SPI flashing

2023-12-01 Thread Stephen Graf
The mtd_debug write does not work in this context. The flashcp command does work, provides both the erase and write functions and with the verbose option gives good feedback. Signed-off-by: Stephen Graf --- doc/board/allwinner/sunxi.rst | 3 +-- 1 file changed, 1 insertions(+), 2 deletions(-)

Re: [PATCH 11/11] lib: Remove inclusion from these files

2023-12-01 Thread Simon Glass
On Wed, 22 Nov 2023 at 06:13, Tom Rini wrote: > > After some header file cleanups to add missing include files, remove > common.h from all files in the lib directory. This primarily means just > dropping the line but in a few cases we need to add in other header > files now. > > Signed-off-by: Tom

Re: [PATCH v3 3/3] defconfig: rockpro64: Enable SF EFI var store

2023-12-01 Thread Simon Glass
Hi Shantur, On Sun, 26 Nov 2023 at 15:09, Shantur Rathore wrote: > > RockPro64 uses SPI Flash for storing env, also use it store > EFI variables. > > Signed-off-by: Shantur Rathore > --- > > configs/rockpro64-rk3399_defconfig | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/configs/ro

Re: efi: Set Variable Runtime implementation

2023-12-01 Thread Simon Glass
Hi Shantur, On Mon, 27 Nov 2023 at 10:27, Shantur Rathore wrote: > > + Simon as he seems to have done a lot of work in the driver model. > > On Mon, Nov 27, 2023 at 10:12 AM Shantur Rathore wrote: > > > > Hi Ilias, > > > > On Mon, Nov 27, 2023 at 7:16 AM Ilias Apalodimas > > wrote: > > > > > >

Re: [PATCH 1/8] drivers: rollback: Add rollback devices to driver model

2023-12-01 Thread Simon Glass
Hi, On Tue, 12 Sept 2023 at 03:47, wrote: > > From: Stephen Carlson > > Rollback devices currently implement operations to store an OS > anti-rollback monotonic counter. Existing devices such as the Trusted > Platform Module (TPM) already support this operation, but this uclass > provides abstra

Re: [PATCH 2/8] drivers: rollback: Add TPM2 implementation of rollback devices

2023-12-01 Thread Simon Glass
Hi, On Fri, 1 Dec 2023 at 07:52, Ilias Apalodimas wrote: > > Hi Sean, > > On Tue, Sep 12, 2023 at 02:47:25AM -0700, seanedm...@linux.microsoft.com > wrote: > > From: Stephen Carlson > > > > This implementation of the rollback uclass driver allows existing TPM2 > > devices declared in the device

Re: [PATCH 1/4] tools: mkeficapsule: Add support for parsing capsule params from config file

2023-12-01 Thread Simon Glass
Hi Sughosh, On Thu, 30 Nov 2023 at 23:39, Sughosh Ganu wrote: > > hi Simon, > > On Thu, 30 Nov 2023 at 08:16, Simon Glass wrote: > > > > Hi Sughosh, > > > > On Wed, 22 Nov 2023 at 00:40, Sughosh Ganu wrote: > > > > > > hi Ilias, > > > > > > On Wed, 22 Nov 2023 at 13:06, Ilias Apalodimas > > >

Re: [PATCH v8 2/2] arm64: boot: Support Flat Image Tree

2023-12-01 Thread Simon Glass
Hi Masahiro, On Fri, 1 Dec 2023 at 10:30, Masahiro Yamada wrote: > > On Fri, Dec 1, 2023 at 5:34 AM Simon Glass wrote: > > > > Add a script which produces a Flat Image Tree (FIT), a single file > > containing the built kernel and associated devicetree files. > > Compression defaults to gzip whic

Re: [PATCH v5 04/17] arm: mach-k3: Add basic support for J784S4 SoC definition

2023-12-01 Thread Neha Malcom Francis
Hi Apurva On 01-Dec-23 10:38 PM, Francesco Dolcini wrote: On Fri, Dec 01, 2023 at 10:37:55AM -0600, Bryan Brattlof wrote: On November 30, 2023 thus sayeth Apurva Nandan: Add J784S4 initialization files for initial SPL boot. Signed-off-by: Hari Nagalla [ add firewall configurations and change

Re: [PATCH v8 2/2] arm64: boot: Support Flat Image Tree

2023-12-01 Thread Masahiro Yamada
On Fri, Dec 1, 2023 at 5:34 AM Simon Glass wrote: > > Add a script which produces a Flat Image Tree (FIT), a single file > containing the built kernel and associated devicetree files. > Compression defaults to gzip which gives a good balance of size and > performance. > > The files compress from a

Re: [PATCH v5 04/17] arm: mach-k3: Add basic support for J784S4 SoC definition

2023-12-01 Thread Francesco Dolcini
On Fri, Dec 01, 2023 at 10:37:55AM -0600, Bryan Brattlof wrote: > On November 30, 2023 thus sayeth Apurva Nandan: > > Add J784S4 initialization files for initial SPL boot. > > > > Signed-off-by: Hari Nagalla > > [ add firewall configurations and change the R5 MCU scratchpad ] > > Signed-off-by: M

Re: [PATCH v5 04/17] arm: mach-k3: Add basic support for J784S4 SoC definition

2023-12-01 Thread Bryan Brattlof
Hi Apurva! On November 30, 2023 thus sayeth Apurva Nandan: > Add J784S4 initialization files for initial SPL boot. > > Signed-off-by: Hari Nagalla > [ add firewall configurations and change the R5 MCU scratchpad ] > Signed-off-by: Manorit Chawdhry > Signed-off-by: Dasnavis Sabiya > Signed-off-

Re: [PATCH v5 03/17] arm: dts: Add bootph-all for memory node

2023-12-01 Thread Bryan Brattlof
Hi Apurva! On November 30, 2023 thus sayeth Apurva Nandan: > memory node is used by fdtdec_setup_mem_size_base() and > fdtdec_setup_memory_banksize() during dram_init(), so use > bootph-all to enable for all stages. > > Signed-off-by: Apurva Nandan > --- > arch/arm/dts/k3-am69-sk.dts| 1 + >

Re: [PATCH 2/8] drivers: rollback: Add TPM2 implementation of rollback devices

2023-12-01 Thread Ilias Apalodimas
Hi Sean, On Tue, Sep 12, 2023 at 02:47:25AM -0700, seanedm...@linux.microsoft.com wrote: > From: Stephen Carlson > > This implementation of the rollback uclass driver allows existing TPM2 > devices declared in the device tree to be referenced for storing the OS > anti-rollback counter, using the

Re: [PATCH 1/8] drivers: rollback: Add rollback devices to driver model

2023-12-01 Thread Ilias Apalodimas
Hi Sean, Apologies for the very late reply. Simon, can you have a look since this is mostly the DM part? On Tue, Sep 12, 2023 at 02:47:24AM -0700, seanedm...@linux.microsoft.com wrote: > From: Stephen Carlson > > Rollback devices currently implement operations to store an OS > anti-rollback mo

Re: [PATCH v2 2/2] doc: board: phytec: Add phyCORE-AM62x

2023-12-01 Thread Wadim Egorov
Hi Dhruva, Am 01.12.23 um 11:10 schrieb Dhruva Gole: Hi, On Nov 30, 2023 at 12:56:07 +0100, Wadim Egorov wrote: Add documentation for PHYTEC phyCORE-AM62x SoM. Signed-off-by: Wadim Egorov --- v2: Rebased on top of -next Please CC Tom Rini on the series. --- doc/board/phytec/index.rst

Re: [PATCH v5 0/9] Qualcomm PMIC fixes

2023-12-01 Thread Sumit Garg
Hi Caleb, On Fri, 1 Dec 2023 at 01:52, Caleb Connolly wrote: > > This series addresses some long-standing issues with the SPMI arb > driver, the PMIC, and the PMIC GPIO. It fixes compatibility with > upstream Linux devicetrees, and simplifies pwrkey/resin support by > rewriting the pon driver to

Re: [PATCH v5 6/9] dts: qcom: adjust pmic gpio to use upstream bindings

2023-12-01 Thread Sumit Garg
On Fri, 1 Dec 2023 at 01:52, Caleb Connolly wrote: > > Use the upstream gpio-ranges property instead of gpio-count, and drop > the bank-name property for Qualcomm boards. > > Signed-off-by: Caleb Connolly > --- > arch/arm/dts/dragonboard410c.dts | 3 +-- > arch/arm/dts/dragonboard820c.dts | 3 +-

[PATCH] env: mmc: fix environment on hw boot partition 2

2023-12-01 Thread Javier Viguera
SYS_MMC_ENV_PART is an integer option. If it is set to 2 to use the second hardware boot partition, the IS_ENABLED check fails as it expects a boolean, and then it does not get the correct hwpart. Signed-off-by: Javier Viguera --- env/mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH v2] arm: apple: t602x: Add missing MMIO regions to memmap

2023-12-01 Thread Eric Curtin
On Fri, 1 Dec 2023 at 07:20, Janne Grunau via B4 Relay wrote: > > From: Janne Grunau > > The memory maps for Apple's M2 Pro/Max/Ultra left MMIO space out which > was not used by any driver at the time. The display out exposed as > simple-framebuffer use a power-domain controlled by a device in an

Re: [PATCH v2] arm: apple: t602x: Add missing MMIO regions to memmap

2023-12-01 Thread Mark Kettenis
> From: Janne Grunau via B4 Relay > Date: Fri, 01 Dec 2023 08:12:33 +0100 > > From: Janne Grunau > > The memory maps for Apple's M2 Pro/Max/Ultra left MMIO space out which > was not used by any driver at the time. The display out exposed as > simple-framebuffer use a power-domain controlled by

Re: [PATCH v2 1/2] board: phytec: am62x: Add PHYTEC phyCORE-AM62x SoM

2023-12-01 Thread Dhruva Gole
Hi, On Nov 30, 2023 at 12:56:06 +0100, Wadim Egorov wrote: > Add basic support for PHYTEC phyCORE-AM62x SoM. > > Supported features: > - 2GB DDR4 RAM > - eMMC Flash > - OSPI NOR Flash > - external uSD > - Ethernet > - debug UART > > Product page SoM: https://www.phytec.com/product/ph

Re: [PATCH v1] cmd: mtd: OTP access support

2023-12-01 Thread Arseniy Krasnov
On 01.12.2023 11:28, Michael Walle wrote: > Hi, > +static int do_mtd_otp_write(struct cmd_tbl *cmdtp, int flag, int argc, +    char *const argv[]) +{ >>> .. >>> +    printf("Caution! OTP data bits can't be erased! Continue (y/n)?\n"); >>> >>> Please note, that wi

Re: [PATCH] watchdog: Correct watchdog timeout print message

2023-12-01 Thread Stefan Roese
On 12/1/23 08:37, Stefan Roese wrote: On 11/27/23 02:05, Chanho Park wrote: The wdt_start function takes timeout_ms as a parameter and starts the watchdog with this value. However, when you output the message, it shows the default timeout value for the watchdog device. So this patch fixes that p

[PATCH 2/2] doc: board: ti: am62x_sk: Remove SW_PRNG Flag for OPTEE

2023-12-01 Thread Dhruva Gole
This SoC does not require the CFG_WITH_SOFTWARE_PRNG option to be set for base boot support, hence remove it from the U-Boot documentation. Signed-off-by: Dhruva Gole --- doc/board/ti/am62x_sk.rst | 1 - 1 file changed, 1 deletion(-) diff --git a/doc/board/ti/am62x_sk.rst b/doc/board/ti/am62x_s

[PATCH 1/2] doc: board: beagle: am62x_beagleplay: Delete SW_PRNG flag for OPTEE

2023-12-01 Thread Dhruva Gole
Delete the flag CFG_WITH_SOFTWARE_PRNG as it's not necessary/ boot requirement for this SoC Signed-off-by: Dhruva Gole --- doc/board/beagle/am62x_beagleplay.rst | 1 - 1 file changed, 1 deletion(-) diff --git a/doc/board/beagle/am62x_beagleplay.rst b/doc/board/beagle/am62x_beagleplay.rst index

[PATCH 0/2] docs: AM62x: Remove SW_PRNG Flag for OPTEE

2023-12-01 Thread Dhruva Gole
The CFG_WITH_SOFTWARE_PRNG option was needed once when there were some issues with system crashes/ hangs after a suspend-resume cycle. However this seems to no longer be the case with newer firmwares, and this config is not needed for basic boot support of the SoC either, hence remove it from the d

Re: [PATCH v2 2/2] doc: board: phytec: Add phyCORE-AM62x

2023-12-01 Thread Dhruva Gole
Hi, On Nov 30, 2023 at 12:56:07 +0100, Wadim Egorov wrote: > Add documentation for PHYTEC phyCORE-AM62x SoM. > > Signed-off-by: Wadim Egorov > --- > v2: Rebased on top of -next > Please CC Tom Rini on the series. > --- > doc/board/phytec/index.rst | 1 + > doc/board/phytec/phycore

Re: [PATCH 2/2] tee: optee: don't enumerate services if there ain't any

2023-12-01 Thread Patrice CHOTARD
On 11/29/23 13:37, Etienne Carriere wrote: > Change optee driver service enumeration to not enumerate (and > allocate a zero sized shared memory buffer) when OP-TEE > reports that there is no service to enumerate. > > This change fixes an existing issue that occurs when the such zero > sized sh

Re: [PATCH 1/2] tee: optee: don't fail on services enumeration failure

2023-12-01 Thread Patrice CHOTARD
On 11/29/23 13:37, Etienne Carriere wrote: > Change optee probe function to only warn when service enumeration > sequence fails instead of reporting an optee driver probe failure. > Indeed U-Boot can still use OP-TEE even if some OP-TEE services are > not discovered. > > Fixes: 94ccfb78a4d6 ("d

Re: [PATCH v5 6/9] dts: qcom: adjust pmic gpio to use upstream bindings

2023-12-01 Thread Neil Armstrong
On 30/11/2023 21:22, Caleb Connolly wrote: Use the upstream gpio-ranges property instead of gpio-count, and drop the bank-name property for Qualcomm boards. Signed-off-by: Caleb Connolly --- arch/arm/dts/dragonboard410c.dts | 3 +-- arch/arm/dts/dragonboard820c.dts | 3 +-- arch/arm/dts/qcs

Re: [PATCH v5 3/9] mach-snapdragon: switch to PMIC button driver

2023-12-01 Thread Neil Armstrong
On 30/11/2023 21:22, Caleb Connolly wrote: The PMIC button driver is a much better representation of the hardware here, adjust the boards to use upstream DT and the PMIC button driver instead of exposing the buttons as GPIOs and relying on the GPIO-button driver. Signed-off-by: Caleb Connolly -

Re: [PATCH v5 1/9] gpio: qcom_pmic: fix silent dev_read_addr downcast

2023-12-01 Thread Neil Armstrong
On 30/11/2023 21:22, Caleb Connolly wrote: priv->pid is uint32_t, but dev_read_addr() returns a uint64_t on arm64, with the upper bits being used for error codes. Do error checking before downcasting to u32 to prevent errors being silently ignored. Reviewed-by: Sumit Garg Signed-off-by: Caleb C

Re: [PATCH v5 9/9] pmic: qcom: dont use dev_read_addr to get USID

2023-12-01 Thread Neil Armstrong
On 30/11/2023 21:22, Caleb Connolly wrote: Linux DTs stuff a value indicating if the USID is a USID or a GSID in the reg property, the Linux SPMI driver then reads the two address cells separately. U-boot's dev_read_addr() doesn't know how to handle this, so use ofnode_read_u32_index() to get jus

Re: [PATCH v5 8/9] spmi: msm: fix register range names

2023-12-01 Thread Neil Armstrong
On 30/11/2023 21:22, Caleb Connolly wrote: The core and chnl register ranges were swapped on SDM845. Fix it, and fetch the register ranges by name instead of by index. Drop the cosmetic "version" variable and clean up the debug logging. Signed-off-by: Caleb Connolly --- arch/arm/dts/qcs404-e

Re: [PATCH v5 7/9] gpio: qcom_pmic: drop gpio-count property

2023-12-01 Thread Neil Armstrong
On 30/11/2023 21:22, Caleb Connolly wrote: This property is not part of the dt bindings and all boards use the new gpio-ranges property instead. Drop support for this. Signed-off-by: Caleb Connolly --- doc/device-tree-bindings/gpio/pm8916_gpio.txt | 48 --- drivers/gp

Re: [PATCH v5 5/9] gpio: qcom_pmic: support upstream DT

2023-12-01 Thread Neil Armstrong
On 30/11/2023 21:22, Caleb Connolly wrote: Upstream uses the gpio-ranges property to define the number of GPIOs, support for parsing this when gpio-count is unspecified Additionally, drop the bank-name property as it isn't used in upstream, and we can just hardcode the bank name instead. Signed

Re: [PATCH v5 4/9] gpio: qcom_pmic: drop pon GPIO driver

2023-12-01 Thread Neil Armstrong
On 30/11/2023 21:22, Caleb Connolly wrote: Remove the (now unused) GPIO driver for the power and resin buttons on the PMIC. Signed-off-by: Caleb Connolly --- drivers/gpio/Kconfig | 3 +- drivers/gpio/qcom_pmic_gpio.c | 104 -- 2 files chang

Re: [PATCH v5 2/9] button: qcom-pmic: introduce Qualcomm PMIC button driver

2023-12-01 Thread Neil Armstrong
On 30/11/2023 21:22, Caleb Connolly wrote: Qualcomm PMICs include a "pon" function which handles two buttons, the power button and "resin" button (usually volume down). Introduce a new driver following upstream Linux DT to enable these and map them to Enter and Down respectively to enable use in

Re: [PATCH v5 09/17] board: ti: j784s4: Add board support for J784S4 EVM

2023-12-01 Thread Marcel Ziswiler
Hi Apurva Thanks for the update, however, it does not seem to compile. See below... On Thu, 2023-11-30 at 17:25 +0530, Apurva Nandan wrote: > Add board files for J784S4 EVM. > > Signed-off-by: Hari Nagalla > [ add env and board specific yaml files for binman ] > Signed-off-by: Neha Malcom Fran

Re: [PATCH v1] cmd: mtd: OTP access support

2023-12-01 Thread Michael Walle
Hi, +static int do_mtd_otp_write(struct cmd_tbl *cmdtp, int flag, int argc, +    char *const argv[]) +{ .. +    printf("Caution! OTP data bits can't be erased! Continue (y/n)?\n"); Please note, that with current SPI-NOR flashes this is not true and there is usually some kind of

Re: [PATCH] ARM: zynq: Remove deprecated device_type property

2023-12-01 Thread Michal Simek
On 11/24/23 14:16, Michal Simek wrote: Based on DT specification device_type property is deprecated and should be used only for cpu and memory nodes. That's why remove other usage. In this case ethernet-phy. Signed-off-by: Michal Simek --- arch/arm/dts/zynq-cc108.dts | 1 - arch/ar