Re: [PATCH v1 0/6] Enable fastboot support for IPQ9574 based boards

2025-07-18 Thread Varadarajan Narayanan
On Thu, Jul 17, 2025 at 03:01:04PM +0200, Casey Connolly wrote: > > > On 16/07/2025 06:57, Varadarajan Narayanan wrote: > > On Tue, Jul 15, 2025 at 02:30:09PM +0200, Casey Connolly wrote: > >> Hi Varadarajan, > >> > >> On 7/15/25 12:15, Varadarajan Nara

Re: [PATCH v1 0/6] Enable fastboot support for IPQ9574 based boards

2025-07-15 Thread Varadarajan Narayanan
On Tue, Jul 15, 2025 at 02:30:09PM +0200, Casey Connolly wrote: > Hi Varadarajan, > > On 7/15/25 12:15, Varadarajan Narayanan wrote: > > This series enables MMC based fastboot flashing for IPQ9574 boards. > > For this the following are added/enabled > > * USB2 &

[PATCH v1 6/6] doc: board/qualcomm: Update RDP flashing instructions

2025-07-15 Thread Varadarajan Narayanan
Update the flashing instructions to include fastboot. Signed-off-by: Varadarajan Narayanan --- doc/board/qualcomm/rdp.rst | 14 ++ 1 file changed, 14 insertions(+) diff --git a/doc/board/qualcomm/rdp.rst b/doc/board/qualcomm/rdp.rst index 99cf8eba57c..97a64e4677c 100644 --- a/doc

[PATCH v1 3/6] phy: qcom: Add QMP USB PHY driver

2025-07-15 Thread Varadarajan Narayanan
Port Qualcomm QMP USB PHY driver from Linux. This PHY is available in many Qcom SoCs. Enabled and tested the driver on IPQ9574. Signed-off-by: Varadarajan Narayanan --- drivers/phy/qcom/Kconfig |8 + drivers/phy/qcom/Makefile |1 + drivers/phy

[PATCH v1 5/6] dts: ipq9574-rdp433-u-boot: Enable USB device mode and MMC

2025-07-15 Thread Varadarajan Narayanan
Enable MMC and USB device mode by default to be able to use fastboot for flashing images to IPQ9574 based boards. Signed-off-by: Varadarajan Narayanan --- arch/arm/dts/ipq9574-rdp433-u-boot.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/dts/ipq9574-rdp433-u-boot.dtsi b

[PATCH v1 4/6] configs: ipq9574: Enable fastboot support

2025-07-15 Thread Varadarajan Narayanan
Enable relevant configs like USB PHY, gadget, fastboot, fastboot MMC support etc. to enable fastboot flashing of IPQ9574 based boards. Signed-off-by: Varadarajan Narayanan --- configs/qcom_ipq9574_mmc_defconfig | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-) diff

[PATCH v1 2/6] phy: Add IPQ9574 support to Qualcomm QUSB2 phy

2025-07-15 Thread Varadarajan Narayanan
Imported from Linux driver. Signed-off-by: Varadarajan Narayanan --- drivers/phy/qcom/phy-qcom-qusb2.c | 42 +++ 1 file changed, 42 insertions(+) diff --git a/drivers/phy/qcom/phy-qcom-qusb2.c b/drivers/phy/qcom/phy-qcom-qusb2.c index d98f6108e69..df82f2a99da

[PATCH v1 1/6] clk/qcom: Add USB related clocks for IPQ9574

2025-07-15 Thread Varadarajan Narayanan
Add the USB controller and phy related clocks. Signed-off-by: Varadarajan Narayanan --- drivers/clk/qcom/clock-ipq9574.c | 28 1 file changed, 28 insertions(+) diff --git a/drivers/clk/qcom/clock-ipq9574.c b/drivers/clk/qcom/clock-ipq9574.c index b0af4036059

[PATCH v1 0/6] Enable fastboot support for IPQ9574 based boards

2025-07-15 Thread Varadarajan Narayanan
This series enables MMC based fastboot flashing for IPQ9574 boards. For this the following are added/enabled * USB2 & USB3 phys support * USB Gadget support, Fastboot-MMC related configs * Flashing related documentation Varadarajan Narayanan (6): clk/qcom: Add

Re: [PATCH v3 0/3] Implement reset to EDL for qcs9100

