From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3555C3EAC82; Wed, 20 May 2026 18:14:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779300886; cv=none; b=V9lQqhbcHZfjk4SoEkjLLo4uYH8T0QCBKSj7dMApQPsFBsgnLjoHlVzqlhbLF7mh/252luqYSi/ea05+3RcX5qLjpZlzHoLJVZh1J5WMmhzynkeJT7xxgu9oNAoPtV2nS/cqXxlKiHLbzfbKXWSHtjGildndCR9HRQ0pMD6GCJI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779300886; c=relaxed/simple; bh=MX+wPvPsCGDtU3EXYe382poKH47qN6ZqGssU+Q6153Q=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=H8ETmuSWAsgjeW7BXdOdWyaVWTIKgC2ZnOjE9PCwT9EVv9wbeNLMwbQt4yB2f/z0B9uAu97jeAxtEU2rQlFi2I1IXN4vFXwa8hBbmJ4esuN+q5OVfyzExRo3nTZRXBFQhzBPwWK+lifpSpoWaY+3Ib7SE4+yFTFeoKQN2+cZ0Zw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wdrQmvXA; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="wdrQmvXA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9AFFF1F000E9; Wed, 20 May 2026 18:14:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779300885; bh=9kTjeFtNTSi1WMqHGUemzQGQvHB7/UWtdmorWh7XXN4=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=wdrQmvXAvp8ifgeHi/qAuelwmoAftY83GhdK2DV4OBcI+WyeKGT/a4fueAQ24wXv9 HBLr4EJwJxipfRSgTXoPn6BYVY61Ci4BPCZJBPYX0wHQg+Q/I8j78Af2f1PfFrPuPS Y5UTh42Sx6/qIkYTVbjpNkNHAU/ulnuL5pu8G1rk= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Xu Yang , Frank Li , Sasha Levin Subject: [PATCH 6.12 304/666] arm64: dts: imx8qxp-mek: switch Type-C connector power-role to dual Date: Wed, 20 May 2026 18:18:35 +0200 Message-ID: <20260520162117.808632634@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260520162111.222830634@linuxfoundation.org> References: <20260520162111.222830634@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Xu Yang [ Upstream commit 825b8c7e1d2918d89eb378b761530d1e51dba82e ] When attach to PC Type-A port, the USB device controller does not function at all. Because it is configured as source-only and a Type-A port doesn't support PD capability, a data role swap is impossible. Actually, PTN5110THQ is configured for Source role only at POR, but after POR it can operate as a DRP (Dual-Role Power). By switching the power-role to dual, the port can operate as a sink and enter device mode when attach to Type-A port. Since the board design uses EN_SRC to control the 5V VBUS path and EN_SNK to control the 12V VBUS output, to avoid outputting a higher VBUS when in sink role, we set the operation current limit to 0mA so that SW will not control EN_SNK at all. Fixes: 2faf4ebcee2e5 ("arm64: dts: freescale: imx8qxp-mek: enable cadence usb3") Signed-off-by: Xu Yang Signed-off-by: Frank Li Signed-off-by: Sasha Levin --- arch/arm64/boot/dts/freescale/imx8qxp-mek.dts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts index 936ba5ecdcac7..447a6a4c3c7ec 100644 --- a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts +++ b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts @@ -176,9 +176,17 @@ ptn5110: tcpc@50 { usb_con1: connector { compatible = "usb-c-connector"; label = "USB-C"; - power-role = "source"; + power-role = "dual"; data-role = "dual"; + try-power-role = "sink"; source-pdos = ; + /* + * Set operational current to 0mA as we don't want EN_SNK + * enable 12V VBUS switch when it work as a sink. + */ + sink-pdos = ; + op-sink-microwatt = <0>; + self-powered; ports { #address-cells = <1>; -- 2.53.0