From patchwork Fri Sep 2 08:42:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kepplinger X-Patchwork-Id: 12963839 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 580C0ECAAD5 for ; Fri, 2 Sep 2022 08:45:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=IrujDJsCh2djesSCDnlUPutzTjqUcansT2b4jNBNjuk=; b=yqB2Oi0p4RgM2A 3We2HvJnjpoU9GT+bIhngzCyqGqfLl2YkwTRInHY8pvZeEi0wIcnejLImKeAAysHF3PqM/iSn3/s8 Y2Evfga2mIQQ9BIRFAYS6+tXl/dxqsYaWLthZDtAw1qhwy0agyZq7I8noZBt2ZQSMKhi04bUcDxtX NvXwE79ijPZ6u6I/Zg6IJM+gQzDWSBq3w53yaStFc0cWPohv7SOqJeL58Ee7DJZDtjdmaVxhhssh9 Wl1xWJBKeoGbDfBYG1ELj78ZvGX1zsriPhC1retprx50AB7zleUd/OGm0gxrz+ibRm8GsOZ0K14Et Ti1kYu5dyyq7D0YOGZ/w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oU2Hl-0021s4-Iu; Fri, 02 Sep 2022 08:44:21 +0000 Received: from comms.puri.sm ([159.203.221.185]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oU2Gc-0020oZ-Jx for linux-arm-kernel@lists.infradead.org; Fri, 02 Sep 2022 08:43:11 +0000 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id EE41FDFEC1; Fri, 2 Sep 2022 01:42:39 -0700 (PDT) Received: from comms.puri.sm ([127.0.0.1]) by localhost (comms.puri.sm [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QYOPQjR-QD9P; Fri, 2 Sep 2022 01:42:39 -0700 (PDT) From: Martin Kepplinger DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=puri.sm; s=comms; t=1662108159; bh=JakZJWZhM51HWNUPYm0nW2ELxI9hOSYdsE72l4TJkxA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=P+nMpyav7GRNkNoPtp3/6UBlJD+4MSrUcutwbCfqPs+0gn95M5Tb4+H811VkucS/T UDHMFRMOpw5QrFWmESgi0M/L/pGYrLp7Z8zDbsR/RnW83NjMujwNgoxr0pEroroLAG TQHlVW2ye4Y8+0gWnt9COFUQoiG13leS3q/LR/kmDxupevRgDGwazFR2UNfQFAZxBs CzzAjtx3IUFL1bv1xl1mh2uVEaQHltkmcmquptvyVbxXYBUOAbA0yIjZ2FA6G5BAA8 QT1iSxW07QYnDEGJNY1HRTTa2Ty0HwjUf8NPOxDEJqV22JZb2/1xRoVqIZMymp76l2 1QGVDF1J5AusA== To: festevam@gmail.com, shawnguo@kernel.org Cc: martin.kepplinger@puri.sm, devicetree@vger.kernel.org, kernel@pengutronix.de, kernel@puri.sm, krzk@kernel.org, linux-arm-kernel@lists.infradead.org, linux-imx@nxp.com, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, robh@kernel.org, Angus Ainslie Subject: [PATCH v2 4/6] arm64: dts: imx8mq-librem5: add USB type-c properties for role switching Date: Fri, 2 Sep 2022 10:42:14 +0200 Message-Id: <20220902084216.1259202-5-martin.kepplinger@puri.sm> In-Reply-To: <20220902084216.1259202-1-martin.kepplinger@puri.sm> References: <20220902084216.1259202-1-martin.kepplinger@puri.sm> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220902_014310_756424_FF55E588 X-CRM114-Status: UNSURE ( 9.28 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Angus Ainslie Add the connector properties to the USB type-c stanza to enable (PD) role-switching on the Librem 5 phone. Signed-off-by: Angus Ainslie Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi index 7e6c4ad438092..f07d1c6e97777 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi @@ -773,6 +773,10 @@ typec_pd: usb-pd@3f { interrupt-names = "irq"; connector { + compatible = "usb-c-connector"; + label = "USB-C"; + data-role = "dual"; + ports { #address-cells = <1>; #size-cells = <0>;