From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,T_DKIMWL_WL_HIGH,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F2F01C28CC5 for ; Wed, 5 Jun 2019 15:07:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B9B1220883 for ; Wed, 5 Jun 2019 15:07:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559747233; bh=jTuxwfiyzlsodkekfsVqkS5weGze46oKt3QO2PxxZY0=; h=From:To:Cc:Subject:Date:List-ID:From; b=sOWSP80WKiY1854VMckaUWa4Z+KDt2bUlHq3GoKS38a4eX/V8oMeAWzzZsw5w+f2b gmF9pOMK2kEXvruLafl8l9vPyVLGDJ/UH0AFtNbsfWW0wEt9ZzGy0UBvGe3m4VP8pd x5ifq5YykAnAgNIJG7Hfnqyei2q0EHZtlhh6+3GU= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728592AbfFEPHM (ORCPT ); Wed, 5 Jun 2019 11:07:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:34974 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728441AbfFEPHM (ORCPT ); Wed, 5 Jun 2019 11:07:12 -0400 Received: from localhost.localdomain (cpe-70-114-128-244.austin.res.rr.com [70.114.128.244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 70967206B8; Wed, 5 Jun 2019 15:07:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559747232; bh=jTuxwfiyzlsodkekfsVqkS5weGze46oKt3QO2PxxZY0=; h=From:To:Cc:Subject:Date:From; b=PX4xbXsX040MmeYF2bNX6uKAbUwyW/fcFzjfX18GtHrjE3G/dtHw1tl+tAS1KWqCj RIhxHVe4vCoiCC0HBtPF1BshJbbXZYn6TQNsSmnn2F/Iv+uuHYWo99yXSGtLYvgkOS 1+wDLozxca9hC4MUZeUVtQ8qR4V1hYkHMZbfYpuA= From: Dinh Nguyen To: netdev@vger.kernel.org Cc: dinguyen@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, davem@davemloft.net, dalon.westergreen@intel.com Subject: [PATCH 1/2] dt-bindings: socfpga-dwmac: add "altr,socfpga-stmmac-a10-s10" binding Date: Wed, 5 Jun 2019 10:05:50 -0500 Message-Id: <20190605150551.12791-1-dinguyen@kernel.org> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Add the "altr,socfpga-stmmac-a10-s10" binding for Arria10/Agilex/Stratix10 implementation of the stmmac ethernet controller. On the Arria10, Agilex, and Stratix10 SoCs, there are a few differences from the Cyclone5 and Arria5: - The emac PHY setup bits are in separate registers. - The PTP reference clock select mask is different. - The register to enable the emac signal from FPGA is different. Because of these differences, the dwmac-socfpga glue logic driver will use this new binding to set the appropriate bits for PHY, PTP reference clock, and signal from FPGA. Signed-off-by: Dinh Nguyen --- .../devicetree/bindings/net/socfpga-dwmac.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/net/socfpga-dwmac.txt b/Documentation/devicetree/bindings/net/socfpga-dwmac.txt index 17d6819669c8..612a8e8abc88 100644 --- a/Documentation/devicetree/bindings/net/socfpga-dwmac.txt +++ b/Documentation/devicetree/bindings/net/socfpga-dwmac.txt @@ -6,11 +6,17 @@ present in Documentation/devicetree/bindings/net/stmmac.txt. The device node has additional properties: Required properties: - - compatible : Should contain "altr,socfpga-stmmac" along with - "snps,dwmac" and any applicable more detailed + - compatible : For Cyclone5/Arria5 SoCs it should contain + "altr,socfpga-stmmac". For Arria10/Agilex/Stratix10 SoCs + "altr,socfpga-stmmac-a10-s10". + Along with "snps,dwmac" and any applicable more detailed 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. + On Cyclone5/Arria5, the register shift represents the PHY mode bits, while + on the Arria10/Stratix10/Agilex platforms, the register shift represents + bit for each emac to enable/disable signals from the FPGA fabric to the + EMAC modules. - 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. -- 2.20.0