From: Christian Marangi Date: Mon, 9 Dec 2024 17:24:01 +0000 (+0100) Subject: qualcommbe: ipq95xx: Add patch fixing USB regulator X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ed36c3deb9302e345c38fab7a85419fa8c4cb673;p=openwrt%2Fstaging%2Fansuel.git qualcommbe: ipq95xx: Add patch fixing USB regulator Add patch fixing USB regulator as the LDO needs to use ID 5 instead of ID 2. Signed-off-by: Christian Marangi --- 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 +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 +Rule: +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 +--- + 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 +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 +--- + 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 = <®ulator_fixed_0p925>; + + status = "okay"; +@@ -298,7 +298,7 @@ &usb_0_qmpphy { + + &usb_0_qusbphy { + vdd-supply = <®ulator_fixed_0p925>; +- vdda-pll-supply = <&mp5496_l2>; ++ vdda-pll-supply = <&mp5496_l5>; + vdda-phy-dpdm-supply = <®ulator_fixed_3p3>; + + status = "okay"; +-- +2.45.2 +