Received: by 2002:ab2:1c04:0:b0:1f7:53ba:1ebe with SMTP id f4csp71262lqg; Fri, 26 Apr 2024 09:03:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVC8dMqfmcipXB+LuHrKh3RY4TkbwaXzOCJl8KV9GDcDHHKloZ/wMPAySGbLi5Y9gDORfmn28y4Z/hMGtma9DS7YiFIZ0CCAyzGUTqh0g== X-Google-Smtp-Source: AGHT+IHxLDbPopaQBWWI/0+S3J1vZup3J0GAXkfssF02bZCZg5F54Mp6+FxcbJskD4lBdtZgTHeF X-Received: by 2002:a05:690c:1e:b0:61a:ddd6:2b53 with SMTP id bc30-20020a05690c001e00b0061addd62b53mr3476922ywb.4.1714147392455; Fri, 26 Apr 2024 09:03:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714147392; cv=pass; d=google.com; s=arc-20160816; b=pOKCcF+vtXlN1MB7K1/Z7XrYAjox3YSZDXzvc5l6Ij2HTp0dT12rZtl7ZxjlD9nkPx 7oXQ9wfyRYBdvzdNQ0hCI0FnsD8IK0rQjZmD+6HUv46hnpK4AHQ8wvTgIRaDnu3tmayq lj/52CwaPC3t4z2fqsyx8/u3jmau9r6TfsFFUP5Wdw0mSwKeczeM+wFd9nYakr5L1424 d6XSUpvabclJUznoc0PH8YOuBT91Fz+dwtuu+3siGt2HdK6baOhCjtBDbxVhMvTNmG40 ek3XOy5b1n7HjpSjAHtEtwplheAWzkXuE1btMjsF/lMiytA/1fwNt15ExBjYexDdVmdy u/ZQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=nmPDhDmaIgQDkA6x6HObPcx/r00e6kxLkilPuXIURrI=; fh=MZgvy/AmeHE5/588XAg1mUij55f12DiWyocFDxS19BU=; b=L5QtEmiH2aE0CZFQUdEZWgtWB+CUANxLAEAmClHHA92LWKWzHq3lIEQH46laR7Cm3p o3zvkeUZuFDmfaQoVJoQCGjbxT7grn1XXIDX4be04Vff6zidT5UNLpyY6JIM1tEUigi/ aVriNUbbvgK7osMsD8lagxeI3R5VQGz8P+EUkRhNvkEZLtuXyiNtboE3aO5kzEnIMayJ gNvGLhTMNxesx+RvD9GXFgSSKWUFTfUIv7MTWnOgg5RPm6gru3Y7iIztBxlQ5QLnC7kM pahBk91U0pVchvhJyeETlBIvTCwWXPqXDh2WJeHpSTvFx6ZZ/FWD6CJE0fYh34824v6h n1/A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=Bqzr2Sb9; arc=pass (i=1 spf=pass spfdomain=denx.de dkim=pass dkdomain=denx.de dmarc=pass fromdomain=denx.de); spf=pass (google.com: domain of linux-kernel+bounces-160347-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160347-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=denx.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id e65-20020a81a744000000b0061acde662e9si9370896ywh.183.2024.04.26.09.03.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 09:03:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-160347-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=Bqzr2Sb9; arc=pass (i=1 spf=pass spfdomain=denx.de dkim=pass dkdomain=denx.de dmarc=pass fromdomain=denx.de); spf=pass (google.com: domain of linux-kernel+bounces-160347-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160347-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=denx.de 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id A744D1C23032 for ; Fri, 26 Apr 2024 16:02:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5135615B99D; Fri, 26 Apr 2024 16:00:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.b="Bqzr2Sb9" Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B6DD3156674; Fri, 26 Apr 2024 16:00:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=85.214.62.61 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714147258; cv=none; b=WNU1ss5LBKfyIA7sxWiwqNPHcLc+7BaS10vmirM+SUgX8nMwf9LrPxydW8X167yUmihoaK3wpnX4aAjMghHJQdvIkd6S4XNStVIDuXlY4Yar3SlsldJvBPzeXGkdDSdeBUNGGgdoYYJiRRdGgrE9jrPjB3wkxab5xgJUjBROgSk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714147258; c=relaxed/simple; bh=pxSUINJRH2avfn2/9DNzlRx7OkoXTWHoZxUg2HQP2ws=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=FuiwAaFAN16PY4ez586WQkeztmyfT5BP9i9hbSaeEonukmED6Ynxo9IE51LkBS+Ru/5uWGBEgDI/qnXXYBoArsNuGvy4kOohLzRp2of0W3R3tLtsVnD32kRgLp7/BeujGw+pxzAu9IVn/2p3b69CVKZ2dF7vUOiyGr8qzmQn4jU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=denx.de; spf=pass smtp.mailfrom=denx.de; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.b=Bqzr2Sb9; arc=none smtp.client-ip=85.214.62.61 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=denx.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=denx.de Received: from [127.0.0.1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 621FF884FD; Fri, 26 Apr 2024 18:00:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1714147254; bh=nmPDhDmaIgQDkA6x6HObPcx/r00e6kxLkilPuXIURrI=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Bqzr2Sb9yVC8J/dWJRqBSJ4Kf1SRgyZA7YziXD9LhWuIc766fq+iLXU6LTtUw9p+N 4Q05nS1575oJ1S6/4QWX/RWGpPjgNs2SRAmvaqz6d/Hc79i3PbcUaDRwd+IKS1wd/V 7cNRAC0y35AO82v6uM+uXr9kkGa6MxexjNw+2HiCU2uOV+5Amx39uVLM4tChdbuAOq aVgXL17ZqKUooEQn7N+3L5d7/XNco8HAi8WhChW9myUArTjM3RTv9xRL1dyRWpkxvx Utezn/ahBqafr5aOtNvnpM4ayBbkGgtgUbdCA5KLPej1pVTeyq8sxG5OCAXmXsrhIw voCdCOmUU7c8Q== Message-ID: <43024130-dcd6-4175-b958-4401edfb5fd8@denx.de> Date: Fri, 26 Apr 2024 17:44:21 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 10/11] ARM: dts: stm32: add ethernet1 and ethernet2 for STM32MP135F-DK board To: Christophe Roullier , "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 Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20240426125707.585269-1-christophe.roullier@foss.st.com> <20240426125707.585269-11-christophe.roullier@foss.st.com> Content-Language: en-US From: Marek Vasut In-Reply-To: <20240426125707.585269-11-christophe.roullier@foss.st.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean On 4/26/24 2:57 PM, Christophe Roullier wrote: > 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). How does the Linux PHY driver process such a PHY IRQ ? Or is Linux unaware of the PHY IRQ ? Doesn't that cause issues ? > 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>; Keep the list sorted please (is the max-speed even needed? if not, drop it) > + 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>; Sort please [...]