Received: by 2002:ab2:7a09:0:b0:1f8:46dc:890e with SMTP id k9csp348429lqo; Wed, 15 May 2024 17:24:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUwSh/8hFKi0JdpurLmBZltY7rVi/JGuzxkCa4RfM0f80CmEIIznvdEeX3LxQRJLuVxrNBX+jAKxNlzwRq7OYe5Lf0hfWlxvs/SPhZX6Q== X-Google-Smtp-Source: AGHT+IFLb0LAu3JvMjZ0bOCXshw2175hItK42x2qLReOL8h93rz1VlaEdYTDWdN+2ssUTfnDJyWN X-Received: by 2002:a05:6a20:d80b:b0:1ac:4fca:23c2 with SMTP id adf61e73a8af0-1afde07cc3amr17684037637.8.1715819097449; Wed, 15 May 2024 17:24:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715819097; cv=pass; d=google.com; s=arc-20160816; b=gU8tG3XolK1cFHgOs2qB2HvXjx5TD7zu7MwWKQPwSP58ha04yFJJblyKbJnU+SIjgR kKTnfmUUveBkMD/ZTjxEkQvblxCNfregcDbnK8jgJ2+jDQ7DYNNEZgfFZmriK5nXG7mM /TawccqKK6qhPT5tUvni9VmAN+UAri6bx+HFqMMbZ+KxARZDWvPl1UgQO3zaoConWbg6 UAWKniVVm4uoGDZ08K9PRzaWBsw30Wgx1kRgHov5X3WavXysBpCfyZ78r9EukjcL39Vn JTCg3NmVtzBeE2QPDF1wrLdckv7XfEVry4Ew4jyxm/BO5d0LNEki9aOLRIbWXvL4okDY L88w== 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=jG1kyEHStM/G4Bx69cnZ9ynPKSC8S8yZPDjm5wi4i4Q=; fh=1TQfdyvP+8gjyIpeN/tXwuony+pQNPUwKJpG9naU/xc=; b=Y7VerWo/H+bTFAJeQaFMVBMqUdNnNYQSuu9jqpe99X2TjVzWvLVSOlnx/kSiMKNn+z b40uAxq06CAdekSfIr1f9HjL0HbIdlmtsgoj+wPS1HTiiPs+jUVJLjIr7i26RiUqliW+ gqorVZl8v5pz/6hGrqHnZnKZ5Esj2KO4ZHyNoU1p5Nza1q07lk7H3Qxaoyj/E0aWBHc+ 9BGVvlIYBprH0mmIRjtk+gBNhn5q1lFPjrwPtLmYvdTZrax3RKmYnvbDilDSBwVmlT+1 WDAr685+68ITDChZ7+1BnfgnM2gnfU525RGpYBG1If01UNwEFcbCiW5XbpIFULmvRnyO 2YOw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=ayMHRsU9; 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-180513-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180513-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=denx.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-65713334dcbsi1388966a12.668.2024.05.15.17.24.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 17:24:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-180513-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=ayMHRsU9; 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-180513-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180513-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 80B5BB22B39 for ; Thu, 16 May 2024 00:24:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AFD994A1B; Thu, 16 May 2024 00:24:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.b="ayMHRsU9" 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 D29217E1; Thu, 16 May 2024 00:24:06 +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=1715819048; cv=none; b=e9R1koynFzTaE+50EcKg8TKOKhfVDe3Pm45KCnO8wr18MkF/d+xxMHvBf32zWVG7MmqkP2XN/NoQSi6iOOY9SR2Vs4Et74g5awhaK7cbA5zX9qy9agVrFUycan1idmRZ4PGXaevCbvuaw9BLkuGidGgT5DnrXnLbP9ENhEy0HKc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715819048; c=relaxed/simple; bh=LQrgsqIByN2f+qZpuZYvsf4zHse06e3f1SdS7MR9PyE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=YkAEbvM2YjjZ0eova3+6OGPzXtIM6oAKx/WM7ENAucLWnTu4jKLFgegaYxVdQL5oM7Ke7wUz6BJhGIVtBRzK3nUWLPAvsFpv4/bL5UD3jAAjDx007ahYc29r0XQzHALlZYr6uyafyiVctil5Ur9GT5uyM6B3qpNXQ0Aq9hF4gGY= 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=ayMHRsU9; 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 4250B87EF7; Thu, 16 May 2024 02:23:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1715819038; bh=jG1kyEHStM/G4Bx69cnZ9ynPKSC8S8yZPDjm5wi4i4Q=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=ayMHRsU9bOUstMRI7s2hcFPlwsAQONW2aXEHzKPB8nCX3D6FtQMDFRMmx1mxxi+BP 5ky2+jR2Jr3j7N0oAkQuIMB+5Gl5K26MjsPPaWL7KqmRCLUOMfwxgfCTPMONCIvkqL SqGAcXwUuRuUAmMzIxvfEr7IXpjwl7iDxtsZw+IJPQOcqufFWg/DUrlpKxNbAkGhJ0 aN6/aP1dRQ5VlfzYKYii3cU7PolA1UvwvCtDYMZNtnquw2M7qcDXLoe0wBC6ECr1QU FdLw9aAbGx587PlLFTMQT5i+kTGmfznpVsaumkZFEwNZ0Aa56qrto+S+bHv6g0/6WD 1TfGLe9G7saKw== Message-ID: <9c1d80eb-03e7-4d39-b516-cbcae0d50e4a@denx.de> Date: Thu, 16 May 2024 02:23:56 +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: Alexandre TORGUE , Christophe Roullier , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , 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> <43024130-dcd6-4175-b958-4401edfb5fd8@denx.de> <8bf3be27-3222-422d-bfff-ff67271981d8@foss.st.com> Content-Language: en-US From: Marek Vasut In-Reply-To: <8bf3be27-3222-422d-bfff-ff67271981d8@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 5/13/24 6:01 PM, Alexandre TORGUE wrote: > Hi Marek Hi, > On 4/26/24 17:44, Marek Vasut wrote: >> 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 ? > > In this case, we want to have an example to wakeup the system from > Standby low power mode (VDDCPU and VDD_CORE off) thanks to a magic > packet detected by the PHY. The PHY then assert his interrupt output > signal. > On MP13 DK platform, this PHY signal is connected to a specific GPIO > aka "Wakeup pins" (only 6 wakeup pins an MP13). Those specific GPIOs are > handled by the PWR peripheral which is controlled by the secure OS. What does configure the PHY for this wakeup mode ? > On WoL packet, the Secure OS catches the PHY interrupt and uses > asynchronous notification mechanism to warn Linux (on our platform we > use a PPI). On Linux side, Optee core driver creates an irq > domain/irqchip triggered on the asynchronous notification. Each device > which use a wakeup pin need then to request an IRQ on this "Optee irq > domain". > > This OPTEE irq domain will be pushed soon. I suspect it might make sense to add this WoL part separately from the actual ethernet DT nodes, so ethernet could land and the WoL functionality can be added when it is ready ?