From patchwork Wed Oct 5 14:44:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 9363071 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 2420D6075E for ; Wed, 5 Oct 2016 14:46:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 14D142899C for ; Wed, 5 Oct 2016 14:46:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 08F3F289FC; Wed, 5 Oct 2016 14:46:43 +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.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 080A12899C for ; Wed, 5 Oct 2016 14:46:39 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1brnRU-0007Zg-3v; Wed, 05 Oct 2016 14:45:08 +0000 Received: from mail-wm0-x22d.google.com ([2a00:1450:400c:c09::22d]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1brnRO-0007DE-6w for linux-arm-kernel@lists.infradead.org; Wed, 05 Oct 2016 14:45:03 +0000 Received: by mail-wm0-x22d.google.com with SMTP id f193so233294017wmg.0 for ; Wed, 05 Oct 2016 07:44:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=tXv1ipx+yXnrJ7wGV8LL4Xr1M/7jakFJJCnWwINlHI4=; b=BygCRQN21MGZJ6x0mZ0Qwa0KZPzOiXfEdPQtJUXhUqVkeXSZCeuC6Pumnf2LDQnaF5 m3sMBTA4ww1AnwfyrpZ37baWzM/rnM5YTXD87Q1TBkyTF7Ya27oMGa6gLB68lPVfMQtV cKF/weBsAXd+Yw0aiiEVHrcRG5N0P3hbGvVTCf8eyAFs5/Hoq3adeos8irXLuHsUYsAi evsEx/wfZhjd6b8eDGwUWGeI8lN4I8JkcxmUtdGPsI9urax3o/sybeiGuWRQM0GVGSLi F7XlE1hqQo/AA2k+8nL5z7amLtHG7VwTlTlolKNpiCgFCv4d2FT8MPnFGSimhsTRpRR4 ClEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=tXv1ipx+yXnrJ7wGV8LL4Xr1M/7jakFJJCnWwINlHI4=; b=HcUN6xKPTHwSBA3X9lM4BnIpepD8RNDzQEMS640yjA6VEC+BwB8dJ+bGp5Cjmz4M8R imxqZYmJDro3NcL7yS+qYxzpIAVWX9GtHdzTx//ChFo7Kt1/sm2+qhjCzbjqppPuUcL+ k6uoU1v6gWYc1pAb+NAFPaluCm8aLYVs1RTB+hlzogmU+jH7J9CcJkQ9yqTUpIOxLbGN XqiYE9EN1Bxb8p0R7zFeW38nCQVfn2L1Umq0EX74ArPt1+j8rFAozeNF0cWXgnvrfW5u EQ+CaU/gw60eiv63XmkCQ7L+jmPx2RpjuYQEnKSHqN3MTLWSq3ewAIJ8WlwTA9QwfHm9 O4tA== X-Gm-Message-State: AA6/9RnEzcPj7oBye7I2bz/JfD9w0kRlaNLaHNBNf6S0DlR7pvr09tqOKdvYf5EzA/S+6OQI X-Received: by 10.28.232.196 with SMTP id f65mr19095055wmi.2.1475678680335; Wed, 05 Oct 2016 07:44:40 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id w71sm9909211wmw.17.2016.10.05.07.44.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 05 Oct 2016 07:44:39 -0700 (PDT) From: Neil Armstrong To: carlo@caione.org, khilman@baylibre.com Subject: [PATCH] ARM64: dts: meson-gxbb: Add rmii pinctrl node and rename rgmii node Date: Wed, 5 Oct 2016 16:44:33 +0200 Message-Id: <1475678673-15277-1-git-send-email-narmstrong@baylibre.com> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161005_074502_450258_CC43F19B X-CRM114-Status: GOOD ( 10.77 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong 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 For boards only supporting 10/100 ethernet over a RMII PHY link, add a separate pinctrl node. By the way, rename the existing node to rgmii specific naming in all boards dts. Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts | 2 +- arch/arm64/boot/dts/amlogic/meson-gxbb-p20x.dtsi | 2 +- arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi | 2 +- arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 17 ++++++++++++++++- 4 files changed, 19 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts index e6e3491..325b9c5 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts @@ -83,7 +83,7 @@ ðmac { status = "okay"; - pinctrl-0 = <ð_pins>; + pinctrl-0 = <ð_rgmii_pins>; pinctrl-names = "default"; }; diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-p20x.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxbb-p20x.dtsi index 06a34dc..031d69b 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-p20x.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-p20x.dtsi @@ -81,7 +81,7 @@ ðmac { status = "okay"; - pinctrl-0 = <ð_pins>; + pinctrl-0 = <ð_rgmii_pins>; pinctrl-names = "default"; }; diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi index 73f1593..e93221a 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi @@ -82,7 +82,7 @@ ðmac { status = "okay"; - pinctrl-0 = <ð_pins>; + pinctrl-0 = <ð_rgmii_pins>; pinctrl-names = "default"; }; diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi index 443811b..aad639a 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi @@ -443,7 +443,7 @@ }; }; - eth_pins: eth_c { + eth_rgmii_pins: eth-rgmii { mux { groups = "eth_mdio", "eth_mdc", @@ -463,6 +463,21 @@ }; }; + eth_rmii_pins: eth-rmii { + mux { + groups = "eth_mdio", + "eth_mdc", + "eth_clk_rx_clk", + "eth_rx_dv", + "eth_rxd0", + "eth_rxd1", + "eth_tx_en", + "eth_txd0", + "eth_txd1"; + function = "eth"; + }; + }; + pwm_a_x_pins: pwm_a_x { mux { groups = "pwm_a_x";