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 D8475DF59; Wed, 20 May 2026 18:37:49 +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=1779302270; cv=none; b=OuM+lDdKaTIxpkZDKWXEfyoFg5Ck+VAuSOn1GJ6fVvldIvUMD2JzTNW/kHmGayoWZNt0qdWase6fE4dgB9ZUqur6k6+unwGvskl5Yg6/zCNqTYTY8NecdhJMQAP0iDlZmpf7c1doLzAHjfj5w4weSvUY1MlqpuKpRN7GNqwIfhA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779302270; c=relaxed/simple; bh=HKHD8SoC8det60i41cx9PyvoUk5aPbd3vdkpJvT5JE4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Pthk0iPti47XyQBn1uv8VkbrZEamul5jwhHhext445KOEngpkhwfY+oAeBepfKmrIBgsgTgST1+WX2rqc7lxRzCW2iY2oVnG5aYQa4jrZf/aJ8u4ny+AuEhimg7hO2Vr5z+2gO4UHVVPBu4SxuFjv04zETzk5A+blupk6Qqr0Sw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=g+csbheH; 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="g+csbheH" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4B8FC1F000E9; Wed, 20 May 2026 18:37:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779302269; bh=u/EBVKGppiTMptyWgJHQD2rr298cllV+q7CZJySDM6M=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=g+csbheHPcxTEILcJjVAkmkQKsKr+rgEId3+nNPQab/wezE6oo4Vbgh024qRbDxUy sOKxExUKPX3A6wpgx4TytsQaForVOMNopqi5zzJ5elegV6JcNXOfc0WMfep8wxjdxl eClocQ078Vy9I2aPrQHVZSZggYDaIe96XKPaBuI0= 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.6 202/508] arm64: dts: imx8qxp-mek: switch Type-C connector power-role to dual Date: Wed, 20 May 2026 18:20:25 +0200 Message-ID: <20260520162103.015096187@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260520162058.573354582@linuxfoundation.org> References: <20260520162058.573354582@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.6-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 7924b0969ad8f..3814568e4ee50 100644 --- a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts +++ b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts @@ -161,9 +161,17 @@ typec_dr_sw: endpoint { 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