From patchwork Fri Mar 23 20:41:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Moritz Fischer X-Patchwork-Id: 890229 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 407FwN5HMWz9s08 for ; Sat, 24 Mar 2018 07:47:32 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752161AbeCWUrb (ORCPT ); Fri, 23 Mar 2018 16:47:31 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:41983 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751921AbeCWUra (ORCPT ); Fri, 23 Mar 2018 16:47:30 -0400 Received: by mail-pg0-f68.google.com with SMTP id m24so5012372pgv.8 for ; Fri, 23 Mar 2018 13:47:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=FlZAN05N3NOPvnME2WOBIa80hWIM+r4c3p99ugHOpGA=; b=ikWL/1CBcLoUYsH5stbHAR91eJ1W98kYomYzBFUZ4Tbe/2PgOUSzfIphDQrgynxH65 PZDlMaSjTifFKLYt3OKkREDW7vhuW2GqlhRSbh9S12QWFOlg4xXpbBwGf4gITcabAkCd ug471xt/RexTm/Fi2mWT17+Euub10McpUr646T2HU3l3GBe8zZ8RNvFrOZpkE1okU+Tc 9xXHVdMcjt76AlvLWsgQrX33sGu8QnTz+bsgHj2rOOMzZ1bJmQ9HlmoH9wehqZ1JFfHY +8dljZ3BBPL5iSZartuFb07tMSdzahZKFsvoe5n0KDMcB2o/o4sZuDVoXmbMkcFOli7v AL1Q== X-Gm-Message-State: AElRT7FP+O8Te8NaE7GB0HRF9PCmW8Ai01GBWCRubPtq9vCbTnIWunkY cvlfcW9gpCtFPvhmkSOg4ffMaw== X-Google-Smtp-Source: AG47ELuqrDaIrQZBz7ewgPlYsA504MGlrJdce3vPlqtecUFVqeOtbJKz9U75LYJs+Im3Mb7JdVbk6g== X-Received: by 10.101.101.217 with SMTP id y25mr5924843pgv.165.1521838049384; Fri, 23 Mar 2018 13:47:29 -0700 (PDT) Received: from localhost (207-114-172-147.static.twtelecom.net. [207.114.172.147]) by smtp.gmail.com with ESMTPSA id d77sm20796260pfe.20.2018.03.23.13.47.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 23 Mar 2018 13:47:28 -0700 (PDT) From: Moritz Fischer To: davem@davemloft.net Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org, robh+dt@kernel.org, andrew@lunn.ch, f.fainelli@gmail.com, Moritz Fischer Subject: [PATCH v5 1/2] dt-bindings: net: Add bindings for National Instruments XGE netdev Date: Fri, 23 Mar 2018 13:41:27 -0700 Message-Id: <20180323204128.29783-1-mdf@kernel.org> X-Mailer: git-send-email 2.16.2 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This adds bindings for the NI XGE 1G/10G network device. Reviewed-by: Rob Herring Signed-off-by: Moritz Fischer --- Changes from v4: - None Changes from v3: - Added Rob's Reviewed-by Changes from v2: - Addressed Rob's comments w.r.t to IRQ names and typo Changes from v1: - Corrected from nixge -> nixge.txt --- Documentation/devicetree/bindings/net/nixge.txt | 32 +++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/nixge.txt diff --git a/Documentation/devicetree/bindings/net/nixge.txt b/Documentation/devicetree/bindings/net/nixge.txt new file mode 100644 index 000000000000..e55af7f0881a --- /dev/null +++ b/Documentation/devicetree/bindings/net/nixge.txt @@ -0,0 +1,32 @@ +* NI XGE Ethernet controller + +Required properties: +- compatible: Should be "ni,xge-enet-2.00" +- reg: Address and length of the register set for the device +- interrupts: Should contain tx and rx interrupt +- interrupt-names: Should be "rx" and "tx" +- phy-mode: See ethernet.txt file in the same directory. +- phy-handle: See ethernet.txt file in the same directory. +- nvmem-cells: Phandle of nvmem cell containing the MAC address +- nvmem-cell-names: Should be "address" + +Examples (10G generic PHY): + nixge0: ethernet@40000000 { + compatible = "ni,xge-enet-2.00"; + reg = <0x40000000 0x6000>; + + nvmem-cells = <ð1_addr>; + nvmem-cell-names = "address"; + + interrupts = <0 29 IRQ_TYPE_LEVEL_HIGH>, <0 30 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "rx", "tx"; + interrupt-parent = <&intc>; + + phy-mode = "xgmii"; + phy-handle = <ðernet_phy1>; + + ethernet_phy1: ethernet-phy@4 { + compatible = "ethernet-phy-ieee802.3-c45"; + reg = <4>; + }; + };