From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [PATCH v2 5/5] stmmac: socfpga: Provide dt node to config ptp clk source. Date: Mon, 07 Dec 2015 15:37:41 +0100 Message-ID: <6323766.k1xXTMgHKY@wuerfel> References: <1449452324-53858-1-git-send-email-preid@electromag.com.au> <2600741.aLNrbYNOOu@wuerfel> <56658AE5.7020108@electromag.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, peppe.cavallaro@st.com, davem@davemloft.net, devicetree@vger.kernel.org, netdev@vger.kernel.org To: Phil Reid Return-path: Received: from mout.kundenserver.de ([212.227.17.24]:63383 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754693AbbLGOiR (ORCPT ); Mon, 7 Dec 2015 09:38:17 -0500 In-Reply-To: <56658AE5.7020108@electromag.com.au> Sender: netdev-owner@vger.kernel.org List-ID: On Monday 07 December 2015 21:34:29 Phil Reid wrote: > On 7/12/2015 5:05 PM, Arnd Bergmann wrote: > > On Monday 07 December 2015 09:38:44 Phil Reid wrote: > >> Signed-off-by: Phil Reid > >> --- > >> Documentation/devicetree/bindings/net/socfpga-dwmac.txt | 2 ++ > >> drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c | 9 +++++++++ > >> 2 files changed, 11 insertions(+) > >> > >> diff --git a/Documentation/devicetree/bindings/net/socfpga-dwmac.txt b/Documentation/devicetree/bindings/net/socfpga-dwmac.txt > >> index 3a9d679..72d82d6 100644 > >> --- a/Documentation/devicetree/bindings/net/socfpga-dwmac.txt > >> +++ b/Documentation/devicetree/bindings/net/socfpga-dwmac.txt > >> @@ -11,6 +11,8 @@ Required properties: > >> designware version numbers documented in stmmac.txt > >> - altr,sysmgr-syscon : Should be the phandle to the system manager node that > >> encompasses the glue register, the register offset, and the register shift. > >> + - altr,f2h_ptp_ref_clk use f2h_ptp_ref_clk instead of default eosc1 clock > >> + for ptp ref clk. This affects all emacs as the clock is common. > >> > > > > Is this feature specific to the Altera glue logic, or would it be possible > > to do the same thing on another dwmac implementation? > > > I think it is specific to Altera's glue logic. It selects either a clock connected > directly to the ARM HPS core or a clock routed from Altera FPGA fabric. > Control register is in the altera sysmgr. > > Ok, makes sense. Arnd