From patchwork Sun Apr 22 10:53:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 10354507 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 B4CA76019D for ; Sun, 22 Apr 2018 10:54:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A1C0E28939 for ; Sun, 22 Apr 2018 10:54:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 966EE28958; Sun, 22 Apr 2018 10:54:08 +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=-2.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 3407528939 for ; Sun, 22 Apr 2018 10:54:08 +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=ArG2XC2il/uOrGubyqU1cp0lNYWlA4i4BQowSHmmzc8=; b=LJkuIItzrnQB9DHsA3TWLWHsbP n8HYDX5pqdx3VNTNhcDIwnkarHEd5mWv9lcmtJTiljTxkkUG3tCHlD0WujhRMkT3/XoJKoD32mvq5 WIfbZo75aYZUnpC9iotO6cxVJcVT21WOLT+FQ3Q1VCuCntbmKdFZh5q3VOkPQuHnA3MH271zoMCqa zo9frP0fyMHv3qK4yYvuyVwYBoS4q3Sr0b+jDL8L61HycXxC50tVVY8i+bwTZx+1QYihH8Msu+tMB /l2dz42CCrZs5M+/YRtxRHottWUEF4UZi11ULzJhQmNWrVo+FQNMksofBLdlVGIw4dLXU29+amUZp Ev+zUXlg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fACdB-0007w4-EF; Sun, 22 Apr 2018 10:54:05 +0000 Received: from mail-wr0-x244.google.com ([2a00:1450:400c:c0c::244]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fACcy-0007o9-E2 for linux-amlogic@lists.infradead.org; Sun, 22 Apr 2018 10:53:54 +0000 Received: by mail-wr0-x244.google.com with SMTP id v60-v6so33553640wrc.7 for ; Sun, 22 Apr 2018 03:53:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=94Gy5568YufaRYvoXj2miHEQCoFbMeytI6druE3dFoA=; b=UZSGJCl25DhVyAHLXSeXFhARUf7Rb50PvTm/B54LLCFt7C4yWhQ5IJTPJrPVNZQoLR 9ip83nGjczFapd+JHq3juyXztBAxntjWxBHOH+Ya5vH/hBgw0KUJn4P8VxA12WQ6gdKD RfkMLvE+QxDlQcyvAx7j68x3nwtEmCIdyCYvIjj7/V3he6ZOElWDb5SASzZoqtv1ETcd R4FG856meSObec07x58LgvuwxcJzako/omXEoazXxYL09Zk2Z/bzJmJYPkWcm7tm05pa mn/gKR6lUj+Nu+h4gJ7S7XhmijQIAiguEKG4bmitRwVNIEzHq6s+KYp+M+Yw3puO4bIy 4wZQ== 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=94Gy5568YufaRYvoXj2miHEQCoFbMeytI6druE3dFoA=; b=NvgUweHeqzWWMYKBP2uPgCVH2Z66AKbM3KewacuWSKA58QGYW9xESn/2+2wQPYaYfF /OfCsbbQRas/eCzqdiw6DYHKBZjYAmqLmXQAAj+ASRaM8gn79BG7zsc/ToFhtHk464tE W9DbonkgB4+dVlOMMitYsxymxXGNj56uvakQmuFhyZdGMTWNGgFxW+jTYYRJ+Zj3HlAg a5dcjuCzsxbtAHBCmALd3E3Y3a/nbOc04alSwJKeIp2OOtpxxhMdXyWnVqJivJyIoU6W pd3nsPaWCOgOpEbyU0rs9GZEC8ArVOnz09EdPFh0YE5eZPDsoOUKrYOs18VVwYAiwTXf aBvA== X-Gm-Message-State: ALQs6tCT/heonP5f7Mnl1uFlZrImrvOd0ikRz0J8nS35aCapNFbM3TDI LOBmWe/jb4bDnidg+IsAlhw= X-Google-Smtp-Source: AIpwx4/XP+QtLSKPZLrrkmQdovYxU9I9ThvnPGG9nezQ2baognYjKJk1NISjfAY/Sia8EgtdzOTv5g== X-Received: by 10.28.210.193 with SMTP id j184mr4535667wmg.14.1524394420875; Sun, 22 Apr 2018 03:53:40 -0700 (PDT) Received: from blackbox.darklights.net (p200300DCD74E1B04DD092444F21FA8F1.dip0.t-ipconnect.de. [2003:dc:d74e:1b04:dd09:2444:f21f:a8f1]) by smtp.googlemail.com with ESMTPSA id l53-v6sm21212086wrc.80.2018.04.22.03.53.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Apr 2018 03:53:40 -0700 (PDT) From: Martin Blumenstingl To: linus.walleij@linaro.org, robh+dt@kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-amlogic@lists.infradead.org Subject: [PATCH 3/3] pinctrl: meson: meson8: add the RGMII RXD2/RXD3 and TXD2/TXD3 signals Date: Sun, 22 Apr 2018 12:53:30 +0200 Message-Id: <20180422105330.4712-4-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180422105330.4712-1-martin.blumenstingl@googlemail.com> References: <20180422105330.4712-1-martin.blumenstingl@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180422_035352_482198_F3F702E2 X-CRM114-Status: GOOD ( 11.56 ) X-BeenThere: linux-amlogic@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@arm.com, carlo@caione.org, Martin Blumenstingl , khilman@baylibre.com MIME-Version: 1.0 Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP These are only available on the Meson8m2 SoC (which uses the same DesignWare Ethernet MAC as Meson8b). The "eth_tx_clk_50m" signal either provides a 50MHz clock for the RMII PHYs or the RGMII TX clock (as far as we know the frequency is controlled by the PRG_ETHERNET registers in the Ethernet MAC "glue" IP block). Signed-off-by: Martin Blumenstingl --- drivers/pinctrl/meson/pinctrl-meson8.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/meson/pinctrl-meson8.c b/drivers/pinctrl/meson/pinctrl-meson8.c index 086082aeb796..c6d79315218f 100644 --- a/drivers/pinctrl/meson/pinctrl-meson8.c +++ b/drivers/pinctrl/meson/pinctrl-meson8.c @@ -299,6 +299,10 @@ static const unsigned int spi_mosi_1_pins[] = { GPIOZ_12 }; static const unsigned int spi_miso_1_pins[] = { GPIOZ_13 }; static const unsigned int spi_ss2_1_pins[] = { GPIOZ_14 }; +static const unsigned int eth_txd3_pins[] = { GPIOZ_0 }; +static const unsigned int eth_txd2_pins[] = { GPIOZ_1 }; +static const unsigned int eth_rxd3_pins[] = { GPIOZ_2 }; +static const unsigned int eth_rxd2_pins[] = { GPIOZ_3 }; static const unsigned int eth_tx_clk_50m_pins[] = { GPIOZ_4 }; static const unsigned int eth_tx_en_pins[] = { GPIOZ_5 }; static const unsigned int eth_txd1_pins[] = { GPIOZ_6 }; @@ -650,6 +654,12 @@ static struct meson_pmx_group meson8_cbus_groups[] = { GROUP(eth_mdio, 6, 6), GROUP(eth_mdc, 6, 5), + /* NOTE: the following four groups are only available on Meson8m2: */ + GROUP(eth_rxd2, 6, 3), + GROUP(eth_rxd3, 6, 2), + GROUP(eth_txd2, 6, 1), + GROUP(eth_txd3, 6, 0), + GROUP(i2c_sda_a0, 5, 31), GROUP(i2c_sck_a0, 5, 30), @@ -877,7 +887,8 @@ static const char * const spi_groups[] = { static const char * const ethernet_groups[] = { "eth_tx_clk_50m", "eth_tx_en", "eth_txd1", "eth_txd0", "eth_rx_clk_in", "eth_rx_dv", - "eth_rxd1", "eth_rxd0", "eth_mdio", "eth_mdc" + "eth_rxd1", "eth_rxd0", "eth_mdio", "eth_mdc", "eth_rxd2", + "eth_rxd3", "eth_txd2", "eth_txd3" }; static const char * const i2c_a_groups[] = {