From patchwork Tue Sep 3 08:52:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josua Mayer X-Patchwork-Id: 13788307 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 C8B66CD3420 for ; Tue, 3 Sep 2024 08:53:52 +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=ZRWs4ht2ukU1OGMsZ+jOXbFDlQvHpjMtZGbBYPWOa7c=; b=gVGpmV5CkYOMzJM0HUoFuIvDqV AUkv/3oC5Zdr8hWK7qS92z0pAbS9fZUHOPSeu0bsdp5UG7t+x3J+RGcV7UOZhslCtHxUPVjn5lri5 CzT4/gEKdc/ulyCSawmPyXndYkxdYVs6q5/GodBUlEdcx+KsnhS5nE4bi1zCaMy4UzLTEBbmhHiyE 700s+aTlrBjGD+FZaMsth8/J9pCa88hObjQ/R9hAEVLt1T7lii7CiZ4/eFTnyYdFqgCMYwgvCtDAX rpMiKahjV/MwiUMgg8mrwDJSirK2Utr2f/aj/n+8j6rhUoTPbHv0XXl5aOgOSIFIR9pREBPQK/+MY NXUyjzgg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1slPIF-0000000H0ba-1E5G; Tue, 03 Sep 2024 08:53:43 +0000 Received: from mail-db8eur05on2071e.outbound.protection.outlook.com ([2a01:111:f400:7e1a::71e] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1slPHI-0000000H0Md-2b91 for linux-arm-kernel@lists.infradead.org; Tue, 03 Sep 2024 08:52:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=oZWBzo4d+NhJfzlSsHm2ocAICHriJEisF+O4j3FhJL4GhZK2HVROd+4luSaVFCyGT8KHcdjPALYConwYva0F4q/TTXaHVXfBD1sm2UdMVCBcIALbaHLpf8iEC2AaEpqhYyrChzAvhIII5uojLTTNDBHaaN3e0xJL0UFn0o4RtG3qjANZfdyDatj1MgWkd7gobil3J0qGMVsdCTACR2YHFZ/e7g4lGEOGxiJRTL+Mcg7iADf4JmnUEUWmKa48VmeJkyD7krxYkeoYm2l86cjtju+h/e53LYPucs560vJEPaokOVL9+KRLFgp5vnDA/GwTDqIVCuj9R93Sl6jnVbR2EQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=ZRWs4ht2ukU1OGMsZ+jOXbFDlQvHpjMtZGbBYPWOa7c=; b=KPLueF7ptfWKxJpp5wFABtlgtqCgQIu57rekkXj6fhPZlrl3XoUUAwMdM2S4wc3h/wQ06aH1SmvqrnB9/WvuN0GGi3bQ5o9yreOxBEsOhV7UKfVUW07NT1iNtasrf9kA8RvwN0ZGtHysvUt5mhwxIC+5oGXwbZYkS147KtNXzzMiAxrtmN4MLAWGsw5SsmDgJbwhY3XrkofnMAdvWxfvqbRB2aDG7e+OU1mojuZVEzjKxC4iboxUKBoyTq9x7wOV3rGiabVXd7xaH2cSfMYchzAx1yG4R7AGWMTLSmzk3pnKGAR2++1xDYcofOjhvfuPBg3mLcgBUkKFWbjxQdz6Ww== 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=ZRWs4ht2ukU1OGMsZ+jOXbFDlQvHpjMtZGbBYPWOa7c=; b=f4+0cmfnMJYsXyV6OLD19D49C+zV6ItTyvvz9NsvfwytJZAr6ZrJKz0gMvXO/asKOy0P/HfTLvH+1hGgUrt8E4gUeG3ilsNR2eU4Znv8CbpCLCc0GaJvV3IVKe0xbwsWuuYcUL5KKDMDgOVUbKx14gVYoTQVWCDnJgRN6b15aAA= 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 PAXPR04MB8607.eurprd04.prod.outlook.com (2603:10a6:102:21a::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.25; Tue, 3 Sep 2024 08:52:37 +0000 Received: from AM9PR04MB7586.eurprd04.prod.outlook.com ([fe80::c04e:8a97:516c:5529]) by AM9PR04MB7586.eurprd04.prod.outlook.com ([fe80::c04e:8a97:516c:5529%6]) with mapi id 15.20.7918.024; Tue, 3 Sep 2024 08:52:37 +0000 From: Josua Mayer Date: Tue, 03 Sep 2024 11:52:10 +0300 Subject: [PATCH v2] arm64: dts: ti: k3-am642-sr-som: mux ethernet phy reset signals input Message-Id: <20240903-am64-phy-lockup-v2-1-8cf6bd138ebd@solid-run.com> X-B4-Tracking: v=1; b=H4sIADnO1mYC/3WNQQ6CMBBFr0Jm7Zi2VkFX3sOwaNqpTARKWmkkh Ltb2bt8L/nvr5AoMiW4VStEypw4jAXUoQLbmfFJyK4wKKG0qIVGM1w0Tt2CfbCveUIpajJn741 SDZTVFMnzZy8+2sIdp3eIy36Q5c/+b2WJErU5NY6c1v7q7in07DDO49GGAdpt277gOrdosgAAA A== 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.14.1 X-ClientProxiedBy: TL0P290CA0014.ISRP290.PROD.OUTLOOK.COM (2603:1096:950:5::8) To AM9PR04MB7586.eurprd04.prod.outlook.com (2603:10a6:20b:2d5::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9PR04MB7586:EE_|PAXPR04MB8607:EE_ X-MS-Office365-Filtering-Correlation-Id: ab312fb1-e8a9-4ad6-a250-08dccbf5c26e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|376014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?21o6n+/x515Bgm6OUegt9gQY4Utfhoa?= =?utf-8?q?19WwVVMK1tX7sdKDgKd5QgE7eUHtMbMD1Q+9+VazqG5SC7XAC0YcNWvxGkNsvXFh6?= =?utf-8?q?0/eJHqKcUZnuURjxwjQyhbQVo3VbotrCABFVR50tzY0zq7D/81OaIUutFD2uepN+9?= =?utf-8?q?hCwM6HSO8hnsG4gdI5kt60PKhZwYI1sS4TNUR1IhxSQWf3ZJEvq2eO3YyAwt4IYsm?= =?utf-8?q?WCxLtU72ZD+9PmVkFfld1kXgZAXMxumYBzyxIV2FkxUWCgz7drb3FWETBcd27yEvg?= =?utf-8?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?utf-8?q?SK6fz3Y86rCJ1AmzoRg1+Djfomdn3FTOMQ+HEoYHJKNOKJd41yz0IGR7HvXMx7S67?= =?utf-8?q?K6hhYYOjZpCzB3Qw/+LBaHfTliyRZEKCt5Tv2zJ8AXHyAOds/FOU4pSaK1wxAG37g?= =?utf-8?q?SFljbiRn4YNzLupzvS/B5agQxuZnaiPeTWvSQtDb4rDukcOqq93CZ3Q30u3hfZz//?= =?utf-8?q?JV8Dq4VuKROD1tvAQ9x9An5wzPJ47Ot8Ow=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)(52116014)(376014)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?PgJpi44LmNhX7113c9DSpmrDlnpn?= =?utf-8?q?WBdsjmeEdoxK8ITjqeFgSkKhyvAFnwmqA2NHVEKIR4S/VhvD9Sjhc4A9BauHE1DLW?= =?utf-8?q?GI4pjHUaWd3mZPE1d9QmfJLihP3jGVgdWNmhHU3W3och0QuQ4Wl5D4Wc2eF04Td1y?= =?utf-8?q?EK00485ffIw0XqMZmFE/HV8Dg5w/oHDpyrcPGIyryTEdujy/GALQbVU0etvsQd5gS?= =?utf-8?q?JZXBdAu0TGw2BQsITTAZcelCJfEZ0G8Z5zivhX/ve9d34Jq0BK5ZAtmGuPG3VnYIs?= =?utf-8?q?7VYTpltjEKpO/YNdjqFb2MlOGZ/ZYAEOUvKhXjNbifJHDlcAdjTNE9qdu4n+O3nSS?= =?utf-8?q?+/jGy3NRSmdzntZwgXH7vVJ13Y1K/0AIVi9KjnlH17KL6XnmD1WCBNC6bKh4L0Qty?= =?utf-8?q?Rl11jjAtueo91FSiz2rRMCU/K2GvKWfIBV0ZLO66HlVXix0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HvmEh?= =?utf-8?q?tXB9HVe8ChyTd53UdNDxX9hPylvyRTyyrXKshLAzW+gpefRTMTR+EWKvVls7xWTtH?= =?utf-8?q?KtwB5eA3F2wc2rCoGmP0luJrUXNYz2MBRnUcNjBWjAYmkwb+pvjDajQaneEYnV8Y1?= =?utf-8?q?upixU8ca0zpHN9KwPFogO3UjLeK/C8lnWn7L0a16z1EUqU5AziaNo+fKJa6T0eCZF?= =?utf-8?q?mSuL4Yk+rcdv?= X-OriginatorOrg: solid-run.com X-MS-Exchange-CrossTenant-Network-Message-Id: ab312fb1-e8a9-4ad6-a250-08dccbf5c26e X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB7586.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Sep 2024 08:52:37.0021 (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: qRpBhn+qi/v9DNflrUVaDAOkaWbYd6ICkn6Co2Bo8MCph0VMTHiLGX3JWZ6fc3EbLvd5TtN8S0q9Myy220sQ6A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8607 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240903_015244_697812_E74D2093 X-CRM114-Status: GOOD ( 10.98 ) 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 changes state. 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. In this state the phys respond to all mdio messages with a constant response, recovering only after power-cycle. Signed-off-by: Josua Mayer --- Changes in v2: - update commit message with additional details - rebased on v6.11-rc1 - Link to v1: https://lore.kernel.org/r/20240704-am64-phy-lockup-v1-1-4a38ded44f9d@solid-run.com --- arch/arm64/boot/dts/ti/k3-am642-sr-som.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- base-commit: 8400291e289ee6b2bf9779ff1c83a291501f017b change-id: 20240704-am64-phy-lockup-107ea5ffa228 Best regards, 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 */