* [PATCH] arm64: dts: qcom: Add PM4125 charger node and shikra HS phy bridge
@ 2026-11-26 11:05 Raj Aryan
2026-11-26 11:14 ` sashiko-bot
0 siblings, 1 reply; 2+ messages in thread
From: Raj Aryan @ 2026-11-26 11:05 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: linux-arm-msm, devicetree, Raj Aryan, Krishna Kurapati,
Rakesh Kota
PM4125 integrates an SMBLite switch-mode battery charger. Add its
charger node to the PM4125 device tree and enable it on the Shikra
CQM SOM.
Shikra's primary HS phy endpoint was wired directly to the dwc3
controller, leaving no place to switch the USB role at runtime.
Route it through an intermediate connector/controller port pair and
mark the phy usb-role-switch capable, needed by the upcoming QUSB2
charger-detection work.
Signed-off-by: Raj Aryan <raj.aryan@oss.qualcomm.com>
Signed-off-by: Krishna Kurapati <krishna.kurapati@oss.qualcomm.com>
Signed-off-by: Rakesh Kota <rakesh.kota@oss.qualcomm.com>
---
This DT patch require driver and binding changes for SMBLite extension
and charger type detection to work which are already posted.
- Depends-on:
https://lore.kernel.org/all/20261126-smblite-charger-for-pm4125-v2-0-20656509518b@oss.qualcomm.com/
- Depends-on:
https://lore.kernel.org/all/20261111-shikra-qusb2-charger-det-v1-0-5a9d919c66b5@oss.qualcomm.com/
---
arch/arm64/boot/dts/qcom/pm4125.dtsi | 20 ++++++++++++++++++++
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts | 12 +++++++-----
arch/arm64/boot/dts/qcom/shikra-cqm-som.dtsi | 4 ++++
arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts | 10 ++++++----
arch/arm64/boot/dts/qcom/shikra.dtsi | 21 +++++++++++++++++++++
5 files changed, 58 insertions(+), 9 deletions(-)
diff --git a/arch/arm64/boot/dts/qcom/pm4125.dtsi b/arch/arm64/boot/dts/qcom/pm4125.dtsi
index e5797aa5a538..3512f84b2feb 100644
--- a/arch/arm64/boot/dts/qcom/pm4125.dtsi
+++ b/arch/arm64/boot/dts/qcom/pm4125.dtsi
@@ -65,6 +65,26 @@ pm4125_resin: resin {
};
};
+ pm4125_charger: charger@1000 {
+ compatible = "qcom,pm4125-charger";
+ reg = <0x1000>;
+
+ interrupts = <0x0 0x13 0x0 IRQ_TYPE_EDGE_BOTH>,
+ <0x0 0x12 0x3 IRQ_TYPE_EDGE_BOTH>,
+ <0x0 0x16 0x1 IRQ_TYPE_EDGE_RISING>,
+ <0x0 0x13 0x6 IRQ_TYPE_EDGE_RISING>;
+ interrupt-names = "usb-plugin",
+ "bat-ov",
+ "wdog-bark",
+ "usbin-icl-change";
+ io-channels = <&pm4125_adc ADC5_USB_IN_V_16>;
+ io-channel-names = "usbin_v";
+ qcom,jeita-soft-thresholds = <0x5314 0x25e3>; /* COOL, WARM */
+ qcom,jeita-hard-thresholds = <0x58cd 0x20b8>; /* COLD, HOT */
+
+ status = "disabled";
+ };
+
pm4125_vbus: usb-vbus-regulator@1100 {
compatible = "qcom,pm4125-vbus-reg";
reg = <0x1100>;
diff --git a/arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts b/arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts
index bde3b7d81ace..22a8edb5438a 100644
--- a/arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts
+++ b/arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts
@@ -30,7 +30,7 @@ &audiocorecc {
};
&pm4125_hs_in {
- remote-endpoint = <&usb_1_dwc3_hs>;
+ remote-endpoint = <&usb_1_hsphy_connector>;
};
&pm4125_ss_in {
@@ -83,15 +83,13 @@ &usb_1 {
dr_mode = "otg";
};
-&usb_1_dwc3_hs {
- remote-endpoint = <&pm4125_hs_in>;
-};
-
&usb_1_hsphy {
vdd-supply = <&pm4125_l12>;
vdda-pll-supply = <&pm4125_l13>;
vdda-phy-dpdm-supply = <&pm4125_l21>;
+ usb-role-switch;
+
status = "okay";
};
@@ -102,6 +100,10 @@ &usb_qmpphy {
status = "okay";
};
+&usb_1_hsphy_connector {
+ remote-endpoint = <&pm4125_hs_in>;
+};
+
&usb_qmpphy_out {
remote-endpoint = <&pm4125_ss_in>;
};
diff --git a/arch/arm64/boot/dts/qcom/shikra-cqm-som.dtsi b/arch/arm64/boot/dts/qcom/shikra-cqm-som.dtsi
index 95eb7255fb22..4feabdc34c3c 100644
--- a/arch/arm64/boot/dts/qcom/shikra-cqm-som.dtsi
+++ b/arch/arm64/boot/dts/qcom/shikra-cqm-som.dtsi
@@ -177,6 +177,10 @@ channel@55 {
};
};
+&pm4125_charger {
+ status = "okay";
+};
+
&pm4125_gpios {
pm4125_adc_gpio5_default: pm4125-adc-gpio5-state {
pins = "gpio5";
diff --git a/arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts b/arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts
index 2ded25c4304e..808f07218841 100644
--- a/arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts
+++ b/arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts
@@ -26,7 +26,7 @@ chosen {
};
&pm4125_hs_in {
- remote-endpoint = <&usb_1_dwc3_hs>;
+ remote-endpoint = <&usb_1_hsphy_connector>;
};
&pm4125_ss_in {
@@ -77,10 +77,8 @@ &sdhc_2 {
&usb_1 {
dr_mode = "otg";
-};
-&usb_1_dwc3_hs {
- remote-endpoint = <&pm4125_hs_in>;
+ status = "okay";
};
&usb_1_hsphy {
@@ -98,6 +96,10 @@ &usb_qmpphy {
status = "okay";
};
+&usb_1_hsphy_connector {
+ remote-endpoint = <&pm4125_hs_in>;
+};
+
&usb_qmpphy_out {
remote-endpoint = <&pm4125_ss_in>;
};
diff --git a/arch/arm64/boot/dts/qcom/shikra.dtsi b/arch/arm64/boot/dts/qcom/shikra.dtsi
index 0a95ad5a5582..d533eb6e774d 100644
--- a/arch/arm64/boot/dts/qcom/shikra.dtsi
+++ b/arch/arm64/boot/dts/qcom/shikra.dtsi
@@ -1083,6 +1083,26 @@ usb_1_hsphy: phy@1613000 {
#phy-cells = <0>;
status = "disabled";
+
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ port@0 {
+ reg = <0>;
+
+ usb_1_hsphy_connector: endpoint {
+ };
+ };
+
+ port@1 {
+ reg = <1>;
+
+ usb_1_hsphy_controller: endpoint {
+ remote-endpoint = <&usb_1_dwc3_hs>;
+ };
+ };
+ };
};
usb_qmpphy: phy@1615000 {
@@ -2596,6 +2616,7 @@ port@0 {
reg = <0>;
usb_1_dwc3_hs: endpoint {
+ remote-endpoint = <&usb_1_hsphy_controller>;
};
};
---
base-commit: 9437046953b2fb3bf55b36582450ea0267df82a7
change-id: 20261124-smblite-dt-bdbfb6dbe86b
Best regards,
--
Raj Aryan <raj.aryan@oss.qualcomm.com>
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] arm64: dts: qcom: Add PM4125 charger node and shikra HS phy bridge
2026-11-26 11:05 [PATCH] arm64: dts: qcom: Add PM4125 charger node and shikra HS phy bridge Raj Aryan
@ 2026-11-26 11:14 ` sashiko-bot
0 siblings, 0 replies; 2+ messages in thread
From: sashiko-bot @ 2026-11-26 11:14 UTC (permalink / raw)
To: Raj Aryan; +Cc: devicetree, robh, conor+dt
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [High] arm64: dts: qcom: missing usb-role-switch on usb_1_hsphy in
shikra-cqs-evk
--
commit d3868dd4e124d44a8cb64cb0971aab3bdb89598c
Author: Raj Aryan <raj.aryan@oss.qualcomm.com>
arm64: dts: qcom: Add PM4125 charger node and shikra HS phy bridge
This commit adds the PM4125 SMBLite charger node, enables it on Shikra CQM
SOM, and routes Shikra's primary HS PHY endpoint through an intermediate
connector/controller port pair for runtime USB role switching.
> diff --git a/arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts b/arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts
> index 2ded25c4304e6..808f07218841c 100644
> --- a/arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts
> +++ b/arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts
> @@ -26,7 +26,7 @@ chosen {
> };
>
> &pm4125_hs_in {
> - remote-endpoint = <&usb_1_dwc3_hs>;
> + remote-endpoint = <&usb_1_hsphy_connector>;
> };
>
> &pm4125_ss_in {
> @@ -77,10 +77,8 @@ &sdhc_2 {
>
> &usb_1 {
> dr_mode = "otg";
> -};
>
> -&usb_1_dwc3_hs {
> - remote-endpoint = <&pm4125_hs_in>;
> + status = "okay";
> };
>
> &usb_1_hsphy {
> @@ -98,6 +96,10 @@ &usb_qmpphy {
> status = "okay";
> };
>
> +&usb_1_hsphy_connector {
> + remote-endpoint = <&pm4125_hs_in>;
> +};
> +
> &usb_qmpphy_out {
> remote-endpoint = <&pm4125_ss_in>;
> };
[Severity: High]
Is &usb_1_hsphy missing the usb-role-switch property here, as added in
shikra-cqm-evk.dts?
Routing &pm4125_hs_in to &usb_1_hsphy_connector makes usb_1_hsphy the
remote port parent inspected by fwnode_usb_role_switch_get(), where
usb_role_switch_match() requires the usb-role-switch property to match the
role switch on Shikra CQS EVK. Also, &usb_1 already has status = "okay"
in shikra-evk.dtsi.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261126-smblite-dt-v1-1-0f4f4401db3b@oss.qualcomm.com?part=1
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-26 11:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-26 11:05 [PATCH] arm64: dts: qcom: Add PM4125 charger node and shikra HS phy bridge Raj Aryan
2026-11-26 11:14 ` sashiko-bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox