Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp846466lqj; Mon, 3 Jun 2024 02:37:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW6dy+9PbB1+wFXfG8iKJ71L/SL88JTl53PZqAN+pwqj0lEKzb3u6jhp+TocSv2iTT89LqGubMsHXmyNj8/uzfzbVNWxuQQB5Q7xtDgvA== X-Google-Smtp-Source: AGHT+IF8+u14AxTvfKJZqtE64rz9WKgjt6iykPcSBlzB9m+euIyo4B4Z2fBnt60bnH6gp7u8iMSM X-Received: by 2002:a17:906:eb51:b0:a68:b557:5f8e with SMTP id a640c23a62f3a-a68b55763a0mr342661266b.42.1717407456188; Mon, 03 Jun 2024 02:37:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717407456; cv=pass; d=google.com; s=arc-20160816; b=RwTFHHzy34Ag9Rl4wrLIjbuGjl2U0QsJtdaeu0OJdmlsTMV7hKuOq4OeqcTbN9cwXi vrDoqi2qtYwVV2pe/niBc8eTgF652LxwyAZpUbkfckmxt69LMouL7cQGN14fZL6FBDZk T855PuI6I80lfqvwOMrcDjuZwkrJCp+wWS+DizDNwdruMDym2wSXzOIMKdveSgHjhpsT qIG3f8/6x6k/xl8VeAf1s8JFs1Fb6oBBjzIPlty6Tqhr1Q10ZF7Lz4MLWWRyA1qWl8yd 6dQAWoUoapgOYKZzQdSrGiVrXTr+Lvz2a3RWICboqAzee24uTEGVuqle1eVTL5GoVr2a RPRg== 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=1Q35dkt89KWo1ea1imWMRpqWMEk/sfn0A6SfaG1T7t4=; fh=PNVS6hneBIB5DuUKcqXTZxY2dQy/qm89zdYDxH+oLxc=; b=NV4U67jbwtoLd60Gw90sXmIh+cgNfHho4zURsH5cjpCC75PZ4qQg/QxrHBc6K5rDED iYkQb6epSYE1nGdK0Tr11YX6HAqlspjDKbV3pp0+bTKZBSA8y0omuPolbrbkjZpco/9y rtEnp/3KZDTG6xey4ljTjwKtCbmGqDh/7nb6iCLJEmQtbPz64kjzsjq6uapmgKPxsqly JPDO4Ai8Px+YZWpIQG7P1d9fu8W90LpgdpD3y0elW1RG8ebeBxeXrY/v0jRCZD3T3/j5 qRz47nhD9ovwTmmEkhZ7m8+9/cLF7lyQMDOvT5s7icTJtL+3ZO7PN2yxxoZK5kAins7h Q6TQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=s0xmqufi; 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-198897-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198897-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 am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a685b3428f6si367251966b.751.2024.06.03.02.37.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 02:37:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198897-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=s0xmqufi; 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-198897-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198897-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 am.mirrors.kernel.org (Postfix) with ESMTPS id B9B2C1F28416 for ; Mon, 3 Jun 2024 09:37:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E26BD84E09; Mon, 3 Jun 2024 09:31:05 +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="s0xmqufi" Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.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 4DF3984DEF; Mon, 3 Jun 2024 09:31:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.207.212.93 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717407065; cv=none; b=X08tSvYsmcpIrAT6CyeWZgFm4y26Zr9BKn4ud3pQh0FJyzCwFMYy6Uaf2cnkZC4LG76SQ2SWyXu7bvm1iL8DgHEFZ3cAk0TSkevf2sTuzzI2K6kI6ZdiaVUJbLhI3EDoSk9mvtQo6XH+iUfIRLcdHWSHSuTYJuGqIdyxSVFUh9k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717407065; c=relaxed/simple; bh=h5mN9hSq8pgjzcyt50z4SAsjS4rmHveIiM9R54ksBvM=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=omeZ6GPP8ycjX+ZpKcHZYzWWqhsfXal6wgQPNr8iL0KXyW7onoTWp1TH1ZC8mSEqFJcsCCixHaiRIzJlLIfuML6zWDjXgHvrTGB4UWk7LdIy9hG4iBfeIOZZnmNiDgKwxCAMWBMxT3IMxXgGp0OO6MaCk5a/QV3wYoQyg+t3Mr8= 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=s0xmqufi; arc=none smtp.client-ip=91.207.212.93 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 (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45384p8a005103; Mon, 3 Jun 2024 11:30:34 +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= 1Q35dkt89KWo1ea1imWMRpqWMEk/sfn0A6SfaG1T7t4=; b=s0xmqufitJxZ/a5V qPkeWlgd6njrUbAJPh4U3hwk7rVfvc3PdnSog+EAYSIhhEbNbqe2BxETbptGhVoK BVvwgDKQ/pOHTU021EzsXEQcLhq1UxfCSoC+6bQZotZzdT87AmGH/24NuYd+VDkQ EUGr4nd58LQPyu0iO25OF4TpF+NWJwoOfm4idMkNFm/VgjuOWLUE1lK/mbu6Jx39 33ClRhe0EG5QlzZKtt+lECE7BR7xbXp4gpOocQZLoh5NenHuGJsasB6mJ6y9jQTu RvhMiMQYw4WclKWx2AqjKaFWB5HHk20lcvnv2Lgwdi0tIJnfB01NqTKc+7h1lhuE lrSmcg== 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 3yfw306020-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 03 Jun 2024 11:30:33 +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 1E6D540049; Mon, 3 Jun 2024 11:30:29 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 53DB7216614; Mon, 3 Jun 2024 11:29:33 +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; Mon, 3 Jun 2024 11:29:32 +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 v3 09/11] ARM: dts: stm32: add ethernet1/2 RMII pins for STM32MP13F-DK board Date: Mon, 3 Jun 2024 11:27:55 +0200 Message-ID: <20240603092757.71902-10-christophe.roullier@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240603092757.71902-1-christophe.roullier@foss.st.com> References: <20240603092757.71902-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.650,FMLib:17.12.28.16 definitions=2024-06-03_06,2024-05-30_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 --- 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