From patchwork Sat Dec 23 05:45:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jassi Brar X-Patchwork-Id: 122680 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp3093159qgn; Fri, 22 Dec 2017 21:45:24 -0800 (PST) X-Google-Smtp-Source: ACJfBouXF5VcZJ7aKBarF4EVUpN3DqZRQZQGomLdSgH4UE9pdeX8kSd4jOnFJ8RcRVZ85jztBO1r X-Received: by 10.101.74.8 with SMTP id s8mr3038967pgq.259.1514007924271; Fri, 22 Dec 2017 21:45:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514007924; cv=none; d=google.com; s=arc-20160816; b=NfNsoO7rrvjCASn5t6i06KICzDYO7WaRQVVw4rrzM7GeiQ7iO2CbFn9WZ/qy3Y3zkH 6A5viMzccRso6fmXaq5ZpvyjZtDnBMeRGTWtJgjrmUtVviBz5xTuYycRoKwDqdCkCS2H k1DQw+6e6kDsqA5x+8fJN0WYbamv1LWN+pPMKVpNajzuyWt4TtiPindP2cCVf5p6oExe /y/wG7mhbr65UrEMJ/fn49fp/iOQw22wJA5W8k2Ke14SuHr2BZiHubOHrJPaFyovw7Dv W3/d/RWADbm9BUgwNPfLRw4ty5T54bpJVmcOYt6LFkYOIKtGrW+5WtKTlOs3M7PI/Vqg WYJA== 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=1B4WfWOs7ZIFANTEo6fNOrGIJq7BfjPxchFidjng63g=; b=IT9IdWOyAf3rcqdIXC2yFpasu6/AUO/d14OMuFwLIxQLJNuLFiNzEyvlWP5J5TcoDy PWAhUdt1i5Zg2sEJyHH+yaUL5ro44N7Aj2jP+xUUcgYm00Lw9MfBZcXeEKGpCrs2XWn9 8J8MGsG9VwLlqVNpcQp1cXS+kYSrscW4IZMCiISxNYaUvmU3UfVE+2jCASmecTIN/v97 1j/VKLP1COs2jMSfQ9zn7Ufkyj4JgEtxQp16YLRFwJBBaUELlNFpUdGUTftAjinLvbIS b/cDOXp12lyTG7KdxI/fEjc6at7g6wZxSURHAfm0PwUNNchjEE0/iS9LG49qzR4d6wsW YeSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=T6y/FDEE; 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 f65si4212948pgc.351.2017.12.22.21.45.24; Fri, 22 Dec 2017 21:45:24 -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=T6y/FDEE; 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 S1750820AbdLWFpW (ORCPT + 6 others); Sat, 23 Dec 2017 00:45:22 -0500 Received: from mail-pl0-f65.google.com ([209.85.160.65]:44418 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750800AbdLWFpV (ORCPT ); Sat, 23 Dec 2017 00:45:21 -0500 Received: by mail-pl0-f65.google.com with SMTP id n13so14050390plp.11; Fri, 22 Dec 2017 21:45:21 -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=ziiG+du9s8ugyGzyxZjiZBcFZuYukPTynLk/2diF8BA=; b=T6y/FDEEcWRCjBn1+9gkYG8FCDyAfSCRvNpIz2rNYOXt+IffrEDKTZS31G4e/Um76p EojUw2lOInYD1x0rIGGoOoiFVkmiTxtsaDF8cAfG7R3d+DQ19qFdSPgn/HtB5mqAW/GE GcDboGNGvvfCgKCZ4KvjX3uaV5jiks3RCV36oUn1AcFD7n9qlzzkVnALlVYc2A5Wnt8C Y1VLU1uLlk4jzL7GFilYpg7ifxb+SdjdU8VUlsCk+OavuqAbWjjKKRELxsf2ea49+nur jmtYkNWgqXgiwM7mT2aE3e1hB6x7XUsbLbwZVkJ1RIKKR2bLm4HYyi3Iy/vWXNUgvIpf GyKg== 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=ziiG+du9s8ugyGzyxZjiZBcFZuYukPTynLk/2diF8BA=; b=D05hEQAp184SVsp5VQX3ve8gqL030cDaqJ2aAMjd+02npbTTkZA0yDpB7tbDmHMKYY KZLVc98wg5YKe5Z7+iPdCL2aMVfWdR290A+tWl4qx9UXI46JMzROyPptQdwh6tHMZjzr Or5F/DMd1J3AJp+pOfGevmZ80nS2v2/6UYnaV++GXg9QxuCkASOyV3Ne3NkUp8gYuvTJ kU67dB3XB85G/BJBzJ/2pt1lXgn23fTSl7arFGD9Fk6GlVHUYqy6kYBXZwaAmJnDFLg9 FRbrxXrUD+zAVZrd8+flV1sH54ZKz4Sh8TYpnlLpWfGkMAvGxukMLpi1W38q14V7ghFR LsNg== X-Gm-Message-State: AKGB3mLnb9pt+dAcUP3jgGLuoSn2fkPr2MZcAOKyhGm4S2otUMNsUK77 1X9PenUElbGaUsYRHqntxoNNQrlJ X-Received: by 10.159.194.197 with SMTP id u5mr16491228plz.448.1514007920967; Fri, 22 Dec 2017 21:45:20 -0800 (PST) Received: from localhost.localdomain ([27.255.202.87]) by smtp.gmail.com with ESMTPSA id w10sm9711079pgc.28.2017.12.22.21.45.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 22 Dec 2017 21:45:19 -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: [PATCHv4 1/3] dt-bindings: net: Add DT bindings for Socionext Netsec Date: Sat, 23 Dec 2017 11:15:11 +0530 Message-Id: <1514007911-16674-1-git-send-email-jassisinghbrar@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1514007876-16617-1-git-send-email-jassisinghbrar@gmail.com> References: <1514007876-16617-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..adc7bfa --- /dev/null +++ b/Documentation/devicetree/bindings/net/socionext-netsec.txt @@ -0,0 +1,55 @@ +* 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: + + - #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 { + #address-cells = <1>; + #size-cells = <0>; + phy1: ethernet-phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <1>; + }; + }; + };