Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp930546lqt; Fri, 7 Jun 2024 03:05:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUUUEyZTnhJ5opuSjU6MP4EjBIk2qZo7YF3EHdLYBPmea4hCz/0eyEnPomTveqfhoQi4oi4Wulb0MoSy9a0BgGTE2uI2d/S59CDqM4sJw== X-Google-Smtp-Source: AGHT+IEMcsUyZOJWPtLbOrW8/U9TKHS0WK8WA0m51we838zlW+UmEurOwLBF0nRnAG7szvsd7idm X-Received: by 2002:a05:6512:308b:b0:51e:41a1:4d5 with SMTP id 2adb3069b0e04-52bb9f63763mr1794224e87.9.1717754745624; Fri, 07 Jun 2024 03:05:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717754745; cv=pass; d=google.com; s=arc-20160816; b=XRAHPizxfayPHjjONOnmOZhipL2belVTekCUFHgIazaZsvaUEXFFf+0IPAkZUnvlPc mkCyhfWvkZ5oBvOzD8itz7MfIZKAI8SSRbsegJVpTB1DO/09exvHTmDSBTSXEvFQlvN8 NPVPrynxPFwaM/IW+2GYP6ejutx9YIXwvPdYyw/LETS4G1/aEtv6TGt2Omkqi8u0czZh 0dgWsp1acdpGth1nOdK22qChCEcoXLO9LnmPCdutoTeVTXG0e2Y8Z8EXT65L/C6dSOUa zepYBy1K3fJlrD2XuZ9ZXu2KLCOkSKLhsLMWeFJGg+XHqB2XaowLrjDho+MZuTRNFmUL YXtg== 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=tua3eZSmTo2Q9Ara4Kp9ohcJ+aogpozMbUUf1zXzHbM=; fh=PNVS6hneBIB5DuUKcqXTZxY2dQy/qm89zdYDxH+oLxc=; b=GqQdyBykwdF7dC7zq/40BRfLMiNgMThjhacO3vProFnbGBabg6wGsoHLh5If6WUNf7 LcU0dkj9isolU27yxDD3SMlDZsz0l2Zv7RJbX6aH5WEiu1opUj2oU1W2jIWXZ4mc5tFE zNzFAnBzyqJOzhOjHZhuYToEdMLCmUTLdXnxsl73qwIHz0n25ZXfmiCtl3tlf25w7jpD Ytrl0Q7Fat0RcdV4pVzHAr8L7+BG6KW6aFMJ9t/C+ITAkNn8+iszNAGkeBJjtDR/ezNs p0EwKg3RkPdNfWPh98+I4hEDIEbK+SRXyKBZcbPicw93cgXW1qt2LYq26k7dRL1utOEw uRvw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=snTdcLLP; 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-205783-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205783-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 a640c23a62f3a-a6c80581ec3si166456766b.51.2024.06.07.03.05.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 03:05:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-205783-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=snTdcLLP; 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-205783-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205783-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 503631F24C2C for ; Fri, 7 Jun 2024 10:05:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3A4A416726D; Fri, 7 Jun 2024 10:02:13 +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="snTdcLLP" Received: from mx08-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 C557415E5DD; Fri, 7 Jun 2024 10:02:09 +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=1717754532; cv=none; b=PIL0gzeZhI5h7ACOe0NHr4Whptry+91uo6H4v2S+nReH6v6A/3UWctQr/LRJoBUYboCLv4xweIMyISB28nts+yC1nfBcODJQPLgazCEi1qKwcXDm/E2m7u+wYSVKPuxWcT9pjMnGvQLGoYObjFTtQxDEKBnovdP1YjQSZcz/lac= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717754532; c=relaxed/simple; bh=7ZC6ddgM4w7g81ffkqAVaEYARr6zHtU4YYlpfobqpOs=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=M6xIOSGBwikEddX4jsYPX7ATr+HXNxfmHW8r//9RozYHXHFIQVVHYAnyUrWWXjeE0jphAUriA78X4Zi0DJsY8yjyGKSlu11qva4QqYpHal74UErIfvtBN23zWLiufL/JsT9SLqZ7d6CXrl95+ppjeZ+EwwZ0uJFExlLMS7W9LdE= 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=snTdcLLP; 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 (m0369457.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45791XXw002117; Fri, 7 Jun 2024 12:01:50 +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= tua3eZSmTo2Q9Ara4Kp9ohcJ+aogpozMbUUf1zXzHbM=; b=snTdcLLP9CpN+ZW2 NsmAlpDmPXu8mmSnknDDXcAiweb1NdKQ6OmbqzTvQy5xVFZD8lBw5fY3890Y4x+Y 8/lXv+KxqeesaVg7Gv1RNs99rQG29jGtRAIjQWK/0YiZHQG/SSySSWRZJEG2Ezys sxMlGtHVr1P8ZOHdaKqmjq9W/LQs1UqHXqUeOFH9pbTrorwx2BRjSFfVMm921ADA UwmcdGSKVx6vK3HsUbk30awZly0/J8YrG04e3uXbolhfGCAVOgwP/wggNfAd+zi/ uRlOJe/Fp6NBdOM5UtWYtbPqNB76Hwkg6r2l0kpa9mNrzzlUZGdtfTSYclAaLRLy U7odhA== 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 3ygekj86j8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 07 Jun 2024 12:01:50 +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 80ECF40047; Fri, 7 Jun 2024 12:01:46 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id A08C2214D12; Fri, 7 Jun 2024 12:00:32 +0200 (CEST) Received: from localhost (10.252.19.205) 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, 7 Jun 2024 12:00:29 +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 v5 11/12] ARM: dts: stm32: add ethernet1 for STM32MP135F-DK board Date: Fri, 7 Jun 2024 11:57:53 +0200 Message-ID: <20240607095754.265105-12-christophe.roullier@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240607095754.265105-1-christophe.roullier@foss.st.com> References: <20240607095754.265105-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-07_04,2024-06-06_02,2024-05-17_01 Ethernet1: RMII with crystal Ethernet2: RMII with no cristal, need "phy-supply" property to work, today this property was managed by Ethernet glue, but should be present and managed in PHY node. So I will push second Ethernet in next step. PHYs used are SMSC (LAN8742A) Signed-off-by: Christophe Roullier --- arch/arm/boot/dts/st/stm32mp135f-dk.dts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm/boot/dts/st/stm32mp135f-dk.dts b/arch/arm/boot/dts/st/stm32mp135f-dk.dts index 567e53ad285fa..16e91b9d812d8 100644 --- a/arch/arm/boot/dts/st/stm32mp135f-dk.dts +++ b/arch/arm/boot/dts/st/stm32mp135f-dk.dts @@ -19,6 +19,7 @@ / { compatible = "st,stm32mp135f-dk", "st,stm32mp135"; aliases { + ethernet0 = ðernet1; serial0 = &uart4; serial1 = &usart1; serial2 = &uart8; @@ -141,6 +142,28 @@ &cryp { status = "okay"; }; +ðernet1 { + status = "okay"; + pinctrl-0 = <ð1_rmii_pins_a>; + pinctrl-1 = <ð1_rmii_sleep_pins_a>; + pinctrl-names = "default", "sleep"; + phy-mode = "rmii"; + phy-handle = <&phy0_eth1>; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + compatible = "snps,dwmac-mdio"; + + phy0_eth1: ethernet-phy@0 { + compatible = "ethernet-phy-id0007.c131"; + reset-gpios = <&mcp23017 9 GPIO_ACTIVE_LOW>; + reg = <0>; + wakeup-source; + }; + }; +}; + &i2c1 { pinctrl-names = "default", "sleep"; pinctrl-0 = <&i2c1_pins_a>; -- 2.25.1