Received: by 2002:ab2:3c46:0:b0:1f5:f2ab:c469 with SMTP id x6csp254432lqf; Fri, 26 Apr 2024 06:03:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU78jF2k9ICxXbMp7i7kAOjVQVS3dooJ8adi3Bi1hFhvA8PntWnWP0P9RR8o/MigwdEf96YphSpkG5jh0/o5p130ThJUKjNiwxYLOgBlQ== X-Google-Smtp-Source: AGHT+IHiNlFlyIKRWujxMqHk6pCQ+L1driXNZRYbFdBH0v6BkvRwOWkoiPeWk5rDGCkmQqS3XbAC X-Received: by 2002:a17:902:be06:b0:1e9:a0ce:f60e with SMTP id r6-20020a170902be0600b001e9a0cef60emr2440265pls.19.1714136591879; Fri, 26 Apr 2024 06:03:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714136591; cv=pass; d=google.com; s=arc-20160816; b=H3U7xP0hWCl7yqcHVyOSBjKKmfguoeUkgBCXtPvQRx6mkXg/4vcbl77XgMt0VkyU3R +87TjNdslyMqTqsKVuT3Cbm7hQX8S7Eqg1U2oxxYbdHB1Af6Tz2r1vFP0rNZgTk13BfN 1PAhhXsOkJKYtocKYKY47WkAvInL1+OmD4EA06JQv7jyl3KTnivPvlO79d7hOnFE2Z+s cv2A2EEt1rEyW5WGX8UGT/3x2TYP9Z0VV0agWUysU5O2SPTsY88KmyYSQsAGCfvrZ4W3 UqFVTapTsaeRrAUgMUu3+DmA9rhLU/V49g/1cBT6XuLle1fnMW8PVnbA67RTfH1M/npF xpKg== 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=8xuQ4kG4Mw+l79FaSdV3rqMtEDDLZ1u0dsn2BV0iCm8=; fh=PNVS6hneBIB5DuUKcqXTZxY2dQy/qm89zdYDxH+oLxc=; b=m8wZHvgB6l8q9+QpB6x1FZX8l/ZZTvwf51GVqMyUkDF8nSBVfA0aRVbNMwhgY/j9z4 fYu4qdP+BgkMlcun3rR0ZM0bXigThI0tzlrvqNqEHL4Cgb3TLEV3KbX+G1wHBjKXrHCF DzvE04OTnJBRUqNCpvfYxpXfioIWlX/kJowU8fKQUOobh73qvtsPJuzVMHvYtBmYWmEf WqEc0w0do3qeVr7OrkSNh/wFma3OJ6xbpWIxup81pspP62DscBGoLP6fZIVc/bl0gBYx XoUzRWONDdCpecQhQA178nZtktmo708E8K3HX6ETjocznLdzhXi9SqrYwvhOwUr9ZgXg 6aPg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=pgHQbm50; 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-160018-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160018-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 sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id i7-20020a170902c94700b001e7b7c93013si15018333pla.627.2024.04.26.06.03.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 06:03:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-160018-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=pgHQbm50; 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-160018-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160018-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 68024282217 for ; Fri, 26 Apr 2024 13:02:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F2AAB148FE1; Fri, 26 Apr 2024 13:01:06 +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="pgHQbm50" 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 7EC6E148314; Fri, 26 Apr 2024 13:01:03 +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=1714136466; cv=none; b=fYXN7/bPlOkWenuLuS7ag3xcgZQ6xZ6NtL3sD5WbRMq+NgoCZZP7pfybcBE9Rov3Di5Kf5eXKSDI91/iz/68eJPICFPc7ETMtohgFILgklSBW1bDWRObDv/hBLOjFqisxplRFaVNPZLTET0PHr2dvLugoAzPgrL07g0ejmM/bfQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714136466; c=relaxed/simple; bh=B13FwRdbFg5Cc9wEWSRdjZ5FIgUDWQU7JaLEUrjpG5g=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=jtKIU5h2iAlvQBJAibVMJdqe7DgBLrfHR2EJ4E4HDVfZCOaQflE6k0NmWhjnkv/QCx5iQQiN3WdenUuzd2+QvDltB8k65ycZSt5jrpPXIo+Y/BBrH2Zxbbv6jykh0yjS4gNOt24FLUYWowBtWHrwNXK3Pytq5ac7iEGhtw25g7Q= 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=pgHQbm50; 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 43Q9NA1D032395; Fri, 26 Apr 2024 15:00:38 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s= selector1; bh=8xuQ4kG4Mw+l79FaSdV3rqMtEDDLZ1u0dsn2BV0iCm8=; b=pg HQbm50inoSN81JDN9zfYYwY3Bo6zlVnZgvoG7VbCWhac3YNGg/lCJOfM2GbXaHDm UwnR79QB/syMz4gFbF41JQ1y3mzidDXFUzI6zbjpI36TtwcswASNxSk4r8mlCifW sarwh4JmiBO3DP2l7Fii6Lbbszc/ZDaq4ibWfbmWAZ1Du2LwH7QSd9XHA3kalTp0 VaF/hQt31kwwh+vC8+HOIAhGAdRRNm9MStcNSCPxarMLDaAifImrm0t53SBiyH8Q SJAVrJK9wuiP/tFlb1vHFDLBbyQbMCuq5zLRwUM8HLlatrQEhIMW2tW9McHJ3aTg JOx7Tv1z3PAFSA2Hx3NA== 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 3xm4kbhsdy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 26 Apr 2024 15:00:38 +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 B73C340048; Fri, 26 Apr 2024 15:00:33 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id D1016222C9B; Fri, 26 Apr 2024 14:59:20 +0200 (CEST) Received: from localhost (10.252.17.191) 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; Fri, 26 Apr 2024 14:59:19 +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 09/11] ARM: dts: stm32: add ethernet1/2 RMII pins for STM32MP13F-DK board Date: Fri, 26 Apr 2024 14:57:05 +0200 Message-ID: <20240426125707.585269-10-christophe.roullier@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240426125707.585269-1-christophe.roullier@foss.st.com> References: <20240426125707.585269-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: EQNCAS1NODE4.st.com (10.75.129.82) To SHFDAG1NODE2.st.com (10.75.129.70) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1011,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-04-26_12,2024-04-26_02,2023-05-22_02 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 32c5d8a1e06a..7f72c62da0a6 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