From patchwork Thu Nov 30 16:12:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jassi Brar X-Patchwork-Id: 120217 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp871561qgn; Thu, 30 Nov 2017 08:13:06 -0800 (PST) X-Google-Smtp-Source: AGs4zMZUp7PZ817wGeJwBsXVTtBU6WscG7WK3DhD8ErGghRcwZP17e3rgHa9KXjKEcEnv/b9b0bP X-Received: by 10.84.218.10 with SMTP id q10mr3262567pli.111.1512058386682; Thu, 30 Nov 2017 08:13:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512058386; cv=none; d=google.com; s=arc-20160816; b=gHgWzkrzpGefQE1ZEE24XAr2Z092dBfPSf3J94p2mIxOi0elWbl3MYEIIWFF5LRDh5 /DWFHt0BlpH7gWs1YSaAL0vFqGXjStJ9njOV40RGD/lEgKTgwqCmVH+YMGZyigLOQUlC cbcdHlngCSHHpNYdHlRbdQl6DZHSH/U104HeMUoIMHARnC9WK40QjOaTvgpyV3nuQK2h GcC8k7e4TYANd6gdWSppTt2qRQjLhZqyHSC+yswr1Fnz8QwK5vo06Mu1cWn4F6nPN1JE 2yV7P128B/1ulWrzJ1HH+OtNqY/cHOSw5GfLjZHDuzzVgOUpzDWTuNgeNCbfscla0hxx vpvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=FVdPTZpBdDKdPqDbs2cuHkZ0PgEdPLQewqr55Kz1aTw=; b=wYz4VNtUo+jZRsJ2hTMMJHgFt/Q3Mn5VRj3NSHzPxI/v5/LKMFfjP2Z2fvDw99eFKW F5B3oNJ43Nr54kzvhqAg0N9VW0GAO4vrEEBcf7nA3ipIf2IUBuqcY7h0EqQGRtDG4hzV iuqYtSwzJ7GQ/Px4SkjUJKFJALPZVNlhj+pRZZnY8jR9sqYNp1T9Ccp3hI+a4f75T9e2 W9IYu7a34bUMkusZC+8SQOM4kQDF9mv5+0IpFBAp0luqD1NbXjtfe4j37kfeKGjwihW7 RBkxVIMCXWKrQrrRkMfmOnjpdm7uW5t7wq2K8BamYpT7T0WzB3EwmBpKq49HiB1MrH+8 ZHUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=kSawXh1d; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l7si3207583pgs.719.2017.11.30.08.13.06; Thu, 30 Nov 2017 08:13:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=kSawXh1d; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752357AbdK3QNF (ORCPT + 6 others); Thu, 30 Nov 2017 11:13:05 -0500 Received: from mail-pl0-f67.google.com ([209.85.160.67]:46641 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751349AbdK3QNE (ORCPT ); Thu, 30 Nov 2017 11:13:04 -0500 Received: by mail-pl0-f67.google.com with SMTP id i6so4494465plt.13; Thu, 30 Nov 2017 08:13:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=vWzYkNTq9eXDSDjD2GOKrCGZHeqXWoXSL/DZXBCKEpY=; b=kSawXh1dumK9xKL02YJxCRiyWkz1wNMCDFHLBIsRFuZ1r2N1i0aYR14Fq32kzEc5ml xc+p8SP95xJM/1kiUjsOZKv7mgJ1wmewyV9bPcW13+BUXT4xh4WD7CW+r4vH/mssgCDv X+vEKErhgAuaZyTRFKh6Hx+HO7GKqDeVtcAbB+fNBNryo5UX7ZWZSzx/5A//j+cQDH71 eAxS8tyKKjct0FZULkxZjHdkPygF1P4F15SHoenY7lGLdb/enRCqJDBeaapT6mOdZnBK HyfVFPOjWI3iENaatZrUUNDJToRagE8k1jjDerhnWWpiiQccM/IIbAUuBwNLd/Kceyav QHjw== 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=vWzYkNTq9eXDSDjD2GOKrCGZHeqXWoXSL/DZXBCKEpY=; b=Sz+U+6zVoZs2krcRP6R+7UK82VBfYBq6MxYQAoUGqAgQ/NLiSIQCQgZwLPOKVjQW2X PeDFo0CaYfxBtIUEF5pQNmW+cXEJTXDmoOuFZR9Mcef/gIAX4YiMCNManhlGS6x1xu6Q S71+yjnJsfEP30H0+3binkrh0z6JpsyHGoxjUIpr/g25F9iBZUNvxwm0ewwfxIjZJ+Wg VRDIqcs/WLVpVSpURXact2Kw8K8x8Qqnk9SnAEhApAmYn1XmXTEKu0NZJ2IMIy35bDZ0 9dOcm3tqOuc6MqmNs6uj/wiZuEo3rRAwQCF7DWbyAkRncXPHZPAdYrrOeUcJB/iX/Ick iGHA== X-Gm-Message-State: AJaThX6GvsAPy60FTSH+cSF3ZOMjZWkrDYDx9Ho1LN8m8ikxcD6zZLYq MG2DB/PCiSU5jWPgbHoPhfMkRc9m X-Received: by 10.84.244.2 with SMTP id g2mr3110162pll.170.1512058383573; Thu, 30 Nov 2017 08:13:03 -0800 (PST) Received: from localhost.localdomain ([112.196.106.95]) by smtp.gmail.com with ESMTPSA id o88sm8524763pfj.175.2017.11.30.08.12.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 30 Nov 2017 08:13:02 -0800 (PST) From: jassisinghbrar@gmail.com To: netdev@vger.kernel.org, devicetree@vger.kernel.org Cc: davem@davemloft.net, arnd.bergmann@linaro.org, ard.biesheuvel@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, Jassi Brar , Jassi Brar Subject: [PATCH 1/3] dt-bindings: net: Add DT bindings for Socionext Netsec Date: Thu, 30 Nov 2017 21:42:31 +0530 Message-Id: <1512058351-15851-1-git-send-email-jassisinghbrar@gmail.com> 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 From: Jassi Brar This patch adds documentation for Device-Tree bindings for the Socionext NetSec Controller driver. Signed-off-by: Jassi Brar Signed-off-by: Ard Biesheuvel --- .../devicetree/bindings/net/socionext-netsec.txt | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/socionext-netsec.txt -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Documentation/devicetree/bindings/net/socionext-netsec.txt b/Documentation/devicetree/bindings/net/socionext-netsec.txt new file mode 100644 index 0000000..4695969 --- /dev/null +++ b/Documentation/devicetree/bindings/net/socionext-netsec.txt @@ -0,0 +1,43 @@ +* Socionext NetSec Ethernet Controller IP + +Required properties: +- compatible: Should be "socionext,synquacer-netsec" +- reg: Address and length of the control register area, followed by the + address and length of the EEPROM holding the MAC address and + microengine firmware +- interrupts: Should contain ethernet controller interrupt +- clocks: phandle to the PHY reference clock, and any other clocks to be + switched by runtime_pm +- clock-names: Required only if more than a single clock is listed in 'clocks'. + The PHY reference clock must be named 'phy_refclk' +- phy-mode: See ethernet.txt file in the same directory +- phy-handle: phandle to select child phy + +Optional properties: (See ethernet.txt file in the same directory) +- local-mac-address +- mac-address +- max-speed +- max-frame-size + +Required properties for the child phy: +- reg: phy address + +Example: + eth0: netsec@522D0000 { + compatible = "socionext,synquacer-netsec"; + reg = <0 0x522D0000 0x0 0x10000>, <0 0x10000000 0x0 0x10000>; + interrupts = ; + clocks = <&clk_netsec>; + phy-mode = "rgmii"; + max-speed = <1000>; + max-frame-size = <9000>; + phy-handle = <ðphy0>; + + #address-cells = <1>; + #size-cells = <0>; + + ethphy0: ethernet-phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <1>; + }; + };