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: 788773 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3x8PzP4yddz9sNd for ; Sat, 15 Jul 2017 06:53:21 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751092AbdGNUxU (ORCPT ); Fri, 14 Jul 2017 16:53:20 -0400 Received: from mail-pg0-f45.google.com ([74.125.83.45]:35131 "EHLO mail-pg0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751035AbdGNUxT (ORCPT ); Fri, 14 Jul 2017 16:53:19 -0400 Received: by mail-pg0-f45.google.com with SMTP id j186so50696491pge.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=mMwfWNSxWkGL4kSjpMesKg/7Dqn07jCkUMvK9ARWQMl55uyEulA2N1RogCCAfinBOB igxP/k076EINl3iAh3jXASokQFrOh4WTaSjtOVPtIf0Z2fezeKcCUm4UfLlFSIrgDXKv 6eg6PfmVMMwMmsFGAKGdZC1wxSu5mlR7V7PCPPSWt/FRRTjVVo5K5gocyLscb9fEWd3B sDtER5ga5DykoQLWCdTjsEfxF4zsQskppDtT6v3TC/KfQ/tbLjP9sH+Sa9IEoJ8QihTG L7hqsIudo/zf9pmcAxozbUoWHDLW+9Tsd4mX/gB26Ry03A3gqGGcMVSOhBgGW1DwwugJ fArA== X-Gm-Message-State: AIVw112m2N/hx9g4yh2vxkyoj51oWdxAKTNPRWVvNDrxSoJAAZsq6O9K hx/jxTIqsy2LHoD5vWQ9cw== 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: 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. 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>; + }; + };