From patchwork Thu Jul 4 15:23:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josua Mayer X-Patchwork-Id: 13723911 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 1A183C3271E for ; Thu, 4 Jul 2024 15:24:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To: Message-Id:Content-Transfer-Encoding:Content-Type:Subject:Date: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=VfkfFgrB23A2GZ/3PtMWi/pCsUJhwZCVPbN1zsPZWI8=; b=AjXZwoLzapL7SvKqv+shhUbwH7 ro0Xxunv9rw4xfR7vvrcKQJlc1BpkSjOU3bLLQhUPfNxaOeDBk1ByMCVUqHpZxTitv/qlmmMqUFEy BKBv6nwDqJ4j7I/LhTApmFXQOqq3EURTV9L+I4WMKcqIknmJIbXUM4FRURqYLvJwYW754Tue6PyCe gH7vBoGCnEDRfk+Pyst8Z5g+TciZ8hgFxYyLwCVPChMW51f6FNJMD9aWM3DXOCR8QVxkzM0HHRj2N WvF8NryEQqUpcyNNB/SsLvdj77N6jJD/BskUpemhU/dhptyePDpwuSYSgrNbtBjGRyUcntrmaOj6y K3Hfw+8g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sPOJV-0000000Dgjl-2ZxK; Thu, 04 Jul 2024 15:24:01 +0000 Received: from mail-am7eur03on20700.outbound.protection.outlook.com ([2a01:111:f403:260e::700] helo=EUR03-AM7-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sPOJI-0000000DgdE-0ggX for linux-arm-kernel@lists.infradead.org; Thu, 04 Jul 2024 15:23:49 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fBFAD3VxrAgfebR+S9Dldr4TGJ8CnCLmCQDnMjB0loHXrgecEW8UhROECDALi5vPIXyjajqpZz8fKi7e0xIE4h5eEGUTt7wA6VgqaxMmWb2SCKLYEege4YFhUz/fKYgUi6Q8xkEYPjWoFflNvJ/NnU/fJlxw1W5KJkAFes072GVUz4eDIQ7dbZDJSAU3xtjaCAeIjmy+NwX5Rfkh0OSMDA8s48lvhDmb/t1Smp9UKP6d7GdtlkXze5sudZ7hmncm9ROLJCSACC2yWCHXlyoNFfQK8FoKghMz6Dh6MHrTi9W9cN5wrS45xbnmlAJ6e/9FMH+13qak3Z2bFMUJSeadWw== 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=VfkfFgrB23A2GZ/3PtMWi/pCsUJhwZCVPbN1zsPZWI8=; b=Z6GbsTqjuq/sCLOPwCV8kdSS08QoIIWBXX36FWJtrUVtigH330GHYFrT+QsQwyhL208EaAa5Yx/PzAag+eaR0MagBIqApcWIrNouSlWFj48epqTM/uQ1nUnQJegVMrCOdscKC/kFPdgFtBTacTQtRk4zf2UKNoXjg9wYlciXQ9tqpyX8To+RYeWNu7ztiHiIXUY4WRwALvzilLCmXb60tqPZQYnz6KjYF1FBuy88DKQbmOmCpohanErXxBYa72OkBh23JL+WNZITDFDMJukQNYlkfY75S0Z5N66E+UppUU86miyMyxs79uyPhA2f+Cgu8KOtyLCUOB0TfwcUgkCB3Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=solid-run.com; dmarc=pass action=none header.from=solid-run.com; dkim=pass header.d=solid-run.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=solidrn.onmicrosoft.com; s=selector1-solidrn-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VfkfFgrB23A2GZ/3PtMWi/pCsUJhwZCVPbN1zsPZWI8=; b=m5cgBpvTfkdLPaVv8zi+vEH+LqSfgG2otz4Cr4J1szwr+pa+dGNvycmb3HcQjtTLIjtW3bNbNUhCpxxW11jN6IN8pQgVL7m8G/T6SHldvK6TLJDGFXu8kT/I85FsQbGqQVzBhDNj1dkbYEAcy0kTaz88NzFhZcoHsgV9X6im/II= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=solid-run.com; Received: from AM9PR04MB7586.eurprd04.prod.outlook.com (2603:10a6:20b:2d5::17) by VI1PR04MB9786.eurprd04.prod.outlook.com (2603:10a6:800:1e1::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.27; Thu, 4 Jul 2024 15:23:39 +0000 Received: from AM9PR04MB7586.eurprd04.prod.outlook.com ([fe80::c04e:8a97:516c:5529]) by AM9PR04MB7586.eurprd04.prod.outlook.com ([fe80::c04e:8a97:516c:5529%5]) with mapi id 15.20.7741.017; Thu, 4 Jul 2024 15:23:39 +0000 From: Josua Mayer Date: Thu, 04 Jul 2024 17:23:38 +0200 Subject: [PATCH] arm64: dts: ti: k3-am642-sr-som: mux ethernet phy reset signals input Message-Id: <20240704-am64-phy-lockup-v1-1-4a38ded44f9d@solid-run.com> X-B4-Tracking: v=1; b=H4sIAHm+hmYC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxMDcwMT3cRcMxPdgoxK3Zz85OzSAl1DA/PURNO0tEQjIwsloK6CotS0zAq widGxtbUA9BxJm2EAAAA= To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Josua Mayer X-Mailer: b4 0.12.4 X-ClientProxiedBy: FR0P281CA0260.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:b5::17) To AM9PR04MB7586.eurprd04.prod.outlook.com (2603:10a6:20b:2d5::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9PR04MB7586:EE_|VI1PR04MB9786:EE_ X-MS-Office365-Filtering-Correlation-Id: d3dd612b-0314-4dba-d41c-08dc9c3d481c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|1800799024|52116014|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?NOxS1uOAorDBew1wtGIKEyth+hgaNEU?= =?utf-8?q?Q64AX40vaYR5EpccFuy9SzoV/XU7h0hZkkwLk8WwxpDFqBNNbnV4/9bTP3H0GRlIh?= =?utf-8?q?0Z71iLFnvfQFd09yQJ0IUb1Y66wk/+NZnp1zFDki9MG7xV1Xq4n/QLiCRnJKlrQnK?= =?utf-8?q?NHuj+CTibDdTE0JGXUIHSPp4/5CDYERrvX9Vhhmx/V+O08P4W33DKmFr67Mv6DHgu?= =?utf-8?q?I+vlrJ86RZ2v9nvD7JPsMC3zdoBLSBYrpj3HPSWEu5BBSfErO/v/ssLYhug1U7x77?= =?utf-8?q?iwpTjNWy3t+CWteJ6+pH16XRlnqdzS2cRsHT+qTWU1zJnnIN6h0zoyT2fTvPRInr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9ucgizMA/nZ/SXLx8y5PT21dZ2rG3vGp6Z5RkppiK9RfsmwJU4sSPINvOHpu?= =?utf-8?q?WumD20D2vU5LqF79+Lu9wvVTacLUEN9U1nfSUUhhlwqBRZpE1po5sei56uo3+czZ1?= =?utf-8?q?WrYwgBLb8L9mGd6fcPEp38CxG3dzoEBmMg=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM9PR04MB7586.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(376014)(1800799024)(52116014)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?bxJq9Mr5awTjc0O1YBxOWa8o8P+f?= =?utf-8?q?XD0VJn/Pwij2vjIJ2eTwgo0lGgnH5bbotHElIQI/eG8EIRnqQd0CU6oRjE/mOfjSs?= =?utf-8?q?5KeELCEoXS5q6HdKO2+qQBHlYMZVVxhYjxp0GZEpDrkM9Htp7H11RA10ASltpobml?= =?utf-8?q?kbue/1G0i+1zBdIDAxYqRN7Q1JnOa6G22jQMIyL9s0LvaZhPGsVPexrf7/Ye9wKjU?= =?utf-8?q?b/8831TYPZgGDjQRmCX6t1gh+LN556YL/I8DeE1xmfJyIWWcr4KJiz2I5oRWUrMXA?= =?utf-8?q?YXWgU+wSIIB1mSeUd4Jy0VuA5fKS19dEERzGWUtQy0NQe6VKoKWDFJjvWTlxGE4yb?= =?utf-8?q?2WMN/XNAxPiZYx5xXFYqzk21WsR9XbKXTIebvQ/hQLV6NrPpKj+Y1iekh8ybXr94e?= =?utf-8?q?hCThgeyOSLxN0asUgB3mPn0XqoUN3OJeuAdjP+wzYJV2eVytxC6fqHcvXxvmAXL0u?= =?utf-8?q?m3250fdnxy6DuffloejdQBByaWZq3lAl1Xf7SQxgUfNwv+0glqZ31ddIQmZ65doYg?= =?utf-8?q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4wdj3fyXq2EJdYxhZ7LFjnu+VYyOYLERo5QPq4kjGOy8RdVjoBzCXb3GCobBZwZJA?= =?utf-8?q?16TldJXN0To8PsTjnhiukdV9LAjvnYJZjZkNFHWzI2r4O+M5e6WMx6EFiMffexTsQ?= =?utf-8?q?XBd1d6MQEVYC?= X-OriginatorOrg: solid-run.com X-MS-Exchange-CrossTenant-Network-Message-Id: d3dd612b-0314-4dba-d41c-08dc9c3d481c X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB7586.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2024 15:23:39.7303 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a4a8aaf3-fd27-4e27-add2-604707ce5b82 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 2+7iSWFITMRjwQaPmMG6h996cfsaW5YwyYZmjdL9OqyGFxj/3gymdQ3Q2B4D/jJ1jdU3ak03Kd/8x+exZep3FA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB9786 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240704_082348_245818_1C76A9C0 X-CRM114-Status: GOOD ( 10.19 ) 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 Specifically on AM64 SoM design, the DP83869 phys have a chance to lock up if reset gpio are toggled. Update the pinmux to input-only, strongly enforcing that these signals are left floating at all times. This avoids sporadic phy initialisation errors mostly encountered during power-on and reset. Signed-off-by: Josua Mayer --- arch/arm64/boot/dts/ti/k3-am642-sr-som.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- base-commit: 1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0 change-id: 20240704-am64-phy-lockup-107ea5ffa228 Sincerely, diff --git a/arch/arm64/boot/dts/ti/k3-am642-sr-som.dtsi b/arch/arm64/boot/dts/ti/k3-am642-sr-som.dtsi index c19d0b8bbf0f..b1f06071df4c 100644 --- a/arch/arm64/boot/dts/ti/k3-am642-sr-som.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am642-sr-som.dtsi @@ -320,7 +320,7 @@ AM64X_IOPAD(0x0278, PIN_INPUT, 7) /* EXTINTn.GPIO1_70 */ ethernet_phy0_default_pins: ethernet-phy0-default-pins { pinctrl-single,pins = < /* reset */ - AM64X_IOPAD(0x0154, PIN_OUTPUT, 7) /* PRG1_PRU1_GPO19.GPIO0_84 */ + AM64X_IOPAD(0x0154, PIN_INPUT, 7) /* PRG1_PRU1_GPO19.GPIO0_84 */ /* reference clock */ AM64X_IOPAD(0x0274, PIN_OUTPUT, 5) /* EXT_REFCLK1.CLKOUT0 */ >; @@ -329,7 +329,7 @@ AM64X_IOPAD(0x0274, PIN_OUTPUT, 5) /* EXT_REFCLK1.CLKOUT0 */ ethernet_phy1_default_pins: ethernet-phy1-default-pins { pinctrl-single,pins = < /* reset */ - AM64X_IOPAD(0x0150, PIN_OUTPUT, 7) /* PRG1_PRU1_GPO18.GPIO0_20 */ + AM64X_IOPAD(0x0150, PIN_INPUT, 7) /* PRG1_PRU1_GPO18.GPIO0_20 */ /* led0, external pull-down on SoM */ AM64X_IOPAD(0x0128, PIN_INPUT, 7) /* PRG1_PRU1_GPO8.GPIO0_73 */ /* led1/rxer */ @@ -340,7 +340,7 @@ AM64X_IOPAD(0x011c, PIN_INPUT, 7) /* PRG1_PRU1_GPO5.GPIO0_70 */ ethernet_phy2_default_pins: ethernet-phy2-default-pins { pinctrl-single,pins = < /* reset */ - AM64X_IOPAD(0x00d4, PIN_OUTPUT, 7) /* PRG1_PRU0_GPO7.GPIO0_52 */ + AM64X_IOPAD(0x00d4, PIN_INPUT, 7) /* PRG1_PRU0_GPO7.GPIO0_52 */ /* led0, external pull-down on SoM */ AM64X_IOPAD(0x00d8, PIN_INPUT, 7) /* PRG1_PRU0_GPO8.GPIO0_53 */ /* led1/rxer */