[openwrt/openwrt] qualcommbe: ipq95xx: Add patch fixing USB regulator

LEDE Commits lede-commits at lists.infradead.org
Sat Jan 25 12:24:31 PST 2025


ansuel pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/e8824ab0cc8055124b2037d14f036284aa54ece5

commit e8824ab0cc8055124b2037d14f036284aa54ece5
Author: Christian Marangi <ansuelsmth at gmail.com>
AuthorDate: Mon Dec 9 18:24:01 2024 +0100

    qualcommbe: ipq95xx: Add patch fixing USB regulator
    
    Add patch fixing USB regulator as the LDO needs to use ID 5 instead of
    ID 2.
    
    Link: https://github.com/openwrt/openwrt/pull/17725
    Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
---
 ...ulator-qcom_smd-Add-LDO5-MP5496-regulator.patch | 31 ++++++++++++++
 ...com-fix-USB-vdda-pll-supply-for-ipq9574-r.patch | 49 ++++++++++++++++++++++
 2 files changed, 80 insertions(+)

diff --git a/target/linux/qualcommbe/patches-6.6/015-v6.8-regulator-qcom_smd-Add-LDO5-MP5496-regulator.patch b/target/linux/qualcommbe/patches-6.6/015-v6.8-regulator-qcom_smd-Add-LDO5-MP5496-regulator.patch
new file mode 100644
index 0000000000..68f96ce62e
--- /dev/null
+++ b/target/linux/qualcommbe/patches-6.6/015-v6.8-regulator-qcom_smd-Add-LDO5-MP5496-regulator.patch
@@ -0,0 +1,31 @@
+From ad663ce6780477177e301756ade6cf236f36ae4c Mon Sep 17 00:00:00 2001
+From: Varadarajan Narayanan <quic_varada at quicinc.com>
+Date: Thu, 14 Dec 2023 16:10:52 +0530
+Subject: [PATCH] regulator: qcom_smd: Add LDO5 MP5496 regulator
+
+Add support for LDO5 regulator. This is used by IPQ9574 USB.
+
+Signed-off-by: Varadarajan Narayanan <quic_varada at quicinc.com>
+Rule:  <add>
+Link: https://lore.kernel.org/stable/20231214104052.3267039-1-quic_varada%40quicinc.com
+Link: https://msgid.link/r/20231214104052.3267039-1-quic_varada@quicinc.com
+Signed-off-by: Mark Brown <broonie at kernel.org>
+---
+ drivers/regulator/qcom_smd-regulator.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/drivers/regulator/qcom_smd-regulator.c b/drivers/regulator/qcom_smd-regulator.c
+index 09c471a0ba2e..d1be9568025e 100644
+--- a/drivers/regulator/qcom_smd-regulator.c
++++ b/drivers/regulator/qcom_smd-regulator.c
+@@ -796,6 +796,7 @@ static const struct rpm_regulator_data rpm_mp5496_regulators[] = {
+ 	{ "s1", QCOM_SMD_RPM_SMPA, 1, &mp5496_smps, "s1" },
+ 	{ "s2", QCOM_SMD_RPM_SMPA, 2, &mp5496_smps, "s2" },
+ 	{ "l2", QCOM_SMD_RPM_LDOA, 2, &mp5496_ldoa2, "l2" },
++	{ "l5", QCOM_SMD_RPM_LDOA, 5, &mp5496_ldoa2, "l5" },
+ 	{}
+ };
+ 
+-- 
+2.45.2
+
diff --git a/target/linux/qualcommbe/patches-6.6/106-arm64-dts-qcom-fix-USB-vdda-pll-supply-for-ipq9574-r.patch b/target/linux/qualcommbe/patches-6.6/106-arm64-dts-qcom-fix-USB-vdda-pll-supply-for-ipq9574-r.patch
new file mode 100644
index 0000000000..cd33abda68
--- /dev/null
+++ b/target/linux/qualcommbe/patches-6.6/106-arm64-dts-qcom-fix-USB-vdda-pll-supply-for-ipq9574-r.patch
@@ -0,0 +1,49 @@
+From 2a7892782bf2cb84f204702ef47ae2d97be0d46b Mon Sep 17 00:00:00 2001
+From: Christian Marangi <ansuelsmth at gmail.com>
+Date: Mon, 9 Dec 2024 18:04:00 +0100
+Subject: [PATCH 2/2] arm64: dts: qcom: fix USB vdda-pll supply for ipq9574 rdp
+ common
+
+Fix USB vdda-pll for IPQ9574 SoC common for every RDP board. The correct
+regulator is the l5 one instead of l2 now supported in the smd regulator
+driver.
+
+Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
+---
+ arch/arm64/boot/dts/qcom/ipq9574-rdp-common.dtsi | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/arch/arm64/boot/dts/qcom/ipq9574-rdp-common.dtsi b/arch/arm64/boot/dts/qcom/ipq9574-rdp-common.dtsi
+index 13b623603d37..68b71437c2b9 100644
+--- a/arch/arm64/boot/dts/qcom/ipq9574-rdp-common.dtsi
++++ b/arch/arm64/boot/dts/qcom/ipq9574-rdp-common.dtsi
+@@ -249,7 +249,7 @@ ipq9574_s1: s1 {
+ 			regulator-max-microvolt = <1075000>;
+ 		};
+ 
+-		mp5496_l2: l2 {
++		mp5496_l5: l5 {
+ 			regulator-min-microvolt = <1800000>;
+ 			regulator-max-microvolt = <1800000>;
+ 			regulator-always-on;
+@@ -290,7 +290,7 @@ &usb_0_dwc3 {
+ };
+ 
+ &usb_0_qmpphy {
+-	vdda-pll-supply = <&mp5496_l2>;
++	vdda-pll-supply = <&mp5496_l5>;
+ 	vdda-phy-supply = <&regulator_fixed_0p925>;
+ 
+ 	status = "okay";
+@@ -298,7 +298,7 @@ &usb_0_qmpphy {
+ 
+ &usb_0_qusbphy {
+ 	vdd-supply = <&regulator_fixed_0p925>;
+-	vdda-pll-supply = <&mp5496_l2>;
++	vdda-pll-supply = <&mp5496_l5>;
+ 	vdda-phy-dpdm-supply = <&regulator_fixed_3p3>;
+ 
+ 	status = "okay";
+-- 
+2.45.2
+




More information about the lede-commits mailing list