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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4C841C433FE for ; Sun, 23 Jan 2022 15:27:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237522AbiAWP1S (ORCPT ); Sun, 23 Jan 2022 10:27:18 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:49588 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229562AbiAWP1R (ORCPT ); Sun, 23 Jan 2022 10:27:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Transfer-Encoding:Content-Disposition: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:From: Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Content-Disposition: In-Reply-To:References; bh=CDXH3slO3ImdP5p+Qxn309qZZbRCzo4mZK6/h2SqEPI=; b=Px ZodgiK3xqJxqUn06GVYRp3qh+CtF8LPumMDL3kOpW4O4W3gNg5pi68ozY97QXkzF7BxLCCy7rsf1R 4SMD2uklnSJO0yWmyQH/1VY8fA87yX4XLuvpRYlus34qOGJpai14qqxUGABTzu9GHIibeL9gXhk3y hjTSY1hcs0wAOwM=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1nBelc-002OC8-St; Sun, 23 Jan 2022 16:26:56 +0100 Date: Sun, 23 Jan 2022 16:26:56 +0100 From: Andrew Lunn To: =?utf-8?B?QXLEsW7DpyDDnE5BTA==?= Cc: DENG Qingfang , Luiz Angelo Daros de Luca , Matthias Brugger , John Crispin , Siddhant Gupta , Ilya Lipnitskiy , Sergio Paracuellos , Felix Fietkau , Sean Wang , Mark Lee , Russell King , Jakub Kicinski , David Miller , =?iso-8859-1?Q?Ren=E9?= van Dorst , "moderated list:ARM/Mediatek SoC support" , netdev , linux-mips@vger.kernel.org, "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , openwrt-devel@lists.openwrt.org, erkin.bozoglu@xeront.com Subject: Re: MT7621 SoC Traffic Won't Flow on RGMII2 Bus/2nd GMAC Message-ID: References: <83a35aa3-6cb8-2bc4-2ff4-64278bbcd8c8@arinc9.com> <02ecce91-7aad-4392-c9d7-f45ca1b31e0b@arinc9.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <02ecce91-7aad-4392-c9d7-f45ca1b31e0b@arinc9.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Sun, Jan 23, 2022 at 11:33:04AM +0300, Arınç ÜNAL wrote: > Hey Deng, > > On 23/01/2022 09:51, DENG Qingfang wrote: > > Hi, > > > > Do you set the ethernet pinmux correctly? > > > > ðernet { > > pinctrl-names = "default"; > > pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>; > > }; > > This fixed it! We did have &rgmii2_pins on the gmac1 node (it was originally > on external_phy) so we never thought to investigate the pinctrl > configuration further! Turns out &rgmii2_pins needs to be defined on the > ethernet node instead. PHYs are generally external, so pinmux on them makes no sense. PHYs in DT are not devices in the usual sense, so i don't think the driver core will handle pinmux for them, even if you did list them. This could be interesting for the DT compliance checker. Ideally we want it to warn if it finds a pinmux configuration in a PHY node. It also sounds like you had them somewhere else wrong? Andrew