Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1195515lqd; Thu, 25 Apr 2024 08:26:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVtFUm+NMCXtgzbXv/sjVGHPEzGkHP0RimKtbpULvur9MdnipzpOeYUqz+py8tdyQCNd7+TCa649Qfxg5M3FofHii/sgqAQAPgHevZn1g== X-Google-Smtp-Source: AGHT+IEvR3VBJV6inwFTEQpilLUuswB8NC7w5dJHQUyzaG95dfrTYNE2dZJPabQL2cKzCj3mFhlM X-Received: by 2002:a05:6214:487:b0:69f:a5a5:4eeb with SMTP id pt7-20020a056214048700b0069fa5a54eebmr85246qvb.38.1714058783966; Thu, 25 Apr 2024 08:26:23 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id c2-20020ad45ae2000000b0069b3ca5bd2esi18218669qvh.603.2024.04.25.08.26.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 08:26:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-158798-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@phytec.com header.s=selector1 header.b=blM82wgY; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-158798-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158798-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id A20A11C22909 for ; Thu, 25 Apr 2024 15:26:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6D8CA14B065; Thu, 25 Apr 2024 15:26:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=phytec.com header.i=@phytec.com header.b="blM82wgY" Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2093.outbound.protection.outlook.com [40.107.92.93]) (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 2F93114A4F7; Thu, 25 Apr 2024 15:26:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.92.93 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714058776; cv=fail; b=guiSZtHKojybcaqspO5MiGzlIjZwYsJaeyQm6mMIYBSAcK0yMZvxRMcQx20+4XfIa5BZWXSYbNDD4Hpmbh0mc/4pxrEDyd7GRK5vr7Llnprz+rIA122h4fXT9BWe2RBap7bgfE7Q5miHhV5ONJH8epwpuhqkNouXTIsDtg9ebvE= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714058776; c=relaxed/simple; bh=pkjtqfLKZ/M1HzJllzbtu27Ea2w2/Qsqp98pM5e5+bU=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=Qn4E8sptp4L97gEeqtJVXLlLgYdeOsbf4240xilPWzCGo/CZItdCmJAOD4zQMsB8OSJHB41+CF+w04D+WUvlGvN/zyeddANDVGadT5d6k3ufvdi6bAZbX4Ai6rV5Y62H+Vw5yizW+7qnjJYLOjuAlQyvK40hK4182/LItQDg+bM= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=phytec.com; spf=pass smtp.mailfrom=phytec.com; dkim=pass (1024-bit key) header.d=phytec.com header.i=@phytec.com header.b=blM82wgY; arc=fail smtp.client-ip=40.107.92.93 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=phytec.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=phytec.com 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 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: CH0PR03CA0420.namprd03.prod.outlook.com (2603:10b6:610:11b::25) To SJ2PR22MB4354.namprd22.prod.outlook.com (2603:10b6:a03:537::8) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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: =?us-ascii?Q?M5YqUV46hJqliNZfm/97yqvnb+sqHMI4+p7NYLNMI1xI2Pw4mJbI7A9l5YdW?= =?us-ascii?Q?mNoilJu7EtWfUDnC99DsWAsIETvr8mHQ2Q8gBkvMoVWmYEYpMWBxvhzVycXz?= =?us-ascii?Q?XCjNIze+VzEG/JEttjrDYOwBZUFTLXmPMoQAhRPr1/mi3Sxkr6v06qDDk7kh?= =?us-ascii?Q?QCHYlkUuWuPxvjRnbFRu0SGYgGtn6gi89LOG1GvWbh4umHg5qL+8mcJUTgOv?= =?us-ascii?Q?/jJGTlLdu5L0ZRhc7DztruwLcWCzoTFGFQ3cjq0B4GNGXX+n3P1t/2t0WWXD?= =?us-ascii?Q?yxGGx9h0HmCQC44JMkqgFcCy6Li9oDAxdtmtYVVIA7Zxh5cBIwI6VqA0SOsV?= =?us-ascii?Q?amG2/E0nXHii2fFR6Bb1dR5iqMgKz0u5exu6uXc8cz/ukYQz9PnWH75QUxdp?= =?us-ascii?Q?hWjQLDqoO3IrvaSMmbGqBTuSb2ahfWLRyPUUYSThPWmETsPIVDot0eKTF2CJ?= =?us-ascii?Q?IVun1FF4noHAVThnajBQfBodTgDbQzvOUg9KHyIDjfTzkpE4XAySry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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: =?us-ascii?Q?Iw1FTnyqRM2V1xYUePyty2dVRLfR8qEVjlCbAbwUf4Cyg34IkWpa4YHdHQbR?= =?us-ascii?Q?iSFF4s0wNJJNPiuKdTJLUInmUu5eTz4wEG6Z0LVt9qqgLPVnGZO6cimkqcyH?= =?us-ascii?Q?oeBDiJc7T+Z4IFa0Ee4TCJ91LKKrumhtNmvUTLVRPbFkxKBWnpt6DIGzKTBD?= =?us-ascii?Q?K0Qf64oaXrg9545q9c4ZUfGzq9o5q4CgVJ3Gxk3Ost9ZR1myze9g+zqBPj0z?= =?us-ascii?Q?k/knXEaaQdao1FvUL6ludY3gHRm+u9TayvPlyl1zfuqE+LMxgu7ji439h5EX?= =?us-ascii?Q?ba8V6NdsLWKf6y2+/2SPwlV9ueDJfu4lfjxER+8SKza/yQOfqcUG9+ZbuLpJ?= =?us-ascii?Q?vL+2Q0IVHlgGqtrQw/de6nr14EVuA++LTEORofIoLP4dpVanKOMWIQXGXGu6?= =?us-ascii?Q?vpUepj0uSJPXBMT8g/wU+XBzA8lEmlmnBAbf6svqVwtyZubu7SjMwLMO7Nq0?= =?us-ascii?Q?99mpi8gSkZOdCFzLBCLYBooU62wrhkmMrqodRBGaV361QDOuC8Hm2ys+shRX?= =?us-ascii?Q?xLZxovRnVoWf1G8hTJIZ/feNVPqaPVI8qWTuSRYS5q4PPIE0B/+5NOTpac+z?= =?us-ascii?Q?JtId9ZIKcQGi/NJ8jElaQGOVv3X0GxWtnZOWoCiRxZ7aD89FtoCzj9QZ6JZn?= =?us-ascii?Q?RnUarXCgnsW64O7w4wpICc0/Qt+NNA139NVcxi5FzxiFiUyut5F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PCMsbipjHt?= 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 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 --- .../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 { -- 2.25.1