From patchwork Fri Jul 14 20:48:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Moritz Fischer X-Patchwork-Id: 788775 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 3x8Pzw1VMpz9sNv for ; Sat, 15 Jul 2017 06:53:48 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751144AbdGNUxU (ORCPT ); Fri, 14 Jul 2017 16:53:20 -0400 Received: from mail-pg0-f53.google.com ([74.125.83.53]:35132 "EHLO mail-pg0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751069AbdGNUxT (ORCPT ); Fri, 14 Jul 2017 16:53:19 -0400 Received: by mail-pg0-f53.google.com with SMTP id j186so50696557pge.2 for ; Fri, 14 Jul 2017 13:53:19 -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=LGqFxYP28/04VzWy47B/nm4UYrVyxsVYksPmzEPN8s8=; b=X5x8a25tkt5V0ToFLdmhDKcfVOStF+DhdIuQAvgisxesNv8zFgIFnd0DbqI3GiHaAv FS2OZlPlxtGFxAzsgiYeXVuaAW7UWmgJD4OzbX1eFLuZKKlWTYeXKppI5lvXl7TaBOJ9 5m4tEXG4sy1eOfjh5v11B9qf+jyh3sn3kePjEzchvV6TBH0ICHPEFfUcFSOFDsYH0xCP M5CUexzEm4yoiKmSGc/zpz5gyVDOw3Qb8xIl3O6kWxY+aMMYT3setsGbBhZ/OzRzg1iX P9X+WPC+a0PBTTS982nKKj4T2H2kR8ie9d2Z3H3ztiKBHVOL7RrdNspC4Nh0euTx6KoL NgZQ== X-Gm-Message-State: AIVw1114raDj3h0FjvAjZnzrt4/sYbA6JfRw74h9t8xSzBhKq93h6wQA KhusunPd1HRT4SJ9hW0hpQ== X-Received: by 10.84.217.214 with SMTP id d22mr17876294plj.269.1500065598548; Fri, 14 Jul 2017 13:53:18 -0700 (PDT) Received: from tyrael.ni.corp.natinst.com (207-114-172-147.static.twtelecom.net. [207.114.172.147]) by smtp.gmail.com with ESMTPSA id k194sm15869534pgc.31.2017.07.14.13.53.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Jul 2017 13:53:17 -0700 (PDT) From: Moritz Fischer To: netdev@vger.kernel.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, davem@davemloft.net, mark.rutland@arm.com, robh+dt@kernel.org, andrew@lunn.ch, Moritz Fischer Subject: [PATCH v2 1/2] dt-bindings: net: Add bindings for National Instruments XGE netdev Date: Fri, 14 Jul 2017 13:48:45 -0700 Message-Id: <1500065326-26182-1-git-send-email-mdf@kernel.org> X-Mailer: git-send-email 2.7.4 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This adds bindings for the NI XGE 1G/10G network device. Signed-off-by: Moritz Fischer --- 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 0000000..9fff5a7 --- /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-irq" and "tx-irq" +- phy-mode: 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 4>, <0 30 4>; + interrupt-names = "rx-irq", "tx-irq"; + interrupt-parent = <&intc>; + + phy-mode = "xgmii"; + phy-handle = <ðernet_phy1>; + + ethernet_phy1: ethernet-phy@4 { + compatible = "ethernet-phy-ieee802.3-c45"; + reg = <4>; + devices = <0xa>; + }; + };