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: 10003325 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 4C064602BF for ; Fri, 13 Oct 2017 00:36:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3B23528EC1 for ; Fri, 13 Oct 2017 00:36:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 301FD28F11; Fri, 13 Oct 2017 00:36:31 +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 B844E28EC1 for ; Fri, 13 Oct 2017 00:36:30 +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=vpEsBZPu24bta7WST63DLUdF6nss+0uK/IEizsoYAfM=; b=qCcbLjU1G3g8lvR2vjx3oZmJjW knTH4fGcxwN536DXjmSJKr7dtK1GEDveZfH7G7OF2V1kr9h5Jnl/mPGctSiX8Tl3txW/zeThdS467 awrdjO9qFjJZaCM0GG/PvOWMrXLBPKptEJGkPcEsVDGkHCeJ+yVe6Km9opJUo8lSjrKloJfB5LO4a s1ONBHJdPmm1cytLkOWvUb7BvY7wt76uYqz/7UxkK2C4lAQ5OQzoexGZiU5r7blluXAEV863ebM7k mUEDTTghIjrqQNrbaEE8dAZheLKhwW8dmHaMAmVXXu8fMKALKepNxSRJ7zwVdObeTQ/lVArX93wSW HC9agPyg==; 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 1e2nxO-0005TK-ON; Fri, 13 Oct 2017 00:36:06 +0000 Received: from mx.socionext.com ([202.248.49.38]) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1e2nxJ-0005LQ-2h for linux-arm-kernel@lists.infradead.org; Fri, 13 Oct 2017 00:36:03 +0000 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171012_173601_325432_DFC603D9 X-CRM114-Status: GOOD ( 11.87 ) 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 | 53 ++++++++++++++++++++++ 1 file changed, 53 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..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>; + }; + }; + };