From patchwork Thu Jul 13 21:21:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Moritz Fischer X-Patchwork-Id: 787993 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 3x7pgT2WHhz9s4s for ; Fri, 14 Jul 2017 07:22:29 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752870AbdGMVWB (ORCPT ); Thu, 13 Jul 2017 17:22:01 -0400 Received: from mail-pg0-f44.google.com ([74.125.83.44]:33966 "EHLO mail-pg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751375AbdGMVV7 (ORCPT ); Thu, 13 Jul 2017 17:21:59 -0400 Received: by mail-pg0-f44.google.com with SMTP id t186so35550519pgb.1 for ; Thu, 13 Jul 2017 14:21:59 -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=qsBq+GZOUoPUu5rpEU1YBh8BSKvwb3lTYwxS1NWoUhY=; b=ruMXLAE5tcNNRDYGBoq0DKaHOYUXTjXAnCZUFsRsADnA8YbYHQORC1C6NfhydmwSka B2lidppYT7p2Wej7sfrZWRcnSb4Uv8YOTNQLjy7gp0xc/atkqn11eOumW066IBiuL9tI FgZRwD0oomrFl+Na84k6wFU1nPUgRG7u0tO6TV4Tgdt6OxtPj103UH0lkCen2hl2h+m+ VLt1VysbNTUmUoerHcLlazmZZV0suxHJol0m4rLC92h4U+fF3PQSPNsvSmF9xQpvzPHD 8rudLYr0auvnv/xNGBXyaF+lC7tCVVmPy5wYQONvxM51WT8AB6J0ifJNvqK6wzkQ8MMt 87Qw== X-Gm-Message-State: AIVw113B7tHQLtSyyEAXk21TWvLfgng2o52iNkUbxmEbQrLIlkzIKg7N U4BRZTQioBhlvBD9XMBwoA== X-Received: by 10.99.112.92 with SMTP id a28mr10916115pgn.151.1499980918355; Thu, 13 Jul 2017 14:21:58 -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 p5sm12012779pgf.50.2017.07.13.14.21.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Jul 2017 14:21:57 -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, Moritz Fischer Subject: [PATCH 1/2] dt-bindings: net: Add bindings for National Instruments XGE netdev Date: Thu, 13 Jul 2017 14:21:48 -0700 Message-Id: <1499980909-11702-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.c | 32 +++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/nixge.c diff --git a/Documentation/devicetree/bindings/net/nixge.c b/Documentation/devicetree/bindings/net/nixge.c new file mode 100644 index 0000000..9fff5a7 --- /dev/null +++ b/Documentation/devicetree/bindings/net/nixge.c @@ -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>; + }; + };