2025-06-12 Thread Varadarajan Narayanan
[ . . . ] > > > ignoring that for a sec, I'm a bit worried still about how this behaves on > > > boards that don't implement this psci call, on sdm845 for example we just > > > hang. > > > > > > I think psci_system_reset2() should be adjusted to time out (though I > > > can't > > > imagine a psci

[PATCH v4 1/5] arm: psci: Add API to check for support of specific PSCI function

2025-06-12 Thread Varadarajan Narayanan
Add an API to check if a specific PSCI function is supported or not. This is based on the psci_features() function present in Linux kernel (drivers/firmware/psci/psci.c). Signed-off-by: Varadarajan Narayanan --- arch/arm/cpu/armv8/fwcall.c | 15 +++ arch/arm/include/asm/system.h

[PATCH v4 5/5] configs: qcs9100_defconfig: Enable SYSRESET

2025-06-12 Thread Varadarajan Narayanan
Move to SYSRESET for implementing the reset command. Reviewed-by: Sumit Garg Signed-off-by: Varadarajan Narayanan --- v2: Add 'Reviewed-by: Sumit Garg' --- configs/qcs9100_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/qcs9100_defconfig b/configs/qcs9100

[PATCH v4 4/5] cmd: boot: Add '-edl' option to reset command documentation

2025-06-12 Thread Varadarajan Narayanan
Add help text about '-edl' option to reset command definition and related documentation. Signed-off-by: Varadarajan Narayanan --- cmd/boot.c | 3 +++ doc/usage/cmd/reset.rst | 2 ++ 2 files changed, 5 insertions(+) diff --git a/cmd/boot.c b/cmd/boot.c index 2

[PATCH v4 3/5] sysreset: Implement PSCI based reset to EDL mode for QCOM SoCs

2025-06-12 Thread Varadarajan Narayanan
Implement request_arg() sysreset_op for QCOM SoCs that use PSCI to reset to EDL (Emergency Download) mode. Signed-off-by: Varadarajan Narayanan --- v4: * Check if ARM_PSCI_1_1_FN64_SYSTEM_RESET2 is supported before issuing it v3: * Move argument handling to a separate function and pass

[PATCH v4 2/5] drivers: sysreset: Add sysreset op that can take arguments

2025-06-12 Thread Varadarajan Narayanan
Add a 'request_arg' op to struct sysreset_ops to enable sysreset drivers to receive arguments given to the 'reset' command. Process the request_arg() op before the usual request() op. Signed-off-by: Varadarajan Narayanan --- v4: Fix compiler warnings -> s/const char

[PATCH v4 0/5] Implement reset to EDL for qcs9100

2025-06-12 Thread Varadarajan Narayanan
ot applicable anymore * Bind the new driver from psci driver Varadarajan Narayanan (5): arm: psci: Add API to check for support of specific PSCI function drivers: sysreset: Add sysreset op that can take arguments sysreset: Implement PSCI based reset to EDL mode for QCOM SoCs cmd:

Re: [PATCH v3 0/3] Implement reset to EDL for qcs9100

2025-06-12 Thread Varadarajan Narayanan
On Wed, Jun 11, 2025 at 01:55:32PM +0200, Casey Connolly wrote: > Hi Varadarajan, > > On 5/7/25 09:07, Varadarajan Narayanan wrote: > > Using the 'reboot edl' command in Linux, the platform can reboot to the > > Emergency Download mode. Implement the same for U-

Re: [PATCH v1] board: qualcomm: Add MAINTAINERS entries for Dragonwing platforms

2025-06-10 Thread Varadarajan Narayanan
250603192206.GK1382132@bill-the-cat/ > > > > Signed-off-by: Aswin Murugan > > Reviewed-by: Casey Connolly > > Balaji and Varadarajan can you send Acked-by tags for this? Acked-by: Varadarajan Narayanan > Kind regards, > > > --- > > board/qualcom

Re: [PATCH] cmd: Flush destination buffer only if it is available

2025-05-20 Thread Varadarajan Narayanan
On Mon, May 19, 2025 at 08:19:05AM -0600, Tom Rini wrote: > On Mon, May 19, 2025 at 12:19:34PM +0530, Varadarajan Narayanan wrote: > > > From: Vandhiadevan Karunamoorthy > > > > There are code paths in do_imgextract(), where 'dest' could be zero. > > He

Re: [PATCH] common/board_f: init malloc earlier

2025-05-19 Thread Varadarajan Narayanan
On Wed, Nov 27, 2024 at 06:08:25AM -0700, Simon Glass wrote: > Hi Caleb, > > On Tue, 26 Nov 2024 at 09:15, Caleb Connolly > wrote: > > > > Hi Simon, > > > > On 26/11/2024 16:38, Simon Glass wrote: > > > Hi Caleb, > > > > > > On Tue, 26 Nov 2024 at 05:22, Caleb Connolly > > > wrote: > > >> > > >

[PATCH] cmd: Flush destination buffer only if it is available

2025-05-18 Thread Varadarajan Narayanan
From: Vandhiadevan Karunamoorthy There are code paths in do_imgextract(), where 'dest' could be zero. Hence, avoid cache flush of 'dest' doesn't point to any data buffer. Signed-off-by: Vandhiadevan Karunamoorthy Signed-off-by: Varadarajan Narayanan --- cmd/ximg.c |

[PATCH v4 5/5] configs: qcs9100: Enable env in SCSI

2025-05-13 Thread Varadarajan Narayanan
Enable CONFIG_ENV_IS_IN_SCSI to store environment variables in SCSI. Set env variables partition UUID as seen in qcs9100 based boards. Signed-off-by: Varadarajan Narayanan --- v3: s/CONFIG_SCSI_ENV_PART/CONFIG_SCSI_ENV_PART_UUID --- configs/qcs9100_defconfig | 5 - 1 file changed, 4

[PATCH v4 4/5] doc: board/qualcomm: document iq9 building and flashing

2025-05-13 Thread Varadarajan Narayanan
The steps are similar to other boards. Minor difference in the way environment variables are stored. Signed-off-by: Varadarajan Narayanan --- doc/board/qualcomm/iq9.rst | 62 ++ 1 file changed, 62 insertions(+) create mode 100644 doc/board/qualcomm/iq9.rst

[PATCH v4 3/5] env: Add support for storing env variables in SCSI devices

2025-05-13 Thread Varadarajan Narayanan
Allow SCSI to be able to store environment variables. Signed-off-by: Varadarajan Narayanan --- v3: s/SCSI_ENV_PART/SCSI_ENV_PART_UUID --- env/Kconfig| 15 +- env/Makefile | 1 + env/env.c | 3 ++ env/scsi.c | 115

[PATCH v4 2/5] scsi: Implement get_blk() function

2025-05-13 Thread Varadarajan Narayanan
Add a function to obtain the block device for SCSI. Signed-off-by: Varadarajan Narayanan --- v3: * s/scsi_get_blk/scsi_get_blk_by_uuid * s/partition_name/uuid --- drivers/scsi/scsi-uclass.c | 30 ++ include/scsi.h | 10 ++ 2 files changed, 40

[PATCH v4 1/5] disk: part: implement generic function part_get_info_by_uuid()

2025-05-13 Thread Varadarajan Narayanan
Add function to search for a partition by UUID as partition names may not be unique. Signed-off-by: Varadarajan Narayanan --- v4: Use if (!CONFIG_IS_ENABLED(PARTITION_UUIDS)) instead of '#if' Not breaking from the for loop if '->get_info()' returns non-zero to ha

[PATCH v4 0/5] Enable env in SCSI

2025-05-13 Thread Varadarajan Narayanan
he platform v3: s/scsi_get_blk/scsi_get_blk_by_uuid Fix argument name in scsi_get_blk_by_uuid v2: Add part_get_info_by_uuid() similar to part_get_info_by_name() Use SCSI instead of UFS Use UUID for SCSI_ENV_PART instead of name Varadarajan Narayanan (5): disk: part: implement g

Re: [PATCH v3 1/4] disk: part: implement generic function part_get_info_by_uuid()

2025-05-07 Thread Varadarajan Narayanan
On Wed, May 07, 2025 at 01:47:40PM +0200, Casey Connolly wrote: > Hi Varadarajan, > > On 5/7/25 13:28, Varadarajan Narayanan wrote: > > Add function to search for a partition by UUID as partition > > names may not be unique. > > > > Signed-off-by: Varadarajan Nar

[PATCH v3 4/4] configs: qcs9100: Enable env in SCSI

2025-05-07 Thread Varadarajan Narayanan
Enable CONFIG_ENV_IS_IN_SCSI to store environment variables in SCSI. Set env variables partition UUID as seen in qcs9100 based boards. Signed-off-by: Varadarajan Narayanan --- v3: s/CONFIG_SCSI_ENV_PART/CONFIG_SCSI_ENV_PART_UUID --- configs/qcs9100_defconfig | 5 - 1 file changed, 4

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

2025-05-07 Thread Varadarajan Narayanan
Allow SCSI to be able to store environment variables. Signed-off-by: Varadarajan Narayanan --- v3: s/SCSI_ENV_PART/SCSI_ENV_PART_UUID --- env/Kconfig| 15 +- env/Makefile | 1 + env/env.c | 3 ++ env/scsi.c | 115

[PATCH v3 1/4] disk: part: implement generic function part_get_info_by_uuid()

2025-05-07 Thread Varadarajan Narayanan
Add function to search for a partition by UUID as partition names may not be unique. Signed-off-by: Varadarajan Narayanan --- disk/part.c| 37 + include/part.h | 20 2 files changed, 57 insertions(+) diff --git a/disk/part.c b/disk

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

2025-05-07 Thread Varadarajan Narayanan
Add a function to obtain the block device for SCSI. Signed-off-by: Varadarajan Narayanan --- v3: * s/scsi_get_blk/scsi_get_blk_by_uuid * s/partition_name/uuid --- drivers/scsi/scsi-uclass.c | 30 ++ include/scsi.h | 10 ++ 2 files changed, 40

[PATCH v3 0/4] Enable env in SCSI

2025-05-07 Thread Varadarajan Narayanan
() similar to part_get_info_by_name() Use SCSI instead of UFS Use UUID for SCSI_ENV_PART instead of name Varadarajan Narayanan (4): disk: part: implement generic function part_get_info_by_uuid() scsi: Implement get_blk() function env: Add support for storing env variables in SCSI devices

[PATCH v3 2/3] sysreset: Implement PSCI based reset to EDL mode for QCOM SoCs

2025-05-07 Thread Varadarajan Narayanan
Implement request_arg() sysreset_op for QCOM SoCs that use PSCI to reset to EDL (Emergency Download) mode. Signed-off-by: Varadarajan Narayanan --- v3: * Move argument handling to a separate function and pass the arguments to the actual handler to process * Drop Qcom specific

[PATCH v3 3/3] configs: qcs9100_defconfig: Enable SYSRESET

2025-05-07 Thread Varadarajan Narayanan
Move to SYSRESET for implementing the reset command. Reviewed-by: Sumit Garg Signed-off-by: Varadarajan Narayanan --- v2: Add 'Reviewed-by: Sumit Garg' --- configs/qcs9100_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/qcs9100_defconfig b/configs/qcs9100

[PATCH v3 1/3] drivers: sysreset: Add sysreset op that can take arguments

2025-05-07 Thread Varadarajan Narayanan
Add a 'request_arg' op to struct sysreset_ops to enable sysreset drivers to receive arguments given to the 'reset' command. Process the request_arg() op before the usual request() op. Signed-off-by: Varadarajan Narayanan --- drivers/sysreset/sy

[PATCH v3 0/3] Implement reset to EDL for qcs9100

2025-05-07 Thread Varadarajan Narayanan
alone in qcom-psci driver v2: * Rebased to recent sources * Dropped the first patch as it is not applicable anymore * Bind the new driver from psci driver Varadarajan Narayanan (3): drivers: sysreset: Add sysreset op that can take arguments sysreset: Implement PSCI based reset to ED

Re: [PATCH v1 0/3] Enable env in UFS

2025-05-06 Thread Varadarajan Narayanan
On Tue, Apr 01, 2025 at 04:37:40PM +0200, neil.armstr...@linaro.org wrote: > On 01/04/2025 16:10, Tom Rini wrote: > > On Tue, Apr 01, 2025 at 01:30:12PM +0530, Varadarajan Narayanan wrote: > > > > > The qcs9100 based Ride platforms have UFS as their primary storage. >

[PATCH v2 4/4] configs: qcs9100: Enable env in SCSI

2025-05-06 Thread Varadarajan Narayanan
Enable CONFIG_ENV_IS_IN_SCSI to store environment variables in SCSI. Set env variables partition UUID as seen in qcs9100 based boards. Signed-off-by: Varadarajan Narayanan --- configs/qcs9100_defconfig | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configs

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

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

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

2025-05-06 Thread Varadarajan Narayanan
Allow SCSI to be able to store environment variables. Signed-off-by: Varadarajan Narayanan --- env/Kconfig| 15 +- env/Makefile | 1 + env/env.c | 3 ++ env/scsi.c | 115 + include/env_internal.h

[PATCH v2 0/4] Enable env in SCSI

2025-05-06 Thread Varadarajan Narayanan
SCSI_ENV_PART instead of name Varadarajan Narayanan (4): disk: part: implement generic function part_get_info_by_uuid() scsi: Implement get_blk() function env: Add support for storing env variables in SCSI devices configs: qcs9100: Enable env in SCSI configs/qcs9100_defconfig | 5 +- disk

[PATCH v2 1/4] disk: part: implement generic function part_get_info_by_uuid()

2025-05-06 Thread Varadarajan Narayanan
Add function to search for a partition by UUID as partition names may not be unique. Signed-off-by: Varadarajan Narayanan --- disk/part.c| 37 + include/part.h | 20 2 files changed, 57 insertions(+) diff --git a/disk/part.c b/disk

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

2025-05-04 Thread Varadarajan Narayanan
On Fri, May 02, 2025 at 02:32:52PM +0200, Casey Connolly wrote: > Hi Varadarajan, > > You have almost entirely ignored my feedback on the previous revision. Sorry. Since you had said "For now I'm fine with this new sysreset-qcom.c driver", in [1], I assumed you were ok with just addressing the tec

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

2025-04-30 Thread Varadarajan Narayanan
On Mon, Apr 28, 2025 at 04:22:47PM +0200, Casey Connolly wrote: > > > On 4/10/25 14:02, Varadarajan Narayanan wrote: > > Add SYSRESET_EDL to sysreset_t and handle the different SYSRESET_xxx > > requests in sysreset_qcom-psci.c. > > To be honest, I'm not really

[PATCH v2 2/2] configs: qcs9100_defconfig: Enable SYSRESET

2025-04-30 Thread Varadarajan Narayanan
Move to SYSRESET for implementing the reset command. Reviewed-by: Sumit Garg Signed-off-by: Varadarajan Narayanan --- v2: Add 'Reviewed-by: Sumit Garg' --- configs/qcs9100_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/qcs9100_defconfig b/configs/qcs9100

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

2025-04-30 Thread Varadarajan Narayanan
o the usual cold/warm reset and poweroff. Signed-off-by: Varadarajan Narayanan --- v2: * Update commit message * Elaborate Kconfig help text * Use '-edl' instead of 'edl' for consistency with other arguments of reset command * Remove 'weak' for qcom_

[PATCH v2 0/2] Implement reset to EDL for qcs9100

2025-04-30 Thread Varadarajan Narayanan
Using the 'reboot edl' command in Linux, the platform can reboot to the Emergency Download mode. Implement the same for U-Boot. v2: * Rebased to recent sources * Dropped the first patch as it is not applicable anymore * Bind the new driver from psci driver Varadarajan Na

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

2025-04-29 Thread Varadarajan Narayanan
On Mon, Apr 28, 2025 at 04:22:47PM +0200, Casey Connolly wrote: > > > On 4/10/25 14:02, Varadarajan Narayanan wrote: > > Add SYSRESET_EDL to sysreset_t and handle the different SYSRESET_xxx > > requests in sysreset_qcom-psci.c. > > To be honest, I'm not really

[PATCH v1 2/3] sysreset: Implement PSCI based reset to EDL mode for QCOM SoCs

2025-04-10 Thread Varadarajan Narayanan
Add SYSRESET_EDL to sysreset_t and handle the different SYSRESET_xxx requests in sysreset_qcom-psci.c. Signed-off-by: Varadarajan Narayanan --- drivers/sysreset/Kconfig | 5 +++ drivers/sysreset/Makefile | 1 + drivers/sysreset/sysreset-uclass.c| 7 ++-- drivers

[PATCH v1 3/3] configs: qcs9100_defconfig: Enable SYSRESET

2025-04-10 Thread Varadarajan Narayanan
Move to SYSRESET for implementing the reset command. Signed-off-by: Varadarajan Narayanan --- configs/qcs9100_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/qcs9100_defconfig b/configs/qcs9100_defconfig index 10ff4d25398..1fb621b27ce 100644 --- a/configs

[PATCH v1 0/3] Implement reset to EDL for qcs9100

2025-04-10 Thread Varadarajan Narayanan
Using the 'reboot edl' command in Linux, the platform can reboot to the Emergency Download mode. Implement the same for U-Boot. Varadarajan Narayanan (3): mach-snapdragon: Do not define reset_cpu() if SYSRESET is enabled sysreset: Implement PSCI based reset to EDL mode for QCOM SoCs

[PATCH v1 1/3] mach-snapdragon: Do not define reset_cpu() if SYSRESET is enabled

2025-04-10 Thread Varadarajan Narayanan
-off-by: Varadarajan Narayanan --- arch/arm/mach-snapdragon/board.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-snapdragon/board.c b/arch/arm/mach-snapdragon/board.c index 2ef936aab75..2254e0b55a1 100644 --- a/arch/arm/mach-snapdragon/board.c +++ b/arch/arm/mach-snapdragon

[PATCH v1 2/2] drivers: scsi: Add 'erase' support

2025-04-05 Thread Varadarajan Narayanan
UFS devices uses the block and scsi frameworks. Enable UFS erase support by adding erase support to SCSI. Signed-off-by: Varadarajan Narayanan --- cmd/scsi.c | 3 +- drivers/scsi/scsi.c | 92 + include/scsi.h | 13 +++ 3 files

[PATCH v2 1/2] dm: blk: Add 'erase' generic block device commands

2025-04-05 Thread Varadarajan Narayanan
Add support for doing 'erase' using the generic block commands framework. Signed-off-by: Varadarajan Narayanan --- cmd/blk_common.c | 17 + 1 file changed, 17 insertions(+) diff --git a/cmd/blk_common.c b/cmd/blk_common.c index 4c05a4e0610..56529702a47 100644

Re: [PATCH v1 1/3] scsi: Implement get_blk() function

2025-04-03 Thread Varadarajan Narayanan
On Tue, Apr 01, 2025 at 06:29:31PM +0200, Heinrich Schuchardt wrote: > On 01.04.25 10:00, Varadarajan Narayanan wrote: > > Add a function to obtain the block device for SCSI. > > > > Signed-off-by: Varadarajan Narayanan > > --- > >

[PATCH v1 2/3] env: Add support for storing env variables in UFS

2025-04-01 Thread Varadarajan Narayanan
Allow UFS to be able to store environment variables. Signed-off-by: Varadarajan Narayanan --- env/Kconfig| 15 +- env/Makefile | 1 + env/env.c | 3 ++ env/ufs.c | 115 + include/env_internal.h

[PATCH v2 2/2] drivers: scsi: Add 'erase' support

2025-04-01 Thread Varadarajan Narayanan
UFS devices uses the block and scsi frameworks. Enable UFS erase support by adding erase support to SCSI. Signed-off-by: Varadarajan Narayanan --- v2: Remove the scsi_get_blk() function prototype in include/scsi.h. That is not related to this series. --- cmd/scsi.c | 3 +- drivers

Re: [PATCH v1] efi_loader: Handle GD_FLG_SKIP_RELOC

2025-04-01 Thread Varadarajan Narayanan
On Tue, Apr 01, 2025 at 10:02:05AM +0300, Ilias Apalodimas wrote: > On Tue, 1 Apr 2025 at 09:46, Varadarajan Narayanan > wrote: > > > > On Thu, Mar 27, 2025 at 11:22:58PM +0200, Ilias Apalodimas wrote: > > > On Thu, 27 Mar 2025 at 08:12, Varadarajan Narayanan > >

[PATCH v1 0/3] Enable env in UFS

2025-04-01 Thread Varadarajan Narayanan
API to convert partition name string to block device descriptor for UFS. This API will be used to get the block device descriptor for the partition specified in CONFIG_SYS_UFS_ENV_PART. Varadarajan Narayanan (3): scsi: Implement get_blk() function env: Add support for storing env variables in UFS

[PATCH v1 1/3] scsi: Implement get_blk() function

2025-04-01 Thread Varadarajan Narayanan
Add a function to obtain the block device for SCSI. Signed-off-by: Varadarajan Narayanan --- drivers/scsi/scsi-uclass.c | 30 ++ include/scsi.h | 12 2 files changed, 42 insertions(+) diff --git a/drivers/scsi/scsi-uclass.c b/drivers/scsi

Re: [PATCH v1 2/2] drivers: scsi: Add 'erase' support

2025-04-01 Thread Varadarajan Narayanan
On Fri, Mar 28, 2025 at 04:44:48AM -0600, Simon Glass wrote: [ . . . ] > > diff --git a/include/scsi.h b/include/scsi.h > > index b18ae37b861..d6b6e6b665f 100644 > > --- a/include/scsi.h > > +++ b/include/scsi.h > > @@ -9,6 +9,7 @@ > > #include > > #include > > #include > > +#include > > >

[PATCH v1 3/3] configs: qcs9100: Enable env in UFS

2025-04-01 Thread Varadarajan Narayanan
Enable CONFIG_ENV_IS_IN_UFS to store environment variables in UFS. Set env variables partition name as 'ubootenv'. Signed-off-by: Varadarajan Narayanan --- configs/qcs9100_defconfig | 4 1 file changed, 4 insertions(+) diff --git a/configs/qcs9100_defconfig b/configs/qcs9100

Re: [PATCH v1] efi_loader: Handle GD_FLG_SKIP_RELOC

2025-03-31 Thread Varadarajan Narayanan
On Thu, Mar 27, 2025 at 11:22:58PM +0200, Ilias Apalodimas wrote: > On Thu, 27 Mar 2025 at 08:12, Varadarajan Narayanan > wrote: > > > > On Wed, Mar 26, 2025 at 09:28:04AM +0200, Ilias Apalodimas wrote: > > > Hi Varadarajan > > > > > > On Wed

Re: [PATCH v1] efi_loader: Handle GD_FLG_SKIP_RELOC

2025-03-26 Thread Varadarajan Narayanan
On Wed, Mar 26, 2025 at 09:28:04AM +0200, Ilias Apalodimas wrote: > Hi Varadarajan > > On Wed, 26 Mar 2025 at 07:47, Varadarajan Narayanan > wrote: > > > > If the EFI runtime services pointers are relocated even though > > relocation is skipped, it corrupts som

[PATCH v1] efi_loader: Handle GD_FLG_SKIP_RELOC

2025-03-25 Thread Varadarajan Narayanan
ually, after the completion of efi_runtime_relocate(), when a driver tries to access its device's registers it crashes since the mappings are absent. Signed-off-by: Varadarajan Narayanan --- common/board_r.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/b

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

2025-03-24 Thread Varadarajan Narayanan
Add the PMC8380 regulator data found on the Qualcomm SA8775P platform. The tables are imported from the Linux driver. Signed-off-by: Varadarajan Narayanan --- drivers/power/regulator/qcom-rpmh-regulator.c | 45 +++ 1 file changed, 45 insertions(+) diff --git a/drivers/power

[PATCH v1 1/2] dm: blk: Add 'erase' generic block device commands

2025-03-24 Thread Varadarajan Narayanan
Add support for doing 'erase' using the generic block commands framework. Signed-off-by: Varadarajan Narayanan --- cmd/blk_common.c | 17 + 1 file changed, 17 insertions(+) diff --git a/cmd/blk_common.c b/cmd/blk_common.c index 4c05a4e0610..56529702a47 100644

[PATCH v1 2/2] qcom_defconfig: enable pinctrl for SA8775P

2025-03-24 Thread Varadarajan Narayanan
Enable the pinctrl driver for SA8775P Signed-off-by: Varadarajan Narayanan --- configs/qcom_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/qcom_defconfig b/configs/qcom_defconfig index 661a484f7bf..20c49223201 100644 --- a/configs/qcom_defconfig +++ b/configs

[PATCH v1 1/2] pinctrl: qcom: add driver for SA8775P SoC

2025-03-24 Thread Varadarajan Narayanan
Add pinctrl and GPIO driver for SA8775P. Driver code is based on the similar U-Boot and Linux drivers. Signed-off-by: Varadarajan Narayanan --- drivers/pinctrl/qcom/Kconfig | 7 + drivers/pinctrl/qcom/Makefile | 1 + drivers/pinctrl/qcom/pinctrl-sa8775p.c | 623

Re: [PATCH v1 6/6] configs: add qcom_ipq5424_mmc_defconfig

2025-03-12 Thread Varadarajan Narayanan
On Tue, Mar 11, 2025 at 03:27:25PM +, Caleb Connolly wrote: > Hi Varadarajan, > > Thanks for the series, and apologies for the slow reply, i've been out sick > and still finding my feet again. Oops. Sorry to have troubled you. > On 3/4/25 11:01, Varadarajan Narayanan wr

[PATCH v1 6/6] configs: add qcom_ipq5424_mmc_defconfig

2025-03-04 Thread Varadarajan Narayanan
Introduce a defconfig for the Qualcomm IPQ5424 SoC based RDPs. Presently supports eMMC. Per the flash memory layout, U-Boot size cannot exceed 756KB. With this defconfig, u-boot.mbn size is ~480KB. Signed-off-by: Varadarajan Narayanan --- configs/qcom_ipq5424_mmc_defconfig | 83

[PATCH v1 5/6] pinctrl: qcom: Add ipq5424 pinctrl driver

2025-03-04 Thread Varadarajan Narayanan
Add pinctrl driver for the TLMM block found in the ipq5424 SoC. Signed-off-by: Varadarajan Narayanan --- drivers/pinctrl/qcom/Kconfig | 7 + drivers/pinctrl/qcom/Makefile | 1 + drivers/pinctrl/qcom/pinctrl-ipq5424.c | 322 + 3 files changed, 330

[PATCH v1 4/6] clk/qcom: add initial clock driver for ipq5424

2025-03-04 Thread Varadarajan Narayanan
Add initial set of clocks and resets for enabling U-Boot on ipq5424 based RDP platforms. Signed-off-by: Varadarajan Narayanan --- drivers/clk/qcom/Kconfig | 8 +++ drivers/clk/qcom/Makefile| 1 + drivers/clk/qcom/clock-ipq5424.c | 96 drivers

[PATCH v1 1/6] arm64: dts: qcom: ipq5424: Add USB controller and phy nodes

2025-03-04 Thread Varadarajan Narayanan
The IPQ5424 SoC has both USB2.0 and USB3.0 controllers. The USB3.0 can connect to either of USB2.0 or USB3.0 phy and operate in the respective mode. Signed-off-by: Varadarajan Narayanan Reviewed-by: Dmitry Baryshkov Link: https://lore.kernel.org/r/20241118052839.382431-7-quic_var...@quicinc.com

[PATCH v1 2/6] dts: ipq5424-rdp466-u-boot: add override dtsi

2025-03-04 Thread Varadarajan Narayanan
Add initial support for the IPQ5424 MMC based RDP platforms. Define memory layout statically. Signed-off-by: Varadarajan Narayanan --- arch/arm/dts/ipq5424-rdp466-u-boot.dtsi | 37 + 1 file changed, 37 insertions(+) create mode 100644 arch/arm/dts/ipq5424-rdp466-u

[PATCH v1 3/6] doc: board/qualcomm: Update RDP signing instructions

2025-03-04 Thread Varadarajan Narayanan
IPQ5424 expects U-Boot to have MBN version 7 header. The qtestsign tool presently documented doesn't support v7. Hence update the instructions to use a different tool that can support both v6 and v7. Signed-off-by: Varadarajan Narayanan --- doc/board/qualcomm/rdp.rst | 15 +

[PATCH v1 0/6] Add initial support for IPQ5424 based boards

2025-03-04 Thread Varadarajan Narayanan
These patches introduce the initial support code needed for the QTI IPQ5424 SoC and RDP466 board. Please see [1] for SoC related details Thanks Varada 1 - https://docs.qualcomm.com/bundle/publicresource/87-82994-1_REV_B_Qualcomm_Networking_Pro_A7_Elite_Platform_Product_Brief.pdf Varadarajan

[PATCH v6 2/7] dts: ipq9574-rdp433-u-boot: add override dtsi

2025-02-25 Thread Varadarajan Narayanan
Add initial support for the IPQ9574 MMC based RDP platforms. Define memory layout statically. Reviewed-by: Caleb Connolly Signed-off-by: Varadarajan Narayanan --- v5: Add 'Reviewed-by: Caleb Connolly' v3: Fix comments and give additional details No code change v2: Use upstream an

Re: [PATCH v5 3/7] clk/qcom: add initial clock driver for ipq9574

2025-02-25 Thread Varadarajan Narayanan
On Tue, Feb 25, 2025 at 11:42:43AM +, Caleb Connolly wrote: [ . . . ] > > +static int ipq9574_enable(struct clk *clk) > > +{ > > + struct msm_clk_priv *priv = dev_get_priv(clk->dev); > > + > > + debug("%s: clk %s\n", __func__, ipq9574_clks[clk->id].name); > > + > > + switch (clk->id) {

[PATCH v6 7/7] configs: add qcom_ipq9574_mmc_defconfig

2025-02-25 Thread Varadarajan Narayanan
Introduce a defconfig for the Qualcomm IPQ9574 SoC based RDPs. Presently supports eMMC. Per the flash memory layout, U-Boot size cannot exceed 756KB. With this defconfig, u-boot.mbn size is ~480KB. Reviewed-by: Sumit Garg Reviewed-by: Caleb Connolly Signed-off-by: Varadarajan Narayanan --- v5

[PATCH v6 6/7] mmc: msm_sdhci: Reset clocks before reconfiguration

2025-02-25 Thread Varadarajan Narayanan
U-Boot has to reconfigure the clocks that were set in the boot loaders. However, in IPQ9574, the clocks have to be reset before they can be reconfigured. Hence add code to do the relevant resets. Reviewed-by: Caleb Connolly Signed-off-by: Varadarajan Narayanan --- drivers/mmc/msm_sdhci.c | 10

[PATCH v6 4/7] pinctrl: qcom: Handle get_function_mux failure

2025-02-25 Thread Varadarajan Narayanan
compile test done. Signed-off-by: Varadarajan Narayanan --- drivers/pinctrl/qcom/pinctrl-apq8016.c | 4 ++-- drivers/pinctrl/qcom/pinctrl-apq8096.c | 4 ++-- drivers/pinctrl/qcom/pinctrl-ipq4019.c | 3 +-- drivers/pinctrl/qcom/pinctrl-qcm2290.c | 2 +- drivers/pinctrl/qcom/pinctrl-qcom.c | 5

[PATCH v6 5/7] pinctrl: qcom: Add ipq9574 pinctrl driver

2025-02-25 Thread Varadarajan Narayanan
Add pinctrl driver for the TLMM block found in the ipq9574 SoC. Reviewed-by: Caleb Connolly Signed-off-by: Varadarajan Narayanan --- v5: Add 'Reviewed-by: Caleb Connolly' Remove 'special_pins_start' struct msm_pinctrl_data ipq9574_data --- drivers/pinctrl/qcom/Kco

[PATCH v6 3/7] clk/qcom: add initial clock driver for ipq9574

2025-02-25 Thread Varadarajan Narayanan
Add initial set of clocks and resets for enabling U-Boot on ipq9574 based RDP platforms. Reviewed-by: Caleb Connolly Signed-off-by: Varadarajan Narayanan --- v6: Use qcom_gate_clk_en(priv, clk->id) instead of switch case for each clock individually v3: Use gate clk framework v2: Combi

[PATCH v6 0/7] Add initial support for IPQ9574 based boards

2025-02-25 Thread Varadarajan Narayanan
var...@quicinc.com/ Varadarajan Narayanan (7): doc: board/qualcomm: document RDP building/flashing dts: ipq9574-rdp433-u-boot: add override dtsi clk/qcom: add initial clock driver for ipq9574 pinctrl: qcom: Handle get_function_mux failure pinctrl: qcom: Add ipq9574 pinctrl driver

[PATCH v6 1/7] doc: board/qualcomm: document RDP building/flashing

2025-02-25 Thread Varadarajan Narayanan
Introducing basic support for Qualcomm IPQxxx based RDPs. Document the build and flashing steps. Reviewed-by: Caleb Connolly Signed-off-by: Varadarajan Narayanan --- v5: Add 'Reviewed-by: Caleb Connolly' --- doc/board/qualcomm/rdp.rst | 55 ++ 1 fi

[PATCH v5 6/7] mmc: msm_sdhci: Reset clocks before reconfiguration

2025-02-24 Thread Varadarajan Narayanan
U-Boot has to reconfigure the clocks that were set in the boot loaders. However, in IPQ9574, the clocks have to be reset before they can be reconfigured. Hence add code to do the relevant resets. Reviewed-by: Caleb Connolly Signed-off-by: Varadarajan Narayanan --- drivers/mmc/msm_sdhci.c | 10

[PATCH v5 7/7] configs: add qcom_ipq9574_mmc_defconfig

2025-02-24 Thread Varadarajan Narayanan
Introduce a defconfig for the Qualcomm IPQ9574 SoC based RDPs. Presently supports eMMC. Per the flash memory layout, U-Boot size cannot exceed 756KB. With this defconfig, u-boot.mbn size is ~480KB. Reviewed-by: Sumit Garg Reviewed-by: Caleb Connolly Signed-off-by: Varadarajan Narayanan --- v5

[PATCH v5 5/7] pinctrl: qcom: Add ipq9574 pinctrl driver

2025-02-24 Thread Varadarajan Narayanan
Add pinctrl driver for the TLMM block found in the ipq9574 SoC. Reviewed-by: Caleb Connolly Signed-off-by: Varadarajan Narayanan --- v5: Add 'Reviewed-by: Caleb Connolly' Remove 'special_pins_start' struct msm_pinctrl_data ipq9574_data drivers/pinctrl/qcom/Kco

[PATCH v5 4/7] pinctrl: qcom: Handle get_function_mux failure

2025-02-24 Thread Varadarajan Narayanan
compile test done. Signed-off-by: Varadarajan Narayanan --- drivers/pinctrl/qcom/pinctrl-apq8016.c | 4 ++-- drivers/pinctrl/qcom/pinctrl-apq8096.c | 4 ++-- drivers/pinctrl/qcom/pinctrl-ipq4019.c | 3 +-- drivers/pinctrl/qcom/pinctrl-qcm2290.c | 2 +- drivers/pinctrl/qcom/pinctrl-qcom.c | 5

[PATCH v5 2/7] dts: ipq9574-rdp433-u-boot: add override dtsi

2025-02-24 Thread Varadarajan Narayanan
Add initial support for the IPQ9574 MMC based RDP platforms. Define memory layout statically. Reviewed-by: Caleb Connolly Signed-off-by: Varadarajan Narayanan --- v5: Add 'Reviewed-by: Caleb Connolly' v3: Fix comments and give additional details No code change v2: Use upstream an

[PATCH v5 3/7] clk/qcom: add initial clock driver for ipq9574

2025-02-24 Thread Varadarajan Narayanan
Add initial set of clocks and resets for enabling U-Boot on ipq9574 based RDP platforms. Reviewed-by: Caleb Connolly Signed-off-by: Varadarajan Narayanan --- v3: Use gate clk framework v2: Combined driver file and makefile/kconfig changes into one patch --- drivers/clk/qcom/Kconfig

[PATCH v5 1/7] doc: board/qualcomm: document RDP building/flashing

2025-02-24 Thread Varadarajan Narayanan
Introducing basic support for Qualcomm IPQxxx based RDPs. Document the build and flashing steps. Reviewed-by: Caleb Connolly Signed-off-by: Varadarajan Narayanan --- v5: Add 'Reviewed-by: Caleb Connolly' --- doc/board/qualcomm/rdp.rst | 55 ++ 1 fi

[PATCH v5 0/7] Add initial support for IPQ9574 based boards

2025-02-24 Thread Varadarajan Narayanan
series * Use reset_get_by_index instead of reset_get_by_name v1: https://lore.kernel.org/u-boot/20240226100807.1095607-1-quic_var...@quicinc.com/ Varadarajan Narayanan (7): doc: board/qualcomm: document RDP building/flashing dts: ipq9574-rdp433-u-boot: add override dtsi clk/qcom: add

Re: [PATCH v4 2/7] dts: ipq9574-rdp433-u-boot: add override dtsi

2025-02-21 Thread Varadarajan Narayanan
On Thu, Feb 20, 2025 at 08:44:23PM +, Caleb Connolly wrote: [ . . . ] > > +&sdhc_1 { > > + sdhci-caps-mask = <0x0 0x0400>; > > + sdhci-caps = <0x0 0x0400>; /* SDHCI_CAN_VDD_180 */ > > + > > + /* > > +* This reset is needed to clear out the settings done by > > +* previo

[PATCH v4 7/7] configs: add qcom_ipq9574_mmc_defconfig

2025-02-20 Thread Varadarajan Narayanan
Introduce a defconfig for the Qualcomm IPQ9574 SoC based RDPs. Presently supports eMMC. Per the flash memory layout, U-Boot size cannot exceed 756KB. With this defconfig, u-boot.mbn size is ~480KB. Reviewed-by: Caleb Connolly Signed-off-by: Varadarajan Narayanan --- v4: Don't in

[PATCH v4 0/8] Add initial support for IPQ9574 based boards

2025-02-19 Thread Varadarajan Narayanan
series * Use reset_get_by_index instead of reset_get_by_name v1: https://lore.kernel.org/u-boot/20240226100807.1095607-1-quic_var...@quicinc.com/ Varadarajan Narayanan (7): doc: board/qualcomm: document RDP building/flashing dts: ipq9574-rdp433-u-boot: add override dtsi clk/qcom: add

[PATCH v4 6/7] mmc: msm_sdhci: Reset clocks before reconfiguration

2025-02-19 Thread Varadarajan Narayanan
U-Boot has to reconfigure the clocks that were set in the boot loaders. However, in IPQ9574, the clocks have to be reset before they can be reconfigured. Hence add code to do the relevant resets. Reviewed-by: Caleb Connolly Signed-off-by: Varadarajan Narayanan --- drivers/mmc/msm_sdhci.c | 10

[PATCH v4 5/7] pinctrl: qcom: Add ipq9574 pinctrl driver

2025-02-19 Thread Varadarajan Narayanan
Add pinctrl driver for the TLMM block found in the ipq9574 SoC. Signed-off-by: Varadarajan Narayanan --- drivers/pinctrl/qcom/Kconfig | 7 + drivers/pinctrl/qcom/Makefile | 1 + drivers/pinctrl/qcom/pinctrl-ipq9574.c | 227 + 3 files changed, 235

  1   2   >