From patchwork Wed Aug 30 10:25:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jassi Brar X-Patchwork-Id: 9929249 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 939266022E for ; Wed, 30 Aug 2017 10:26:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 89CFD28479 for ; Wed, 30 Aug 2017 10:26:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7E8FF28488; Wed, 30 Aug 2017 10:26:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id EE0D728479 for ; Wed, 30 Aug 2017 10:26:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=OoZzm9yeuolaV2d2LEBRWVgKVtShXD+or7D+7A1O4EA=; b=D2wydXb7WSOdldFk/d/1VxK89N ChbD1tIs4Ea1aXkQgqhKjLcn+b0NaEmGoWe9GBzZlRiacKf+ViSMqJ3t8sH2N6c9V/BvGi7/2YvEl uygE5b6iruHCvYLPMytOi/YaLCXHCNXwfBXyOFtF7t1kb6hNleVKbdwiZA4s8kFL3t3NTN/30QmGB /gGjPhP9IDcFvp2or7GV79oimPaM3S1JhbD3/4sgTeJtrQZml3ghh7Hy6a4ai7k5lFW4hMy596H1z cQfSc+XUww6h4whKy5Sgi7ZWUcDWUIeC+t6rqG5LsemVpZjvKsOkqbMX2iRhkxlLRYnm5GnNdKzPr sTZ4zvMw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dn0CY-0008Nh-1T; Wed, 30 Aug 2017 10:26:26 +0000 Received: from mail-pg0-x244.google.com ([2607:f8b0:400e:c05::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dn0CT-00089i-VP for linux-arm-kernel@lists.infradead.org; Wed, 30 Aug 2017 10:26:23 +0000 Received: by mail-pg0-x244.google.com with SMTP id 83so4779027pgb.3 for ; Wed, 30 Aug 2017 03:26:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Yy6ANxTem6pR+ZU+fFh+vMscBPN2dOs5HInqpctJIE4=; b=CVFraGDloEwdWDVXcJczZKsP/g3uk6hvwibPwIHb5D8RRhjCQzXlfZ/NugvDvffKom jdVtO0Y2PGk1NQnfcXQJCM8qrwnoO7oHVPgI1KeSdjty8fZgPsCRKpwyRiD0YjYiOHZG on1ly4QsQylEpB9P8EHG4O6qMzGKcNMQT+8vH/jdNirLOPRaiVlMfBx6XYNfhESL2AVV 470zQ1Nd50j/3RXLiqP/ffF/fgrnWIvOAo/QyFkzstqaEP7PzMFnYb0ZDRA6mqxsIXZ3 GNoCKi9HNCNslZdrXbvtbitmsAuplN5GtL5hodkuBmTyH6pg+XLZ/6TpkLozQJQDP64p hMVw== 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:in-reply-to :references; bh=Yy6ANxTem6pR+ZU+fFh+vMscBPN2dOs5HInqpctJIE4=; b=swKVL0oGD076KwYpO2bkuAC/O1jpea90gsjZ5/0r78GE0+KdVFEf/jYjlj0zD3sm2y HwNkKUBr6Kw2DmgYCGrTaXjaQtjnjEYhHoMOEQR8ADhHXIYdQArELkxa0eTfHYRagA5P rmOm61QhXoayMnnsoGCKucWuNF5DYh4Oa614TXn6HQ7TSzW+BUFudec0kOG/9ZPN/EOq iVHmIe0ABSyY7BaHjq7WIzTAlJPdQWVvW5kPq5pdPCj3Sx2YhX6YdEH+2dvxll++7YuS RFu5p9TslGZ1Sejoh8NVWjcffA1gk3Grpmlvk/LM+57xiV+36ogfx2E++jEmyzSeEgMD TVmQ== X-Gm-Message-State: AHYfb5gxNzcVALspAyclao8HRi2TscUciAwWgAzgO79D9vMWbPk/uE2j 29lQlZWjzlLgE48rFbk= X-Received: by 10.84.224.205 with SMTP id k13mr1316612pln.203.1504088761418; Wed, 30 Aug 2017 03:26:01 -0700 (PDT) Received: from localhost.localdomain ([27.255.192.36]) by smtp.gmail.com with ESMTPSA id l3sm8647611pfj.137.2017.08.30.03.25.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 30 Aug 2017 03:26:00 -0700 (PDT) From: Jassi Brar X-Google-Original-From: Jassi Brar To: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, davem@davemloft.net Subject: [net-next PATCHv6 1/2] dt-bindings: net: Add DT bindings for Socionext Netsec Date: Wed, 30 Aug 2017 15:55:52 +0530 Message-Id: <1504088752-6204-1-git-send-email-jaswinder.singh@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1504088657-6102-1-git-send-email-jaswinder.singh@linaro.org> References: <1504088657-6102-1-git-send-email-jaswinder.singh@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170830_032622_049208_B65C1C0F X-CRM114-Status: GOOD ( 12.81 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, arnd@arndb.de, patches@linaro.org, Jassi Brar , robh+dt@kernel.org, andy@warmcat.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds documentation for Device-Tree bindings for the Socionext NetSec Controller driver. Signed-off-by: Jassi Brar --- .../devicetree/bindings/net/socionext-netsec.txt | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/socionext-netsec.txt diff --git a/Documentation/devicetree/bindings/net/socionext-netsec.txt b/Documentation/devicetree/bindings/net/socionext-netsec.txt new file mode 100644 index 0000000..12d596c --- /dev/null +++ b/Documentation/devicetree/bindings/net/socionext-netsec.txt @@ -0,0 +1,46 @@ +* Socionext NetSec Ethernet Controller IP + +Required properties: +- compatible: Should be "socionext,netsecv5" +- reg: Address and length of the register sets, the first is the main + registers, then the rdlar and tdlar regions for the SoC +- interrupts: Should contain ethernet controller interrupt +- clocks: phandle to any clocks to be switched by runtime_pm +- phy-mode: See ethernet.txt file in the same directory +- max-speed: See ethernet.txt file in the same directory +- max-frame-size: See ethernet.txt file in the same directory, if 9000 or + above jumbo frames are enabled +- local-mac-address: See ethernet.txt file in the same directory +- phy-handle: phandle to select child phy + +Optional properties: +- use-jumbo: Boolean property to suggest if jumbo packets should be used or not + +For the child phy + +- compatible "ethernet-phy-ieee802.3-c22" is needed +- device_type "ethernet-phy" +- reg: phy address + + +Example: + eth0: ethernet { + compatible = "socionext,netsecv5"; + reg = <0 0x31600000 0x10000>, <0 0x31618000 0x4000>, <0 0x3161c000 0x4000>; + interrupts = <0 163 0x4>; + clocks = <&clk_alw_0_8>; + phy-mode = "rgmii"; + max-speed = <1000>; + max-frame-size = <9000>; + local-mac-address = [ a4 17 31 00 00 ed ]; + phy-handle = <ðphy0>; + + #address-cells = <1>; + #size-cells = <0>; + + ethphy0: ethernet-phy@1 { + device_type = "ethernet-phy"; + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <1>; + }; + };