U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/5] board: qualcomm: dragonboard820c: udpate readme
@ 2025-04-07 12:05 Jorge Ramirez-Ortiz
  2025-04-07 12:05 ` [PATCH 2/5] clk/qcom: apq8096: fix set rate for the uart clock Jorge Ramirez-Ortiz
                   ` (5 more replies)
  0 siblings, 6 replies; 18+ messages in thread
From: Jorge Ramirez-Ortiz @ 2025-04-07 12:05 UTC (permalink / raw)
  To: jorge.ramirez, neil.armstrong, caleb.connolly, sumit.garg
  Cc: u-boot-qcom, u-boot

Update build instructions.

Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez@oss.qualcomm.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
---
 board/qualcomm/dragonboard820c/readme.txt | 47 ++++++++++-------------
 1 file changed, 21 insertions(+), 26 deletions(-)

diff --git a/board/qualcomm/dragonboard820c/readme.txt b/board/qualcomm/dragonboard820c/readme.txt
index 966e9520e85..a01d24122cb 100644
--- a/board/qualcomm/dragonboard820c/readme.txt
+++ b/board/qualcomm/dragonboard820c/readme.txt
@@ -16,10 +16,7 @@
                      Build & Run instructions
 ================================================================================
 
-1) Install mkbootimg and dtbTool from Codeaurora:
-
-   git://codeaurora.org/quic/kernel/skales
-   commit 8492547e404e969262d9070dee9bdd15668bb70f worked for me.
+1) Install mkbootimg
 
 2) Setup CROSS_COMPILE to aarch64 compiler or if you use ccache just do
    CROSS_COMPILE="ccache aarch64-linux-gnu-"
@@ -33,15 +30,15 @@
 
    $ touch rd
 
-5) Generate qualcomm device tree table with dtbTool
+5) Append the dtb to the u-boot binary discarding the internal dtb.
 
-   $ dtbTool -o dt.img arch/arm/dts
+   $ gzip u-boot-nodtb.bin
+   $ cat u-boot.dtb >> u-boot-nodtb.bin.gz
 
 6) Generate Android boot image with mkbootimg:
 
-   $ mkbootimg --kernel=u-boot-dtb.bin             \
+   $ mkbootimg --kernel=u-boot-nodtb.bin.gz          \
                --output=u-boot.img                 \
-               --dt=dt.img                         \
                --pagesize 4096                     \
                --base 0x80000000                   \
                --ramdisk=rd                        \
@@ -251,44 +248,42 @@ Wait for 5 seconds before proceeding
 [5300] booting linux @ 0x80080000, ramdisk @ 0x82200000 (0), tags/device tree @ 0x82000000
 [5310] Jumping to kernel via monitor
 
-U-Boot 2017.11-00145-ge895117 (Nov 29 2017 - 10:04:06 +0100)
+U-Boot 2025.04-rc5-00020-g40a61ca0e7eb-dirty (Apr 07 2025 - 09:37:03 +0200)
 Qualcomm-DragonBoard 820C
 
-DRAM:  3 GiB
-PSCI:  v1.0
-MMC:   sdhci@74a4900: 0
+DRAM:  3.5 GiB (effective 3 GiB)
+Core:  136 devices, 18 uclasses, devicetree: board
+MMC:   Bulk clocks not available (-19), trying core clock
+mmc@74a4900: 0
+Loading Environment from EXT4... OK
 In:    serial@75b0000
 Out:   serial@75b0000
 Err:   serial@75b0000
-Net:   Net Initialization Skipped
-No ethernet found.
+Net:   No ethernet found.
 Hit any key to stop autoboot:  0
 switch to partitions #0, OK
 mmc0 is current device
 Scanning mmc 0:1...
 Found /extlinux/extlinux.conf
 Retrieving file: /extlinux/extlinux.conf
-433 bytes read in 71 ms (5.9 KiB/s)
 1:      nfs root
-
+Enter choice: 1:        nfs root
 Retrieving file: /uImage
-19397184 bytes read in 2024 ms (9.1 MiB/s)
-append: root=/dev/nfs rw nfsroot=192.168.1.2:/db820c/rootfs,v3,tcp rootwait ip=dhcp consoleblank=0 console=tty0 console=ttyMSM0,115200n8 earlyprintk earlycon=msm_serial_dm,0x75b0000 androidboot.bootdevice=624000.ufshc androidboot.verifiedbootstate=orange androidboot.ver0
-
+append: root=/dev/nfs rw nfsroot=192.168.1.6:/home/jramirez/Src/qualcomm-lt/db820c/rootfs,v3,tcp rootwait ip=dhcp consoleblank=0 console=tty0 console=ttyMSM0,115200n8 earlyprintk earlyco0
 Retrieving file: /apq8096-db820c.dtb
-38134 bytes read in 37 ms (1005.9 KiB/s)
-
-## Booting kernel from Legacy Image at 95000000 ...
+## Booting kernel from Legacy Image at 155000000 ...
    Image Name:   Dragonboard820c
    Image Type:   AArch64 Linux Kernel Image (uncompressed)
    Data Size:    19397120 Bytes = 18.5 MiB
    Load Address: 80080000
    Entry Point:  80080000
    Verifying Checksum ... OK
-## Flattened Device Tree blob at 93000000
-   Booting using the fdt blob at 0x93000000
-   Loading Kernel Image ... OK
-   Using Device Tree in place at 0000000093000000, end 000000009300c4f5
+## Flattened Device Tree blob at 148600000
+   Booting using the fdt blob at 0x148600000
+Working FDT set to 148600000
+   Loading Kernel Image to 80080000
+   Using Device Tree in place at 0000000148600000, end 000000014860c4f5
+Working FDT set to 148600000
 
 Starting kernel ...
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 18+ messages in thread

* [PATCH 2/5] clk/qcom: apq8096: fix set rate for the uart clock
  2025-04-07 12:05 [PATCH 1/5] board: qualcomm: dragonboard820c: udpate readme Jorge Ramirez-Ortiz
@ 2025-04-07 12:05 ` Jorge Ramirez-Ortiz
  2025-04-07 14:25   ` Caleb Connolly
  2025-04-07 12:05 ` [PATCH 3/5] clk/qcom: apq8096: fix the sdhci clock Jorge Ramirez-Ortiz
                   ` (4 subsequent siblings)
  5 siblings, 1 reply; 18+ messages in thread
From: Jorge Ramirez-Ortiz @ 2025-04-07 12:05 UTC (permalink / raw)
  To: jorge.ramirez, neil.armstrong, caleb.connolly, sumit.garg
  Cc: u-boot-qcom, u-boot

The function should return a valid rate.

Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez@oss.qualcomm.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
---
 drivers/clk/qcom/clock-apq8096.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/clk/qcom/clock-apq8096.c b/drivers/clk/qcom/clock-apq8096.c
index c77d69128b0..bc00826a5e8 100644
--- a/drivers/clk/qcom/clock-apq8096.c
+++ b/drivers/clk/qcom/clock-apq8096.c
@@ -87,7 +87,8 @@ static ulong apq8096_clk_set_rate(struct clk *clk, ulong rate)
 		return clk_init_sdc(priv, rate);
 		break;
 	case GCC_BLSP2_UART2_APPS_CLK: /*UART2*/
-		return clk_init_uart(priv);
+		clk_init_uart(priv);
+		return 7372800;
 	default:
 		return 0;
 	}
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 18+ messages in thread

* [PATCH 3/5] clk/qcom: apq8096: fix the sdhci clock
  2025-04-07 12:05 [PATCH 1/5] board: qualcomm: dragonboard820c: udpate readme Jorge Ramirez-Ortiz
  2025-04-07 12:05 ` [PATCH 2/5] clk/qcom: apq8096: fix set rate for the uart clock Jorge Ramirez-Ortiz
@ 2025-04-07 12:05 ` Jorge Ramirez-Ortiz
  2025-04-07 12:36   ` neil.armstrong
  2025-04-07 12:05 ` [PATCH 4/5] clk: stub: add qcom,glink-smd-rpm Jorge Ramirez-Ortiz
                   ` (3 subsequent siblings)
  5 siblings, 1 reply; 18+ messages in thread
From: Jorge Ramirez-Ortiz @ 2025-04-07 12:05 UTC (permalink / raw)
  To: jorge.ramirez, neil.armstrong, caleb.connolly, sumit.garg
  Cc: u-boot-qcom, u-boot

Select the right clock for sdhci.

Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez@oss.qualcomm.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
---
 drivers/clk/qcom/clock-apq8096.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/qcom/clock-apq8096.c b/drivers/clk/qcom/clock-apq8096.c
index bc00826a5e8..551f52d5197 100644
--- a/drivers/clk/qcom/clock-apq8096.c
+++ b/drivers/clk/qcom/clock-apq8096.c
@@ -83,7 +83,7 @@ static ulong apq8096_clk_set_rate(struct clk *clk, ulong rate)
 	struct msm_clk_priv *priv = dev_get_priv(clk->dev);
 
 	switch (clk->id) {
-	case GCC_SDCC1_APPS_CLK: /* SDC1 */
+	case GCC_SDCC2_APPS_CLK: /* SDC2 */
 		return clk_init_sdc(priv, rate);
 		break;
 	case GCC_BLSP2_UART2_APPS_CLK: /*UART2*/
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 18+ messages in thread

* [PATCH 4/5] clk: stub: add qcom,glink-smd-rpm
  2025-04-07 12:05 [PATCH 1/5] board: qualcomm: dragonboard820c: udpate readme Jorge Ramirez-Ortiz
  2025-04-07 12:05 ` [PATCH 2/5] clk/qcom: apq8096: fix set rate for the uart clock Jorge Ramirez-Ortiz
  2025-04-07 12:05 ` [PATCH 3/5] clk/qcom: apq8096: fix the sdhci clock Jorge Ramirez-Ortiz
@ 2025-04-07 12:05 ` Jorge Ramirez-Ortiz
  2025-04-07 12:36   ` Sumit Garg
  2025-04-07 12:37   ` neil.armstrong
  2025-04-07 12:05 ` [PATCH 5/5] configs: dragonboard820: updates Jorge Ramirez-Ortiz
                   ` (2 subsequent siblings)
  5 siblings, 2 replies; 18+ messages in thread
From: Jorge Ramirez-Ortiz @ 2025-04-07 12:05 UTC (permalink / raw)
  To: jorge.ramirez, neil.armstrong, caleb.connolly, sumit.garg
  Cc: u-boot-qcom, u-boot

Add support for the resource power manager clocks over SMD/GLINK to be
stubbed.

Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez@oss.qualcomm.com>
---
 drivers/clk/clk-stub.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/clk/clk-stub.c b/drivers/clk/clk-stub.c
index 5fbbb07b7f7..09be2946bbc 100644
--- a/drivers/clk/clk-stub.c
+++ b/drivers/clk/clk-stub.c
@@ -15,6 +15,7 @@ static const struct udevice_id nop_parent_ids[] = {
 	{ .compatible = "qcom,rpm-proc" },
 	{ .compatible = "qcom,glink-rpm" },
 	{ .compatible = "qcom,rpm-sm6115" },
+	{ .compatible = "qcom,glink-smd-rpm" },
 	{ }
 };
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 18+ messages in thread

* [PATCH 5/5] configs: dragonboard820: updates
  2025-04-07 12:05 [PATCH 1/5] board: qualcomm: dragonboard820c: udpate readme Jorge Ramirez-Ortiz
                   ` (2 preceding siblings ...)
  2025-04-07 12:05 ` [PATCH 4/5] clk: stub: add qcom,glink-smd-rpm Jorge Ramirez-Ortiz
@ 2025-04-07 12:05 ` Jorge Ramirez-Ortiz
  2025-04-07 12:50 ` [PATCH 1/5] board: qualcomm: dragonboard820c: udpate readme Christopher Obbard
  2025-04-07 14:25 ` Caleb Connolly
  5 siblings, 0 replies; 18+ messages in thread
From: Jorge Ramirez-Ortiz @ 2025-04-07 12:05 UTC (permalink / raw)
  To: jorge.ramirez, neil.armstrong, caleb.connolly, sumit.garg
  Cc: u-boot-qcom, u-boot

Configure GPIO and CLK_STUBS

Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez@oss.qualcomm.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
---
 configs/dragonboard820c_defconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/configs/dragonboard820c_defconfig b/configs/dragonboard820c_defconfig
index e29bea7deb2..2a5b7212f74 100644
--- a/configs/dragonboard820c_defconfig
+++ b/configs/dragonboard820c_defconfig
@@ -45,4 +45,6 @@ CONFIG_PINCTRL_QCOM_APQ8096=y
 CONFIG_DM_PMIC=y
 CONFIG_PMIC_QCOM=y
 CONFIG_MSM_SERIAL=y
+CONFIG_MSM_GPIO=y
 CONFIG_SPMI_MSM=y
+CONFIG_CLK_STUB=y
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 18+ messages in thread

* Re: [PATCH 4/5] clk: stub: add qcom,glink-smd-rpm
  2025-04-07 12:05 ` [PATCH 4/5] clk: stub: add qcom,glink-smd-rpm Jorge Ramirez-Ortiz
@ 2025-04-07 12:36   ` Sumit Garg
  2025-04-07 12:37   ` neil.armstrong
  1 sibling, 0 replies; 18+ messages in thread
From: Sumit Garg @ 2025-04-07 12:36 UTC (permalink / raw)
  To: Jorge Ramirez-Ortiz; +Cc: neil.armstrong, caleb.connolly, u-boot-qcom, u-boot

On Mon, Apr 07, 2025 at 02:05:35PM +0200, Jorge Ramirez-Ortiz wrote:
> Add support for the resource power manager clocks over SMD/GLINK to be
> stubbed.
> 
> Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez@oss.qualcomm.com>
> ---
>  drivers/clk/clk-stub.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/clk/clk-stub.c b/drivers/clk/clk-stub.c
> index 5fbbb07b7f7..09be2946bbc 100644
> --- a/drivers/clk/clk-stub.c
> +++ b/drivers/clk/clk-stub.c
> @@ -15,6 +15,7 @@ static const struct udevice_id nop_parent_ids[] = {
>  	{ .compatible = "qcom,rpm-proc" },
>  	{ .compatible = "qcom,glink-rpm" },
>  	{ .compatible = "qcom,rpm-sm6115" },

This platform specific compatible can be dropped now.

Apart from that, feel free to add:

Reviewed-by: Sumit Garg <sumit.garg@oss.qualcomm.com>

-Sumit


> +	{ .compatible = "qcom,glink-smd-rpm" },
>  	{ }
>  };
>  
> -- 
> 2.34.1
> 

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [PATCH 3/5] clk/qcom: apq8096: fix the sdhci clock
  2025-04-07 12:05 ` [PATCH 3/5] clk/qcom: apq8096: fix the sdhci clock Jorge Ramirez-Ortiz
@ 2025-04-07 12:36   ` neil.armstrong
  2025-04-07 14:17     ` Jorge Ramirez
  0 siblings, 1 reply; 18+ messages in thread
From: neil.armstrong @ 2025-04-07 12:36 UTC (permalink / raw)
  To: Jorge Ramirez-Ortiz, caleb.connolly, sumit.garg; +Cc: u-boot-qcom, u-boot

On 07/04/2025 14:05, Jorge Ramirez-Ortiz wrote:
> Select the right clock for sdhci.
> 
> Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez@oss.qualcomm.com>
> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
> ---
>   drivers/clk/qcom/clock-apq8096.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/clk/qcom/clock-apq8096.c b/drivers/clk/qcom/clock-apq8096.c
> index bc00826a5e8..551f52d5197 100644
> --- a/drivers/clk/qcom/clock-apq8096.c
> +++ b/drivers/clk/qcom/clock-apq8096.c
> @@ -83,7 +83,7 @@ static ulong apq8096_clk_set_rate(struct clk *clk, ulong rate)
>   	struct msm_clk_priv *priv = dev_get_priv(clk->dev);
>   
>   	switch (clk->id) {
> -	case GCC_SDCC1_APPS_CLK: /* SDC1 */
> +	case GCC_SDCC2_APPS_CLK: /* SDC2 */

Should be GCC_SDCC2_AHB_CLK

>   		return clk_init_sdc(priv, rate);
>   		break;
>   	case GCC_BLSP2_UART2_APPS_CLK: /*UART2*/


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [PATCH 4/5] clk: stub: add qcom,glink-smd-rpm
  2025-04-07 12:05 ` [PATCH 4/5] clk: stub: add qcom,glink-smd-rpm Jorge Ramirez-Ortiz
  2025-04-07 12:36   ` Sumit Garg
@ 2025-04-07 12:37   ` neil.armstrong
  2025-04-07 14:18     ` Jorge Ramirez
  1 sibling, 1 reply; 18+ messages in thread
From: neil.armstrong @ 2025-04-07 12:37 UTC (permalink / raw)
  To: Jorge Ramirez-Ortiz, caleb.connolly, sumit.garg; +Cc: u-boot-qcom, u-boot

On 07/04/2025 14:05, Jorge Ramirez-Ortiz wrote:
> Add support for the resource power manager clocks over SMD/GLINK to be
> stubbed.
> 
> Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez@oss.qualcomm.com>
> ---
>   drivers/clk/clk-stub.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/clk/clk-stub.c b/drivers/clk/clk-stub.c
> index 5fbbb07b7f7..09be2946bbc 100644
> --- a/drivers/clk/clk-stub.c
> +++ b/drivers/clk/clk-stub.c
> @@ -15,6 +15,7 @@ static const struct udevice_id nop_parent_ids[] = {
>   	{ .compatible = "qcom,rpm-proc" },
>   	{ .compatible = "qcom,glink-rpm" },
>   	{ .compatible = "qcom,rpm-sm6115" },
> +	{ .compatible = "qcom,glink-smd-rpm" },

You can delete qcom,rpm-sm6115 if you add qcom,glink-smd-rpm

>   	{ }
>   };
>   


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [PATCH 1/5] board: qualcomm: dragonboard820c: udpate readme
  2025-04-07 12:05 [PATCH 1/5] board: qualcomm: dragonboard820c: udpate readme Jorge Ramirez-Ortiz
                   ` (3 preceding siblings ...)
  2025-04-07 12:05 ` [PATCH 5/5] configs: dragonboard820: updates Jorge Ramirez-Ortiz
@ 2025-04-07 12:50 ` Christopher Obbard
  2025-04-07 14:22   ` Jorge Ramirez
  2025-04-07 14:25 ` Caleb Connolly
  5 siblings, 1 reply; 18+ messages in thread
From: Christopher Obbard @ 2025-04-07 12:50 UTC (permalink / raw)
  To: Jorge Ramirez-Ortiz
  Cc: neil.armstrong, caleb.connolly, sumit.garg, u-boot-qcom, u-boot

Hi Jorge,

Long time no speak.

On Mon, 7 Apr 2025 at 13:05, Jorge Ramirez-Ortiz
<jorge.ramirez@oss.qualcomm.com> wrote:
>
> Update build instructions.
>
> Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez@oss.qualcomm.com>
> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>

Your patch subject has a typo in "udpate" -> "update.

With that fixed:
Reviewed-by: Christopher Obbard <christopher.obbard@linaro.org>

> ---
>  board/qualcomm/dragonboard820c/readme.txt | 47 ++++++++++-------------
>  1 file changed, 21 insertions(+), 26 deletions(-)
>
> diff --git a/board/qualcomm/dragonboard820c/readme.txt b/board/qualcomm/dragonboard820c/readme.txt
> index 966e9520e85..a01d24122cb 100644
> --- a/board/qualcomm/dragonboard820c/readme.txt
> +++ b/board/qualcomm/dragonboard820c/readme.txt
> @@ -16,10 +16,7 @@
>                       Build & Run instructions
>  ================================================================================
>
> -1) Install mkbootimg and dtbTool from Codeaurora:
> -
> -   git://codeaurora.org/quic/kernel/skales
> -   commit 8492547e404e969262d9070dee9bdd15668bb70f worked for me.
> +1) Install mkbootimg
>
>  2) Setup CROSS_COMPILE to aarch64 compiler or if you use ccache just do
>     CROSS_COMPILE="ccache aarch64-linux-gnu-"
> @@ -33,15 +30,15 @@
>
>     $ touch rd
>
> -5) Generate qualcomm device tree table with dtbTool
> +5) Append the dtb to the u-boot binary discarding the internal dtb.
>
> -   $ dtbTool -o dt.img arch/arm/dts
> +   $ gzip u-boot-nodtb.bin
> +   $ cat u-boot.dtb >> u-boot-nodtb.bin.gz
>
>  6) Generate Android boot image with mkbootimg:
>
> -   $ mkbootimg --kernel=u-boot-dtb.bin             \
> +   $ mkbootimg --kernel=u-boot-nodtb.bin.gz          \
>                 --output=u-boot.img                 \
> -               --dt=dt.img                         \
>                 --pagesize 4096                     \
>                 --base 0x80000000                   \
>                 --ramdisk=rd                        \
> @@ -251,44 +248,42 @@ Wait for 5 seconds before proceeding
>  [5300] booting linux @ 0x80080000, ramdisk @ 0x82200000 (0), tags/device tree @ 0x82000000
>  [5310] Jumping to kernel via monitor
>
> -U-Boot 2017.11-00145-ge895117 (Nov 29 2017 - 10:04:06 +0100)
> +U-Boot 2025.04-rc5-00020-g40a61ca0e7eb-dirty (Apr 07 2025 - 09:37:03 +0200)
>  Qualcomm-DragonBoard 820C
>
> -DRAM:  3 GiB
> -PSCI:  v1.0
> -MMC:   sdhci@74a4900: 0
> +DRAM:  3.5 GiB (effective 3 GiB)
> +Core:  136 devices, 18 uclasses, devicetree: board
> +MMC:   Bulk clocks not available (-19), trying core clock
> +mmc@74a4900: 0
> +Loading Environment from EXT4... OK
>  In:    serial@75b0000
>  Out:   serial@75b0000
>  Err:   serial@75b0000
> -Net:   Net Initialization Skipped
> -No ethernet found.
> +Net:   No ethernet found.
>  Hit any key to stop autoboot:  0
>  switch to partitions #0, OK
>  mmc0 is current device
>  Scanning mmc 0:1...
>  Found /extlinux/extlinux.conf
>  Retrieving file: /extlinux/extlinux.conf
> -433 bytes read in 71 ms (5.9 KiB/s)
>  1:      nfs root
> -
> +Enter choice: 1:        nfs root
>  Retrieving file: /uImage
> -19397184 bytes read in 2024 ms (9.1 MiB/s)
> -append: root=/dev/nfs rw nfsroot=192.168.1.2:/db820c/rootfs,v3,tcp rootwait ip=dhcp consoleblank=0 console=tty0 console=ttyMSM0,115200n8 earlyprintk earlycon=msm_serial_dm,0x75b0000 androidboot.bootdevice=624000.ufshc androidboot.verifiedbootstate=orange androidboot.ver0
> -
> +append: root=/dev/nfs rw nfsroot=192.168.1.6:/home/jramirez/Src/qualcomm-lt/db820c/rootfs,v3,tcp rootwait ip=dhcp consoleblank=0 console=tty0 console=ttyMSM0,115200n8 earlyprintk earlyco0
>  Retrieving file: /apq8096-db820c.dtb
> -38134 bytes read in 37 ms (1005.9 KiB/s)
> -
> -## Booting kernel from Legacy Image at 95000000 ...
> +## Booting kernel from Legacy Image at 155000000 ...
>     Image Name:   Dragonboard820c
>     Image Type:   AArch64 Linux Kernel Image (uncompressed)
>     Data Size:    19397120 Bytes = 18.5 MiB
>     Load Address: 80080000
>     Entry Point:  80080000
>     Verifying Checksum ... OK
> -## Flattened Device Tree blob at 93000000
> -   Booting using the fdt blob at 0x93000000
> -   Loading Kernel Image ... OK
> -   Using Device Tree in place at 0000000093000000, end 000000009300c4f5
> +## Flattened Device Tree blob at 148600000
> +   Booting using the fdt blob at 0x148600000
> +Working FDT set to 148600000
> +   Loading Kernel Image to 80080000
> +   Using Device Tree in place at 0000000148600000, end 000000014860c4f5
> +Working FDT set to 148600000
>
>  Starting kernel ...
>
> --
> 2.34.1
>

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [PATCH 3/5] clk/qcom: apq8096: fix the sdhci clock
  2025-04-07 12:36   ` neil.armstrong
@ 2025-04-07 14:17     ` Jorge Ramirez
  2025-04-07 14:27       ` Caleb Connolly
  2025-04-07 15:12       ` neil.armstrong
  0 siblings, 2 replies; 18+ messages in thread
From: Jorge Ramirez @ 2025-04-07 14:17 UTC (permalink / raw)
  To: neil.armstrong
  Cc: Jorge Ramirez-Ortiz, caleb.connolly, sumit.garg, u-boot-qcom,
	u-boot

On 07/04/25 14:36:51, neil.armstrong@linaro.org wrote:
> On 07/04/2025 14:05, Jorge Ramirez-Ortiz wrote:
> > Select the right clock for sdhci.
> > 
> > Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez@oss.qualcomm.com>
> > Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
> > ---
> >   drivers/clk/qcom/clock-apq8096.c | 2 +-
> >   1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/drivers/clk/qcom/clock-apq8096.c b/drivers/clk/qcom/clock-apq8096.c
> > index bc00826a5e8..551f52d5197 100644
> > --- a/drivers/clk/qcom/clock-apq8096.c
> > +++ b/drivers/clk/qcom/clock-apq8096.c
> > @@ -83,7 +83,7 @@ static ulong apq8096_clk_set_rate(struct clk *clk, ulong rate)
> >   	struct msm_clk_priv *priv = dev_get_priv(clk->dev);
> >   	switch (clk->id) {
> > -	case GCC_SDCC1_APPS_CLK: /* SDC1 */
> > +	case GCC_SDCC2_APPS_CLK: /* SDC2 */
> 
> Should be GCC_SDCC2_AHB_CLK

why? also if I do that, mcc fails to probe

> 
> >   		return clk_init_sdc(priv, rate);
> >   		break;
> >   	case GCC_BLSP2_UART2_APPS_CLK: /*UART2*/
> 

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [PATCH 4/5] clk: stub: add qcom,glink-smd-rpm
  2025-04-07 12:37   ` neil.armstrong
@ 2025-04-07 14:18     ` Jorge Ramirez
  0 siblings, 0 replies; 18+ messages in thread
From: Jorge Ramirez @ 2025-04-07 14:18 UTC (permalink / raw)
  To: neil.armstrong
  Cc: Jorge Ramirez-Ortiz, caleb.connolly, sumit.garg, u-boot-qcom,
	u-boot

On 07/04/25 14:37:27, neil.armstrong@linaro.org wrote:
> On 07/04/2025 14:05, Jorge Ramirez-Ortiz wrote:
> > Add support for the resource power manager clocks over SMD/GLINK to be
> > stubbed.
> > 
> > Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez@oss.qualcomm.com>
> > ---
> >   drivers/clk/clk-stub.c | 1 +
> >   1 file changed, 1 insertion(+)
> > 
> > diff --git a/drivers/clk/clk-stub.c b/drivers/clk/clk-stub.c
> > index 5fbbb07b7f7..09be2946bbc 100644
> > --- a/drivers/clk/clk-stub.c
> > +++ b/drivers/clk/clk-stub.c
> > @@ -15,6 +15,7 @@ static const struct udevice_id nop_parent_ids[] = {
> >   	{ .compatible = "qcom,rpm-proc" },
> >   	{ .compatible = "qcom,glink-rpm" },
> >   	{ .compatible = "qcom,rpm-sm6115" },
> > +	{ .compatible = "qcom,glink-smd-rpm" },
> 
> You can delete qcom,rpm-sm6115 if you add qcom,glink-smd-rpm

ok - I wasnt sure if you wanted that as part of a separate commit.

> 
> >   	{ }
> >   };
> 

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [PATCH 1/5] board: qualcomm: dragonboard820c: udpate readme
  2025-04-07 12:50 ` [PATCH 1/5] board: qualcomm: dragonboard820c: udpate readme Christopher Obbard
@ 2025-04-07 14:22   ` Jorge Ramirez
  0 siblings, 0 replies; 18+ messages in thread
From: Jorge Ramirez @ 2025-04-07 14:22 UTC (permalink / raw)
  To: Christopher Obbard
  Cc: Jorge Ramirez-Ortiz, neil.armstrong, caleb.connolly, sumit.garg,
	u-boot-qcom, u-boot

On 07/04/25 13:50:21, Christopher Obbard wrote:
> Hi Jorge,
> 
> Long time no speak.

hey, yeah, Embedded Recipes 2023 I think. 

> 
> On Mon, 7 Apr 2025 at 13:05, Jorge Ramirez-Ortiz
> <jorge.ramirez@oss.qualcomm.com> wrote:
> >
> > Update build instructions.
> >
> > Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez@oss.qualcomm.com>
> > Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
> 
> Your patch subject has a typo in "udpate" -> "update.
> 

thanks!

> With that fixed:
> Reviewed-by: Christopher Obbard <christopher.obbard@linaro.org>
> 
> > ---
> >  board/qualcomm/dragonboard820c/readme.txt | 47 ++++++++++-------------
> >  1 file changed, 21 insertions(+), 26 deletions(-)
> >
> > diff --git a/board/qualcomm/dragonboard820c/readme.txt b/board/qualcomm/dragonboard820c/readme.txt
> > index 966e9520e85..a01d24122cb 100644
> > --- a/board/qualcomm/dragonboard820c/readme.txt
> > +++ b/board/qualcomm/dragonboard820c/readme.txt
> > @@ -16,10 +16,7 @@
> >                       Build & Run instructions
> >  ================================================================================
> >
> > -1) Install mkbootimg and dtbTool from Codeaurora:
> > -
> > -   git://codeaurora.org/quic/kernel/skales
> > -   commit 8492547e404e969262d9070dee9bdd15668bb70f worked for me.
> > +1) Install mkbootimg
> >
> >  2) Setup CROSS_COMPILE to aarch64 compiler or if you use ccache just do
> >     CROSS_COMPILE="ccache aarch64-linux-gnu-"
> > @@ -33,15 +30,15 @@
> >
> >     $ touch rd
> >
> > -5) Generate qualcomm device tree table with dtbTool
> > +5) Append the dtb to the u-boot binary discarding the internal dtb.
> >
> > -   $ dtbTool -o dt.img arch/arm/dts
> > +   $ gzip u-boot-nodtb.bin
> > +   $ cat u-boot.dtb >> u-boot-nodtb.bin.gz
> >
> >  6) Generate Android boot image with mkbootimg:
> >
> > -   $ mkbootimg --kernel=u-boot-dtb.bin             \
> > +   $ mkbootimg --kernel=u-boot-nodtb.bin.gz          \
> >                 --output=u-boot.img                 \
> > -               --dt=dt.img                         \
> >                 --pagesize 4096                     \
> >                 --base 0x80000000                   \
> >                 --ramdisk=rd                        \
> > @@ -251,44 +248,42 @@ Wait for 5 seconds before proceeding
> >  [5300] booting linux @ 0x80080000, ramdisk @ 0x82200000 (0), tags/device tree @ 0x82000000
> >  [5310] Jumping to kernel via monitor
> >
> > -U-Boot 2017.11-00145-ge895117 (Nov 29 2017 - 10:04:06 +0100)
> > +U-Boot 2025.04-rc5-00020-g40a61ca0e7eb-dirty (Apr 07 2025 - 09:37:03 +0200)
> >  Qualcomm-DragonBoard 820C
> >
> > -DRAM:  3 GiB
> > -PSCI:  v1.0
> > -MMC:   sdhci@74a4900: 0
> > +DRAM:  3.5 GiB (effective 3 GiB)
> > +Core:  136 devices, 18 uclasses, devicetree: board
> > +MMC:   Bulk clocks not available (-19), trying core clock
> > +mmc@74a4900: 0
> > +Loading Environment from EXT4... OK
> >  In:    serial@75b0000
> >  Out:   serial@75b0000
> >  Err:   serial@75b0000
> > -Net:   Net Initialization Skipped
> > -No ethernet found.
> > +Net:   No ethernet found.
> >  Hit any key to stop autoboot:  0
> >  switch to partitions #0, OK
> >  mmc0 is current device
> >  Scanning mmc 0:1...
> >  Found /extlinux/extlinux.conf
> >  Retrieving file: /extlinux/extlinux.conf
> > -433 bytes read in 71 ms (5.9 KiB/s)
> >  1:      nfs root
> > -
> > +Enter choice: 1:        nfs root
> >  Retrieving file: /uImage
> > -19397184 bytes read in 2024 ms (9.1 MiB/s)
> > -append: root=/dev/nfs rw nfsroot=192.168.1.2:/db820c/rootfs,v3,tcp rootwait ip=dhcp consoleblank=0 console=tty0 console=ttyMSM0,115200n8 earlyprintk earlycon=msm_serial_dm,0x75b0000 androidboot.bootdevice=624000.ufshc androidboot.verifiedbootstate=orange androidboot.ver0
> > -
> > +append: root=/dev/nfs rw nfsroot=192.168.1.6:/home/jramirez/Src/qualcomm-lt/db820c/rootfs,v3,tcp rootwait ip=dhcp consoleblank=0 console=tty0 console=ttyMSM0,115200n8 earlyprintk earlyco0
> >  Retrieving file: /apq8096-db820c.dtb
> > -38134 bytes read in 37 ms (1005.9 KiB/s)
> > -
> > -## Booting kernel from Legacy Image at 95000000 ...
> > +## Booting kernel from Legacy Image at 155000000 ...
> >     Image Name:   Dragonboard820c
> >     Image Type:   AArch64 Linux Kernel Image (uncompressed)
> >     Data Size:    19397120 Bytes = 18.5 MiB
> >     Load Address: 80080000
> >     Entry Point:  80080000
> >     Verifying Checksum ... OK
> > -## Flattened Device Tree blob at 93000000
> > -   Booting using the fdt blob at 0x93000000
> > -   Loading Kernel Image ... OK
> > -   Using Device Tree in place at 0000000093000000, end 000000009300c4f5
> > +## Flattened Device Tree blob at 148600000
> > +   Booting using the fdt blob at 0x148600000
> > +Working FDT set to 148600000
> > +   Loading Kernel Image to 80080000
> > +   Using Device Tree in place at 0000000148600000, end 000000014860c4f5
> > +Working FDT set to 148600000
> >
> >  Starting kernel ...
> >
> > --
> > 2.34.1
> >

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [PATCH 1/5] board: qualcomm: dragonboard820c: udpate readme
  2025-04-07 12:05 [PATCH 1/5] board: qualcomm: dragonboard820c: udpate readme Jorge Ramirez-Ortiz
                   ` (4 preceding siblings ...)
  2025-04-07 12:50 ` [PATCH 1/5] board: qualcomm: dragonboard820c: udpate readme Christopher Obbard
@ 2025-04-07 14:25 ` Caleb Connolly
  5 siblings, 0 replies; 18+ messages in thread
From: Caleb Connolly @ 2025-04-07 14:25 UTC (permalink / raw)
  To: Jorge Ramirez-Ortiz, neil.armstrong, sumit.garg; +Cc: u-boot-qcom, u-boot



On 4/7/25 14:05, Jorge Ramirez-Ortiz wrote:
> Update build instructions.
> 
> Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez@oss.qualcomm.com>
> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>

Reviewed-by: Caleb Connolly <caleb.connolly@linaro.org>> ---
>   board/qualcomm/dragonboard820c/readme.txt | 47 ++++++++++-------------
>   1 file changed, 21 insertions(+), 26 deletions(-)
> 
> diff --git a/board/qualcomm/dragonboard820c/readme.txt b/board/qualcomm/dragonboard820c/readme.txt
> index 966e9520e85..a01d24122cb 100644
> --- a/board/qualcomm/dragonboard820c/readme.txt
> +++ b/board/qualcomm/dragonboard820c/readme.txt
> @@ -16,10 +16,7 @@
>                        Build & Run instructions
>   ================================================================================
>   
> -1) Install mkbootimg and dtbTool from Codeaurora:
> -
> -   git://codeaurora.org/quic/kernel/skales
> -   commit 8492547e404e969262d9070dee9bdd15668bb70f worked for me.
> +1) Install mkbootimg
>   
>   2) Setup CROSS_COMPILE to aarch64 compiler or if you use ccache just do
>      CROSS_COMPILE="ccache aarch64-linux-gnu-"
> @@ -33,15 +30,15 @@
>   
>      $ touch rd
>   
> -5) Generate qualcomm device tree table with dtbTool
> +5) Append the dtb to the u-boot binary discarding the internal dtb.
>   
> -   $ dtbTool -o dt.img arch/arm/dts
> +   $ gzip u-boot-nodtb.bin
> +   $ cat u-boot.dtb >> u-boot-nodtb.bin.gz
>   
>   6) Generate Android boot image with mkbootimg:
>   
> -   $ mkbootimg --kernel=u-boot-dtb.bin             \
> +   $ mkbootimg --kernel=u-boot-nodtb.bin.gz          \
>                  --output=u-boot.img                 \
> -               --dt=dt.img                         \
>                  --pagesize 4096                     \
>                  --base 0x80000000                   \
>                  --ramdisk=rd                        \
> @@ -251,44 +248,42 @@ Wait for 5 seconds before proceeding
>   [5300] booting linux @ 0x80080000, ramdisk @ 0x82200000 (0), tags/device tree @ 0x82000000
>   [5310] Jumping to kernel via monitor
>   
> -U-Boot 2017.11-00145-ge895117 (Nov 29 2017 - 10:04:06 +0100)
> +U-Boot 2025.04-rc5-00020-g40a61ca0e7eb-dirty (Apr 07 2025 - 09:37:03 +0200)
>   Qualcomm-DragonBoard 820C
>   
> -DRAM:  3 GiB
> -PSCI:  v1.0
> -MMC:   sdhci@74a4900: 0
> +DRAM:  3.5 GiB (effective 3 GiB)
> +Core:  136 devices, 18 uclasses, devicetree: board
> +MMC:   Bulk clocks not available (-19), trying core clock
> +mmc@74a4900: 0
> +Loading Environment from EXT4... OK
>   In:    serial@75b0000
>   Out:   serial@75b0000
>   Err:   serial@75b0000
> -Net:   Net Initialization Skipped
> -No ethernet found.
> +Net:   No ethernet found.
>   Hit any key to stop autoboot:  0
>   switch to partitions #0, OK
>   mmc0 is current device
>   Scanning mmc 0:1...
>   Found /extlinux/extlinux.conf
>   Retrieving file: /extlinux/extlinux.conf
> -433 bytes read in 71 ms (5.9 KiB/s)
>   1:      nfs root
> -
> +Enter choice: 1:        nfs root
>   Retrieving file: /uImage
> -19397184 bytes read in 2024 ms (9.1 MiB/s)
> -append: root=/dev/nfs rw nfsroot=192.168.1.2:/db820c/rootfs,v3,tcp rootwait ip=dhcp consoleblank=0 console=tty0 console=ttyMSM0,115200n8 earlyprintk earlycon=msm_serial_dm,0x75b0000 androidboot.bootdevice=624000.ufshc androidboot.verifiedbootstate=orange androidboot.ver0
> -
> +append: root=/dev/nfs rw nfsroot=192.168.1.6:/home/jramirez/Src/qualcomm-lt/db820c/rootfs,v3,tcp rootwait ip=dhcp consoleblank=0 console=tty0 console=ttyMSM0,115200n8 earlyprintk earlyco0
>   Retrieving file: /apq8096-db820c.dtb
> -38134 bytes read in 37 ms (1005.9 KiB/s)
> -
> -## Booting kernel from Legacy Image at 95000000 ...
> +## Booting kernel from Legacy Image at 155000000 ...
>      Image Name:   Dragonboard820c
>      Image Type:   AArch64 Linux Kernel Image (uncompressed)
>      Data Size:    19397120 Bytes = 18.5 MiB
>      Load Address: 80080000
>      Entry Point:  80080000
>      Verifying Checksum ... OK
> -## Flattened Device Tree blob at 93000000
> -   Booting using the fdt blob at 0x93000000
> -   Loading Kernel Image ... OK
> -   Using Device Tree in place at 0000000093000000, end 000000009300c4f5
> +## Flattened Device Tree blob at 148600000
> +   Booting using the fdt blob at 0x148600000
> +Working FDT set to 148600000
> +   Loading Kernel Image to 80080000
> +   Using Device Tree in place at 0000000148600000, end 000000014860c4f5
> +Working FDT set to 148600000
>   
>   Starting kernel ...
>   

-- 
Caleb (they/them)


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [PATCH 2/5] clk/qcom: apq8096: fix set rate for the uart clock
  2025-04-07 12:05 ` [PATCH 2/5] clk/qcom: apq8096: fix set rate for the uart clock Jorge Ramirez-Ortiz
@ 2025-04-07 14:25   ` Caleb Connolly
  0 siblings, 0 replies; 18+ messages in thread
From: Caleb Connolly @ 2025-04-07 14:25 UTC (permalink / raw)
  To: Jorge Ramirez-Ortiz, neil.armstrong, sumit.garg; +Cc: u-boot-qcom, u-boot



On 4/7/25 14:05, Jorge Ramirez-Ortiz wrote:
> The function should return a valid rate.
> 
> Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez@oss.qualcomm.com>
> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>

Reviewed-by: Caleb Connolly <caleb.connolly@linaro.org>> ---
>   drivers/clk/qcom/clock-apq8096.c | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/clk/qcom/clock-apq8096.c b/drivers/clk/qcom/clock-apq8096.c
> index c77d69128b0..bc00826a5e8 100644
> --- a/drivers/clk/qcom/clock-apq8096.c
> +++ b/drivers/clk/qcom/clock-apq8096.c
> @@ -87,7 +87,8 @@ static ulong apq8096_clk_set_rate(struct clk *clk, ulong rate)
>   		return clk_init_sdc(priv, rate);
>   		break;
>   	case GCC_BLSP2_UART2_APPS_CLK: /*UART2*/
> -		return clk_init_uart(priv);
> +		clk_init_uart(priv);
> +		return 7372800;
>   	default:
>   		return 0;
>   	}

-- 
Caleb (they/them)


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [PATCH 3/5] clk/qcom: apq8096: fix the sdhci clock
  2025-04-07 14:17     ` Jorge Ramirez
@ 2025-04-07 14:27       ` Caleb Connolly
  2025-04-07 15:12       ` neil.armstrong
  1 sibling, 0 replies; 18+ messages in thread
From: Caleb Connolly @ 2025-04-07 14:27 UTC (permalink / raw)
  To: Jorge Ramirez, neil.armstrong; +Cc: sumit.garg, u-boot-qcom, u-boot



On 4/7/25 16:17, Jorge Ramirez wrote:
> On 07/04/25 14:36:51, neil.armstrong@linaro.org wrote:
>> On 07/04/2025 14:05, Jorge Ramirez-Ortiz wrote:
>>> Select the right clock for sdhci.
>>>
>>> Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez@oss.qualcomm.com>
>>> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
>>> ---
>>>    drivers/clk/qcom/clock-apq8096.c | 2 +-
>>>    1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/drivers/clk/qcom/clock-apq8096.c b/drivers/clk/qcom/clock-apq8096.c
>>> index bc00826a5e8..551f52d5197 100644
>>> --- a/drivers/clk/qcom/clock-apq8096.c
>>> +++ b/drivers/clk/qcom/clock-apq8096.c
>>> @@ -83,7 +83,7 @@ static ulong apq8096_clk_set_rate(struct clk *clk, ulong rate)
>>>    	struct msm_clk_priv *priv = dev_get_priv(clk->dev);
>>>    	switch (clk->id) {
>>> -	case GCC_SDCC1_APPS_CLK: /* SDC1 */
>>> +	case GCC_SDCC2_APPS_CLK: /* SDC2 */
>>
>> Should be GCC_SDCC2_AHB_CLK
> 
> why? also if I do that, mcc fails to probe

GCC_SDCC2_APPS_CLK is correct, that's the "core" clock and the one the 
sdhci_msm driver calls clk_set_rate() on. So this patch is good. I 
suspect the misuse of GCC_SDCC1_APPS_CLK is from way back when this 
board had a custom DT that didn't follow upstream.

Reviewed-by: Caleb Connolly <caleb.connolly@linaro.org>>
>>
>>>    		return clk_init_sdc(priv, rate);
>>>    		break;
>>>    	case GCC_BLSP2_UART2_APPS_CLK: /*UART2*/
>>

-- 
Caleb (they/them)


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [PATCH 3/5] clk/qcom: apq8096: fix the sdhci clock
  2025-04-07 14:17     ` Jorge Ramirez
  2025-04-07 14:27       ` Caleb Connolly
@ 2025-04-07 15:12       ` neil.armstrong
  2025-04-07 15:27         ` Jorge Ramirez
  1 sibling, 1 reply; 18+ messages in thread
From: neil.armstrong @ 2025-04-07 15:12 UTC (permalink / raw)
  To: Jorge Ramirez; +Cc: caleb.connolly, sumit.garg, u-boot-qcom, u-boot

On 07/04/2025 16:17, Jorge Ramirez wrote:
> On 07/04/25 14:36:51, neil.armstrong@linaro.org wrote:
>> On 07/04/2025 14:05, Jorge Ramirez-Ortiz wrote:
>>> Select the right clock for sdhci.
>>>
>>> Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez@oss.qualcomm.com>
>>> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
>>> ---
>>>    drivers/clk/qcom/clock-apq8096.c | 2 +-
>>>    1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/drivers/clk/qcom/clock-apq8096.c b/drivers/clk/qcom/clock-apq8096.c
>>> index bc00826a5e8..551f52d5197 100644
>>> --- a/drivers/clk/qcom/clock-apq8096.c
>>> +++ b/drivers/clk/qcom/clock-apq8096.c
>>> @@ -83,7 +83,7 @@ static ulong apq8096_clk_set_rate(struct clk *clk, ulong rate)
>>>    	struct msm_clk_priv *priv = dev_get_priv(clk->dev);
>>>    	switch (clk->id) {
>>> -	case GCC_SDCC1_APPS_CLK: /* SDC1 */
>>> +	case GCC_SDCC2_APPS_CLK: /* SDC2 */
>>
>> Should be GCC_SDCC2_AHB_CLK
> 
> why? also if I do that, mcc fails to probe

The discussion at https://lore.kernel.org/all/Z/OqoqnPb1gfk5iG@trex/ made me thought using GCC_SDCC2_AHB_CLK fixed the sdhci set_rate, but I maybe did misread.

Neil

> 
>>
>>>    		return clk_init_sdc(priv, rate);
>>>    		break;
>>>    	case GCC_BLSP2_UART2_APPS_CLK: /*UART2*/
>>


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [PATCH 3/5] clk/qcom: apq8096: fix the sdhci clock
  2025-04-07 15:12       ` neil.armstrong
@ 2025-04-07 15:27         ` Jorge Ramirez
  0 siblings, 0 replies; 18+ messages in thread
From: Jorge Ramirez @ 2025-04-07 15:27 UTC (permalink / raw)
  To: neil.armstrong
  Cc: Jorge Ramirez, caleb.connolly, sumit.garg, u-boot-qcom, u-boot

On 07/04/25 17:12:45, neil.armstrong@linaro.org wrote:
> On 07/04/2025 16:17, Jorge Ramirez wrote:
> > On 07/04/25 14:36:51, neil.armstrong@linaro.org wrote:
> > > On 07/04/2025 14:05, Jorge Ramirez-Ortiz wrote:
> > > > Select the right clock for sdhci.
> > > > 
> > > > Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez@oss.qualcomm.com>
> > > > Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
> > > > ---
> > > >    drivers/clk/qcom/clock-apq8096.c | 2 +-
> > > >    1 file changed, 1 insertion(+), 1 deletion(-)
> > > > 
> > > > diff --git a/drivers/clk/qcom/clock-apq8096.c b/drivers/clk/qcom/clock-apq8096.c
> > > > index bc00826a5e8..551f52d5197 100644
> > > > --- a/drivers/clk/qcom/clock-apq8096.c
> > > > +++ b/drivers/clk/qcom/clock-apq8096.c
> > > > @@ -83,7 +83,7 @@ static ulong apq8096_clk_set_rate(struct clk *clk, ulong rate)
> > > >    	struct msm_clk_priv *priv = dev_get_priv(clk->dev);
> > > >    	switch (clk->id) {
> > > > -	case GCC_SDCC1_APPS_CLK: /* SDC1 */
> > > > +	case GCC_SDCC2_APPS_CLK: /* SDC2 */
> > > 
> > > Should be GCC_SDCC2_AHB_CLK
> > 
> > why? also if I do that, mcc fails to probe
> 
> The discussion at https://lore.kernel.org/all/Z/OqoqnPb1gfk5iG@trex/ made me thought using GCC_SDCC2_AHB_CLK fixed the sdhci set_rate, but I maybe did misread.
> 
> Neil

can I add your review/acked?

> 
> > 
> > > 
> > > >    		return clk_init_sdc(priv, rate);
> > > >    		break;
> > > >    	case GCC_BLSP2_UART2_APPS_CLK: /*UART2*/
> > > 
> 

^ permalink raw reply	[flat|nested] 18+ messages in thread

* [PATCH 3/5] clk/qcom: apq8096: fix the sdhci clock
  2025-04-07 17:56 [PATCH 1/5] board: qualcomm: dragonboard820c: update readme Jorge Ramirez-Ortiz
@ 2025-04-07 17:56 ` Jorge Ramirez-Ortiz
  0 siblings, 0 replies; 18+ messages in thread
From: Jorge Ramirez-Ortiz @ 2025-04-07 17:56 UTC (permalink / raw)
  To: jorge.ramirez, neil.armstrong, caleb.connolly, sumit.garg
  Cc: u-boot-qcom, u-boot

Select the right clock for sdhci.

Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez@oss.qualcomm.com>
Reviewed-by: Caleb Connolly <caleb.connolly@linaro.org>
---
 drivers/clk/qcom/clock-apq8096.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/qcom/clock-apq8096.c b/drivers/clk/qcom/clock-apq8096.c
index bc00826a5e8..551f52d5197 100644
--- a/drivers/clk/qcom/clock-apq8096.c
+++ b/drivers/clk/qcom/clock-apq8096.c
@@ -83,7 +83,7 @@ static ulong apq8096_clk_set_rate(struct clk *clk, ulong rate)
 	struct msm_clk_priv *priv = dev_get_priv(clk->dev);
 
 	switch (clk->id) {
-	case GCC_SDCC1_APPS_CLK: /* SDC1 */
+	case GCC_SDCC2_APPS_CLK: /* SDC2 */
 		return clk_init_sdc(priv, rate);
 		break;
 	case GCC_BLSP2_UART2_APPS_CLK: /*UART2*/
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2025-04-07 17:56 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-07 12:05 [PATCH 1/5] board: qualcomm: dragonboard820c: udpate readme Jorge Ramirez-Ortiz
2025-04-07 12:05 ` [PATCH 2/5] clk/qcom: apq8096: fix set rate for the uart clock Jorge Ramirez-Ortiz
2025-04-07 14:25   ` Caleb Connolly
2025-04-07 12:05 ` [PATCH 3/5] clk/qcom: apq8096: fix the sdhci clock Jorge Ramirez-Ortiz
2025-04-07 12:36   ` neil.armstrong
2025-04-07 14:17     ` Jorge Ramirez
2025-04-07 14:27       ` Caleb Connolly
2025-04-07 15:12       ` neil.armstrong
2025-04-07 15:27         ` Jorge Ramirez
2025-04-07 12:05 ` [PATCH 4/5] clk: stub: add qcom,glink-smd-rpm Jorge Ramirez-Ortiz
2025-04-07 12:36   ` Sumit Garg
2025-04-07 12:37   ` neil.armstrong
2025-04-07 14:18     ` Jorge Ramirez
2025-04-07 12:05 ` [PATCH 5/5] configs: dragonboard820: updates Jorge Ramirez-Ortiz
2025-04-07 12:50 ` [PATCH 1/5] board: qualcomm: dragonboard820c: udpate readme Christopher Obbard
2025-04-07 14:22   ` Jorge Ramirez
2025-04-07 14:25 ` Caleb Connolly
  -- strict thread matches above, loose matches on Subject: below --
2025-04-07 17:56 [PATCH 1/5] board: qualcomm: dragonboard820c: update readme Jorge Ramirez-Ortiz
2025-04-07 17:56 ` [PATCH 3/5] clk/qcom: apq8096: fix the sdhci clock Jorge Ramirez-Ortiz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox