From patchwork Thu Apr 25 15:25:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Garrett Giordano X-Patchwork-Id: 13643487 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 43562C10F15 for ; Thu, 25 Apr 2024 15:26:40 +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: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:In-Reply-To:References: List-Owner; bh=pheSbGPH7ye72FYMPQe/MXhScuxPh8QrlQm8ncVW/UU=; b=NaHfmGJR+ahXb7 alNEV9fhpdGIHL6BBteIdOTNns5Hy6sWUYirPPCM+lx+21wVr1nmT50T0uhdlt7T2J57V4SN4pcdE NDkCs3Blf/pg9GB8XD1G7yke8WcpiW3U4GqxT1GTunJn4UeIkslb94XonPfho5LRwQfgRfnp9OmD3 v2s6cXN4YKlCoVDGF2eXhrvwwEKBri3IEY1I0w6Mt+TvfMxY2QgEFsldIusoqIwkrC1jRklQvO8bp aDD4LQckTu+ra7ZvJJIeXQudWva2eQzm/TrMqme0CfvFjmehuNm0xvH991vYxgK9h/zzOp2PAUk2+ L4htkh9DS4MubKdd5Raw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s00zQ-000000097oQ-0aGk; Thu, 25 Apr 2024 15:26:24 +0000 Received: from mail-bn7nam10on20700.outbound.protection.outlook.com ([2a01:111:f403:2009::700] helo=NAM10-BN7-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s00zN-000000097mc-0DdG for linux-arm-kernel@lists.infradead.org; Thu, 25 Apr 2024 15:26:22 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nnKq8F1AAHayFb0M4XWTFSMQwY0a3utQKNuW5z9KxRAjUxNTBXmcCr2XX0+gXOFkz9+lY8QLQTbe/gdTs5L7C2KO76MFr+Xe17V95rrh/yJgy6iaJLLTD0nIJZPHFIIhfoh4/KZhNkUicmdMSveSUDYNw1+rXKYHkCCE5M0/d48sWe52Vo22KerxXPD5RysRbEX0UqpKVAFo+er6MHP67A8s6Y8c9ptOd29/0fsTFrnR8j/yOTyev7fbNqfcQN6jCksS6gcV55pC3prmsc3E049L5Xfnm61Wlu6TwFdS54fz0bk2rgicaXeOc+MLmNH7vX8+b0L2k6S9yGumQB3gsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=QzpgJguvS9t5ftKKgsfIiqm73J4+MH2QQVJWbMfNMHM=; b=XQuAVm08s6MvdFGglP29hJtxdt2QBSQRglmw9zJDPT4CEyaCIiS2cke876kMOEUj+LRsSf+U4xVqfNCrxn+0908c68opaQB1kiRJzEkuN+uHSHnGMBw1klemgEAkGCyPsQz4R/tC0zoxNqPqgoenvX5kAF6YO8wGoNEAEYdXcvTCb74dE/yWxlUFFY+eJBjnAMnzk4/gooQk8FQqhfPV8RGpAhNsNUNjxcmew9tKc5Opzxtyg8tpBXb9BKQDDMbT0dqFzVNAOYio5maA5kRYnuOymA1v5Yn0YqiLdThmEqZxcwKou1VTeC2TWcvs/WinrrY02GPBZ9LnpqIezJBPGw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=phytec.com; dmarc=pass action=none header.from=phytec.com; dkim=pass header.d=phytec.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=phytec.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QzpgJguvS9t5ftKKgsfIiqm73J4+MH2QQVJWbMfNMHM=; b=blM82wgYAMCfc3Ab0fbkzlRw0JXfxT3wlXDcEmGwO+L3AJ4f0KIVbbjzhNnm6f2H4ODLIvczm5YhYdbQkp3qbiap5GGAWMyOlhdxFdYO5OmA43gWNTNB7cYijXzygo5Iff4SfvS8OATfi7HlXX+RQq/SBjQNMlgAG9Kr+HaJ2XY= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=phytec.com; Received: from SJ2PR22MB4354.namprd22.prod.outlook.com (2603:10b6:a03:537::8) by CYYPR22MB4364.namprd22.prod.outlook.com (2603:10b6:930:b8::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.44; Thu, 25 Apr 2024 15:26:10 +0000 Received: from SJ2PR22MB4354.namprd22.prod.outlook.com ([fe80::789c:e41e:1367:383d]) by SJ2PR22MB4354.namprd22.prod.outlook.com ([fe80::789c:e41e:1367:383d%6]) with mapi id 15.20.7472.044; Thu, 25 Apr 2024 15:26:10 +0000 From: Garrett Giordano To: nm@ti.com, vigneshr@ti.com, kristo@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, w.egorov@phytec.de Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, upstream@lists.phytec.de Subject: [PATCH] arm64: dts: ti: k3-am625-phyboard-lyra-rdk: Add USB-C Date: Thu, 25 Apr 2024 08:25:58 -0700 Message-Id: <20240425152558.485763-1-ggiordano@phytec.com> X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: CH0PR03CA0420.namprd03.prod.outlook.com (2603:10b6:610:11b::25) To SJ2PR22MB4354.namprd22.prod.outlook.com (2603:10b6:a03:537::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ2PR22MB4354:EE_|CYYPR22MB4364:EE_ X-MS-Office365-Filtering-Correlation-Id: 1c909165-4683-4f5e-8473-08dc653c08a4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: M5YqUV46hJqliNZfm/97yqvnb+sqHMI4+p7NYLNMI1xI2Pw4mJbI7A9l5YdWmNoilJu7EtWfUDnC99DsWAsIETvr8mHQ2Q8gBkvMoVWmYEYpMWBxvhzVycXzXCjNIze+VzEG/JEttjrDYOwBZUFTLXmPMoQAhRPr1/mi3Sxkr6v06qDDk7khQCHYlkUuWuPxvjRnbFRu0SGYgGtn6gi89LOG1GvWbh4umHg5qL+8mcJUTgOv/jJGTlLdu5L0ZRhc7DztruwLcWCzoTFGFQ3cjq0B4GNGXX+n3P1t/2t0WWXDyxGGx9h0HmCQC44JMkqgFcCy6Li9oDAxdtmtYVVIA7Zxh5cBIwI6VqA0SOsVamG2/E0nXHii2fFR6Bb1dR5iqMgKz0u5exu6uXc8cz/ukYQz9PnWH75QUxdphWjQLDqoO3IrvaSMmbGqBTuSb2ahfWLRyPUUYSThPWmETsPIVDot0eKTF2CJIVun1FF4noHAVThnajBQfBodTgDbQzvOUg9KHyIDjfTzkpE4XAySry86Z6Dk97CFbTNvpsUK+oylQG5Obs6Mr0zJmZgSUxbWdZr8IGF7cHJKmnr0YDO3efqCq9xOiJFPzDFBYSw2cZJWvnIyws+uCzruUbf9kTlXC7U/dSPiKgfOgHYIxsRjntsalFCbHfGhF0GVXJt92D7VifWUgCBb0P6LywiESpmkT9+GnVSk1i8EYvcGgLjOfF7jWJ+w7Kkj4hZjsCs69mUOVEUkdtaQXIyCqos0df8aB0iRzTlu+vSsTRw3b5I305oe5fc3T+4sreDv3//oeJBFoPH7OaFnqNVzebDUvnRY3hia1dSCwTAZ06e87kxPFtzmxz64uVrFmkdCvqMbK7krAXr0UlKnV7itPML0iyQaBeXWoPxW1RJ5NJ7OPDQaz+9Ny/dRaTq4eeOjsaXJ/XIm2L3x1IeL+uUZnqcW/WYCbr8uK8hUXY1lp87j2QUhotqdk9ocYh+xS6RVt2YV6DFIcUkiBVjRbnnlbl7owDIUMkwD3e+T+sQ6CAJaHGEkPeU5Ei0sFt9F1ZtXdr+UwlNvjd+SM/dbHxOIqL+/6cHjYiSdXM3hHVS3Se9B5krmYohSmJx9fwIM2NNMTiE35YRym45RtBRPqZhT/XWz/HL+a+zmMEXUOQtbFvuYyZLw+j/4lRYdQbt2/iw3rbC4v01xPcVS1oOlnDriMTazPdNTvbPNc/GQcu5giTSZjE4AhlD2uSXiTQX75t54ypGcEQbqNyAMLRAcqP539mZw84Wy4xQtdsQkl0Dw0lmfThemZur6GwuuMTNBP3nO5QlqCiRrgqSa4e3h23aiKdRLpKmFLOdDDQf+MfL4b6YYj2rZeg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ2PR22MB4354.namprd22.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(7416005)(366007)(1800799015)(52116005)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Iw1FTnyqRM2V1xYUePyty2dVRLfR8qEVjlCbAbwUf4Cyg34IkWpa4YHdHQbRiSFF4s0wNJJNPiuKdTJLUInmUu5eTz4wEG6Z0LVt9qqgLPVnGZO6cimkqcyHoeBDiJc7T+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jTpVnYvkON9B4O0Z4lsPrFVvOmXg67xuRHOmSC1WtdN1o7zaGRLn33ZcAZinxs9bMshB0K98vcaJoYHxtsdo7htLObVLk9+O+VIEU+00peMxMsPmjOKd9nWPx1j11EQ1ZZAbmJZnWlfpmNXePi1+hSeqDBsR4iSofQdgB8uCOZmEiAso1jhw2zSYl7uu5aoSsXWXrea985q9ntJ9GfGh3QGn2PvTRAPbmjid28srI6lcBdVsEQqajtIjMxdkG7pCo88C/XXamm6UK8tQVPp3dTpYaNdWYeijPMQXOnwKGo9BsPmWXuobYXeOiqoxs4NlS2vPVAIHWop9NcIcpUHy984GIjaQQMGCbWsdpdCkYxipbtHyADT2Md8Zkc7DPCMsbipjHt X-OriginatorOrg: phytec.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1c909165-4683-4f5e-8473-08dc653c08a4 X-MS-Exchange-CrossTenant-AuthSource: SJ2PR22MB4354.namprd22.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2024 15:26:09.9179 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 67bcab1a-5db0-4ee8-86f4-1533d0b4b5c7 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Z+9XC0yGwO0HHwrT8OSo9tVpS1Kblmqmrxvm99budV+V8IDGRlAh9dLcB0k9zH+cYtKBUMawkpSQkftTUp9cxQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CYYPR22MB4364 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240425_082621_260829_9BC62FA7 X-CRM114-Status: GOOD ( 10.53 ) 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 The USB-C PD manages plug orientation, power delivery, and our endpoint for the USB interface. Add this node and include its endpoint. Configure USB0 for role-switching and wire it to our USB-C PD endpoint. Signed-off-by: Garrett Giordano Reviewed-by: Wadim Egorov --- .../dts/ti/k3-am625-phyboard-lyra-rdk.dts | 26 ++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/ti/k3-am625-phyboard-lyra-rdk.dts b/arch/arm64/boot/dts/ti/k3-am625-phyboard-lyra-rdk.dts index dfc78995d30a..fb3bc914a018 100644 --- a/arch/arm64/boot/dts/ti/k3-am625-phyboard-lyra-rdk.dts +++ b/arch/arm64/boot/dts/ti/k3-am625-phyboard-lyra-rdk.dts @@ -348,6 +348,24 @@ gpio_exp: gpio-expander@21 { "GPIO6_ETH1_USER_RESET", "GPIO7_AUDIO_USER_RESET"; }; + usb-pd@22 { + compatible = "ti,tps6598x"; + reg = <0x22>; + + connector { + compatible = "usb-c-connector"; + label = "USB-C"; + self-powered; + data-role = "dual"; + power-role = "sink"; + port { + usb_con_hs: endpoint { + remote-endpoint = <&typec_hs>; + }; + }; + }; + }; + sii9022: bridge-hdmi@39 { compatible = "sil,sii9022"; reg = <0x39>; @@ -449,7 +467,13 @@ &usbss1 { }; &usb0 { - dr_mode = "peripheral"; + usb-role-switch; + + port { + typec_hs: endpoint { + remote-endpoint = <&usb_con_hs>; + }; + }; }; &usb1 {