From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.180.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794834339; b=k0rkPshc4L/It8DCarcwGgOFf8sgrNVY4CZPh44KFP6JzEQSn0CO6nB2CCviYXcMlhZ2 v6BIkTrQXO1pT7bu6479926xTABrJhPuGxX03UPWE4/d+pOUOZbt7g86kk8Bawa3CI8Cp GVs/L1MGHyeZK9nGXjJrvfkESZ4F/MrEex7oBy1idxD60H21TPsWgI0XSVzvCBxhoxPNu /jtMDHrGjCQYCcvRZfO4F8RPSdeyvfoDmfNH3GsL3C5OHQEVJMJNR9ram1CK4qrKzZz7J s6CMqWbPyDiXEr4Ma0qG52biCErAUR/Ux4+5IqgcFwMgORe4rykFLFoYPkpluIH1Q7Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794834339; h=DMARC-Filter:Received:DKIM-Signature:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:X-Received:Received:From:To:Cc: Subject:Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:X-Authority-Analysis:X-Proofpoint-Spam-Info: X-Proofpoint-Spam-Details-Enc:X-Proofpoint-GUID: X-Proofpoint-ORIG-GUID:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=ibqxhW40RmBjwpc8i50dBPwS/b2wJRBsVzM6V99AbQ8=; b=1cQmJfxo+boI1e+eyExktYifxDNxGQa9ipAipEZxStryDaqyifCe2dRsf7FTfBw9o5i8 FvtbLTTnlTbQw69E3YpoDVrud/9mmYdk8ik98LLc6LgIzw9Ff6EFjlfDHp8+wMFpZYeXV ykF4bKhGtl8kRaLNQSjsOvB1xLEREO0lp03Ub3u55CM03RPx/N9ui46+46WA2I1xQsRxf nA/Nq++E9BRDQk9z3+y3dxL+YNe+rR6goOSZMbtk2lMjqkvF64LOsRYLbM9SD40AZWPmh N4ii98btnfhF9mOxO0dVuBPqv5smvnQNFEG29z5U6mkLHfyzqRjEGu16kaZj2jlYlfw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=nH+QS9CB; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b="hr/rND0l"; arc=none smtp.remote-ip=205.220.180.131 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F144E606A329 for ; Mon, 16 Nov 2026 13:05:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org F144E606A329 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=nH+QS9CB; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=hr/rND0l Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6AGC0pr01552335 for ; Mon, 16 Nov 2026 13:05:38 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=ibqxhW40RmB jwpc8i50dBPwS/b2wJRBsVzM6V99AbQ8=; b=nH+QS9CBHsdrsJJ+gi0Qnp2KHf4 Owqqe+SFBP6d8+A//QIKXyztLl3u7a0qP5xkx28cRssNhwy3DiiXpbjxVi+ul5Fi NEGMFF2E+ACMQj3EkxbjjGZU9/G3mJosAYIIY5upnzl5ObCq/DQARGe1wRgAZuNu mL3i5AbXdaGuxj5eiVeEAFgxDkfVA89WqTku/Jeb4qHAI3QuE8dPtrFEmm2h43aK t4qqnGZIalkmq/CRLfarqAQXGIhoigXsLbzXag9SU6DQR6kHMQ3ey8qQ/c3tCIh5 2/tTRJlB4NOaUc9AKbo1y+360/qLJU2a4EVSNzS5JxK3Ol5ziIXCWPoj3Dg== Received: from mail-ot1-f70.google.com (mail-ot1-f70.google.com [209.85.210.70]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hyxx2guhc-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 16 Nov 2026 13:05:37 +0000 (GMT) Received: by mail-ot1-f70.google.com with SMTP id 46e09a7af769-860e65f42a5so3864149a34.3 for ; Mon, 16 Nov 2026 05:05:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1794834337; x=1795439137; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=ibqxhW40RmBjwpc8i50dBPwS/b2wJRBsVzM6V99AbQ8=; b=hr/rND0l5IIDJkqQnNdykgZ1n2Vf6BtpVxLnOjaaqr0CQvX/Lub7B54MrRQ8eKbZkZ 1lyfGeyPjpqM/6J3XgEw96eZOgdkrGmGHVZKChhoxYOdi3PYyJEae4ROqULvGLs1/sPp MIVKY+c/uHNN4bF5MgzOjCLYbJWMWgSJc0s0C0UX1jT6AGN4imzZ6pnqld4eI59U+hVT TF7k0aGB5QogmOPzK1Yt/CGu1dQOIc3y4H05prA8Y73WYykctLhxZ+m7MH++fa3PDh9g SGz3W42VkAe1+FjrAkxWQnMr2Nc9S6vXEeAVULjIj85RhFjk1Uf5YHxoGvDdNIizeyQw dIig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1794834337; x=1795439137; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=ibqxhW40RmBjwpc8i50dBPwS/b2wJRBsVzM6V99AbQ8=; b=CQYvhp3LO/PyoASFGuwvb+p26ELMIya8hXtYXPgb+alaEO7DqQLQKFeaR395GmM3IZ kC9rTb/w+keHSF1sbhlMEBIIEyBVxJQ7KrbTT5Mm54duFBO/M7Chpb1FgEDIqA6WP8NL a0nDb4JEi6GrkQWJjGLuMrBxM103Xo7QqyC7jBUV1ByIAOKTwWkt8/8zbfZRNb3sgCWn u+zTdP9zPg7ibSxyg559LXXw0oHzPnZfE3cpDbaHr8RJy5QFCcs0sUeUT5LKSeW1s6X+ UhQ2f4OhHUPpsbGTUeoFIbJBGhLO2XxOdMDUQzRYveLUkj1MdVURlBMKCOuEvntkV46v XVXg== X-Forwarded-Encrypted: i=1; AL+hErHHJpATTbWPvcZ2xSFPhZY8uF0I/Ai38sj3aEq2/qtd+3/7+DCGXUk+WCHRnqor4ZlolUQriU8JIBDONfU=@vger.kernel.org X-Gm-Message-State: APuU4Z8TXXk3kMvDNt3NUGPwFztlMJLHQrtTeDb9msCbeFOdsPWrroQN H0r6ZchOyUH/6Wx9eOsfM9OY46q44GzPJ3B/3quwdCG1mQruYgy9IwNJ3U4wt7S+NTWfPMDrkZ1 7MBXwC1sIfU0Ausd9jZizrKm89f4UUWj4fLXrYIpbs3UtIvH1Ipwwv0PISzBcFeDtXMM= X-Gm-Gg: AYBFou1rABjAFvdsdNhRjVrkMACaTAFrEhMuNByV0tVrVpVLk+HTmuByTT6yqkIg3WN QALuKIlH5GJYlf3jdcQTTp9dbfTEZMkCS5iaxcd66AzQDYboseiqe7GhBmPVKbGkbSbTVTauPRg tGyjAqZjhJ12qYFf4Gv5eOjSsQyIr/jUNSmLKSZXRZCPLjlParJzjdQ7QulDSJFKPGtOwVDzWuE UvsKbaGQEUqTygvF6cduwlmwgqvHrc3tsqEgad4w9JX8kAOOJgw0qqpuqZ+2cTblxKq5YkOPsYo O1Kb9tDYYlW2xUbUjaCViKL47koMPht1hzG6oFGEuS2VzkfTFT81mwvWe0R77ORt9nMTPXJFSi6 lmhErGaZnf4CWNWbeBngiqiq1jLCm/2ELBpvfNOtTIcnwJnJXWGHnr6LhbBm+YWQHVkcaOddbYZ Dx X-Received: by 2002:a05:6808:4f0f:b0:4f8:716d:793e with SMTP id 5614622812f47-56e64dfe401mr9919964b6e.46.1794834337110; Mon, 16 Nov 2026 05:05:37 -0800 (PST) X-Received: by 2002:a05:6808:4f0f:b0:4f8:716d:793e with SMTP id 5614622812f47-56e64dfe401mr9919909b6e.46.1794834336612; Mon, 16 Nov 2026 05:05:36 -0800 (PST) Received: from hu-akakum-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id 5614622812f47-56e6fc3eaf6sm9895641b6e.5.2026.11.16.05.05.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2026 05:05:36 -0800 (PST) From: Akash Kumar To: Bjorn Andersson , Konrad Dybcio Cc: Dmitry Baryshkov , Abel Vesa , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 2/2] arm64: dts: qcom: talos-lyra-evk: Wire up CYPD6129 USB Type-C ports Date: Mon, 16 Nov 2026 18:35:20 +0530 Message-ID: <20261116130520.1763088-3-akash.kumar@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261116130520.1763088-1-akash.kumar@oss.qualcomm.com> References: <20261116130520.1763088-1-akash.kumar@oss.qualcomm.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Authority-Analysis: v=2.4 cv=R7WWitRX c=1 sm=1 tr=0 ts=6afaffa1 cx=c_pps a=7uPEO8VhqeOX8vTJ3z8K6Q==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=zJRp6_cAMcgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=gowsoOTTUOVcmtlkKump:22 a=EUspDBNiAAAA:8 a=1-dFLm9VQVe0kl0r4fgA:9 a=EXS-LbY8YePsIyqnH6vw:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMTE2MDA1MiBTYWx0ZWRfX4SObSgHCylXl AtodfBph1a/X70jr/mZDsO4fWGkzi5/44QnpDDg2HsScvsPMWoUQ3vgPP/MxmGm7Sk0V1aT17b0 k2g8HWpUcEqATb2n5tI5FI9YSGJRZoc= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTE2MDA1MiBTYWx0ZWRfX8868236mXhd+ m0QvkgtsHQJAVVWnf0UHdB6Uwq1p43Mtz+DXbF21NC8ZPQEUzmL9jAZLmY2t/2SsHLRoAikkx4O vuveYPnn347gdM3cQm7230o/Zg/+lNIlw8ZRpC34+E9NSsS+UjecWE3OU3kQRkDlkQUuyCbRhHo +DE4vkMhwiMWTDG4cvbLO+yL/8FGwwzKBx/zKc3gykvw6DslPYTJIQ4/+iUM0NsmTpvTweyQ/dL xVa/Suf6/rkhSxDFc3baJ7/C6TrtXqSS5TRS5Iut1+uxxKS9di2x2tbtEhuS1paU1Dc6ejJtmWL nR/MmNYw7S/iRVo0ncTtbRJT/Xq24wH8TIOWjG1kx23QO9pgW3+O4lHWugABBVDqY127RnPC5FH pfOIbwWkXmCcwnuBhbbYRVSDj+3QFn3J/a22bAytZVIvgUH6AR3NWUCJFrh7J7XMQOo8vaoTKCb dT0++OmhjuEzMm/DsXA== X-Proofpoint-GUID: LPI_4-NvshSBW0MaQ8dCzDQG1XLFWl82 X-Proofpoint-ORIG-GUID: LPI_4-NvshSBW0MaQ8dCzDQG1XLFWl82 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-11-16_04,2026-11-16_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 clxscore=1015 priorityscore=1501 phishscore=0 adultscore=0 bulkscore=0 malwarescore=0 suspectscore=0 impostorscore=0 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611160052 From: Akash Kumar Add the CYPD6129 UCSI PD controller (typec@40) on i2c5 with its two USB-C connectors, and route their HS/SS endpoints to usb_1/usb_2's dwc3 controllers and the USB QMP PHY. The PD controller, its GPIO86 interrupt line, and the PM8150 GPIO10 VBUS-enable control are on the SoC/SoM card, so they are added to talos-lyra-evk-som.dtsi. connector@1 additionally routes its SBU lines through a GPIO-controlled SBU mux (onnn,fsusb43l10x) selected by expander0, 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 and its GPIO expanders live on the carrier board, so they are 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. Switch usb_1/usb_2 to dr_mode = "otg" with usb-role-switch so role switching is driven by the PD controller, and add the supporting USB1_VBUS regulator and pinctrl entries needed by this routing. Signed-off-by: Akash Kumar --- .../boot/dts/qcom/talos-lyra-evk-som.dtsi | 121 ++++++++++++++++++ arch/arm64/boot/dts/qcom/talos-lyra-evk.dts | 42 ++++-- 2 files changed, 152 insertions(+), 11 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 7d9a08471906..ed3a369dac02 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 { @@ -179,6 +189,87 @@ &gpu_zap_shader { firmware-name = "qcom/qcs615/a612_zap.mbn"; }; +&i2c5 { + typec@40 { + compatible = "cypress,cypd6129"; + reg = <0x40>; + interrupts-extended = <&tlmm 86 IRQ_TYPE_LEVEL_LOW>; + pinctrl-0 = <&usb0_intr_state>; + pinctrl-names = "default"; + wakeup-source; + + #address-cells = <1>; + #size-cells = <0>; + + 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>; + }; + }; + }; + }; + }; +}; + +&pm8150_gpios { + usb1_en: usb1-en-state { + pins = "gpio10"; + function = "normal"; + output-enable; + power-source = <0>; + }; +}; + &qupv3_id_0 { status = "okay"; }; @@ -229,6 +320,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"; }; @@ -250,6 +350,14 @@ &ufs_mem_phy { status = "okay"; }; +&usb_1 { + status = "okay"; +}; + +&usb_1_dwc3_hs { + remote-endpoint = <&ucsi_ccg_port_1_hs>; +}; + &usb_1_hsphy { vdd-supply = <&vreg_l5a>; vdda-pll-supply = <&vreg_l12a>; @@ -258,6 +366,15 @@ &usb_1_hsphy { status = "okay"; }; +&usb_2 { + status = "okay"; +}; + +/* HS only */ +&usb_2_dwc3_hs { + remote-endpoint = <&ucsi_ccg_port_0_hs>; +}; + &usb_2_hsphy { vdd-supply = <&vreg_l5a>; vdda-pll-supply = <&vreg_l12a>; @@ -279,3 +396,7 @@ &usb_qmpphy_2 { status = "okay"; }; + +&usb_qmpphy_out { + remote-endpoint = <&ccg_typec_con1_ss>; +}; diff --git a/arch/arm64/boot/dts/qcom/talos-lyra-evk.dts b/arch/arm64/boot/dts/qcom/talos-lyra-evk.dts index d4468e609911..020ce7db4241 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 #include "talos-lyra-evk-som.dtsi" / { @@ -22,6 +23,30 @@ 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"; + select-gpios = <&expander0 12 GPIO_ACTIVE_LOW>; + orientation-switch; + + port { + sbu_mux_in: endpoint { + remote-endpoint = <&ccg_typec_con1_sbu>; + }; + }; + }; }; &i2c5 { @@ -100,16 +125,11 @@ dp_hot_plug_det: dp-hot-plug-det-state { function = "dp_hot"; bias-disable; }; -}; -&usb_1 { - dr_mode = "peripheral"; - - status = "okay"; -}; - -&usb_2 { - dr_mode = "host"; - - status = "okay"; + vbus_boost_en: vbus-boost-en-state { + pins = "gpio64"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; }; -- 2.43.0