aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-yocto/workarounds
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/linux/linux-yocto/workarounds')
-rw-r--r--recipes-kernel/linux/linux-yocto/workarounds/0001-PENDING-arm64-dts-qcm6490-Remove-voltage-voting-for-.patch54
-rw-r--r--recipes-kernel/linux/linux-yocto/workarounds/0001-PENDING-arm64-dts-qcom-Remove-voltage-vote-support-f.patch49
-rw-r--r--recipes-kernel/linux/linux-yocto/workarounds/0001-QCLINUX-arm64-dts-qcom-qcm6490-disable-sdhc1-for-ufs.patch34
-rw-r--r--recipes-kernel/linux/linux-yocto/workarounds/0002-PENDING-arm64-dts-qcom-Remove-voltage-vote-support-f.patch48
-rw-r--r--recipes-kernel/linux/linux-yocto/workarounds/0002-PENDING-arm64-dts-qcs6490-rb3-Remove-voltage-voting-.patch60
5 files changed, 245 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-yocto/workarounds/0001-PENDING-arm64-dts-qcm6490-Remove-voltage-voting-for-.patch b/recipes-kernel/linux/linux-yocto/workarounds/0001-PENDING-arm64-dts-qcm6490-Remove-voltage-voting-for-.patch
new file mode 100644
index 0000000..7338353
--- /dev/null
+++ b/recipes-kernel/linux/linux-yocto/workarounds/0001-PENDING-arm64-dts-qcm6490-Remove-voltage-voting-for-.patch
@@ -0,0 +1,54 @@
+From 5d52be9a7c56e416fe98744f025e8b4aa92fd849 Mon Sep 17 00:00:00 2001
+From: Umang Chheda <quic_uchheda@quicinc.com>
+Date: Wed, 11 Oct 2023 20:57:16 +0530
+Subject: [PATCH 1/2] PENDING: arm64: dts: qcm6490: remove voltage voting for
+ USB rails for idp
+
+USB driver does not vote for voltage on hsphy and ssphy
+rails. Due to which the initial voltage set by bootloader
+is overridden by regulator framework with min voltage specified
+on regulator registration.
+
+Fix this temporarily by removing voltage voting support, which
+will prevent regulator framework overriding the voltage set by
+bootloader.
+
+This commit will be reverted once voltage voting support is added
+in USB driver.
+
+Signed-off-by: Umang Chheda <quic_uchheda@quicinc.com>
+Signed-off-by: Salendarsingh Gaud <quic_sgaud@quicinc.com>
+Signed-off-by: Atul Dhudase <quic_adhudase@quicinc.com>
+Upstream-Status: Pending
+---
+ arch/arm64/boot/dts/qcom/qcm6490-idp.dts | 14 ++++++++++++++
+ 1 file changed, 14 insertions(+)
+
+diff --git a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
+index 14c73f55ea52..89e653c93ae8 100644
+--- a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
++++ b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
+@@ -519,6 +519,20 @@ &vreg_l9b_1p2 {
+ regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM RPMH_REGULATOR_MODE_HPM>;
+ };
+
++&vreg_l1b_0p912 {
++ /delete-property/regulator-min-microvolt;
++ /delete-property/regulator-max-microvolt;
++ regulator-allow-set-load;
++ regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM RPMH_REGULATOR_MODE_HPM>;
++};
++
++&vreg_l10c_0p88 {
++ /delete-property/regulator-min-microvolt;
++ /delete-property/regulator-max-microvolt;
++ regulator-allow-set-load;
++ regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM RPMH_REGULATOR_MODE_HPM>;
++};
++
+ &wifi {
+ memory-region = <&wlan_fw_mem>;
+ };
+--
+2.25.1
+
diff --git a/recipes-kernel/linux/linux-yocto/workarounds/0001-PENDING-arm64-dts-qcom-Remove-voltage-vote-support-f.patch b/recipes-kernel/linux/linux-yocto/workarounds/0001-PENDING-arm64-dts-qcom-Remove-voltage-vote-support-f.patch
new file mode 100644
index 0000000..a2359f6
--- /dev/null
+++ b/recipes-kernel/linux/linux-yocto/workarounds/0001-PENDING-arm64-dts-qcom-Remove-voltage-vote-support-f.patch
@@ -0,0 +1,49 @@
+From 328f42bd030f43574f516906fa0f25fcc5f19c30 Mon Sep 17 00:00:00 2001
+From: Umang Chheda <quic_uchheda@quicinc.com>
+Date: Wed, 11 Oct 2023 20:32:47 +0530
+Subject: [PATCH 1/2] PENDING: arm64: dts: qcom: Remove voltage vote support
+ for UFS for IDP
+
+UFS rails have different voltage requirement for UFS2.x v/s UFS3.x.
+Bootloader sets the proper voltage based on UFS type. There can be
+case where the voltage set by bootloader is overridden by HLOS client.
+
+To prevent above issue, Add change to remove voltage voting support
+for UFS rails.
+
+Signed-off-by: Umang Chheda <quic_uchheda@quicinc.com>
+Signed-off-by: Salendarsingh Gaud <quic_sgaud@quicinc.com>
+Signed-off-by: Atul Dhudase <quic_adhudase@quicinc.com>
+Upstream-Status: Pending
+---
+ arch/arm64/boot/dts/qcom/qcm6490-idp.dts | 14 ++++++++++++++
+ 1 file changed, 14 insertions(+)
+
+diff --git a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
+index 7f682093e954..5b96b77db0c2 100644
+--- a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
++++ b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
+@@ -505,6 +505,20 @@ &usb_1_qmpphy {
+ status = "okay";
+ };
+
++&vreg_l7b_2p952 {
++ /delete-property/regulator-min-microvolt;
++ /delete-property/regulator-max-microvolt;
++ regulator-allow-set-load;
++ regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM RPMH_REGULATOR_MODE_HPM>;
++};
++
++&vreg_l9b_1p2 {
++ /delete-property/regulator-min-microvolt;
++ /delete-property/regulator-max-microvolt;
++ regulator-allow-set-load;
++ regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM RPMH_REGULATOR_MODE_HPM>;
++};
++
+ &wifi {
+ memory-region = <&wlan_fw_mem>;
+ };
+--
+2.25.1
+
diff --git a/recipes-kernel/linux/linux-yocto/workarounds/0001-QCLINUX-arm64-dts-qcom-qcm6490-disable-sdhc1-for-ufs.patch b/recipes-kernel/linux/linux-yocto/workarounds/0001-QCLINUX-arm64-dts-qcom-qcm6490-disable-sdhc1-for-ufs.patch
new file mode 100644
index 0000000..feb48b5
--- /dev/null
+++ b/recipes-kernel/linux/linux-yocto/workarounds/0001-QCLINUX-arm64-dts-qcom-qcm6490-disable-sdhc1-for-ufs.patch
@@ -0,0 +1,34 @@
+From d968bbe73d04fc76db30bdefc9b00fb4128d6b4e Mon Sep 17 00:00:00 2001
+From: Manish Pandey <quic_mapa@quicinc.com>
+Date: Fri, 13 Oct 2023 19:38:59 +0530
+Subject: [PATCH] QCLINUX: arm64: dts: qcom: qcm6490: disable sdhc1 for ufs
+ target
+
+Disable sdhc1 for QCM6490 for ufs boot target to avoid probe
+for sdhc1 as vreg_l7b_2p9 is shared regulator for both ufs vcc
+and emmc vcc. Currently this is causing probe failure for ufs.
+
+Signed-off-by: Manish Pandey <quic_mapa@quicinc.com>
+Signed-off-by: Salendarsingh Gaud <quic_sgaud@quicinc.com>
+Signed-off-by: Atul Dhudase <quic_adhudase@quicinc.com>
+Upstream-Status: Pending
+---
+ arch/arm64/boot/dts/qcom/qcm6490-idp.dts | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
+index 424cd9c2b092..7f682093e954 100644
+--- a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
++++ b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
+@@ -450,7 +450,7 @@ &sdhc_1 {
+ vmmc-supply = <&vreg_l7b_2p952>;
+ vqmmc-supply = <&vreg_l19b_1p8>;
+
+- status = "okay";
++ status = "disabled";
+ };
+
+ &tlmm {
+--
+2.25.1
+
diff --git a/recipes-kernel/linux/linux-yocto/workarounds/0002-PENDING-arm64-dts-qcom-Remove-voltage-vote-support-f.patch b/recipes-kernel/linux/linux-yocto/workarounds/0002-PENDING-arm64-dts-qcom-Remove-voltage-vote-support-f.patch
new file mode 100644
index 0000000..9b569b3
--- /dev/null
+++ b/recipes-kernel/linux/linux-yocto/workarounds/0002-PENDING-arm64-dts-qcom-Remove-voltage-vote-support-f.patch
@@ -0,0 +1,48 @@
+From c0027585783c96a1ba37e8ea604af4c7c73e8154 Mon Sep 17 00:00:00 2001
+From: Umang Chheda <quic_uchheda@quicinc.com>
+Date: Wed, 18 Oct 2023 18:12:00 +0530
+Subject: [PATCH 2/2] PENDING: arm64: dts: qcom: Remove voltage vote support
+ for UFS for RB3
+
+UFS rails have different voltage requirement for UFS2.x v/s UFS3.x.
+Bootloader sets the proper voltage based on UFS type. There can be
+case where the voltage set by bootloader is overridden by HLOS client.
+
+To prevent above issue, Add change to remove voltage voting support
+for UFS rails for QC6490 RB3 platform.
+
+Signed-off-by: Umang Chheda <quic_uchheda@quicinc.com>
+Signed-off-by: Atul Dhudase <quic_adhudase@quicinc.com>
+Upstream-Status: Pending
+---
+ arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts | 14 ++++++++++++++
+ 1 file changed, 14 insertions(+)
+
+diff --git a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts
+index 6dbeb182d014..f13ab20906f8 100644
+--- a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts
++++ b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts
+@@ -488,6 +488,20 @@ &usb_1_qmpphy {
+ status = "okay";
+ };
+
++&vreg_l7b_2p952 {
++ /delete-property/regulator-min-microvolt;
++ /delete-property/regulator-max-microvolt;
++ regulator-allow-set-load;
++ regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM RPMH_REGULATOR_MODE_HPM>;
++};
++
++&vreg_l9b_1p2 {
++ /delete-property/regulator-min-microvolt;
++ /delete-property/regulator-max-microvolt;
++ regulator-allow-set-load;
++ regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM RPMH_REGULATOR_MODE_HPM>;
++};
++
+ &wifi {
+ memory-region = <&wlan_fw_mem>;
+ };
+--
+2.25.1
+
diff --git a/recipes-kernel/linux/linux-yocto/workarounds/0002-PENDING-arm64-dts-qcs6490-rb3-Remove-voltage-voting-.patch b/recipes-kernel/linux/linux-yocto/workarounds/0002-PENDING-arm64-dts-qcs6490-rb3-Remove-voltage-voting-.patch
new file mode 100644
index 0000000..9c0ddcd
--- /dev/null
+++ b/recipes-kernel/linux/linux-yocto/workarounds/0002-PENDING-arm64-dts-qcs6490-rb3-Remove-voltage-voting-.patch
@@ -0,0 +1,60 @@
+From b9b8286e4a3d72353ee90181f10507e2dfb1fd2b Mon Sep 17 00:00:00 2001
+From: Umang Chheda <quic_uchheda@quicinc.com>
+Date: Wed, 18 Oct 2023 18:14:15 +0530
+Subject: [PATCH 2/2] PENDING: arm64: dts: qcs6490-rb3: Remove voltage voting
+ for USB rails
+
+USB driver does not vote for voltage on hsphy and ssphy
+rails. Due to which the initial voltage set by bootloader
+is overridden by regulator framework with min voltage specified
+on regulator registration.
+
+Fix this temporarily by removing voltage voting support, which
+will prevent regulator framework overriding the voltage set by
+bootloader for QCS6490 RB3 Platform.
+
+This commit will be reverted once voltage voting support is added
+in USB driver.
+
+Signed-off-by: Umang Chheda <quic_uchheda@quicinc.com>
+Signed-off-by: Atul Dhudase <quic_adhudase@quicinc.com>
+Upstream-Status: Pending
+---
+ arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts | 14 ++++++++++++++
+ 1 file changed, 14 insertions(+)
+
+diff --git a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts
+index 2b30e8900991..1e20395d07ae 100644
+--- a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts
++++ b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts
+@@ -488,6 +488,13 @@ &usb_1_qmpphy {
+ status = "okay";
+ };
+
++&vreg_l1b_0p912 {
++ /delete-property/regulator-min-microvolt;
++ /delete-property/regulator-max-microvolt;
++ regulator-allow-set-load;
++ regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM RPMH_REGULATOR_MODE_HPM>;
++};
++
+ &vreg_l7b_2p952 {
+ /delete-property/regulator-min-microvolt;
+ /delete-property/regulator-max-microvolt;
+@@ -502,6 +509,13 @@ &vreg_l9b_1p2 {
+ regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM RPMH_REGULATOR_MODE_HPM>;
+ };
+
++&vreg_l10c_0p88 {
++ /delete-property/regulator-min-microvolt;
++ /delete-property/regulator-max-microvolt;
++ regulator-allow-set-load;
++ regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM RPMH_REGULATOR_MODE_HPM>;
++};
++
+ &wifi {
+ memory-region = <&wlan_fw_mem>;
+ };
+--
+2.25.1
+