Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp329433lqp; Tue, 11 Jun 2024 06:05:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUG1lcwWXfGHwfHVs+S298xUPZ4ytK5n78yYdFc1WYFKLLFefPN2L7LdpXF/NBT0pe8Y+EY6pMY0UqiTD2nuHPJzuSkIvwBeF7JccNXaQ== X-Google-Smtp-Source: AGHT+IG7YrmiNbHlRKKgnSg/8MQRzE52Z/irVXd3p1jO8tOGi7M8f8xSmmEFtdiSn3uDKv8sXea6 X-Received: by 2002:a25:c5c5:0:b0:dfa:cd4a:b3aa with SMTP id 3f1490d57ef6-dfaf65c5678mr12333456276.56.1718111103044; Tue, 11 Jun 2024 06:05:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718111103; cv=pass; d=google.com; s=arc-20160816; b=CIRCkt+WBa7LHG2Ac5cUuljYS9qLWqyvdxXUOVa3IV9Xwy+s6djNYRdnvcrmxOUYmf OOh7GPTB9C1r0Lgrc0gj49rah6OZYNyw7YTJ6uscytZfWbpaSpSdMiyOESjqKZOmJymv b4WcfYpReUglWO8wKypy9ZHKod1IOCF7R5zQ+DFAGl7pI/V3UexiyDitq6oE+DNK04YR YK+SrFTexTf2XmieLU6/cj400TI3hjzlNirmRnIz4nknEL1h7wT/pbibMlLanAr7FNcp wkM26Zu/P7Zlr5OY6Zk+dmy2+QRlFIvM0/keeoegmfNAJXNa3l4boG+R0NSdD0IneB6i a5jw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=jWA+Y98zKo81ks8axrj4D4lZ6qT5+GF1eFXzK0OUGtc=; fh=PNVS6hneBIB5DuUKcqXTZxY2dQy/qm89zdYDxH+oLxc=; b=jP5JlntWYy4SCZQoeCkkRXY3TDr+UOVmcfk9mnEbCL/TKECNjY4TsVMMSINbp/IeMq ZDZ/O8fXaHwlascwMvrkeEGi+ZWUuq8c2l4zOabpGL93RBWnX4NElmX7J32R1oNjbrVV /GV+2YyXxg3un/LuXsViNV+C2AXVD8LXq55RzJ2Zv+0v3AW3zkSv7TUmuDG29tP5IzjQ FLwgQJYLiJ7ZED56ERIZ+Tv9n9pAFj1yHXQ/vfg0zr6fzJlORk7VwnPYrgKZASR4GdG9 6ggCudr3yMgyzmDW8KAgrUfK6KMJ0qvQMDCSKw1TG0oaqd2/3S204z/4U+a8Wq2qeGrn nGpw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=h6Cm9G+c; arc=pass (i=1 spf=pass spfdomain=foss.st.com dkim=pass dkdomain=foss.st.com dmarc=pass fromdomain=foss.st.com); spf=pass (google.com: domain of linux-kernel+bounces-209899-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209899-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 3f1490d57ef6-dfae541762asi5480411276.497.2024.06.11.06.05.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 06:05:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-209899-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=@foss.st.com header.s=selector1 header.b=h6Cm9G+c; arc=pass (i=1 spf=pass spfdomain=foss.st.com dkim=pass dkdomain=foss.st.com dmarc=pass fromdomain=foss.st.com); spf=pass (google.com: domain of linux-kernel+bounces-209899-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209899-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com 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 AE59F1C2309F for ; Tue, 11 Jun 2024 13:05:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5A24D17D8A9; Tue, 11 Jun 2024 13:03:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b="h6Cm9G+c" Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) (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 9198717D35F; Tue, 11 Jun 2024 13:03:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.132.182.106 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718111038; cv=none; b=F+GEYFpEGiGc2Ts6cS6HkKcBaoa69Q56jIwH7M26G5zSg5xiXaKSrFQyVxuvRHuvBRkDhaI4CizrSfMsCg0o5CaI7k/Zgm1whAo6xXas2PbFMH850SGh0BlQxQIpwyINv5980wtzoFyFn5XQEEQz64pab7SOeQX0nPGYm8/vN4k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718111038; c=relaxed/simple; bh=4Ply91MrZiEzYEMlYcEjcsPFLaA7oPbDhDkBP1ulJQk=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=kVfJVz5Gc0ZUMXCB72na1CQWKiZw+E3Nfbw5BdcqPaIsc0RIPaUWE3kG0U9068SxzzAi9o3XItBW+nqJ9r3/NQD0weuQ9bX0yDe/8Sb2dhLIS1jFiPILVfA8Na3w0HVJAGyzkXQHJWnLg9GulEzP3DIWH5zPQWyDpoGG/Uaddbc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com; spf=pass smtp.mailfrom=foss.st.com; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b=h6Cm9G+c; arc=none smtp.client-ip=185.132.182.106 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=foss.st.com Received: from pps.filterd (m0288072.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45BBluxp017717; Tue, 11 Jun 2024 15:03:15 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=selector1; bh= jWA+Y98zKo81ks8axrj4D4lZ6qT5+GF1eFXzK0OUGtc=; b=h6Cm9G+cnUggZJrv E6DOe0pwZHiBzYcseb750mWFdtlaIkDtbKxjgxTp9Q8S803TsbzX0F7tNO7Fn2dy iRrQaPA2u6MDTbBBn7bsgxu0yl90q/HijgiL0O3ee1Gp21hP0WJJgvDuRQNtHggK yTgmSHnvtSH+mbyCQvT8a51tIybNORs9p87GH5PPBksSh5e1s/C8r1i3hkUWb9CA vJhWWl0Hh/3TTjSSKb7f97kw0SlDQdFgWgGTFgKBGPpwQpXD6EUbLv2ZqcLvq6qr gg5sWAUFjsSpxmAh4sv2ym+9FjRZBCQ/ykFOHQUqXaxTs1oNnYn5r1o4rSZBl4/B NZXWww== Received: from beta.dmz-ap.st.com (beta.dmz-ap.st.com [138.198.100.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3ypbp2k2nq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 11 Jun 2024 15:03:15 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 5015F4005C; Tue, 11 Jun 2024 15:03:10 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 2603C214D31; Tue, 11 Jun 2024 15:01:58 +0200 (CEST) Received: from localhost (10.48.86.164) by SHFDAG1NODE2.st.com (10.75.129.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 11 Jun 2024 15:01:57 +0200 From: Christophe Roullier To: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , Richard Cochran , Jose Abreu , Liam Girdwood , Mark Brown , Christophe Roullier , Marek Vasut CC: , , , , Subject: [PATCH v2 2/3] ARM: dts: stm32: add ethernet1/2 RMII pins for STM32MP13F-DK board Date: Tue, 11 Jun 2024 15:01:09 +0200 Message-ID: <20240611130110.841591-3-christophe.roullier@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240611130110.841591-1-christophe.roullier@foss.st.com> References: <20240611130110.841591-1-christophe.roullier@foss.st.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SHFCAS1NODE2.st.com (10.75.129.73) To SHFDAG1NODE2.st.com (10.75.129.70) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-11_07,2024-06-11_01,2024-05-17_01 Those pins are used for Ethernet 1 and 2 on STM32MP13F-DK board. ethernet1: RMII with crystal. ethernet2: RMII without crystal. Add analog gpio pin configuration ("sleep") to manage power mode on stm32mp13. Signed-off-by: Christophe Roullier Reviewed-by: Marek Vasut --- arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi | 71 +++++++++++++++++++++ 1 file changed, 71 insertions(+) diff --git a/arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi b/arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi index 32c5d8a1e06ac..7f72c62da0a64 100644 --- a/arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi +++ b/arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi @@ -13,6 +13,77 @@ pins { }; }; + eth1_rmii_pins_a: eth1-rmii-0 { + pins1 { + pinmux = , /* ETH_RMII_TXD0 */ + , /* ETH_RMII_TXD1 */ + , /* ETH_RMII_TX_EN */ + , /* ETH_RMII_REF_CLK */ + , /* ETH_MDIO */ + ; /* ETH_MDC */ + bias-disable; + drive-push-pull; + slew-rate = <1>; + }; + + pins2 { + pinmux = , /* ETH_RMII_RXD0 */ + , /* ETH_RMII_RXD1 */ + ; /* ETH_RMII_CRS_DV */ + bias-disable; + }; + + }; + + eth1_rmii_sleep_pins_a: eth1-rmii-sleep-0 { + pins1 { + pinmux = , /* ETH_RMII_TXD0 */ + , /* ETH_RMII_TXD1 */ + , /* ETH_RMII_TX_EN */ + , /* ETH_RMII_REF_CLK */ + , /* ETH_MDIO */ + , /* ETH_MDC */ + , /* ETH_RMII_RXD0 */ + , /* ETH_RMII_RXD1 */ + ; /* ETH_RMII_CRS_DV */ + }; + }; + + eth2_rmii_pins_a: eth2-rmii-0 { + pins1 { + pinmux = , /* ETH_RMII_TXD0 */ + , /* ETH_RMII_TXD1 */ + , /* ETH_RMII_ETHCK */ + , /* ETH_RMII_TX_EN */ + , /* ETH_MDIO */ + ; /* ETH_MDC */ + bias-disable; + drive-push-pull; + slew-rate = <1>; + }; + + pins2 { + pinmux = , /* ETH_RMII_RXD0 */ + , /* ETH_RMII_RXD1 */ + ; /* ETH_RMII_CRS_DV */ + bias-disable; + }; + }; + + eth2_rmii_sleep_pins_a: eth2-rmii-sleep-0 { + pins1 { + pinmux = , /* ETH_RMII_TXD0 */ + , /* ETH_RMII_TXD1 */ + , /* ETH_RMII_ETHCK */ + , /* ETH_RMII_TX_EN */ + , /* ETH_MDIO */ + , /* ETH_MDC */ + , /* ETH_RMII_RXD0 */ + , /* ETH_RMII_RXD1 */ + ; /* ETH_RMII_CRS_DV */ + }; + }; + i2c1_pins_a: i2c1-0 { pins { pinmux = , /* I2C1_SCL */ -- 2.25.1