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 E3B6E35DA78; Wed, 20 May 2026 16:49:39 +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=1779295781; cv=none; b=lSesR2V1JXfOw66V2tFdHOcWjWIZzfbs5FzzyhlKmN+6dZbqyN+Ftsd2W14+ILaxjVL5TpefgBh37cLxVMxmq1138jmk3b76WBxEZxFUQe8Z+/Y+4B9jRrqXqPKNmmUR2JdQHnJXgjZENBBp+GWMB8bVIws9JLLxKfhxQK+JylQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779295781; c=relaxed/simple; bh=hahiCxoijJcAr3o5Rx3F5PWR4K/Kb63tP+XR5wU6Ddo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=q8Vr4I/sRdrHBb7rZDxEgYx7f/C5hymD2G6E01i6r7y5sj3lRQV7baIV5AE8N6Q6KhpQi1D6znXUVPNy2Dx5AqlUjF2qnlm+nNmQFfuYKKLAK2cjuwvQ7hCYewqhLinJpB5IHk+um1JG9RRWJGkoodEyyHg60DKj138SoTETNrw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=m9xrK2uL; 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="m9xrK2uL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 45C221F00893; Wed, 20 May 2026 16:49:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779295779; bh=PSLiCdHEB1atg1de1GpLqeOWFzeRU4reV4+ZGpHyENg=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=m9xrK2uLi7gP3XTPS/8YKvSXtWrp8Gp3yRtZ6F2ZApRmXCqauTQvHyaFjEsfZB3a5 tVas2x+3aWvhYaunFSAeOYGO/CHSMFHdIYMc4BcjidoUptr9kK97bnujr4HqpzqS2P CxrsIo55fIz6bxLy+/pm00eixWoAaawlKFuGkTPk= 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 7.0 0548/1146] arm64: dts: imx8qxp-mek: switch Type-C connector power-role to dual Date: Wed, 20 May 2026 18:13:18 +0200 Message-ID: <20260520162200.581054331@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260520162148.390695140@linuxfoundation.org> References: <20260520162148.390695140@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.0-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 40a0bc9f4e848..623169f7ddb5f 100644 --- a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts +++ b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts @@ -566,9 +566,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