Received: by 2002:ac0:de83:0:0:0:0:0 with SMTP id b3csp1344811imk; Mon, 4 Jul 2022 00:47:45 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vgDllTGPRuXVzPUgA+C0AnkvD63xZkOA9zIiXGSbSX6oHOO+mwHAqeAnM+eaAvhyJAqdAm X-Received: by 2002:a05:6402:c48:b0:437:d938:9691 with SMTP id cs8-20020a0564020c4800b00437d9389691mr36137062edb.254.1656920865382; Mon, 04 Jul 2022 00:47:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656920865; cv=none; d=google.com; s=arc-20160816; b=f12XROUktK75iXmECJUSiCLrH7Qw+n+6SV/eqfFhonp3c1ny/4GDAq6NWNjT3pt3fY XlZiQvtVa37raSKv2rSKylzwXiL2cS4pEof9wnbrtv5pidZI9IP+gHUHfzpvv0/afGXE Muq9RR6ZZ2hJFgrn4jgbsq5aCPUEXtcTabQtlc2ew48Rg5jnIMbZ2GqdCvUuWPLFb0eh p+rGYfU2s46c5bYD04WYFkMd5a6qQ7B63fZk9fyLaGnNXzl2AZqLGDW014OmQVWjSAj7 sX784moi4NguJxczfMr8zRvIJMCvpNpj5FZjYb43hRqbldteS6zSuBcdmCIm4srvR/mx x2PQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=gObXWaSc0thlLGNAqmPD/tOPPerKn6W2iUy4mHTM6+E=; b=ncu/mT1357sXFvQrnaOajEqCHROwPThmOuhBjf5ywB30M2xrnw+MmQCA1xgOIm1t9k /qiCP9MBWWYuBiL1yOaf4hcDEP3bjCq6EBepmc0531UBDxdkcH9kQFB882H3ouaAnmjE 9gIT544vLgwGvHBOnvdCOmHJT+VZ7nJbS8xxUL/Oi/+0rCJ7VgUFaWFgIixAOdF0ZcJH NxKzz7G8z7Pd/KPEUnki43GqpynUtHpYzx8lkPkLGans0BbCrdyLOMAUFGeYywMqRo/w xK3CD9y1H/39mnrbJK8aUTFmxvkB4x2nl1fcEs+Sf0gWo+zue1sLOeRYq9iL4MgqCJvp wXSg== 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 go43-20020a1709070dab00b00729c19c5106si10229210ejc.999.2022.07.04.00.47.19; Mon, 04 Jul 2022 00:47:45 -0700 (PDT) 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 S232698AbiGDHHp (ORCPT + 99 others); Mon, 4 Jul 2022 03:07:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232631AbiGDHHl (ORCPT ); Mon, 4 Jul 2022 03:07:41 -0400 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 0B4A12717 for ; Mon, 4 Jul 2022 00:07:41 -0700 (PDT) Received: from ptz.office.stw.pengutronix.de ([2a0a:edc0:0:900:1d::77] helo=[127.0.0.1]) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1o8GB2-0005bm-4f; Mon, 04 Jul 2022 09:07:24 +0200 Message-ID: <751e1ec6-2d34-44f6-a6c3-775df8a3cea2@pengutronix.de> Date: Mon, 4 Jul 2022 09:07:19 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH 2/3] arm64: dts: imx8ulp: Add the fec support Content-Language: en-US To: Wei Fang , davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de Cc: aisheng.dong@nxp.com, devicetree@vger.kernel.org, peng.fan@nxp.com, ping.bai@nxp.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-imx@nxp.com, kernel@pengutronix.de, sudeep.holla@arm.com, festevam@gmail.com, linux-arm-kernel@lists.infradead.org References: <20220704101056.24821-1-wei.fang@nxp.com> <20220704101056.24821-3-wei.fang@nxp.com> From: Ahmad Fatoum In-Reply-To: <20220704101056.24821-3-wei.fang@nxp.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2a0a:edc0:0:900:1d::77 X-SA-Exim-Mail-From: a.fatoum@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,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Hello Wei, On 04.07.22 12:10, Wei Fang wrote: > + clock_ext_rmii: clock-ext-rmii { > + compatible = "fixed-clock"; > + clock-frequency = <50000000>; > + #clock-cells = <0>; > + clock-output-names = "ext_rmii_clk"; > + }; > + > + clock_ext_ts: clock-ext-ts { > + compatible = "fixed-clock"; > + #clock-cells = <0>; > + clock-output-names = "ext_ts_clk"; > + }; How are these SoC-specific? They sound like they belong into board DT. > + clocks = <&cgc1 IMX8ULP_CLK_XBAR_DIVBUS>, > + <&pcc4 IMX8ULP_CLK_ENET>, > + <&cgc1 IMX8ULP_CLK_ENET_TS_SEL>, > + <&clock_ext_rmii>; > + clock-names = "ipg", "ahb", "ptp", "enet_clk_ref"; I think the default should be the other way round, assume MAC to provide reference clock and allow override on board-level if PHY does it instead. Cheers, Ahmad -- 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 |