Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2375641rdb; Thu, 21 Sep 2023 17:38:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHk4o8BKaPnnCbCxtlODJ3Fmbpy08pQ1U/5nBTJmkAll9j3z5G72V8/RQaF7iQy6BHA/14m X-Received: by 2002:a05:6808:3a4:b0:3a7:1e3e:7f97 with SMTP id n4-20020a05680803a400b003a71e3e7f97mr7010378oie.4.1695343091057; Thu, 21 Sep 2023 17:38:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695343091; cv=none; d=google.com; s=arc-20160816; b=LUHhs/G6WN7NeMsu8J2DswqY2aVJ9VE1i7GfrHau3ScefCsgjkbdHnwGc9/TzrUS0J FjE7XnBYCUfNzHRWaVL6uUx++7RbdWJZDwsVhSq40YGjeRdqY0zRPaAAANJdZZP/6F4o dgfGWck1KyXnS1JpxW7478xKabKvlh6MB5yBxWCh4hP+rPBBa+jOR2WLdEyZxclg+zw3 2RJbQBVlDmme1RM9K2o7So7WlOvoLN9/frOiHpRA2DDkMKGrtFUer+fNbPFep+YJIUK7 YY7JdLmcEfijrDFPujq3PEBXpYYfKAXGgqqOlPqXO50Zjk7fizRGK9PZMJEaNHHe5nLq PhsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=DaNcFv3F7lcl33eD683tXuCPbabyLWEwzze4nvIxM/8=; fh=Nrq3/ZyqAmcldX4TnYQJDytRSUiD1vJeQNniXh+eWjo=; b=hWb1g4iNPgVqZYpfugsH+T3KWHl5h/ChRcWxp+gvd8yGYyDnNgIDDhFghsz68LTN3l FZUCzSKjCf+VH9U1Qd60fvhUQZ4ojdlg3jX8BqDcxToGLn8Eg1MCR843eBQN3YYxDYo2 GlDSk9QJeYeKBR8Lv/OYh8u40ljv6NOLEXzLwvbwV8VTnQuJl1VzcNqUtgMdLIjWCgTY BLONAP3uZtKQ1sV21fMeHh1kNDUkUFOe3TfRYlC9pYYEVfq+jQ3onMBXNfHO10MYgyjG +T+O2HpC7RJK242SQH+41zISCv7RXqLhEldg5c5qTij7iQr32t/QsopNd5nUh1TFA7VZ jbxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=XOy4ozeP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id t22-20020a056a0021d600b0068c0323c2b7si2705570pfj.172.2023.09.21.17.38.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 17:38:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=XOy4ozeP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id F2A17829BC56; Thu, 21 Sep 2023 13:48:52 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232453AbjIUUsw (ORCPT + 99 others); Thu, 21 Sep 2023 16:48:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230439AbjIUUsZ (ORCPT ); Thu, 21 Sep 2023 16:48:25 -0400 Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E961790A71; Thu, 21 Sep 2023 10:47:09 -0700 (PDT) Received: from pps.filterd (m0288072.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 38LATD9S031087; Thu, 21 Sep 2023 17:08:04 +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=DaNcFv3F7lcl33eD683tXuCPbabyLWEwzze4nvIxM/8=; b=XO y4ozePFttTWxeHAcdMkAgbXLjFbOV1OH4Sf5ShbBEhn+nMJc8p5/nF2WeR8aOcV+ xbk2iGu/S7HpGoTmoInzdC+GQMGdSw58C/kkyR8i+GwQF2vnpvjHysn1lW130P6d bTJSD7eEnGxpiZaxdq3ooUm6PiZJx5vcjv+hR4Ab4v264CQOwczjJ9tSIfhkW2hj WWKiQFx2SRGWACPBH5w3pG6xSEag6tSGxu2mHyVZnQMAePHvIq5GcDJcpNYOhl90 Nm5XNT5HaPw8OovO6u2wGnoaBfltiTBz+TAbBFg++qhVwD+7aiSd3uVNDfsQqXBw 7v0P2RZA8FlimjUdo2Ew== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3t51sfn3nf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 21 Sep 2023 17:08:04 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id C8CC0100058; Thu, 21 Sep 2023 17:08:03 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id BC2BF257A80; Thu, 21 Sep 2023 17:08:03 +0200 (CEST) Received: from localhost (10.201.21.249) 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.27; Thu, 21 Sep 2023 17:08:03 +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 CC: , , , , Subject: [PATCH 6/7] ARM: dts: stm32: add ethernet1 and ethernet2 for STM32MP135F-DK board Date: Thu, 21 Sep 2023 17:06:21 +0200 Message-ID: <20230921150622.599232-7-christophe.roullier@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230921150622.599232-1-christophe.roullier@foss.st.com> References: <20230921150622.599232-1-christophe.roullier@foss.st.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.201.21.249] X-ClientProxiedBy: SHFCAS1NODE1.st.com (10.75.129.72) To SHFDAG1NODE2.st.com (10.75.129.70) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-09-21_13,2023-09-21_01,2023-05-22_02 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 21 Sep 2023 13:48:53 -0700 (PDT) Add dual Ethernet: -Ethernet1: RMII with crystal -Ethernet2: RMII without crystal 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 eea740d097c7..1316cc16f8dd 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; @@ -93,6 +95,52 @@ channel@12 { }; }; +ð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