Devicetree
 help / color / mirror / Atom feed
From: Akash Kumar <akash.kumar@oss.qualcomm.com>
To: Bjorn Andersson <andersson@kernel.org>,
	Konrad Dybcio <konradybcio@kernel.org>,
	Abel Vesa <abelvesa@kernel.org>, Rob Herring <robh@kernel.org>,
	Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>
Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org,
	devicetree@vger.kernel.org
Subject: [PATCH v5 2/2] arm64: dts: qcom: shikra-iqs-evk: Add CC orientation-gpios for usb1 port
Date: Thu, 26 Nov 2026 16:12:01 +0530	[thread overview]
Message-ID: <20261126104201.1613183-3-akash.kumar@oss.qualcomm.com> (raw)
In-Reply-To: <20261126104201.1613183-1-akash.kumar@oss.qualcomm.com>

The CYPD6229 PD controller has no HPI register exposing CC polarity,
so the usb1 (usb_1/QMP-SS-connected) Type-C port on IQS has no way to
report orientation through typec_set_orientation() from UCSI status
alone. Since this is the SuperSpeed-capable port, correct orientation
reporting matters for lane polarity, so IQS wires a board-level
CC-sense line for it to TLMM GPIO90.

CQM and CQS get CC orientation from their TPMS instead, so they don't
need this property.

Add orientation-gpios to the typec@40 node, using the ucsi_ccg
CC-orientation-sensing support added by:
https://lore.kernel.org/all/20261124-ucsi-ccg-cc-orientation-v3-0-73cd114e5393@oss.qualcomm.com/

typec@40 has two connectors on IQS; the orientation-gpios list is
ordered by connector reg, so the entry for connector@0 (usb0,
HS-only) is left as <0> since that port has no sense line wired.

Signed-off-by: Akash Kumar <akash.kumar@oss.qualcomm.com>
---
 arch/arm64/boot/dts/qcom/shikra-iqs-evk.dts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/boot/dts/qcom/shikra-iqs-evk.dts b/arch/arm64/boot/dts/qcom/shikra-iqs-evk.dts
index 0e770dafa9d9..fc0bdb20c7a9 100644
--- a/arch/arm64/boot/dts/qcom/shikra-iqs-evk.dts
+++ b/arch/arm64/boot/dts/qcom/shikra-iqs-evk.dts
@@ -46,6 +46,7 @@ typec@40 {
 		pinctrl-0 = <&usb0_intr_state>;
 		pinctrl-names = "default";
 		wakeup-source;
+		orientation-gpios = <0>, <&tlmm 90 GPIO_ACTIVE_HIGH>;
 
 		#address-cells = <1>;
 		#size-cells = <0>;
-- 
2.43.0


      parent reply	other threads:[~2026-11-26 10:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26 10:41 [PATCH v5 0/2] arm64: dts: qcom: shikra: Add CYPD6129/CYPD6229 Type-C controller support Akash Kumar
2026-11-26 10:42 ` [PATCH v5 1/2] " Akash Kumar
2026-11-26 10:51   ` sashiko-bot
2026-11-26 10:42 ` 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=20261126104201.1613183-3-akash.kumar@oss.qualcomm.com \
    --to=akash.kumar@oss.qualcomm.com \
    --cc=abelvesa@kernel.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=linux-kernel@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