From patchwork Tue Dec 12 17:15:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jassi Brar X-Patchwork-Id: 121584 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp4391080qgn; Tue, 12 Dec 2017 09:15:54 -0800 (PST) X-Google-Smtp-Source: ACJfBosskzjnQg6X8cTHG+WbTRlwwUG7ZeNWCSlLTWJ4ZA+v+VgohddyFZBJK9AVegfq7/9cmUuJ X-Received: by 10.101.72.76 with SMTP id i12mr2642015pgs.436.1513098954382; Tue, 12 Dec 2017 09:15:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513098954; cv=none; d=google.com; s=arc-20160816; b=k68ep71KEmm33wMbvSE8E4FeDyY+s7nrxfiuFdkQogHfPvm6qCl+OEhhzlDDY9x+D5 bljn1V/fB+fmLqb5/xArprs460wRk5dBr6opafdS2zNkwncjT205/1mYtqlP84SZGKGj Jt1+hXG3E23fyfD4EKMbA3QxKz/OVi/QFj+O5dj6oS6cL1f9dBy+w/4y6OxUUbfNuu6P Ss491E4Wq6U/SGcuT8U/wsAWIQSD7y8VxClbZ+ZkFHdW30jHbdh1GOgU0cIOjDwuZs8V QDDGML6XdTuz4ZS6ig6tn/Tjb8/AJLURbNM35oid4l6+J9irbx+DEE7TfC1qnQYzF52T QXAQ== 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=IT6J0Qy8opumFHV9iNW9ntic2XrO0G1kRarhofN2a88=; b=Zgf/sk0mfKqIxSdW4P0SnNb/zl/U99Wb98URN0pb7Q4tQr45aYXjbqz33RiRPHFJa5 z/4NHLYhEv9t1eOvMpQO6DxoAQDlOpj3KyPRjOei/MjE49hNozlHT3nJq9/kHtOKxXQu TJv5y6xtwW860D6jjMpj+fyXDuLlDkM5k7tu8xxuM57itSnC+gNxJaDT/3BBwDc/DB7m duBm8HNi78UmH2rQ4BXLCVJ6UrzaSfDlZd4KfXVkLJZkCC2y/DThsWAI85UN6e6scKSH 8iW+RIkzgsHBLcziGo5ys8QiM7jWhx/GHj5p6U2wcSZtk/DPpVcRqIEd0KuInfRUw6yd eOjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Sf+JzdXT; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (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 n22si11823018pgc.51.2017.12.12.09.15.54; Tue, 12 Dec 2017 09:15:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Sf+JzdXT; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752361AbdLLRPw (ORCPT + 7 others); Tue, 12 Dec 2017 12:15:52 -0500 Received: from mail-pf0-f195.google.com ([209.85.192.195]:44155 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752310AbdLLRPs (ORCPT ); Tue, 12 Dec 2017 12:15:48 -0500 Received: by mail-pf0-f195.google.com with SMTP id m26so14677288pfj.11; Tue, 12 Dec 2017 09:15:48 -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=IT6J0Qy8opumFHV9iNW9ntic2XrO0G1kRarhofN2a88=; b=Sf+JzdXTmaHIQKDXWKYC05iw7fS1fvFmHInXhd1/Rwss33P0d+6Y/lP/vqkVl11S9L FTqlJIjQxfb8hAO6BQYYaLM8IQN+px13uugcFS1EhUg0OTTju3pK4JT5wT8wn83WbzVn SCTbVPszWZMtHVORhcOrXb5df+/f39IlWdU2skQa0XIxkS3tZr65S7qISidjDdCWyP1f nQhZNUWsuDdKtbAe6YoObWIROG9PkmOYLX1Vge1NkUbYfZ/3f3JxVKJ4uOIu9EDvW/tg hcicGO0bfyeUvgWK6yZ3aMMORx3Kb9t6IvFQj5jGmyzmQg6m4kptG0CJ8aKTorvfoCcd DIPw== 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=IT6J0Qy8opumFHV9iNW9ntic2XrO0G1kRarhofN2a88=; b=pOUadc4gCOLEZX3KaPfvNETRJSIFsQE0yICy4Ss32ixlk1tFEvyOUI+Mnr3HW+y3pM 1Qz8XaNjC+tMEY/LIL4oiiRLk0o785NMJH4trhwbmDdOsK7Amo8H4nmdJoQb0YxpBFrs 5QYlvYL1B/75A7GRVkgoDuSheWe1/jxdOT/cEWeaUqo1tU5b6p2R1m3FkZu4hFk4+IL5 g2NPrCAotVHrZiU9obgbSCX/9Kic6EsEQuFyw+UNMshqMmIo1jxzD/cqTqBz1rlFmqX2 n0ArEMNUqrz2o7o8hbcla7nCNlZr/4wuOoq1/3Qd23sWMYFBpvzTHEJDMEuMUGiDBY1Q Ck7A== X-Gm-Message-State: AKGB3mLbQ5DWoFpcNU80uOPaVrvuLdknoQ+M/8CxUiSYTxuREGKyTSBO MEFUHE0aVaHC+fz79yF6G42L7O9/ X-Received: by 10.99.96.147 with SMTP id u141mr2698218pgb.342.1513098946763; Tue, 12 Dec 2017 09:15:46 -0800 (PST) Received: from localhost.localdomain ([27.255.194.33]) by smtp.gmail.com with ESMTPSA id t4sm30265412pfd.110.2017.12.12.09.15.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 12 Dec 2017 09:15:45 -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, Jassi Brar , Jassi Brar Subject: [PATCHv2 1/3] dt-bindings: net: Add DT bindings for Socionext Netsec Date: Tue, 12 Dec 2017 22:45:21 +0530 Message-Id: <1513098921-21042-1-git-send-email-jassisinghbrar@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513098873-20977-1-git-send-email-jassisinghbrar@gmail.com> References: <1513098873-20977-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: Ard Biesheuvel Signed-off-by: Jassi Brar --- .../devicetree/bindings/net/socionext-netsec.txt | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/socionext-netsec.txt -- 2.7.4 diff --git a/Documentation/devicetree/bindings/net/socionext-netsec.txt b/Documentation/devicetree/bindings/net/socionext-netsec.txt new file mode 100644 index 0000000..4695969 --- /dev/null +++ b/Documentation/devicetree/bindings/net/socionext-netsec.txt @@ -0,0 +1,45 @@ +* 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: phandle to select child 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 +- mac-address +- max-speed +- max-frame-size + +Required properties for the child phy: +- reg: phy address + +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 = <ðphy0>; + + #address-cells = <1>; + #size-cells = <0>; + + ethphy0: ethernet-phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <1>; + }; + };