Received: by 2002:ab2:3c46:0:b0:1f5:f2ab:c469 with SMTP id x6csp255019lqf; Fri, 26 Apr 2024 06:03:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXStlZviQE69wzuYcmb6WzQ6zjvPBUDVoILXMaKzPy+Oxh+/45gq51UoGUJO/DL4FN1fXX6N7xj3ucOE77L1qAKDViJuMrvW+Ltg0eTWA== X-Google-Smtp-Source: AGHT+IHYEnFc/FOK1TIPC3RRdnRfuZFR9x2lt1P/glS3EH3EUkwvWSs8xPfHd2oUrTW0KbKx4nS8 X-Received: by 2002:a05:6a00:cca:b0:6ed:2fb8:467b with SMTP id b10-20020a056a000cca00b006ed2fb8467bmr3303910pfv.26.1714136630280; Fri, 26 Apr 2024 06:03:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714136630; cv=pass; d=google.com; s=arc-20160816; b=Hdaf31lycgRZqKzngs8Fr90YXSCJOjBkF5LVn+EyF2HihJnhwLrUazMmpeJTzewN6D BPVSvs+q4uF9fmxh2hj1k1qFyCR08XDjMzQ+wcWOXJVgfHycTVQJ7V7FrO4DE/sEE2EZ 9oYyPcGpHV2gAB/7D379zNBzP9PsAoeEb/wSSz6KGs3pskn6tSOhwzNSFGqTw4rd0H+0 B3PkgjUqHMzql/Aw4acAhKyzsYhHLpJR/FiLcbAUBCnpbC1gI4IR8Gq+snFfi+YFvFRv Z0oW6mpDVf2YZKBZeCSQJQpuVhy9S+6tNAiz1F8whuU+CfOKHklSrlJOtfUcUm2EVVcZ 2jWg== 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=bazwdAwtQD3jii3yaoHRic74jzGXYUpWIcvjG67GTVo=; fh=PNVS6hneBIB5DuUKcqXTZxY2dQy/qm89zdYDxH+oLxc=; b=a5KMIHHeALUjcJ+ZAOrTQibgcLe6iCIJ80mkANuOEL9+bMsjAwAfk7fFx6ZGijyxkz n48UL85ln19OQtgDsqsBjXSDE2Vhxa/CNQJ1ylzkS4PfQOq1zDrSztzjj8JPwwJ1px+q tl95AeD5/t1M/pdQJZt5N4E2lwhjLJcsLaQ3FamlUMf2ZxY+6Bsn/X8ndyr9Hm6v/jnx XFcW3KBoH4etWf8fGVpZbLV78SCKXZAr0AYoQ4bgJi3QVNluMI0BJ0axehIUlrEem2JA 2YPvBdPvbsSm5DHYSOm5fJnMRO7X3yNXffrQHoaW4eoTSteQSTMJWt4GAgedqug9/ubx XZ7g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=MegvHpoZ; 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-160020-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160020-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. [139.178.88.99]) by mx.google.com with ESMTPS id e10-20020aa7980a000000b006ed0d5b09e6si15121546pfl.142.2024.04.26.06.03.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 06:03:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-160020-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=MegvHpoZ; 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-160020-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160020-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 E0BDB28180B for ; Fri, 26 Apr 2024 13:03:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1B2361474D1; Fri, 26 Apr 2024 13:02:14 +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="MegvHpoZ" 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 8768E146A95; Fri, 26 Apr 2024 13:02:10 +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=1714136533; cv=none; b=C/oChjp46dFMMKV/Hy0LsxKgnOcm2EA+VZpaxLnV899lvt5XLqNRSj+7xuTpI6oJOcK09cAU4qF4V6hep25i4GrVjlejeIQCeAIwyn848BU4nIA2ZW0aPgM9OENg7OnV6kOw8embkz5yH/EMp8dgTiEepzAhi48AvLYdXZg62Gs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714136533; c=relaxed/simple; bh=rt5pbQtbPMlhXOrn8K/w58prXSQl8Bcu8iVqpNk0WkY=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=cCTMrSd5faZ0HUEyp4I/P39QlQf9lWjUl3BXGcEWImu60EY3cN2j/97cQfs72uqwKFYFMEE6Tg+BEbQIqDzk2XRkgCDrzaQNnJhud+hXdTV0p48h2zA6Z+2HrbzJUrx9wp2Ef+cvD3Zqjpats6F3xLC462ap+L2UZ3dCsWlFj6U= 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=MegvHpoZ; 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 43Q9HYxJ029743; Fri, 26 Apr 2024 15:01:49 +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=bazwdAwtQD3jii3yaoHRic74jzGXYUpWIcvjG67GTVo=; b=Me gvHpoZFNlsHHo4IO6GYolf5hzMISJDfQO8AeEch4ebfsY6fY50aIEvJpQgvJuOdt wEcnJ2srT6mRoh+9JENsOqbbbZGjzqjx8NkoPKZuivkPtXiSuEOjNbkxrS88Kn7b /uahMHurDvdFFgWRlRGf6imTDmc1BQ6ggr1vNiDp0ND9oGka1/JAZCZSi1EfYQfK 6tyfymoiC0LC8IMg0yK8XDxAa9DVFyWxnHn/5pqXgaEvDubCbZ2I4PysOwsX9huQ M5gIXsiNJWOTnmDAY7hR4Czgm/99Z4B50WyR1HdC4oxnPyvHWS0zR5tJwvbv+joX 4cL6Scf2jxAkStpRIuhg== 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 3xmrnjfk2t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 26 Apr 2024 15:01:49 +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 91F324002D; Fri, 26 Apr 2024 15:01:45 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id ABD7E222CB0; Fri, 26 Apr 2024 15:00:31 +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 15:00:30 +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 10/11] ARM: dts: stm32: add ethernet1 and ethernet2 for STM32MP135F-DK board Date: Fri, 26 Apr 2024 14:57:06 +0200 Message-ID: <20240426125707.585269-11-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 Add dual Ethernet: -Ethernet1: RMII with crystal -Ethernet2: RMII without crystal PHYs used are SMSC (LAN8742A) With Ethernet1, we can performed WoL from PHY instead of GMAC point of view. (in this case IRQ for WoL is managed as wakeup pin and configured in OS secure). Signed-off-by: Christophe Roullier --- arch/arm/boot/dts/st/stm32mp135f-dk.dts | 48 +++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/arch/arm/boot/dts/st/stm32mp135f-dk.dts b/arch/arm/boot/dts/st/stm32mp135f-dk.dts index 567e53ad285f..3b8eb0ab9ab9 100644 --- a/arch/arm/boot/dts/st/stm32mp135f-dk.dts +++ b/arch/arm/boot/dts/st/stm32mp135f-dk.dts @@ -19,6 +19,8 @@ / { compatible = "st,stm32mp135f-dk", "st,stm32mp135"; aliases { + ethernet0 = ðernet1; + ethernet1 = ðernet2; serial0 = &uart4; serial1 = &usart1; serial2 = &uart8; @@ -141,6 +143,52 @@ &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"; + max-speed = <100>; + 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; + }; + }; +}; + +ðernet2 { + status = "okay"; + pinctrl-0 = <ð2_rmii_pins_a>; + pinctrl-1 = <ð2_rmii_sleep_pins_a>; + pinctrl-names = "default", "sleep"; + phy-mode = "rmii"; + max-speed = <100>; + phy-handle = <&phy0_eth2>; + st,ext-phyclk; + phy-supply = <&scmi_v3v3_sw>; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + compatible = "snps,dwmac-mdio"; + phy0_eth2: ethernet-phy@0 { + compatible = "ethernet-phy-id0007.c131"; + reset-gpios = <&mcp23017 10 GPIO_ACTIVE_LOW>; + reg = <0>; + }; + }; +}; + &i2c1 { pinctrl-names = "default", "sleep"; pinctrl-0 = <&i2c1_pins_a>; -- 2.25.1