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: 854281 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="jMqdSX1E"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3z953K3NnZz9t84 for ; Mon, 1 Jan 2018 16:14:37 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751049AbeAAFOb (ORCPT ); Mon, 1 Jan 2018 00:14:31 -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-Google-Smtp-Source: ACJfBosJ9YCOf0AwC8N3epTZfkUQMbROy1yjbg/zAnwdeCQZpCosaEWM/P6S3Pef30LtJE4N19uuug== 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: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@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 Reviewed-by: Rob Herring --- .../devicetree/bindings/net/socionext-netsec.txt | 53 ++++++++++++++++++++++ 1 file changed, 53 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..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>; + }; + }; + };