Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3665726ybt; Tue, 30 Jun 2020 08:27:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPpUktbHkzSxXr4M7yKkUvISCHHY9v64PUDAgV3OV9XHTk2xkTxb179VbaOZ2xQ3QotW8y X-Received: by 2002:a17:906:144b:: with SMTP id q11mr7472593ejc.511.1593530821796; Tue, 30 Jun 2020 08:27:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593530821; cv=none; d=google.com; s=arc-20160816; b=cQ6EV1UVe4RrHpMidl5c4dzWITe7dXuBC8by04hgxoyCfX0ifvE+1FaVUwdJ/a07D9 UWzOohj+xFmMmk6F7ccSPvfUgSWxUwqSVBAUtTp8oN19XJKbZPcUpEe9cEURjhECIkuo 0R/MN4hUoMTzswbSF/YMVR6PkiERjhVLMr+Pa17klEfC8G1uhwEkBdzWlKpD2JDH6kPU NmpY2kV7w7hgKzaFMSTr8YbU3U5Mscpd+cHjZt/Wdp8wycU2G7qXnT8qcwnv8bTY9mtv Vy6SoANuuNhHk03FVKAxmw5CSL8h7h5UYla6Hp1pud30bWcPJGLHEpHRy3hror5wpFwt K2XA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=gMGZtwxkF42O7R8gjwHg1b14ZwEib7oNCbG3iTpGXj0=; b=1Fwpji7BND8V/FYZRN2Hh9fWILMziYj+MXcDAjk0bM3DA/XedO1lkHBH1nquOQZj2a nUvt134R6Fuc87S9lTocz2NkLhgs62fR4I9wv4loYnQ8Cn72DnS1Xylj0VLC2NiIg8cv hJnGIFM3ZWTeJEByvzvCcY/GbhZwHw8SNUVuQIlYPJi/kAXlqT7o60Lcer6+M0R1Bt9v KNnFG/ET+ZMTOiBkwkgp1S7ssXvBB8WiuhrVrpQEjjnOfPPBUxe3cXmffPtGttrRi0IY rfuqxllithOBiM1miZmG2+EOsvWbOthSRPdDOqKF6AZ1CX6ooxO+dmjMjCuTqepR17Q4 Kj5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=o45pXRvj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u9si1851513ejo.663.2020.06.30.08.26.38; Tue, 30 Jun 2020 08:27:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=o45pXRvj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389390AbgF3PX6 (ORCPT + 99 others); Tue, 30 Jun 2020 11:23:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387869AbgF3PX5 (ORCPT ); Tue, 30 Jun 2020 11:23:57 -0400 Received: from mail-oi1-x244.google.com (mail-oi1-x244.google.com [IPv6:2607:f8b0:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDC66C061755 for ; Tue, 30 Jun 2020 08:23:56 -0700 (PDT) Received: by mail-oi1-x244.google.com with SMTP id k6so13900594oij.11 for ; Tue, 30 Jun 2020 08:23:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=gMGZtwxkF42O7R8gjwHg1b14ZwEib7oNCbG3iTpGXj0=; b=o45pXRvjHRvW0UFuB6wLojg9daptSVYumx1f4auj39dNjWeVxhJqi37LNnc2cq7oZr 1+ZCXkJsEL+5klTWXzLRuzs4Wv8p1L9VTe8v3PChV+xfmhr+G0OLBXczcUmIGRlVHs9M UIH0xr145kzINs5rkGVFPLfPVUJNaRFrPK/VHoqExb2RWIvUDuMvkQAL59wBdYIAlo1n 60jwoMt4CmTjS904/+yG2CVRPIMZtzwONPdLCN2KkdlgSrbz231i4zCBGorx60OdtDEZ uPIe07Y5ejKOpYfRL5z2d4gXBujvSBrKW5rfGmxjz1fit91vx0ZdwqIzlQH7ZPT7fEBQ AmFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gMGZtwxkF42O7R8gjwHg1b14ZwEib7oNCbG3iTpGXj0=; b=Gs/f01/rV+ok6arO7KJ+LKq2NiyubsNrPzVKZ/zvtK2iKt4JlvMRtRPhKjHWUjTYh8 tRzfSp1bnS+NCZQWHurtEwCTlRPxFn2DWjdpI0He5zTo7Lr4z6yZXrqHWGydG9Hi8nyZ +BoSB2GPlBgUiRxQECKz6oUb5p0kWF6Q5ARocKR2Ur8SkkyQUhyawpx2PNm4gfAv7VUt zle7NPkM4nz+AugTfDsgyQ76QtFrHZoa6XObhkIZhBdpb6LfJ8c8w+VudVdWr/dI/0f5 /QIH6CvqMp6qsAJEvcrA7Eg3AFeQyhrJO8ir2yEJ/3T3eiruhw1+Mvc4qrbTm7A9vd+Y 1AZQ== X-Gm-Message-State: AOAM5325wMxoLi9DrDROWlo6snm0PZK73AYSNs0ndZ6PF/cEfk+vmfcA EPACD9/VtQfYk6qk38Fbw93HK4VlxoeqglT55cIRiw== X-Received: by 2002:a05:6808:194:: with SMTP id w20mr16775662oic.77.1593530636058; Tue, 30 Jun 2020 08:23:56 -0700 (PDT) MIME-Version: 1.0 References: <20200625140105.14999-1-TheSven73@gmail.com> <20200625140105.14999-2-TheSven73@gmail.com> In-Reply-To: From: Sven Van Asbroeck Date: Tue, 30 Jun 2020 11:23:45 -0400 Message-ID: Subject: Re: [EXT] Re: [PATCH v4 2/2] ARM: imx6plus: enable internal routing of clk_enet_ref where possible To: Andy Duan Cc: Fabio Estevam , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , dl-linux-imx , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , linux-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Andy, Fabio, On Tue, Jun 30, 2020 at 2:36 AM Andy Duan wrote: > > Sven, no matter PHY supply 125Mhz clock to pad or not, GPR5[9] is to select RGMII > gtx clock source from: > - 0 Clock from pad > - 1 Clock from PLL > > Since i.MX6QP can internally supply clock to MAC, we can set GPR5[9] bit by default. That's true. But on the sabresd I notice that the PHY's ref_clk output is from CLK_25M. The default ref_clk freq for that PHY is 25 MHz, and I don't see anyone change the default in the devicetree. I also see that a 25 MHz crystal is fitted, which also suggests 25 Mhz output. On the imx6, the default ref_clk frequency from ANATOP is 50Mhz. I don't see anyone change that default in the devicetree either. So is it possible that, when we switch GPR5[9] on, the external 25MHz clock is replaced by the internal 50MHz clock? If so, I'm not sure it'll work...?