From patchwork Fri Sep 8 13:02:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 9943919 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D8128604D4 for ; Fri, 8 Sep 2017 13:02:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C8808286E1 for ; Fri, 8 Sep 2017 13:02:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BD0D0286E3; Fri, 8 Sep 2017 13:02:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5C1A2286E1 for ; Fri, 8 Sep 2017 13:02:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=T9MUr6Oco55lEiWDO+UjxEaC7VHDLQT7couOkUX9sVw=; b=iU6B17rkMUNVQbntBJWimWZeey iDgmXLbXaO+GtMlfEjYubHxmeTBm45E7un54I7PIfTMgZG42PhNYI93CI6bYuu9Iz7SRHy84WTevu D3QqhLIbrqXNdn2L+CVHDvvhnaVr904kQm6i1bnzaDkGuKqyRgS7y7EnjVse/EHDxlCme6UQt6q0N nhTjMyB0EAeti8lR8kHOqDi3NjKPuPLoxM3KpDup01poltwlD6Rtf16gjU1bhLtmyMkstZF4oBf/i iR7nUqHnjsmVFBhRgzdjVrqn1wBrTiOqQ9UDehMPdqw1V3OEyyEzFLY5Cjb2s6Cq4vlGra1P6vA8A NsEFkCaA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dqIvs-0004hQ-KZ; Fri, 08 Sep 2017 13:02:52 +0000 Received: from mx.socionext.com ([202.248.49.38]) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dqIvo-0004cB-79 for linux-arm-kernel@lists.infradead.org; Fri, 08 Sep 2017 13:02:50 +0000 Received: from unknown (HELO iyokan-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 08 Sep 2017 22:02:26 +0900 Received: from mail.mfilter.local (unknown [10.213.24.61]) by iyokan-ex.css.socionext.com (Postfix) with ESMTP id 5AAB1610C6; Fri, 8 Sep 2017 22:02:26 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Fri, 8 Sep 2017 22:02:26 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan.css.socionext.com (Postfix) with ESMTP id 7DF2D1A0E11; Fri, 8 Sep 2017 22:02:25 +0900 (JST) From: Kunihiko Hayashi To: netdev@vger.kernel.org, "David S. Miller" , Andrew Lunn , Florian Fainelli Subject: [PATCH net-next 1/3] dt-bindings: net: add DT bindings for Socionext UniPhier AVE Date: Fri, 8 Sep 2017 22:02:09 +0900 Message-Id: <1504875731-3680-2-git-send-email-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1504875731-3680-1-git-send-email-hayashi.kunihiko@socionext.com> References: <1504875731-3680-1-git-send-email-hayashi.kunihiko@socionext.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170908_060248_387988_30868BCB X-CRM114-Status: GOOD ( 11.48 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Kunihiko Hayashi , Masami Hiramatsu , Jassi Brar , linux-kernel@vger.kernel.org, Masahiro Yamada , Rob Herring , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/socionext,uniphier-ave4.txt 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..57ae96d --- /dev/null +++ b/Documentation/devicetree/bindings/net/socionext,uniphier-ave4.txt @@ -0,0 +1,44 @@ +* 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-ave4" + - reg: Address where registers are mapped and size of region. + - interrupts: IRQ common for mac and phy interrupts. + - phy-mode: See ethernet.txt in the same directory. + - #address-cells: Must be <1>. + - #size-cells: Must be <0>. + - Node, with 'reg' property, for each PHY on the MDIO bus. + +Optional properties: + - socionext,desc-bits: 32/64 descriptor size. Default 32. + - local-mac-address: See ethernet.txt in the same directory. + - pinctrl-names: List of assigned state names, see pinctrl + binding documentation. + - pinctrl-0: List of phandles to configure the GPIO pin used + as interrupt line, see also generic and your platform + specific pinctrl binding documentation. + - socionext,internal-phy-interrupt: Boolean to denote if the + PHY interrupt is internally handled by the MAC. + + +Example: + + eth: ethernet@65000000 { + compatible = "socionext,uniphier-ave4"; + reg = <0x65000000 0x8500>; + interrupts = <0 66 4>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_ether_rgmii>; + phy-mode = "rgmii"; + socionext,desc-bits = <64>; + local-mac-address = [00 00 00 00 00 00]; + + #address-cells = <1>; + #size-cells = <0>; + ethphy: ethphy@1 { + reg = <1>; + }; + };