From patchwork Thu Dec 21 12:10:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jassi Brar X-Patchwork-Id: 122542 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp796944qgn; Thu, 21 Dec 2017 04:11:09 -0800 (PST) X-Google-Smtp-Source: ACJfBotq4qYtF+LUunhlj4c5nrLrGhEOHvz7TpSw6Ds4DYq9sKYNeDrNZkA3zRmgMN1bjl59niNF X-Received: by 10.84.231.138 with SMTP id g10mr10457510plk.373.1513858269388; Thu, 21 Dec 2017 04:11:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513858269; cv=none; d=google.com; s=arc-20160816; b=eJs8UrNDrstZ0WuGZOV4Lfle05ACPwzYRsVLG/nGdPCq54qI09eA2WPI1HVeUngCDa RviAMDEg6C0Xz64J8w5fqdfNwAJuM8AGbku+2mhUSEg1TfzP6bVM7P7vWnbHYYmD83aE vtN3+qKOQ/5++WvhqiBh13qdJ8VGBlGr2XEmTKPR/OoHCHJKhcRCx50FmGYwC5SVakKZ fsT87UhW5UMjMd9P4Mfp4z23KuNewRdYRY8u3lzkvE/v7eJ2ezgWDcdeyxQtKmFkn7Yg XZIxI2MwOOw4vzbsCopSSvbqxAT6b+KLA5lMfvfPI87x1Yql2OioeyDc8o1UBI+IBa5h e5tQ== 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=HfEr1V/WwSOQfJnshpAtcDfUh/OzcROAHJk5JU6uC94=; b=aGXQfoxQysgXgNuycYhyhx9QU7EL5Pp5tMewkmCLbb5fDjI013I/JROszRbubXc44V btRsZNLrdJXWdpMgM00lNcnBXRJrPt4Ie4GBMtEH4qugCU/5uJZkwZRJNbN1GVKtV8MF UGdRR1PVBqkyQs0rdAHLtaS3Ay6NXdHIBCHx4LwISfyeyzzonFiTAZxnAQL8NKom7Qhj nm5JBE2XqjO9SoFmPFs0BzB2QlCCQpkngHnuOoI1pv9F8LHF51YFcl//aivPf6Pec0g0 e49p/mBQWOa1UBfTjmjavQu+2PSPz0We7w6k6dsYZqn5T3vN9gM7n4H7s4zy03DJKqra DFRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=L4OxgKmV; 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 h1si14833801pln.278.2017.12.21.04.11.09; Thu, 21 Dec 2017 04:11:09 -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=L4OxgKmV; 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 S1753313AbdLUMLI (ORCPT + 6 others); Thu, 21 Dec 2017 07:11:08 -0500 Received: from mail-pl0-f65.google.com ([209.85.160.65]:41326 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753298AbdLUMLH (ORCPT ); Thu, 21 Dec 2017 07:11:07 -0500 Received: by mail-pl0-f65.google.com with SMTP id g2so10851461pli.8; Thu, 21 Dec 2017 04:11:06 -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=4+EtireiGE7miKKVNqdowPfpOB50R1nYD3lMoTw+xvU=; b=L4OxgKmVGn5xMp4Mvt5WcfALbagII9oJUzncSXFj0dkP6CrzKzyYnIig/I4I6FNQ8K JpLpg65QFudlr9XdkorAOCLun26Wx7JqSUP77IemCXJCyB2Tsz1bNU8S3xdjyb9DJF+q ITjqlyKPYyQ4e/rvfOXNLgayGHJp11EvhLCd7RCXBnxz0vQYOg1HWJWWkLGdS3TezETV qC6IogYed5jzsUFWqqI/lX7C6FPUVucOY4NZYKd4iX7HsP7tcK4XUrorziw+WwML0cDq oBVyq5TSeDXUCzr754tVmIxu8zasnhBfKIkCAZsV8dgxGFpelkQVy30jDdK7TNz/90WZ jzRA== 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=4+EtireiGE7miKKVNqdowPfpOB50R1nYD3lMoTw+xvU=; b=isXh+9es4eQ014tA73zOw4hVYFXM0tJ5RwT8Oj7Vj4+v3xFGlnu3G3fKIqAU3h/hXO 5H3/ONgQQUB4zKWg6Mr47npWbEh8LnD2/nueLObnYM8Vjncmi4wUozSYXTZTqXmwZgzs gs4DTMeYGjMEn+hi795Xc8ooBlhZM81Kbqk1M2zPsywAZWd8PvW5b5EnGcrrrOI0JNVf JH2iI0r8cXOR59zy94MVw+FI2+aNhbNgHJ7onjRIzv9dtE0a/RF7ZIo6N6tEMul1Uab4 isZnut5wDVqvErkNMgNJbUoQ1Ch6iBIk04dpDsWmnGM1MZBZ7goTl4iyxo6jj/TiCzjX owLQ== X-Gm-Message-State: AKGB3mImN88mAxypOcrr5jML2j0cQqQiosOvsAY5T/PYYxeCR/1/Osu4 aWGBJpKEkMlocBSx5VWz7AF8HdbC X-Received: by 10.84.232.194 with SMTP id x2mr10719474plm.111.1513858266119; Thu, 21 Dec 2017 04:11:06 -0800 (PST) Received: from localhost.localdomain ([27.255.218.162]) by smtp.gmail.com with ESMTPSA id j14sm42811097pfj.93.2017.12.21.04.11.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 21 Dec 2017 04:11:05 -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, masami.hiramatsu@linaro.org, Jassi Brar , Jassi Brar Subject: [PATCHv3 1/3] dt-bindings: net: Add DT bindings for Socionext Netsec Date: Thu, 21 Dec 2017 17:40:54 +0530 Message-Id: <1513858254-14197-1-git-send-email-jassisinghbrar@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513858196-14137-1-git-send-email-jassisinghbrar@gmail.com> References: <1513858196-14137-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 | 55 ++++++++++++++++++++++ 1 file changed, 55 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..350540c --- /dev/null +++ b/Documentation/devicetree/bindings/net/socionext-netsec.txt @@ -0,0 +1,57 @@ +* 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: 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: + + - compatible: Must be "socionext,snq-mdio". + - #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: 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 = <&phy1>; + + mdio { + compatible = "socionext,snq-mdio"; + #address-cells = <1>; + #size-cells = <0>; + phy1: ethernet-phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <1>; + }; + }; + };