From patchwork Sat Jan 6 14:14:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jassi Brar X-Patchwork-Id: 123628 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp610974qgn; Sat, 6 Jan 2018 06:14:33 -0800 (PST) X-Google-Smtp-Source: ACJfBouka7IXuWd8LNRqSz/JrBxEAsy4bgC9I290ddMlwNRxJNk4W2cbeGio9+5smWT5F3VAIAWq X-Received: by 10.99.154.66 with SMTP id e2mr5473308pgo.113.1515248073541; Sat, 06 Jan 2018 06:14:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515248073; cv=none; d=google.com; s=arc-20160816; b=CvgJJ3AsykD92cn/ayEBIxPxwMKpMl0esaL/xZj2sUHd2H1k78MCQfnwkPKPjJblTt NIS0PHSiT5WLbzhmiERcDgnFTenoCkvVGvffH2EoWvWauAu706baoBEOvTx7qFubbypA lIfjBd1G/vtXvKd3bCi3jjHpSn+W0ZQrwxcaoVvkbC4p7QbIfZd4CBYF0BOQ+fBZimqf +l0v8Z8Uc5n1v0JrIIb3tCj9l7zypivW1+hJi3TH9PgJ3jKBJj//NIwoppguTd3zPcP/ +4RWw7eaTbazIrnBsMFaTcvZTJ5RgzdUzdn15AQ68UIqSV1pVyrUtCFwC8uXKk8kMIjF i65w== 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=PzkoWfNl5bPERjCzphGxODtoZAqYiHMd2SdZsmHBXAQ=; b=JOhEJpUjfyaQZ2RAWt60mVAAe2j942TiqX/+Vo7x80F6L3+2ist2oghQa7W3tWztJX bm+snDlTPetL2A8UpEIGsMOgcoptHiEl58TAH8wap0IW567Dc0DukrXO17OUXGsBvrH4 qGLPXRFHMFnJ9Jgu8jf6SUGnqyHiK47f/ZEl0r0jWZGovNGQNtyU3gnvPsIrAfJyr5DC aOkRYoVSrspqZDDB8Y1jtaYCdGUP4IQvqcT0Q4ScR2JstqKFCM57+cRNlA6SAiQSqs6f rVclnEFSeBR7hyMWCnnKM/mmadiB5yfTrEj/H3MylaqpPOLs87nIeqDFnd8N1XMfMo5F azfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=nD72fWOY; 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 i11si5669765pfi.187.2018.01.06.06.14.33; Sat, 06 Jan 2018 06:14:33 -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=nD72fWOY; 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 S1753184AbeAFOOc (ORCPT + 6 others); Sat, 6 Jan 2018 09:14:32 -0500 Received: from mail-pl0-f65.google.com ([209.85.160.65]:40108 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753145AbeAFOOb (ORCPT ); Sat, 6 Jan 2018 09:14:31 -0500 Received: by mail-pl0-f65.google.com with SMTP id 62so4867453pld.7; Sat, 06 Jan 2018 06:14:31 -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=Aky8BUuDJMvnyI45CIN5rRDwcodI1jphqdvQ+bzAc6c=; b=nD72fWOYc6DDVeE8iWkbVJPokfEPUrn4MRnL+HwN75k+VEISqKdDOw3VAcapjcvIOZ XvuS4iYE4W/AjrD02QMlgsCtfAvfJA6fhLasV5BjIrz0EtuvQRDv12b7h2usnSHbxzoZ QSwd51Mlv8u0AqdP/vqBjTHVlgKZUHRsIiNHXpjEfrCA2tz7GExPlJfZm2SnCBFDbZDJ nui8ZgtwqCJ4iCjlr9zpTjqXSFXUY3QpScsPOI/VurxqzXSxPRVzxpswlZLR7tzrR+PT /ufSTgVCbaaeXiO64yDB87kCvkw+Tztb9MeVpX/CWRYJsuAmwP25dvOw1P3Id9fM6wzB ermA== 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=Aky8BUuDJMvnyI45CIN5rRDwcodI1jphqdvQ+bzAc6c=; b=IGrufnlsTBBRKRO8GWrFMLS2Wx78kY+Suqmz66sz/M00CVVuQJ6YREGgi0OqixOFns ZiR/s0TOd3peONvPXNxQKkIFj5MGgLBupEhZ5aRKJfWsha3yWF0pMxZlhiMYyhqnZltQ Hhov28xh10vWEskrqgqbz32+YrKOhce42dLyPKdgoFl2tT1ZmyzsMJSSc96tA+ve4PS9 9VtmS6xyThxOm+zg5bbSZ40zyWN9wdaJu+J4EVhLmagTq2QNy6G4zGObWzyfzLhByu2y oR2R48I1z+qI9Qe20/vjjiqdu/AYTqt8knhrreAhIBd3VONtjVK345l/XdZq7MNagfrY N3ow== X-Gm-Message-State: AKGB3mLbCa4DyaLzsuQfe0YNHWQh/exdMoKrkb73gg70p53Wi2TOeSio e3ZTeZyP2j/ytddDDnnlc8LNMpXz X-Received: by 10.84.210.161 with SMTP id a30mr6866038pli.121.1515248070096; Sat, 06 Jan 2018 06:14:30 -0800 (PST) Received: from localhost.localdomain ([157.39.144.55]) by smtp.gmail.com with ESMTPSA id j14sm20370421pfj.93.2018.01.06.06.14.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 06 Jan 2018 06:14:29 -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: [PATCH net-next v6 1/3] dt-bindings: net: Add DT bindings for Socionext Netsec Date: Sat, 6 Jan 2018 19:44:19 +0530 Message-Id: <1515248059-4190-1-git-send-email-jassisinghbrar@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515247999-4041-1-git-send-email-jassisinghbrar@gmail.com> References: <1515247999-4041-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. Reviewed-by: Rob Herring 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 diff --git a/Documentation/devicetree/bindings/net/socionext-netsec.txt b/Documentation/devicetree/bindings/net/socionext-netsec.txt new file mode 100644 index 0000000..0cff94f --- /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>; + clock-names = "phy_ref_clk"; + 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>; + }; + };