From: Akash Kumar <akash.kumar@oss.qualcomm.com>
To: Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konradybcio@kernel.org>
Cc: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>,
Abel Vesa <abel.vesa@linaro.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org
Subject: [PATCH v5 2/2] arm64: dts: qcom: talos-lyra-evk: Wire up CYPD6129 USB Type-C ports
Date: Thu, 26 Nov 2026 17:41:40 +0530 [thread overview]
Message-ID: <20261126121140.1716190-3-akash.kumar@oss.qualcomm.com> (raw)
In-Reply-To: <20261126121140.1716190-1-akash.kumar@oss.qualcomm.com>
Add the CYPD6129 UCSI PD controller (typec@40) on i2c5, along with its
GPIO86 interrupt line and the PM8150 GPIO10 VBUS-enable control. The PD
controller chip is part of the SoC/SoM card, so it is added to
talos-lyra-evk-som.dtsi.
The two USB-C connectors themselves, and the endpoint wiring that
routes them to usb_1/usb_2's dwc3 controllers and the USB QMP PHY, are
carrier-board-specific — a different carrier board could wire the same
SoM differently — so connector@0/connector@1 and the related
usb_1/usb_1_dwc3_hs/usb_2/usb_2_dwc3_hs/usb_qmpphy_out endpoints are
added to talos-lyra-evk.dts, extending the som.dtsi's typec@40 node by
path.
connector@1 additionally routes its SBU lines through a GPIO-controlled
SBU mux (onnn,fsusb43l10x), since connector@1's physical Type-C port
carries SuperSpeed and SBU while connector@0's port is USB-HS-only by
hardware design. The SBU mux lives on the carrier board, so it is added
to talos-lyra-evk.dts along with the TLMM GPIO64 VBUS boost enable
fixed regulator that supplies the USB daughter-card connector's VBUS.
Add orientation-gpios to the typec@40 node so CC orientation can be
read for both connectors: connector@0 is USB-HS-only, so it gets the
<0> placeholder, while connector@1 reports orientation via TLMM
GPIO104. GPIO104 was already used for the carrier board's DP
hot-plug-detect pin, so move dp_hot_plug_det to GPIO80 to free it up.
Signed-off-by: Akash Kumar <akash.kumar@oss.qualcomm.com>
---
.../boot/dts/qcom/talos-lyra-evk-som.dtsi | 41 +++++++
arch/arm64/boot/dts/qcom/talos-lyra-evk.dts | 109 +++++++++++++++++-
2 files changed, 145 insertions(+), 5 deletions(-)
diff --git a/arch/arm64/boot/dts/qcom/talos-lyra-evk-som.dtsi b/arch/arm64/boot/dts/qcom/talos-lyra-evk-som.dtsi
index 94bf2e73889a..c4a8a79a82a2 100644
--- a/arch/arm64/boot/dts/qcom/talos-lyra-evk-som.dtsi
+++ b/arch/arm64/boot/dts/qcom/talos-lyra-evk-som.dtsi
@@ -31,6 +31,16 @@ xo_board_clk: xo-board-clk {
#clock-cells = <0>;
};
};
+
+ regulator-usb1-vbus {
+ compatible = "regulator-fixed";
+ regulator-name = "USB1_VBUS";
+ gpio = <&pm8150_gpios 10 GPIO_ACTIVE_HIGH>;
+ pinctrl-0 = <&usb1_en>;
+ pinctrl-names = "default";
+ enable-active-high;
+ regulator-always-on;
+ };
};
&apps_rsc {
@@ -195,6 +205,28 @@ nvmem-layout {
#size-cells = <1>;
};
};
+
+ typec@40 {
+ compatible = "cypress,cypd6129";
+ reg = <0x40>;
+ interrupts-extended = <&tlmm 86 IRQ_TYPE_LEVEL_LOW>;
+ pinctrl-0 = <&usb0_intr_state>;
+ pinctrl-names = "default";
+ orientation-gpios = <0>, <&tlmm 104 GPIO_ACTIVE_HIGH>;
+ wakeup-source;
+
+ #address-cells = <1>;
+ #size-cells = <0>;
+ };
+};
+
+&pm8150_gpios {
+ usb1_en: usb1-en-state {
+ pins = "gpio10";
+ function = "normal";
+ output-enable;
+ power-source = <0>;
+ };
};
&qspi {
@@ -259,6 +291,15 @@ &sdhc_2 {
status = "okay";
};
+&tlmm {
+ usb0_intr_state: usb0-intr-state {
+ pins = "gpio86";
+ function = "gpio";
+ drive-strength = <2>;
+ bias-pull-up;
+ };
+};
+
&uart0 {
status = "okay";
};
diff --git a/arch/arm64/boot/dts/qcom/talos-lyra-evk.dts b/arch/arm64/boot/dts/qcom/talos-lyra-evk.dts
index bd9980b9259b..572b1e8c9a8a 100644
--- a/arch/arm64/boot/dts/qcom/talos-lyra-evk.dts
+++ b/arch/arm64/boot/dts/qcom/talos-lyra-evk.dts
@@ -4,6 +4,7 @@
*/
/dts-v1/;
+#include <dt-bindings/gpio/gpio.h>
#include "talos-lyra-evk-som.dtsi"
/ {
@@ -22,6 +23,28 @@ dp0_connector_in: endpoint {
};
};
};
+
+ regulator-vbus-boost-5v {
+ compatible = "regulator-fixed";
+ regulator-name = "vreg_vbus_boost_5v";
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ gpio = <&tlmm 64 GPIO_ACTIVE_HIGH>;
+ pinctrl-0 = <&vbus_boost_en>;
+ pinctrl-names = "default";
+ enable-active-high;
+ regulator-always-on;
+ };
+
+ sbu-mux {
+ compatible = "onnn,fsusb43l10x", "gpio-sbu-mux";
+
+ port {
+ sbu_mux_in: endpoint {
+ remote-endpoint = <&ccg_typec_con1_sbu>;
+ };
+ };
+ };
};
&i2c5 {
@@ -52,6 +75,66 @@ expander3: gpio@3c {
#gpio-cells = <2>;
gpio-controller;
};
+
+ typec@40 {
+ connector@0 {
+ compatible = "usb-c-connector";
+ reg = <0>;
+ label = "USB-C";
+ data-role = "dual";
+ power-role = "dual";
+
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ port@0 {
+ reg = <0>;
+
+ ucsi_ccg_port_0_hs: endpoint {
+ remote-endpoint = <&usb_2_dwc3_hs>;
+ };
+ };
+ };
+ };
+
+ connector@1 {
+ compatible = "usb-c-connector";
+ reg = <1>;
+ label = "USB-C";
+ data-role = "dual";
+ power-role = "dual";
+
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ port@0 {
+ reg = <0>;
+
+ ucsi_ccg_port_1_hs: endpoint {
+ remote-endpoint = <&usb_1_dwc3_hs>;
+ };
+ };
+
+ port@1 {
+ reg = <1>;
+
+ ccg_typec_con1_ss: endpoint {
+ remote-endpoint = <&usb_qmpphy_out>;
+ };
+ };
+
+ port@2 {
+ reg = <2>;
+
+ ccg_typec_con1_sbu: endpoint {
+ remote-endpoint = <&sbu_mux_in>;
+ };
+ };
+ };
+ };
+ };
};
&mdss {
@@ -92,20 +175,36 @@ tpm@0 {
&tlmm {
dp_hot_plug_det: dp-hot-plug-det-state {
- pins = "gpio104";
+ pins = "gpio80";
function = "dp_hot";
bias-disable;
};
+
+ vbus_boost_en: vbus-boost-en-state {
+ pins = "gpio64";
+ function = "gpio";
+ drive-strength = <2>;
+ bias-disable;
+ };
};
&usb_1 {
- dr_mode = "peripheral";
-
status = "okay";
};
-&usb_2 {
- dr_mode = "host";
+&usb_1_dwc3_hs {
+ remote-endpoint = <&ucsi_ccg_port_1_hs>;
+};
+&usb_2 {
status = "okay";
};
+
+/* HS only */
+&usb_2_dwc3_hs {
+ remote-endpoint = <&ucsi_ccg_port_0_hs>;
+};
+
+&usb_qmpphy_out {
+ remote-endpoint = <&ccg_typec_con1_ss>;
+};
--
2.43.0
prev parent reply other threads:[~2026-11-26 12:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 12:11 [PATCH v5 0/2] arm64: dts: qcom: talos-lyra-evk: Wire up CYPD6129 USB Type-C ports Akash Kumar
2026-11-26 12:11 ` [PATCH v5 1/2] arm64: dts: qcom: talos: Add graph port placeholders for USB Type-C muxing Akash Kumar
2026-11-26 12:11 ` Akash Kumar [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261126121140.1716190-3-akash.kumar@oss.qualcomm.com \
--to=akash.kumar@oss.qualcomm.com \
--cc=abel.vesa@linaro.org \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.baryshkov@oss.qualcomm.com \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox