* [PATCH v5 0/2] arm64: dts: qcom: shikra: Add CYPD6129/CYPD6229 Type-C controller support
@ 2026-11-26 10:41 Akash Kumar
2026-11-26 10:42 ` [PATCH v5 1/2] " Akash Kumar
2026-11-26 10:42 ` [PATCH v5 2/2] arm64: dts: qcom: shikra-iqs-evk: Add CC orientation-gpios for usb1 port Akash Kumar
0 siblings, 2 replies; 4+ messages in thread
From: Akash Kumar @ 2026-11-26 10:41 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
Dmitry Baryshkov, Krzysztof Kozlowski, Conor Dooley
Cc: linux-kernel, linux-arm-msm, devicetree
Add Cypress CYPD6129/CYPD6229 Type-C PD controller support for the
Shikra CQM/CQS/IQS platforms (patch 1), and CC orientation-gpios for
IQS's usb1 port, which is the SuperSpeed-capable port (patch 2).
Link to v4: https://lore.kernel.org/all/20261123122857.2424213-1-akash.kumar@oss.qualcomm.com/
Link to v3: https://lore.kernel.org/all/20261012094835.647882-1-akash.kumar@oss.qualcomm.com/
Link to v2: https://lore.kernel.org/all/20260820145036.2035641-1-akash.kumar@oss.qualcomm.com/
Link to v1: https://lore.kernel.org/all/20260820145036.2035641-1-akash.kumar@oss.qualcomm.com/
Link to Driver and DT-binding change:
https://lore.kernel.org/all/20261012091658.635441-1-akash.kumar@oss.qualcomm.com/
base-commit: 909ef7a9a30fa139e69e555e3606680f5cca7726
Changes in v5:
- Split into a 2-patch series: patch 1 is the base controller support
(previously posted as v1-v4 as a single patch), patch 2 adds
orientation-gpios for IQS's usb1 port (the SS-capable port), using
the ucsi_ccg CC-orientation series linked above.
- IQS: fixed vbus_boost_5v to regulator-always-on instead of
regulator-boot-on, and dropped vbus-supply from both connectors.
Neither ucsi_ccg nor the typec core ever requests a connector's
vbus-supply, so the v4 form (regulator-fixed wired via vbus-supply)
was left with a permanent zero use-count and got disabled by
regulator_late_cleanup() shortly after boot, cutting VBUS to both
IQS ports.
Changes in v4:
- Rewrote the commit message: this is a single patch, not a series;
clarified that usb_2 is HS-only and usb_1 carries HS+SS.
- Dropped the unused ccg_typec_con0/ccg_typec_con1 connector labels.
- Replaced the re-declared `port { usb_2_dwc3_hs: endpoint {...} }`
overrides with direct &usb_2_dwc3_hs overrides, since that label
already exists (empty) in shikra.dtsi.
- IQS: converted the vbus_boost_5v GPIO hog into a regulator-fixed
node and wired it to both connectors via vbus-supply.
- Kept `dr_mode = "otg"` on &usb_2 (and, for IQS, &usb_1): a separate
commit (9b8dc188ffa6) already sets dr_mode = "peripheral" on these
nodes generically for all EVK boards, so dropping it here would
silently leave the ports in peripheral-only mode and break Type-C
role switching.
Akash Kumar (2):
arm64: dts: qcom: shikra: Add CYPD6129/CYPD6229 Type-C controller
support
arm64: dts: qcom: shikra-iqs-evk: Add CC orientation-gpios for usb1
port
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts | 55 ++++++++++
arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts | 55 ++++++++++
arch/arm64/boot/dts/qcom/shikra-iqs-evk.dts | 107 ++++++++++++++++++++
3 files changed, 217 insertions(+)
--
2.43.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v5 1/2] arm64: dts: qcom: shikra: Add CYPD6129/CYPD6229 Type-C controller support
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 ` Akash Kumar
2026-11-26 10:51 ` sashiko-bot
2026-11-26 10:42 ` [PATCH v5 2/2] arm64: dts: qcom: shikra-iqs-evk: Add CC orientation-gpios for usb1 port Akash Kumar
1 sibling, 1 reply; 4+ messages in thread
From: Akash Kumar @ 2026-11-26 10:42 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
Dmitry Baryshkov, Krzysztof Kozlowski, Conor Dooley
Cc: linux-kernel, linux-arm-msm, devicetree
Add the Cypress CYPD6129/CYPD6229 Type-C PD controllers used on the
Shikra CQM, CQS and IQS platforms, and wire up their connectors to
the corresponding USB controllers.
CQM and CQS each expose a single USB-C port driven by a CYPD6129 on
I2C3, connected to the HS-only usb_2 controller. IQS exposes two
USB-C ports driven by a CYPD6229 (CYPD6129-compatible) on I2C3: the
first port is HS-only and connects to usb_2, while the second port
carries both the HS and SuperSpeed lanes and connects to usb_1 and
its QMP SS PHY.
Both affected USB controllers are switched from the board-default
peripheral-only mode to OTG, so that the role-switch framework can
move them between host and device roles based on the data role the
PD controller negotiates.
The PD controller's interrupt line is routed through a TLMM pin and
marked as a wakeup source, since Type-C attach/detach and role
events need to wake the SoC. On IQS, the 5V VBUS boost supply is
driven by a GPIO rather than a PMIC rail, so it is modeled as an
always-on regulator-fixed node, matching the existing boost-supply
pattern used elsewhere on Shikra/Purwa. It is left unconnected to
either connector's vbus-supply: the CYPD6229 switches VBUS to each
port autonomously from this upstream rail, and neither ucsi_ccg nor
the typec core ever requests a connector's vbus-supply, so wiring it
up would leave the regulator with a permanent zero use-count and
regulator_late_cleanup() would disable it shortly after boot.
Signed-off-by: Akash Kumar <akash.kumar@oss.qualcomm.com>
---
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts | 55 ++++++++++
arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts | 55 ++++++++++
arch/arm64/boot/dts/qcom/shikra-iqs-evk.dts | 106 ++++++++++++++++++++
3 files changed, 216 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts b/arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts
index bde3b7d81ace..46835a44cfbb 100644
--- a/arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts
+++ b/arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts
@@ -15,6 +15,7 @@ / {
chassis-type = "embedded";
aliases {
+ i2c3 = &i2c3;
mmc0 = &sdhc_1;
mmc1 = &sdhc_2; /* SDC2 SD card slot */
serial0 = &uart0;
@@ -29,6 +30,43 @@ &audiocorecc {
status = "okay";
};
+&i2c3 {
+ status = "okay";
+
+ typec@40 {
+ compatible = "cypress,cypd6129";
+ reg = <0x40>;
+ interrupts-extended = <&tlmm 136 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: endpoint {
+ remote-endpoint = <&usb_2_dwc3_hs>;
+ };
+ };
+ };
+ };
+ };
+};
+
&pm4125_hs_in {
remote-endpoint = <&usb_1_dwc3_hs>;
};
@@ -79,6 +117,15 @@ &sdhc_2 {
status = "okay";
};
+&tlmm {
+ usb0_intr_state: usb0-intr-state {
+ pins = "gpio136";
+ function = "gpio";
+ drive-strength = <2>;
+ bias-pull-up;
+ };
+};
+
&usb_1 {
dr_mode = "otg";
};
@@ -106,6 +153,14 @@ &usb_qmpphy_out {
remote-endpoint = <&pm4125_ss_in>;
};
+&usb_2 {
+ dr_mode = "otg";
+};
+
+&usb_2_dwc3_hs {
+ remote-endpoint = <&ucsi_ccg_port>;
+};
+
&usb_2_hsphy {
vdd-supply = <&pm4125_l12>;
vdda-pll-supply = <&pm4125_l13>;
diff --git a/arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts b/arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts
index 2ded25c4304e..de058d2978a9 100644
--- a/arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts
+++ b/arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts
@@ -15,6 +15,7 @@ / {
chassis-type = "embedded";
aliases {
+ i2c3 = &i2c3;
mmc0 = &sdhc_1;
mmc1 = &sdhc_2; /* SDC2 SD card slot */
serial0 = &uart0;
@@ -25,6 +26,43 @@ chosen {
};
};
+&i2c3 {
+ status = "okay";
+
+ typec@40 {
+ compatible = "cypress,cypd6129";
+ reg = <0x40>;
+ interrupts-extended = <&tlmm 136 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: endpoint {
+ remote-endpoint = <&usb_2_dwc3_hs>;
+ };
+ };
+ };
+ };
+ };
+};
+
&pm4125_hs_in {
remote-endpoint = <&usb_1_dwc3_hs>;
};
@@ -75,6 +113,15 @@ &sdhc_2 {
status = "okay";
};
+&tlmm {
+ usb0_intr_state: usb0-intr-state {
+ pins = "gpio136";
+ function = "gpio";
+ drive-strength = <2>;
+ bias-pull-up;
+ };
+};
+
&usb_1 {
dr_mode = "otg";
};
@@ -102,6 +149,14 @@ &usb_qmpphy_out {
remote-endpoint = <&pm4125_ss_in>;
};
+&usb_2 {
+ dr_mode = "otg";
+};
+
+&usb_2_dwc3_hs {
+ remote-endpoint = <&ucsi_ccg_port>;
+};
+
&usb_2_hsphy {
vdd-supply = <&pm4125_l12>;
vdda-pll-supply = <&pm4125_l13>;
diff --git a/arch/arm64/boot/dts/qcom/shikra-iqs-evk.dts b/arch/arm64/boot/dts/qcom/shikra-iqs-evk.dts
index 5df30ad8211f..0e770dafa9d9 100644
--- a/arch/arm64/boot/dts/qcom/shikra-iqs-evk.dts
+++ b/arch/arm64/boot/dts/qcom/shikra-iqs-evk.dts
@@ -15,6 +15,7 @@ / {
chassis-type = "embedded";
aliases {
+ i2c3 = &i2c3;
mmc0 = &sdhc_1;
mmc1 = &sdhc_2; /* SDC2 SD card slot */
serial0 = &uart0;
@@ -23,6 +24,82 @@ aliases {
chosen {
stdout-path = "serial0:115200n8";
};
+
+ vbus_boost_5v: regulator-vbus-boost-5v {
+ compatible = "regulator-fixed";
+ regulator-name = "vbus_boost_5v";
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ gpio = <&tlmm 79 GPIO_ACTIVE_HIGH>;
+ enable-active-high;
+ regulator-always-on;
+ };
+};
+
+&i2c3 {
+ status = "okay";
+
+ typec@40 {
+ compatible = "cypress,cypd6229", "cypress,cypd6129";
+ reg = <0x40>;
+ interrupts-extended = <&tlmm 50 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 = "USB2-Type-C";
+ data-role = "dual";
+ power-role = "dual";
+
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ port@0 {
+ reg = <0>;
+
+ ucsi_ccg_port0_hs: endpoint {
+ remote-endpoint = <&usb_2_dwc3_hs>;
+ };
+ };
+ };
+ };
+
+ connector@1 {
+ compatible = "usb-c-connector";
+ reg = <1>;
+ label = "USB3-Type-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>;
+
+ ucsi_ccg_port_1_ss: endpoint {
+ remote-endpoint = <&usb_qmpphy_out>;
+ };
+ };
+ };
+ };
+ };
};
&remoteproc_cdsp {
@@ -67,6 +144,23 @@ &sdhc_2 {
status = "okay";
};
+&tlmm {
+ usb0_intr_state: usb0-intr-state {
+ pins = "gpio50";
+ function = "gpio";
+ drive-strength = <2>;
+ bias-pull-up;
+ };
+};
+
+&usb_1 {
+ dr_mode = "otg";
+};
+
+&usb_1_dwc3_hs {
+ remote-endpoint = <&ucsi_ccg_port_1_hs>;
+};
+
&usb_1_hsphy {
vdd-supply = <&pm8150_l4>;
vdda-pll-supply = <&pm8150_l12>;
@@ -82,6 +176,18 @@ &usb_qmpphy {
status = "okay";
};
+&usb_qmpphy_out {
+ remote-endpoint = <&ucsi_ccg_port_1_ss>;
+};
+
+&usb_2 {
+ dr_mode = "otg";
+};
+
+&usb_2_dwc3_hs {
+ remote-endpoint = <&ucsi_ccg_port0_hs>;
+};
+
&usb_2_hsphy {
vdd-supply = <&pm8150_l4>;
vdda-pll-supply = <&pm8150_l12>;
--
2.43.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH v5 2/2] arm64: dts: qcom: shikra-iqs-evk: Add CC orientation-gpios for usb1 port
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:42 ` Akash Kumar
1 sibling, 0 replies; 4+ messages in thread
From: Akash Kumar @ 2026-11-26 10:42 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
Dmitry Baryshkov, Krzysztof Kozlowski, Conor Dooley
Cc: linux-kernel, linux-arm-msm, devicetree
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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v5 1/2] arm64: dts: qcom: shikra: Add CYPD6129/CYPD6229 Type-C controller support
2026-11-26 10:42 ` [PATCH v5 1/2] " Akash Kumar
@ 2026-11-26 10:51 ` sashiko-bot
0 siblings, 0 replies; 4+ messages in thread
From: sashiko-bot @ 2026-11-26 10:51 UTC (permalink / raw)
To: Akash Kumar; +Cc: devicetree, robh, conor+dt
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [High] arm64: dts: qcom: shikra: unmatched cypress,cypd6129/cypd6229
compatibles
--
commit f8d3542b1abf0d37f0676642c4bc05a132b572ce
Author: Akash Kumar <akash.kumar@oss.qualcomm.com>
arm64: dts: qcom: shikra: Add CYPD6129/CYPD6229 Type-C controller support
This commit adds Cypress CYPD6129/CYPD6229 Type-C PD controller nodes and
connects their USB-C connectors to the USB controllers on the Shikra CQM,
CQS, and IQS EVK boards.
> diff --git a/arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts b/arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts
> index bde3b7d81acec..46835a44cfbbf 100644
> --- a/arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts
> +++ b/arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts
[ ... ]
> @@ -29,6 +30,43 @@ &audiocorecc {
> status = "okay";
> };
>
> +&i2c3 {
> + status = "okay";
> +
> + typec@40 {
> + compatible = "cypress,cypd6129";
> + reg = <0x40>;
> + interrupts-extended = <&tlmm 136 IRQ_TYPE_LEVEL_LOW>;
> + pinctrl-0 = <&usb0_intr_state>;
> + pinctrl-names = "default";
> + wakeup-source;
[Severity: High]
Are the DT binding and driver updates for "cypress,cypd6129" and
"cypress,cypd6229" missing?
ucsi_ccg_of_match_table[] in drivers/usb/typec/ucsi/ucsi_ccg.c only
matches "cypress,cypd4226", and
Documentation/devicetree/bindings/usb/cypress,cypd4226.yaml only permits
compatible "cypress,cypd4226" with reg <0x08> and does not allow
wakeup-source.
Without a matching driver entry, typec@40 will not bind in shikra-cqm-evk,
shikra-cqs-evk, or shikra-iqs-evk, leaving Type-C PD and OTG role
switching non-functional on the affected USB controllers and failing
dtbs_check.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261126104201.1613183-1-akash.kumar@oss.qualcomm.com?part=1
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-11-26 10:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [PATCH v5 2/2] arm64: dts: qcom: shikra-iqs-evk: Add CC orientation-gpios for usb1 port Akash Kumar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox