From patchwork Mon Jan 1 05:14:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jassi Brar X-Patchwork-Id: 123026 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp7517437qgn; Sun, 31 Dec 2017 21:14:32 -0800 (PST) X-Google-Smtp-Source: ACJfBot3/bkzAo9hJl80w8lbN8g23hHC/DCgfKHfA8nG6WqbDbhJFc2DFFlE7TheHgdDGHecdNmR X-Received: by 10.84.129.9 with SMTP id 9mr42754848plb.138.1514783672433; Sun, 31 Dec 2017 21:14:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514783672; cv=none; d=google.com; s=arc-20160816; b=AIItJAO6xWb9SeGJjwSgbwOMYGLgGDdCzv25kbSwEfQs17C6NYCca18ayFZPOyDMgD RU0PSyC+h336kQTA16MaqPn/LDXyTrMIkngo01tptF00C8gE40gk4lv3jQHrc+B5oGB4 hDpUi6QZAPPYp1Bk6uFlCd4IbmwY2vlVPsHGeAUYzOCHWp4FJz7QQcDmB6FXI2Fug9Np 2gWsXoOUYu2XdBDJRTl2NqJS5YQe12nedihTCUlc3Y8x2o1FEJQd6IWe5SnY+0MtA3+W mhvGrSamVUUWCBPVvAav0vrKOiv6MsWXsDXMxF0w3PliuRP5Q4+mN874rLRw9Uz3+8MJ qbnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=ogm3/nWEvpM0xg8vmQsx5XgkdmH7S6n7Kz4heRL4VKM=; b=rynP8xG0VJTgAfEzViBuAuJgum7lL8GYT7/0i+H4vyEM5d3Y1WfsgMPoJpAGVWuEV6 cA8WA5NDdwVxT3oyxjjGrPXj7OWtMkzxXktrY4UZk4IJmjXCsTM+9pDPaW1WhC/w4a9V 91yHS3FfLZcx/ZutIDHdlfUK2JskrnkmYFtM6ivJqF+rfHr0QzebACa4msGFuZtqBzdL fWLbLEoyZfxjhienbfJVmDpdiekoEIAPklR3xj9FT/qIrln99R5wZ6YLDa3xw9xrCL2R NibNJCR22YhWNahmbpCWguBjBxqYPGm877UcE0LpvOxrruknwQDfxS4dhczYxdEHPngb DubQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=jMqdSX1E; 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 b16si8625472pfj.224.2017.12.31.21.14.32; Sun, 31 Dec 2017 21:14:32 -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=jMqdSX1E; 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 S1750858AbeAAFOa (ORCPT + 6 others); Mon, 1 Jan 2018 00:14:30 -0500 Received: from mail-pg0-f67.google.com ([74.125.83.67]:46836 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750748AbeAAFO3 (ORCPT ); Mon, 1 Jan 2018 00:14:29 -0500 Received: by mail-pg0-f67.google.com with SMTP id r2so7722857pgq.13; Sun, 31 Dec 2017 21:14:29 -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:in-reply-to:references; bh=M3fMhkWyhm+zEXNoetIcKczLu0WLLOis7jxMP82oBEE=; b=jMqdSX1ECQto4cwqJ81hvjnRREgwUC29TvqVOlGTPtN5YN0PNbKbhzoUiQmtxR7fKr iKi7xupmwReKj8pE/si1fxYYqBVkZD5XYdYbMraDAbaHNheeekEEsCvF+yuNC+NnSvhP DgPkfKS0N897W+vibtvHHS9IjsGi34zPpfpO0Fb/5TKKsn1xs35xPirZANUviC5xHo+E t2t75FGEoLFio6DKOvlWKkLCjIKn0omi9jq3hOusGFJigO92E0pd5PL6ETvVNScImOUf nYjWor3kZ8ZLAyVn6j64VpjXLpTUeFghqt02FdrJmC0HXx2trJyKlZo/dnxA4UWzG+// 932g== 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=M3fMhkWyhm+zEXNoetIcKczLu0WLLOis7jxMP82oBEE=; b=bi1uLt2Rc6r8w3UIWkZmvP6mLcwW9VCcxcSOHQayMpWqPzi89aFVeQzGUvZ9HyucXU zSCf6ohm60Q7hsazRdzE/WIQKB++rg3ST+3YslCE/4LpKRj/9Ly9/zUlwJjByeZoBe8J HDpRbQxQ7+GTGpteilRMvnigGfT7ZmUPsuF/e7q42nPkMtx4xtF1CEQZJ8aBNRafAgAw WzEU9V8pRFdvlTNfoj/duNzThJTqCVSw0933QTXevufgVC4fD+5YVDEwG2hiSIneHXko xoTjecZEtLm9XrGbhJEkJH7BONkKhvSRnpE/vayskOTXyvetc/3USWXk4r8MLdCKuRxa CSxA== X-Gm-Message-State: AKGB3mK1bfy0J/9dgB0W10DtQ83RJH1H0rOji8eF6Ux5VM7a9xWhloVt 1TrKzirEgKj9rJEj2euOmuRSiIOV X-Received: by 10.99.179.6 with SMTP id i6mr11448557pgf.77.1514783668599; Sun, 31 Dec 2017 21:14:28 -0800 (PST) Received: from localhost.localdomain ([112.196.107.37]) by smtp.gmail.com with ESMTPSA id e7sm93882411pfj.44.2017.12.31.21.14.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 31 Dec 2017 21:14:27 -0800 (PST) From: jassisinghbrar@gmail.com To: netdev@vger.kernel.org, devicetree@vger.kernel.org Cc: davem@davemloft.net, arnd.bergmann@linaro.org, andrew@lunn.ch, ard.biesheuvel@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, masami.hiramatsu@linaro.org, Jassi Brar , Jassi Brar Subject: [PATCHv5 1/3] dt-bindings: net: Add DT bindings for Socionext Netsec Date: Mon, 1 Jan 2018 10:44:20 +0530 Message-Id: <1514783660-4290-1-git-send-email-jassisinghbrar@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1514783559-4226-1-git-send-email-jassisinghbrar@gmail.com> References: <1514783559-4226-1-git-send-email-jassisinghbrar@gmail.com> 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 | 53 ++++++++++++++++++++++ 1 file changed, 53 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 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/net/socionext-netsec.txt b/Documentation/devicetree/bindings/net/socionext-netsec.txt new file mode 100644 index 0000000..b70e35b --- /dev/null +++ b/Documentation/devicetree/bindings/net/socionext-netsec.txt @@ -0,0 +1,53 @@ +* 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 +- clock-names: Should be "phy_ref_clk" +- phy-mode: See ethernet.txt file in the same directory +- phy-handle: See ethernet.txt in the same directory. + +- mdio device tree subnode: When the Netsec has a phy connected to its local + mdio, there must be device tree subnode with the following + required properties: + + - #address-cells: Must be <1>. + - #size-cells: Must be <0>. + + For each phy on the mdio bus, there must be a node with the following + fields: + - compatible: Refer to phy.txt + - reg: phy id used to communicate to phy. + +Optional properties: (See ethernet.txt file in the same directory) +- dma-coherent: Boolean property, must only be present if memory + accesses performed by the device are cache coherent. +- local-mac-address: See ethernet.txt in the same directory. +- mac-address: See ethernet.txt in the same directory. +- max-speed: See ethernet.txt in the same directory. +- max-frame-size: See ethernet.txt in the same directory. + +Example: + eth0: ethernet@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 = <&phy1>; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + phy1: ethernet-phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <1>; + }; + }; + };