From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D73A8C43458 for ; Fri, 10 Jul 2026 13:02:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version: Content-Transfer-Encoding:Content-Type:References:In-Reply-To:Date:Cc:To:From :Subject:Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=FDOpiS3Kf0XVsCPqWZd9Util7kCEb/QH0STMK5AmhRc=; b=3ACGW3coNB5YLwdvfDHGN10HEj ceKAUFExXjHk1ztmm021H9ziLKiQh36Uxt0YI7IaWR0aUO72m+Ij68TXF5YTQgYAMong0wA45vU45 RHiE/Cbkay2HnkAQ8rUAmiJ9U89T7S1bj4yV7Uwg7V/8C0NhP4Sxqbwno9Fu4LaDgnQkydAN2hETV oanxY44zFBo8CwAhmsZA4NswZr5syxV33tKVagS0/5CXnwQ2UrfITtgZN8GKem7Xcyl/Cmo8hLhGe DMz+zcIB6Rw5P/QbK1EXPR32pgtNdEvgeBs8jkQ7/NZYNDeurYnmE+w5PEGNRZ87obl7dKMzikU7b powKPSmQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wiAsK-00000004yD9-3AMN; Fri, 10 Jul 2026 13:02:40 +0000 Received: from sender4-op-o12.zoho.com ([136.143.188.12]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wiAsI-00000004yCF-2Cdu; Fri, 10 Jul 2026 13:02:39 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1783688516; cv=none; d=zohomail.com; s=zohoarc; b=ISZa+ManoF2nBvi4nTAyJ9DU4BKNlYwz03LQvMQkHYoUe0CwahrjMdN6U40+peTpQQ62bK6+WOGP17oT+XPbcLcrh8Hn1R6MOMRmn4J74SQnPKFKCxGUyo5QXKvWhVFZrYh0VfB/73o34hOVp8PEXIWG7wNrYskfac7SuNCJZzA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1783688516; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=FDOpiS3Kf0XVsCPqWZd9Util7kCEb/QH0STMK5AmhRc=; b=QyeMUJQmgEDpJB8FNwljqg+k3ypIDZtIs/RdRCBtRNEK28Ciobf2XD4oogYedBz0PKHHvr2cHcd6No0X/6F3AXDZF3wMCqlCksRSxyAMqrlYXBzhoqkuUlrSgCSdkz55F19UAqu+pPi80OEfetVSqwxIyiKdpfyTVY9JpxBdODQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=collabora.com; spf=pass smtp.mailfrom=louisalexis.eyraud@collabora.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1783688516; s=zohomail; d=collabora.com; i=louisalexis.eyraud@collabora.com; h=Message-ID:Subject:Subject:From:From:To:To:Cc:Cc:Date:Date:In-Reply-To:References:Content-Type:Content-Transfer-Encoding:MIME-Version:Message-Id:Reply-To; bh=FDOpiS3Kf0XVsCPqWZd9Util7kCEb/QH0STMK5AmhRc=; b=kl+P/qm1h+PtSgnueLSQiYD9lJMQ0FTQXGx1Pu47QyxBVoGT416mmNHWriG4olj+ Yr8Fb2awyfmKajDd5G3P08ShGRUlUQdo7heCbwQImMDLmm82t4ZLm/by/Hv0CHLePS6 bQccwDOnwqPU0+euCr2nA2PGYxdWj6M8y1DdTYi8= Received: by mx.zohomail.com with SMTPS id 1783688513797335.15709494826183; Fri, 10 Jul 2026 06:01:53 -0700 (PDT) Message-ID: Subject: Re: [PATCH net-next 1/6] dt-bindings: net: mediatek-dwmac: add support for MT8189 SoC From: Louis-Alexis Eyraud To: Andrew Lunn Cc: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Richard Cochran , Matthias Brugger , AngeloGioacchino Del Regno , Biao Huang , Maxime Coquelin , Alexandre Torgue , maxime.chevallier@bootlin.com, rmk+kernel@armlinux.org.uk, kernel@collabora.com, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Date: Fri, 10 Jul 2026 15:01:46 +0200 In-Reply-To: <6ea11726-8d50-411e-afab-da346e09ab9b@lunn.ch> References: <20260707-dwmac-mediatek-mt8189-v1-0-17f345eaaca3@collabora.com> <20260707-dwmac-mediatek-mt8189-v1-1-17f345eaaca3@collabora.com> <8304b0a704c8db697767584b8c34388f07ba401d.camel@collabora.com> <6ea11726-8d50-411e-afab-da346e09ab9b@lunn.ch> Organization: Collabora Ltd Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.60.2 (3.60.2-1.fc44) MIME-Version: 1.0 X-ZohoMailClient: External X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260710_060238_615313_8CB6120B X-CRM114-Status: GOOD ( 20.87 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Hi Andrew, On Wed, 2026-07-08 at 16:35 +0200, Andrew Lunn wrote: > > On Tue, 2026-07-07 at 14:42 +0200, Andrew Lunn wrote: > > > > +=C2=A0 - if: > > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 properties: > > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 compatible: > > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 contains: > > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= enum: > > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 - mediatek,mt8189-gmac > > > > +=C2=A0=C2=A0=C2=A0 then: > > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 properties: > > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 clocks: > > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 items: > > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= - description: MAC Main clock > > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= - description: PTP clock > > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= - description: RMII reference clock provided by > > > > MAC > > >=20 > > > Since this is a MAC, it sounds like it is consuming its own > > > clock? > >=20 > > In the driver ([1]), this clock is described as being only used and > > needed in RMII when MAC provides the reference clock, and useless > > otherwise (RGMII/MII or RMII when PHY provides the reference > > clock). >=20 > So it sounds like this is a clock output, going to the PHY, as its > reference clock input. So ideally, the PHY should consume this clock, > not the MAC. >=20 > > Its use and configuration also depends on the "mediatek,rmii-clk- > > from- > > mac" vendor property ([2]) presence in devicetree. >=20 > This makes it sounds like it is historically wrong, and the patch is > just extending this to the new device. >=20 > Do you have a board using RMII? Can you list the clock in the PHY > node, not the MAC, and see if it still works? >=20 I don't.=C2=A0 All the MTK Genio boards (510, 520, 720, 1200 EVK) I have are using RGMII only. > Ideally, for a new device, we should not repeat past errors. So, do you want I remove this clock from mt8189 clocks list for v2? Regards, Louis-Alexis >=20 > Andrew