Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BFAA71C9ED for ; Wed, 26 Jul 2023 18:31:20 +0000 (UTC) Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DEED6213A for ; Wed, 26 Jul 2023 11:31:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To: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=jIV6AmWAKvlXQAvN+OUg88bWM7t0rkFdL5Jdx9PUGYA=; b=5yv9hLd5UQydF8TOhelG0ygWZ4 K7PJWSXjDtHCsOn4vcyO9DrsDSI5ouAHRN70gz7ZfrG1r0wL9O/BJqIFIWB+WXQ1iLUVlxMXmTad4 YvODt+mjCdAmKoKw7fX6BmrgafLQmG/7t/6TttrYHuNQKgCTW69s8SRzzWbbsBf2jlsE=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qOjHl-002NtT-2e; Wed, 26 Jul 2023 20:30:57 +0200 Date: Wed, 26 Jul 2023 20:30:57 +0200 From: Andrew Lunn To: Shenwei Wang Cc: Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Shawn Guo , dl-linux-imx , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , "netdev@vger.kernel.org" , "linux-stm32@st-md-mailman.stormreply.com" , "linux-arm-kernel@lists.infradead.org" , "imx@lists.linux.dev" , Frank Li Subject: Re: [EXT] Re: [PATCH] net: stmmac: dwmac-imx: pause the TXC clock in fixed-link Message-ID: References: <20230725194931.1989102-1-shenwei.wang@nxp.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,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 > > > +&eqos { > > > + pinctrl-names = "default"; > > > + pinctrl-0 = <&pinctrl_eqos_rgmii>; > > > + phy-mode = "rgmii-rxid"; > > > + phy-handle = <&fixed0>; > > > + status = "okay"; > > > + > > > + fixed0: fixed-link { > > > + speed = <1000>; > > > + full-duplex; > > > + }; > > > > This is just totally botched up. > > > > "fixed0" is _not_ a PHY, therefore you should NOT be referencing it in phy- > > handle. Please see the DT binding document: > > > > If there is a hidden rule here, it should be added to the CHECK_DTBS schema target. > That way, users would get a warning or syntax error when running the tools, reminding > them to follow the undisclosed rule. I've no idea how to actually express that in yaml. phy-handle is just a pointer to another node. There is no type associated to it, so i don't see how we can say it needs to point to a node within an MDIO bus. I wounder if it is possible to do a pattern match on the name of the reference? It probably should match "*phy*". Andrew