From patchwork Thu Jul 31 20:49:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vince Bridgers X-Patchwork-Id: 375429 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 5EA021400D5 for ; Fri, 1 Aug 2014 06:53:10 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753381AbaGaUxG (ORCPT ); Thu, 31 Jul 2014 16:53:06 -0400 Received: from mail-pd0-f172.google.com ([209.85.192.172]:42549 "EHLO mail-pd0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752707AbaGaUxD (ORCPT ); Thu, 31 Jul 2014 16:53:03 -0400 Received: by mail-pd0-f172.google.com with SMTP id ft15so4186418pdb.3 for ; Thu, 31 Jul 2014 13:53:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=apbFSYXnFEkMrOzHv17EXrsVkYUwDpmXbwb01lclf3Y=; b=gUweSJ07eYdApBiVlSLxcpZcXcYtiF1V3oSYZqjpKQgc2FlqvKhTz3SBCtyuxURiwc 7xQA1WALmTmqXlqj85m20xTQWBmAbod4LCHrxnh16MaaA6jxQrWJ2Yz3zMA3bgBobJuA W7p92Fj/zQPrDhwwzng+isjogUuydu5GD6UiI1lxSSEXMGvUwSfos90eyxRpfjTxnzDe DjHkxEIfOqrtya6cE8/z/+RoxaLC3KyPL3inY7n2UQ0AFVQKZHoblF+Uf9sEiaKOOTEA mFfsjF/8B+J3eP38R+aucH4MzYibvRfxUU4fNYw870Hco7HByaxjCp239qm3GXlHlkF8 froQ== X-Received: by 10.70.132.1 with SMTP id oq1mr774106pdb.45.1406839982581; Thu, 31 Jul 2014 13:53:02 -0700 (PDT) Received: from vince-Latitude-E6320.altera.com ([12.249.100.218]) by mx.google.com with ESMTPSA id ez1sm6452422pbd.91.2014.07.31.13.52.59 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 31 Jul 2014 13:53:01 -0700 (PDT) From: Vince Bridgers To: netdev@vger.kernel.org, devicetree@vger.kernel.org, peppe.cavallaro@st.com, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, linux@arm.linux.org.uk, linux-arm-kernel@lists.infradead.org, robh+dt@kernel.org, davem@davemloft.net Cc: dinguyen@altera.com, vbridgers2013@gmail.com, vbridger@altera.com Subject: [PATCH net v4 3/5] dts: Add bindings for multicast hash bins and perfect filter entries Date: Thu, 31 Jul 2014 15:49:15 -0500 Message-Id: <1406839757-10905-4-git-send-email-vbridgers2013@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1406839757-10905-1-git-send-email-vbridgers2013@gmail.com> References: <1406839757-10905-1-git-send-email-vbridgers2013@gmail.com> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This change adds bindings for the number of multicast hash bins and perfect filter entries supported by the Synopsys EMAC. The Synopsys EMAC core is configurable at device creation time, and can be configured for a different number of multicast hash bins and a different number of perfect filter entries. The device does not provide a way to query these parameters, therefore parameters are required. The Altera Cyclone V SOC has support for 256 multicast hash bins and 128 perfect filter entries, and is different than what's currently provided in the stmmac driver. Signed-off-by: Vince Bridgers Acked-by: Rob Herring --- V4: No change from V3->V4 V3: No changes V2: No changes --- Documentation/devicetree/bindings/net/stmmac.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/net/stmmac.txt b/Documentation/devicetree/bindings/net/stmmac.txt index a2acd2b..9b03c57 100644 --- a/Documentation/devicetree/bindings/net/stmmac.txt +++ b/Documentation/devicetree/bindings/net/stmmac.txt @@ -25,6 +25,10 @@ Required properties: - snps,force_sf_dma_mode Force DMA to use the Store and Forward mode for both tx and rx. This flag is ignored if force_thresh_dma_mode is set. +- snps,multicast-filter-bins: Number of multicast filter hash bins + supported by this device instance +- snps,perfect-filter-entries: Number of perfect filter entries supported + by this device instance Optional properties: - resets: Should contain a phandle to the STMMAC reset signal, if any @@ -47,6 +51,8 @@ Examples: mac-address = [000000000000]; /* Filled in by U-Boot */ max-frame-size = <3800>; phy-mode = "gmii"; + snps,multicast-filter-bins = <256>; + snps,perfect-filter-entries = <128>; clocks = <&clock>; clock-names = "stmmaceth">; };