Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp207662lqp; Mon, 10 Jun 2024 01:06:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVRE+tjd/G9mhzF38ltFzj6iBA1Fuyqb0l4Rd12J4KUCJw19AxOCbrP2+GnotGLFowQQ0ILfz93o2+BQbEBoYqTI/71psn3A8xNbzPq8Q== X-Google-Smtp-Source: AGHT+IG2PcSZpLuje9q83FZH/86G20gLkwWypa2W+OD3J6UIArRXhXfGxcd7EqKAZG0DwO4QEoez X-Received: by 2002:a50:8ac3:0:b0:57c:6f5c:54ba with SMTP id 4fb4d7f45d1cf-57c6f5c581cmr3511780a12.22.1718006765596; Mon, 10 Jun 2024 01:06:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718006765; cv=pass; d=google.com; s=arc-20160816; b=WPGkBg3HX8NIZkW4btPLQIofMWOLII3efMnA8DhZL4v+iTNNdzh6kZTDzATlh57Y3p uf/ZMVfHaJXS/H/5PqXQUFd5WEQYzlFgmJs6HYRKP9HH/VJNw1wzfhzoIF3lBUE3/GVr CMTdYJrfQ0yoNJ+e7P4KrMRpNKRLm6NnYAVpf0eH2IkkiWvj8XX0kUFJrqVBNmhvEr0q kFLQJfuFhE6QLvndI1fdyOUcYF1OkbmR7X7FGNy34rNIafJ2gDwyrg24cWpFcN/Dpbnj /IOACf48PN01XRWDT2jSi+2v7lvjDepJiWicKAn1pEWW0oHKdPnlsO9FK5VcpQ24WSLv QshQ== 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=rFBQYzC8KpwWzEihBFqtrg1R/5PC3TYHlxE0YJPpknCDIHyChwHouySR3oOdiviFgx mvsVsrXXeLjy2kd095zyxRkjMpjO0GsxIOllZe/Eos1ZasSt9OXXTmXlXb9cR/PE4K+F rBPTNb+gpMlR14o9lB7j7GK7NzRFCa4KF5oJQFMhkmQ8vNixzKg/Nc+OElUiCDpLep/S S5AdQ+sJ/RnBENji+CLvnVewx0PJGIFe18yBbOOhAPGXjz2gGYjej0o1dswRTb9XYtaN t3u2xGnJm7sMpUcGqltEsVLpjJRrHqtiebel8Aqm4e79bv3QP/VI+fAkfoNOTVUm5d8y wZ0A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=YPdWPJKz; 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-207798-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207798-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. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57c739b0a27si1729793a12.429.2024.06.10.01.06.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 01:06:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-207798-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=YPdWPJKz; 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-207798-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207798-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 264231F227E3 for ; Mon, 10 Jun 2024 08:06:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 204ED6F316; Mon, 10 Jun 2024 08:05:24 +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="YPdWPJKz" 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 B503355886; Mon, 10 Jun 2024 08:05:20 +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=1718006723; cv=none; b=Ik7t3z/4wUQ+AZQj61QB5nLBZMKU0+Tl6qI14R30fEg58+IkCIoKTi4bMSiPgTRyOpqaewJhZ7U9rWzmwu61eORpOPIk2VRwiWkN89ytliN6JDFyecbXveWuobZJNmY9IHu7FmCNaCiSGnGac4ZCDk9nNQ6WDopk6P62wpaO7wk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718006723; c=relaxed/simple; bh=h5mN9hSq8pgjzcyt50z4SAsjS4rmHveIiM9R54ksBvM=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Bmonj8KWOSxMj6m+TFCaSrSRFH6Tv+X1cWlTJzBd+mVwupWYtB/5Qr0QXHsxSNrVXwNRy9zGiqyXn2iFlMx4WKnuyKCrUDm7RXv5LNRRg6T2ccfyq6o38U5R2syY3TSU8u9YolsERoUwXIzaKZh2WslmNy0KXS4Ho+RuDJwZxLc= 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=YPdWPJKz; 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 (m0369458.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 459LQ905029276; Mon, 10 Jun 2024 10:04:51 +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=YPdWPJKzwIhIlz6j mPynwiPvNYYmHyPDGFLQauy446oxwdqBwuxyrMOvTuFcUk4EbD6l5L0HWStJS/LC CaU8CQk/WuJDyoOEvdvTkMQZ3BBMUVqhK/HEVZgTR/dp5nmLj53EUf5tOPPP6UXf ia2yP7T2nGjQDQCdNLY494LI+QPqftPnQd4BwXlhBolqkP2FEdY5wpDruZfcFB1n dRKTt5d9Vua7CayzbqkrsMjlZZJ1EjTPcwb/n2ja94X8Jn7YPS2y4qoY8Gp5be9A oyzBeFmqBjZ0VerlmJhIs6+9up7JoK4M/b0PvJDC1o8mwGFk5NRAbIXPR3G5zsyc Sct6hw== 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 3yn0v13jc6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 10 Jun 2024 10:04:51 +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 12D8240045; Mon, 10 Jun 2024 10:04:47 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id C1900211962; Mon, 10 Jun 2024 10:03: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, 10 Jun 2024 10:03: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 2/3] ARM: dts: stm32: add ethernet1/2 RMII pins for STM32MP13F-DK board Date: Mon, 10 Jun 2024 10:03:08 +0200 Message-ID: <20240610080309.290444-3-christophe.roullier@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240610080309.290444-1-christophe.roullier@foss.st.com> References: <20240610080309.290444-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-10_02,2024-06-06_02,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