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: 847558 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.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=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Sf+JzdXT"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3yx60r4ZQBz9s7g for ; Wed, 13 Dec 2017 04:15:56 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752270AbdLLRPv (ORCPT ); Tue, 12 Dec 2017 12:15:51 -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-Google-Smtp-Source: ACJfBovkaNTyWKncLhasx01VI3ZBIFKz0senT+AYQFjFD+1qeks6CqqZspXiWmYk1pMtC+JcYcboTw== 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: 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: 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 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>; + }; + };