* [PATCH 0/3] arm64: qcom: sm8650-valve-deckard: enable Type-C controller
@ 2026-11-25 11:54 Neil Armstrong
2026-11-25 11:54 ` [PATCH 1/3] arm64: dts: qcom: pm8550b: add USB VBUS regulator and Type-C nodes Neil Armstrong
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Neil Armstrong @ 2026-11-25 11:54 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: linux-arm-msm, devicetree, Neil Armstrong
Describe the PM8550B OTG VBUS boost and the Type-C port controller,
set a regulator as always-on and enable the Type-C controller and
PHY on the PM8550b for the Valve Deckard headset.
Depends on:
- https://lore.kernel.org/all/20261125-topic-sm8x50-pm8550b-tcpm-v1-1-f54040ccbbaa@linaro.org/
- https://lore.kernel.org/all/20261120-topic-sm8x50-pm8550b-usb-vbus-v1-0-bbda7b708359@linaro.org/
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
---
Neil Armstrong (3):
arm64: dts: qcom: pm8550b: add USB VBUS regulator and Type-C nodes
arm64: dts: qcom: sm8650-valve-deckard: set BOB2 as always-on
arm64: dts: qcom: sm8650-valve-deckard: add Type-C connector
arch/arm64/boot/dts/qcom/pm8550b.dtsi | 47 ++++++++++++++++++++
arch/arm64/boot/dts/qcom/sm8650-valve-deckard.dts | 52 ++++++++++++++++++++++-
2 files changed, 98 insertions(+), 1 deletion(-)
---
base-commit: 392248352ef971b473b50349ca834e5942bc404e
change-id: 20261125-topic-sm8650-deckard-tcpm-434796951239
Best regards,
--
Neil Armstrong <neil.armstrong@linaro.org>
^ permalink raw reply [flat|nested] 6+ messages in thread* [PATCH 1/3] arm64: dts: qcom: pm8550b: add USB VBUS regulator and Type-C nodes 2026-11-25 11:54 [PATCH 0/3] arm64: qcom: sm8650-valve-deckard: enable Type-C controller Neil Armstrong @ 2026-11-25 11:54 ` Neil Armstrong 2026-11-25 12:03 ` sashiko-bot 2026-11-25 11:54 ` [PATCH 2/3] arm64: dts: qcom: sm8650-valve-deckard: set BOB2 as always-on Neil Armstrong 2026-11-25 11:54 ` [PATCH 3/3] arm64: dts: qcom: sm8650-valve-deckard: add Type-C connector Neil Armstrong 2 siblings, 1 reply; 6+ messages in thread From: Neil Armstrong @ 2026-11-25 11:54 UTC (permalink / raw) To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring, Krzysztof Kozlowski, Conor Dooley Cc: linux-arm-msm, devicetree, Neil Armstrong Describe the PM8550B OTG VBUS boost and the Type-C port controller with its PD PHY, both disabled by default. They are only usable when the PMIC Type-C block is not already driven by the ADSP firmware through pmic-glink, typically when Linux runs at EL2. Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org> --- arch/arm64/boot/dts/qcom/pm8550b.dtsi | 47 +++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pm8550b.dtsi b/arch/arm64/boot/dts/qcom/pm8550b.dtsi index 74d23b8970f4..feb2395e920a 100644 --- a/arch/arm64/boot/dts/qcom/pm8550b.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8550b.dtsi @@ -45,6 +45,53 @@ pm8550b_temp_alarm: temp-alarm@a00 { #thermal-sensor-cells = <0>; }; + pm8550b_vbus: usb-vbus-regulator@2700 { + compatible = "qcom,pm8550b-vbus-reg"; + reg = <0x2700>; + regulator-min-microamp = <1000000>; + regulator-max-microamp = <3000000>; + status = "disabled"; + }; + + pm8550b_typec: typec@2b00 { + compatible = "qcom,pm8550b-typec", "qcom,pm8150b-typec"; + reg = <0x2b00>, + <0x2d00>; + interrupts = <0x7 0x2b 0x00 IRQ_TYPE_EDGE_RISING>, + <0x7 0x2b 0x01 IRQ_TYPE_EDGE_BOTH>, + <0x7 0x2b 0x02 IRQ_TYPE_EDGE_RISING>, + <0x7 0x2b 0x03 IRQ_TYPE_EDGE_BOTH>, + <0x7 0x2b 0x04 IRQ_TYPE_EDGE_RISING>, + <0x7 0x2b 0x05 IRQ_TYPE_EDGE_RISING>, + <0x7 0x2b 0x06 IRQ_TYPE_EDGE_BOTH>, + <0x7 0x2b 0x07 IRQ_TYPE_EDGE_RISING>, + <0x7 0x2d 0x00 IRQ_TYPE_EDGE_RISING>, + <0x7 0x2d 0x01 IRQ_TYPE_EDGE_RISING>, + <0x7 0x2d 0x02 IRQ_TYPE_EDGE_RISING>, + <0x7 0x2d 0x03 IRQ_TYPE_EDGE_RISING>, + <0x7 0x2d 0x04 IRQ_TYPE_EDGE_RISING>, + <0x7 0x2d 0x05 IRQ_TYPE_EDGE_RISING>, + <0x7 0x2d 0x06 IRQ_TYPE_EDGE_RISING>, + <0x7 0x2d 0x07 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "or-rid-detect-change", + "vpd-detect", + "cc-state-change", + "vconn-oc", + "vbus-change", + "attach-detach", + "legacy-cable-detect", + "try-snk-src-detect", + "sig-tx", + "sig-rx", + "msg-tx", + "msg-rx", + "msg-tx-failed", + "msg-tx-discarded", + "msg-rx-discarded", + "fr-swap"; + status = "disabled"; + }; + pm8550b_gpios: gpio@8800 { compatible = "qcom,pm8550b-gpio", "qcom,spmi-gpio"; reg = <0x8800>; -- 2.34.1 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 1/3] arm64: dts: qcom: pm8550b: add USB VBUS regulator and Type-C nodes 2026-11-25 11:54 ` [PATCH 1/3] arm64: dts: qcom: pm8550b: add USB VBUS regulator and Type-C nodes Neil Armstrong @ 2026-11-25 12:03 ` sashiko-bot 0 siblings, 0 replies; 6+ messages in thread From: sashiko-bot @ 2026-11-25 12:03 UTC (permalink / raw) To: Neil Armstrong; +Cc: devicetree, robh, conor+dt Thank you for your contribution! Sashiko AI review found 2 potential issues to consider: - [High] arm64: dts: qcom: pm8550b: unmatched and undocumented compatible on pm8550b_vbus - [Low] arm64: dts: qcom: pm8550b: undocumented compatible qcom,pm8550b-typec -- commit cf2d4fe502182acd6818991415b674bdb540bbb6 Author: Neil Armstrong <neil.armstrong@linaro.org> arm64: dts: qcom: pm8550b: add USB VBUS regulator and Type-C nodes This commit adds the USB OTG VBUS boost regulator and Type-C port controller nodes to pm8550b.dtsi, disabled by default. > diff --git a/arch/arm64/boot/dts/qcom/pm8550b.dtsi b/arch/arm64/boot/dts/qcom/pm8550b.dtsi > index 74d23b8970f4c..feb2395e920a9 100644 > --- a/arch/arm64/boot/dts/qcom/pm8550b.dtsi > +++ b/arch/arm64/boot/dts/qcom/pm8550b.dtsi > @@ -45,6 +45,53 @@ pm8550b_temp_alarm: temp-alarm@a00 { > #thermal-sensor-cells = <0>; > }; > > + pm8550b_vbus: usb-vbus-regulator@2700 { > + compatible = "qcom,pm8550b-vbus-reg"; > + reg = <0x2700>; > + regulator-min-microamp = <1000000>; > + regulator-max-microamp = <3000000>; > + status = "disabled"; > + }; [Severity: High] Can any driver bind to pm8550b_vbus without a fallback compatible or a matching entry in qcom_usb_vbus_regulator_match[]? drivers/regulator/qcom_usb_vbus-regulator.c only matches "qcom,pm8150b-vbus-reg" and "qcom,pm4125-vbus-reg", and "qcom,pm8550b-vbus-reg" is not documented in Documentation/devicetree/bindings/regulator/qcom,usb-vbus-regulator.yaml. When a board enables pm8550b_vbus and references it as vbus-supply on the Type-C connector, no regulator is registered and qcom_pmic_typec_port_probe() fails indefinitely with -EPROBE_DEFER. > + > + pm8550b_typec: typec@2b00 { > + compatible = "qcom,pm8550b-typec", "qcom,pm8150b-typec"; [Severity: Low] Should "qcom,pm8550b-typec" be added to Documentation/devicetree/bindings/usb/qcom,pmic-typec.yaml? That schema currently only permits "qcom,pm6150-typec" and "qcom,pm7250b-typec" with the "qcom,pm8150b-typec" fallback, so dtbs_check will report a validation warning on boards that include pm8550b.dtsi. -- Sashiko AI review · https://sashiko.dev/#/patchset/20261125-topic-sm8650-deckard-tcpm-v1-0-4af33e89ea9e@linaro.org?part=1 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 2/3] arm64: dts: qcom: sm8650-valve-deckard: set BOB2 as always-on 2026-11-25 11:54 [PATCH 0/3] arm64: qcom: sm8650-valve-deckard: enable Type-C controller Neil Armstrong 2026-11-25 11:54 ` [PATCH 1/3] arm64: dts: qcom: pm8550b: add USB VBUS regulator and Type-C nodes Neil Armstrong @ 2026-11-25 11:54 ` Neil Armstrong 2026-11-25 11:54 ` [PATCH 3/3] arm64: dts: qcom: sm8650-valve-deckard: add Type-C connector Neil Armstrong 2 siblings, 0 replies; 6+ messages in thread From: Neil Armstrong @ 2026-11-25 11:54 UTC (permalink / raw) To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring, Krzysztof Kozlowski, Conor Dooley Cc: linux-arm-msm, devicetree, Neil Armstrong The BOB2 regulator powers some always-on USB components, keep it always-on and expect it to be enabled on boot. Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org> --- arch/arm64/boot/dts/qcom/sm8650-valve-deckard.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8650-valve-deckard.dts b/arch/arm64/boot/dts/qcom/sm8650-valve-deckard.dts index 6e7a8606d179..74bc0728ae7d 100644 --- a/arch/arm64/boot/dts/qcom/sm8650-valve-deckard.dts +++ b/arch/arm64/boot/dts/qcom/sm8650-valve-deckard.dts @@ -333,6 +333,10 @@ vreg_bob2: bob2 { regulator-min-microvolt = <2720000>; regulator-max-microvolt = <3008000>; regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + + /* Drives passive USB protection MUX */ + regulator-always-on; + regulator-boot-on; }; vreg_l1b_1p8: ldo1 { -- 2.34.1 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 3/3] arm64: dts: qcom: sm8650-valve-deckard: add Type-C connector 2026-11-25 11:54 [PATCH 0/3] arm64: qcom: sm8650-valve-deckard: enable Type-C controller Neil Armstrong 2026-11-25 11:54 ` [PATCH 1/3] arm64: dts: qcom: pm8550b: add USB VBUS regulator and Type-C nodes Neil Armstrong 2026-11-25 11:54 ` [PATCH 2/3] arm64: dts: qcom: sm8650-valve-deckard: set BOB2 as always-on Neil Armstrong @ 2026-11-25 11:54 ` Neil Armstrong 2026-11-25 12:06 ` sashiko-bot 2 siblings, 1 reply; 6+ messages in thread From: Neil Armstrong @ 2026-11-25 11:54 UTC (permalink / raw) To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring, Krzysztof Kozlowski, Conor Dooley Cc: linux-arm-msm, devicetree, Neil Armstrong Enable the Type-C controller and PHY on the PM8550b and add a connector tied to the USB3 controller to support dual data-role and power-mode. Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org> --- arch/arm64/boot/dts/qcom/sm8650-valve-deckard.dts | 48 ++++++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm8650-valve-deckard.dts b/arch/arm64/boot/dts/qcom/sm8650-valve-deckard.dts index 74bc0728ae7d..0e68c5a6414c 100644 --- a/arch/arm64/boot/dts/qcom/sm8650-valve-deckard.dts +++ b/arch/arm64/boot/dts/qcom/sm8650-valve-deckard.dts @@ -8,6 +8,7 @@ #include <dt-bindings/leds/common.h> #include <dt-bindings/regulator/qcom,rpmh-regulator.h> #include <dt-bindings/phy/phy.h> +#include <dt-bindings/usb/pd.h> #include "sm8650.dtsi" #include "pm8010.dtsi" #include "pm8550.dtsi" @@ -1122,6 +1123,46 @@ &pm8550b_temp_alarm { io-channel-names = "thermal"; }; +&pm8550b_typec { + vdd-pdphy-supply = <&vreg_l5b_3p1>; + + status = "okay"; + + connector { + compatible = "usb-c-connector"; + + power-role = "dual"; + data-role = "dual"; + try-power-role = "sink"; + self-powered; + + vbus-supply = <&pm8550b_vbus>; + + source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_DUAL_ROLE | + PDO_FIXED_DATA_SWAP | PDO_FIXED_USB_COMM)>; + sink-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_DUAL_ROLE | + PDO_FIXED_DATA_SWAP | PDO_FIXED_USB_COMM)>; + op-sink-microwatt = <15000000>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + pmic_typec_hs_in: endpoint { + remote-endpoint = <&usb_1_dwc3_hs>; + }; + }; + }; + }; +}; + +&pm8550b_vbus { + status = "okay"; +}; + &pm8550vs_c { status = "okay"; }; @@ -1472,7 +1513,8 @@ &ufs_mem_phy { }; &usb_1 { - dr_mode = "peripheral"; + dr_mode = "otg"; + usb-role-switch; /* USB 2.0 only */ qcom,select-utmi-as-pipe-clk; @@ -1485,6 +1527,10 @@ &usb_1 { status = "okay"; }; +&usb_1_dwc3_hs { + remote-endpoint = <&pmic_typec_hs_in>; +}; + &usb_1_hsphy { vdd-supply = <&vreg_l1i_0p88>; vdda12-supply = <&vreg_l3i_1p2>; -- 2.34.1 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 3/3] arm64: dts: qcom: sm8650-valve-deckard: add Type-C connector 2026-11-25 11:54 ` [PATCH 3/3] arm64: dts: qcom: sm8650-valve-deckard: add Type-C connector Neil Armstrong @ 2026-11-25 12:06 ` sashiko-bot 0 siblings, 0 replies; 6+ messages in thread From: sashiko-bot @ 2026-11-25 12:06 UTC (permalink / raw) To: Neil Armstrong; +Cc: devicetree, robh, conor+dt Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [High] arm64: dts: qcom: pm8550b_vbus has no matching driver causing -EPROBE_DEFER -- commit cad759f37d6629d6eaf0802cb58c4ae38ebac1a3 Author: Neil Armstrong <neil.armstrong@linaro.org> arm64: dts: qcom: sm8650-valve-deckard: add Type-C connector This commit enables the PM8550B Type-C controller, VBUS regulator, and USB-C connector node tied to the usb_1 controller on the Valve Deckard board. > diff --git a/arch/arm64/boot/dts/qcom/sm8650-valve-deckard.dts b/arch/arm64/boot/dts/qcom/sm8650-valve-deckard.dts > index 74bc0728ae7d7..0e68c5a6414c5 100644 > --- a/arch/arm64/boot/dts/qcom/sm8650-valve-deckard.dts > +++ b/arch/arm64/boot/dts/qcom/sm8650-valve-deckard.dts [ ... ] > @@ -1122,6 +1123,46 @@ &pm8550b_temp_alarm { > io-channel-names = "thermal"; > }; > > +&pm8550b_typec { > + vdd-pdphy-supply = <&vreg_l5b_3p1>; > + > + status = "okay"; > + > + connector { > + compatible = "usb-c-connector"; > + > + power-role = "dual"; > + data-role = "dual"; > + try-power-role = "sink"; > + self-powered; > + > + vbus-supply = <&pm8550b_vbus>; > + > + source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_DUAL_ROLE | > + PDO_FIXED_DATA_SWAP | PDO_FIXED_USB_COMM)>; > + sink-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_DUAL_ROLE | > + PDO_FIXED_DATA_SWAP | PDO_FIXED_USB_COMM)>; > + op-sink-microwatt = <15000000>; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; > + > + pmic_typec_hs_in: endpoint { > + remote-endpoint = <&usb_1_dwc3_hs>; > + }; > + }; > + }; > + }; > +}; > + > +&pm8550b_vbus { > + status = "okay"; > +}; [Severity: High] Will pm8550b_typec defer probe indefinitely when resolving vbus-supply = <&pm8550b_vbus>? In arch/arm64/boot/dts/qcom/pm8550b.dtsi, pm8550b_vbus is defined with compatible = "qcom,pm8550b-vbus-reg" and no fallback compatible, while qcom_usb_vbus_regulator_match[] in drivers/regulator/qcom_usb_vbus-regulator.c only matches "qcom,pm8150b-vbus-reg" and "qcom,pm4125-vbus-reg". Because no driver registers a regulator for pm8550b_vbus, devm_of_regulator_get_optional() in qcom_pmic_typec_port_probe() returns ERR_PTR(-EPROBE_DEFER), preventing the Type-C port controller and USB role switch from probing. In addition, "qcom,pm8550b-vbus-reg" and "qcom,pm8550b-typec" are not documented in Documentation/devicetree/bindings/regulator/qcom,usb-vbus-regulator.yaml or Documentation/devicetree/bindings/usb/qcom,pmic-typec.yaml. -- Sashiko AI review · https://sashiko.dev/#/patchset/20261125-topic-sm8650-deckard-tcpm-v1-0-4af33e89ea9e@linaro.org?part=3 ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2026-11-25 12:06 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2026-11-25 11:54 [PATCH 0/3] arm64: qcom: sm8650-valve-deckard: enable Type-C controller Neil Armstrong 2026-11-25 11:54 ` [PATCH 1/3] arm64: dts: qcom: pm8550b: add USB VBUS regulator and Type-C nodes Neil Armstrong 2026-11-25 12:03 ` sashiko-bot 2026-11-25 11:54 ` [PATCH 2/3] arm64: dts: qcom: sm8650-valve-deckard: set BOB2 as always-on Neil Armstrong 2026-11-25 11:54 ` [PATCH 3/3] arm64: dts: qcom: sm8650-valve-deckard: add Type-C connector Neil Armstrong 2026-11-25 12:06 ` sashiko-bot
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox