Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp2738308rwb; Sun, 15 Jan 2023 21:40:15 -0800 (PST) X-Google-Smtp-Source: AMrXdXt0ov3ubkQokie8SM5Cyba8RgmiysuGDwfjyBmTXMRKvWyIu8S2VobStl3ZyhOUHTfdXt2o X-Received: by 2002:a17:90a:4a92:b0:229:1607:c830 with SMTP id f18-20020a17090a4a9200b002291607c830mr13908948pjh.25.1673847615076; Sun, 15 Jan 2023 21:40:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673847615; cv=none; d=google.com; s=arc-20160816; b=OwNo0JlmweCTrFYxl3gJdmj+HDJdQJwUvjvzWPHHElofcumG9bcIc3x6mPvqEu7Cz5 Gt7h+l0zJ7nPgMC51mP377ItOyyuOs+aqH8K5HcLbjLqIYJFqE0iIfADPxn+eXPhJ1dX IwpMxmezopEkiW09A4Yl2oLf2yUhV4iYKznCXJzN0Ztu+V+NjjDowMq/YS9XDH/V5+k6 k5oP335+41YJbaIxObysUt8AZUrx6i+FQzSkx7lhET6xeY3nVR9MXJhMODkYbwqNpTqj OCCdt9/inMtwp2JvaaRrs9Bo5jeGk7M773UWWf8PuVQJ0W8WVZMnA50Jo0NorOYLSEGB Gy9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=M/v3tGNuAD8juM/0Ll2DNsevtDLdAwN/EO7CMZPg39E=; b=hRc9antakXE5435cGcGR7zNd1R5sa+V3Nro7zLZ8pXFa+APDizAJD+N/8W6pcLf299 sNpmLyD2Dn9GyoF4F8KjFLfxfql2zGas/TOgMknAil93ZonBXn683dMO+G3DBK3vLL4k yx7d+MC5QbCJT+0qmBHWEXGB5T0b8uSqd+jZBRvLQUl9a+NRSORgtJPXCHp5LT2knH2N EEv0Sb9acmvYL5wxx1bEvP28eRPXBmp8E0NdkYL8zr5zjGAI3hlcWgxKcmdlXscbRnUz Z19FAOVae+hW1mU8bCPzXUalUJn99Wdl8kIqBEN+gun6byP9ByDRCYcMpkpz/e4uIvQi jFnA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nv10-20020a17090b1b4a00b002290c209ccdsi11807529pjb.150.2023.01.15.21.40.03; Sun, 15 Jan 2023 21:40:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231897AbjAPF1A (ORCPT + 52 others); Mon, 16 Jan 2023 00:27:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231824AbjAPF0y (ORCPT ); Mon, 16 Jan 2023 00:26:54 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBA038691 for ; Sun, 15 Jan 2023 21:26:52 -0800 (PST) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pHI0n-0002zC-FI; Mon, 16 Jan 2023 06:26:25 +0100 Received: from ore by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1pHI0k-0001HV-VI; Mon, 16 Jan 2023 06:26:22 +0100 Date: Mon, 16 Jan 2023 06:26:22 +0100 From: Oleksij Rempel To: Peng Fan Cc: Rob Herring , Krzysztof Kozlowski , Shawn Guo , Sascha Hauer , Abel Vesa , Michael Turquette , Stephen Boyd , Richard Cochran , devicetree@vger.kernel.org, netdev@vger.kernel.org, Lee Jones , Russell King , linux-kernel@vger.kernel.org, NXP Linux Team , kernel@pengutronix.de, Fabio Estevam , linux-clk@vger.kernel.org Subject: Re: [PATCH v1 05/20] ARM: dts: imx6qdl: use enet_clk_ref instead of enet_out for the FEC node Message-ID: <20230116052622.GA980@pengutronix.de> References: <20230113142718.3038265-1-o.rempel@pengutronix.de> <20230113142718.3038265-6-o.rempel@pengutronix.de> <76716956-3f15-edd0-e9e2-bdba78de54f9@oss.nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <76716956-3f15-edd0-e9e2-bdba78de54f9@oss.nxp.com> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 16, 2023 at 09:01:08AM +0800, Peng Fan wrote: > Hi Oleksij, > > On 1/13/2023 10:27 PM, Oleksij Rempel wrote: > > Old imx6q machine code makes RGMII/RMII clock direction decision based on > > configuration of "ptp" clock. "enet_out" is not used and make no real > > sense, since we can't configure it as output or use it as clock > > provider. > > > > Instead of "enet_out" use "enet_clk_ref" which is actual selector to > > choose between internal and external clock source: > > > > FEC MAC <---------- enet_clk_ref <--------- SoC PLL > > \ > > ^------<-> refclock PAD (bi directional) > > > > Signed-off-by: Oleksij Rempel > > --- > > arch/arm/boot/dts/imx6qdl.dtsi | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b/arch/arm/boot/dts/imx6qdl.dtsi > > index ff1e0173b39b..71522263031a 100644 > > --- a/arch/arm/boot/dts/imx6qdl.dtsi > > +++ b/arch/arm/boot/dts/imx6qdl.dtsi > > @@ -1050,8 +1050,8 @@ fec: ethernet@2188000 { > > clocks = <&clks IMX6QDL_CLK_ENET>, > > <&clks IMX6QDL_CLK_ENET>, > > <&clks IMX6QDL_CLK_ENET_REF>, > > - <&clks IMX6QDL_CLK_ENET_REF>; > > - clock-names = "ipg", "ahb", "ptp", "enet_out"; > > + <&clks IMX6QDL_CLK_ENET_REF_SEL>; > > + clock-names = "ipg", "ahb", "ptp", "enet_clk_ref"; > > > Please also update fec binding, otherwise there will be dtbs check error. Hm, there is no restriction on enet_clk_ref use or requirements to use enet_out in Documentation/devicetree/bindings/net/fsl,fec.yaml Do I missing something? Regards, Oleksij -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |