Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Akash Kumar" <akash.kumar@oss.qualcomm.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v4] arm64: dts: qcom: shikra: Add CYPD6129/CYPD6229 Type-C controller support
Date: Mon, 23 Nov 2026 12:40:38 +0000	[thread overview]
Message-ID: <sashiko-outbox-229239@kernel.org> (raw)
In-Reply-To: <20261123122857.2424213-1-akash.kumar@oss.qualcomm.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [High] arm64: dts: qcom: shikra-iqs-evk: unclaimed vbus_boost_5v
  disabled after boot
--

commit 4e4a90b9b2797fb5455e941c73f032deb3b89920
Author: Akash Kumar <akash.kumar@oss.qualcomm.com>

arm64: dts: qcom: shikra: Add CYPD6129/CYPD6229 Type-C controller support

This commit adds Cypress CYPD6129 and CYPD6229 Type-C PD controller nodes
for the Shikra CQM, CQS, and IQS EVK boards and connects their ports to the
corresponding USB controllers and PHYs.

> diff --git a/arch/arm64/boot/dts/qcom/shikra-iqs-evk.dts b/arch/arm64/boot/dts/qcom/shikra-iqs-evk.dts
> index 5df30ad8211f8..4fde2ddb53931 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,84 @@ 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-boot-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";
> +			vbus-supply = <&vbus_boost_5v>;
[ ... ]
> +		connector@1 {
> +			compatible = "usb-c-connector";
> +			reg = <1>;
> +			label = "USB3-Type-C";
> +			data-role = "dual";
> +			power-role = "dual";
> +			vbus-supply = <&vbus_boost_5v>;

[Severity: High]
Will regulator_late_cleanup() disable vbus_boost_5v 30 seconds after boot?

CYPD6229 is a UCSI controller driven by ucsi_ccg, where the PD controller
switches per-port VBUS autonomously from the upstream 5V boost rail.
Neither ucsi_ccg, ucsi_register_port(), nor typec_register_port() requests
or enables vbus-supply from usb-c-connector child nodes.

Because vbus_boost_5v has regulator-boot-on without regulator-always-on and
no driver ever claims it, its use_count remains 0 and
regulator_late_cleanup() turns it off, cutting 5V VBUS to both Type-C ports
and breaking host mode.  Marking vbus_boost_5v with regulator-always-on
(and dropping the unclaimed vbus-supply properties from the connectors, as
done on purwa-iot-evk.dts) would keep the upstream boost rail enabled.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261123122857.2424213-1-akash.kumar@oss.qualcomm.com?part=1

      reply	other threads:[~2026-11-23 12:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23 12:27 [PATCH v4] arm64: dts: qcom: shikra: Add CYPD6129/CYPD6229 Type-C controller support Akash Kumar
2026-11-23 12:40 ` sashiko-bot [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=sashiko-outbox-229239@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=akash.kumar@oss.qualcomm.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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