From patchwork Fri Oct 13 00:35:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 115684 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp134440qgn; Thu, 12 Oct 2017 17:35:47 -0700 (PDT) X-Google-Smtp-Source: AOwi7QDSKcSa0+CAPh5Fr3+7MQ5EOwNmTqjmgTa0cRY6TS4cpS547myLokiibAAWHaDgILV0Qu/Y X-Received: by 10.98.249.13 with SMTP id o13mr3651783pfh.194.1507854947790; Thu, 12 Oct 2017 17:35:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507854947; cv=none; d=google.com; s=arc-20160816; b=J1VuQ1IPLE8aDZsJBq64/n6p651hY12WaPujyf9g/AapjwC/udogQHW6Yybeyb/d6l CvOaUvxqTMVACc8gGaZyFduXjYer8IJVqytgR7m+bn5ml+tlbEvVTl0lhtoKVanMEEBj E07UQz77uZvNkLW19gSR/hkF3kGhe2ErzYsw/G1lQWkAKw9yvEojwinOx4ktVYXt+1CX omdT/lah72SwSiR3NX5abbWPzUZcGGfPyBsESXKExHDZvFSR2Z6X2ouPoSm5/zT4A18V 6/RST05Aop6WaKEBEQZ9vbyhvNJrchD6GnGvbc5bq4wnIhQuvuxLl+QlIwQIYOLqs+ex Zp6A== 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:arc-authentication-results; bh=tK6wi1bpGe02rKs1G7JdeKMVHCrSBFDaSjEtMrst9Ck=; b=yqdKHF1/S/WLkyvma24ck0rDcN5DStZPxfIByZTfO5gcil9ve2SLS7HGbZnJ0TKHs9 9b3u2QPQzINi/lGNOc7RXlnYqV4+Yvn6gFWIyalGJlIx4UQR12r9X71gGg+1zTKXJCoY am9Ap1H4uPAYImCx/JNvoZPEyue4EU9npQUfz9zSwor96TvE0MB/OpJRQmDu/6B2ukQv E7XvRZ5a0lxbk4Niu4ugjHbYzQ4T7u0sz6Xo0KgLhdTlxLNfzNcCy2dKKmXOVWtI1GqJ eLxWsL143DPj/lp+90nWtYCpbI8i7biWE8qdQjJvYv87X8CV3gswUZUCx2YETadTtYxF jAZQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r7si12922378ple.652.2017.10.12.17.35.47; Thu, 12 Oct 2017 17:35:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756553AbdJMAfo (ORCPT + 27 others); Thu, 12 Oct 2017 20:35:44 -0400 Received: from mx.socionext.com ([202.248.49.38]:50587 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753756AbdJMAfk (ORCPT ); Thu, 12 Oct 2017 20:35:40 -0400 Received: from unknown (HELO iyokan-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 13 Oct 2017 09:35:39 +0900 Received: from mail.mfilter.local (unknown [10.213.24.62]) by iyokan-ex.css.socionext.com (Postfix) with ESMTP id B9ADA61128; Fri, 13 Oct 2017 09:35:39 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Fri, 13 Oct 2017 09:35:39 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan.css.socionext.com (Postfix) with ESMTP id 3CB7C1A0E17; Fri, 13 Oct 2017 09:35:39 +0900 (JST) From: Kunihiko Hayashi To: netdev@vger.kernel.org, Andrew Lunn , Florian Fainelli Cc: Rob Herring , Mark Rutland , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Masahiro Yamada , Masami Hiramatsu , Jassi Brar , Kunihiko Hayashi Subject: [PATCH net-next v2 1/2] dt-bindings: net: add DT bindings for Socionext UniPhier AVE Date: Fri, 13 Oct 2017 09:35:27 +0900 Message-Id: <1507854928-4357-2-git-send-email-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507854928-4357-1-git-send-email-hayashi.kunihiko@socionext.com> References: <1507854928-4357-1-git-send-email-hayashi.kunihiko@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DT bindings for the AVE ethernet controller found on Socionext's UniPhier platforms. Signed-off-by: Kunihiko Hayashi Signed-off-by: Jassi Brar --- .../bindings/net/socionext,uniphier-ave4.txt | 53 ++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/socionext,uniphier-ave4.txt -- 2.7.4 diff --git a/Documentation/devicetree/bindings/net/socionext,uniphier-ave4.txt b/Documentation/devicetree/bindings/net/socionext,uniphier-ave4.txt new file mode 100644 index 0000000..25f4d92 --- /dev/null +++ b/Documentation/devicetree/bindings/net/socionext,uniphier-ave4.txt @@ -0,0 +1,53 @@ +* Socionext AVE ethernet controller + +This describes the devicetree bindings for AVE ethernet controller +implemented on Socionext UniPhier SoCs. + +Required properties: + - compatible: Should be + - "socionext,uniphier-pro4-ave4" : for Pro4 SoC + - "socionext,uniphier-pxs2-ave4" : for PXs2 SoC + - "socionext,uniphier-ld20-ave4" : for LD20 SoC + - "socionext,uniphier-ld11-ave4" : for LD11 SoC + - reg: Address where registers are mapped and size of region. + - interrupts: Should contain the MAC interrupt. + - phy-mode: See ethernet.txt in the same directory. Allow to choose + "rgmii", "rmii", or "mii" according to the PHY. + - pinctrl-names: List of assigned state names, see pinctrl + binding documentation. + - pinctrl-0: List of phandles to configure the GPIO pin, + see pinctrl binding documentation. Choose this appropriately + according to phy-mode. + - <&pinctrl_ether_rgmii> if phy-mode is "rgmii". + - <&pinctrl_ether_rmii> if phy-mode is "rmii". + - <&pinctrl_ether_mii> if phy-mode is "mii". + - phy-handle: Should point to the external phy device. + See ethernet.txt file in the same directory. + - mdio subnode: Should be device tree subnode with the following required + properties: + - #address-cells: Must be <1>. + - #size-cells: Must be <0>. + - reg: phy ID number, usually a small integer. + +Optional properties: + - local-mac-address: See ethernet.txt in the same directory. + +Example: + + ether: ethernet@65000000 { + compatible = "socionext,uniphier-ld20-ave4"; + reg = <0x65000000 0x8500>; + interrupts = <0 66 4>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_ether_rgmii>; + phy-mode = "rgmii"; + phy-handle = <ðphy>; + local-mac-address = [00 00 00 00 00 00]; + mdio { + #address-cells = <1>; + #size-cells = <0>; + ethphy: ethphy@1 { + reg = <1>; + }; + }; + };