Skip to contentSkip to conversation

arm64: dts: qcom: sm8250-xiaomi-elish: add usb pd negotiation support

PATCH Applied Jianhua Lu 2 participants 2 messages Mar 2, 2024 – Mar 19, 2024

Subsystems (3)
lore
Share & tools
lore

Jianhua Lu

author
#0 lore raw

PATCH v2 1/1 arm64: dts: qcom: sm8250-xiaomi-elish: add usb pd negotiation support

Add usb pd negotiation, but charging is controlled by pm8150b pmic, so it can only charge battery with 5W,

---
 arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi +8 -1
index 6f54f50a70b0..2042020eb0dd 100644
@@ -636,7 +636,8 @@ &pm8150b_typec {
 	connector {
 		compatible = "usb-c-connector";
 
-		power-role = "source";
+		op-sink-microwatt = <10000000>;
+		power-role = "dual";
 		data-role = "dual";
 		self-powered;
 
@@ -645,6 +646,12 @@ PDO_FIXED_DUAL_ROLE |
 					 PDO_FIXED_USB_COMM |
 					 PDO_FIXED_DATA_SWAP)>;
 
+		sink-pdos = <PDO_FIXED(5000, 3000,
+				       PDO_FIXED_DUAL_ROLE |
+				       PDO_FIXED_USB_COMM |
+				       PDO_FIXED_DATA_SWAP)
+				       PDO_VAR(5000, 12000, 5000)>;
+
 		ports {
 			#address-cells = <1>;
 			#size-cells = <0>;
Signature · 1 line
2.44.0
maintainer Applied
#1 lore raw
Quoted 4 lines · Jianhua Lu

Add usb pd negotiation, but charging is controlled by pm8150b pmic, so it can only charge battery with 5W,

Applied, thanks!

[1/1] arm64: dts: qcom: sm8250-xiaomi-elish: add usb pd negotiation support

      commit: 91905d8368c69bea3fb85f5c76334274a232612d

Best regards,

Signature · 1 line
Bjorn Andersson <[email protected]>