Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1000278yba; Thu, 4 Apr 2019 02:07:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqyHF59OPVHcrViiYTdtcy/Jg86i9kqUaEoUMGh2WiI0QlHnhv6/fedCth61cJ0HHIERjbDV X-Received: by 2002:a63:4e57:: with SMTP id o23mr4712821pgl.368.1554368835663; Thu, 04 Apr 2019 02:07:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554368835; cv=none; d=google.com; s=arc-20160816; b=am1p+y+rJ1Iem9fWNLYGRwD06XTN4kuvbuUgl5QYXqFbSE56faR7KV+jeQ54auEi95 OMarUFTDjk03BDXqSFQeYSo6hHJ7S6hj/1zlk519wuLzGzqKK0xcVo9XNgb4fSL5lDzV t7X1yHl/Vf7kMosgmviJOeAVsQaObesoQRSvQHm1RWYARZA32dW5mqdledIgCj3D54Ev iIXoNs/GHf1oTcdTLPLdHjsyIwcQG8jdbhjuMZrMUJFr/voQmp989XNq9+2Nltcnr/am WW8dFo8ayHB3uTFAeA0cbJU35PW/bazUT6ETX1LFbpd2csLQNIH9p0hXDgIUeaEXfT+F JjNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Ha5oJcBRhO/V2HI8zG+HOXx1udcyULofYOYv/Ge25OE=; b=QQNMObck4p1qDrU/zljqFPf5JWOreCD1pRHERrB3odFh6THxcF3jDD70TwwEUgBQhp zV6IprUhTZ2p/qP3DMA7hkUn6F1p+R8da3xWw7Y1c0fn+1q/KwRN9vhey2Jy2+RWCiFu Bt63Dej6s2NGWBLWaHbvv8zPlZG0CftnGXHPZwlo14M0nN+1egcOLZdoeThrFbGdNRCi TRSAH5RzY5CD6oY4ukvZFIJmvEuk87WCt79zK3zrgkKT7zyn84gsbf40PJknd5nU7Tgx hMwlmAIG2fPvOUbcRAvG0gitpr9ZODgOUfQBM8yuTiEd/vVsSD2rdA+aourLlORPwtbj 6BAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sb6OB03x; 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 s2si8035598plr.110.2019.04.04.02.07.00; Thu, 04 Apr 2019 02:07:15 -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; dkim=pass header.i=@kernel.org header.s=default header.b=sb6OB03x; 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 S1732324AbfDDJG3 (ORCPT + 99 others); Thu, 4 Apr 2019 05:06:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:44940 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732313AbfDDJG2 (ORCPT ); Thu, 4 Apr 2019 05:06:28 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 46504214AF; Thu, 4 Apr 2019 09:06:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554368787; bh=syhWWQ3nH3BWsUN+w2arRUKs6Ytra6qVxSbscC0X2Cw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sb6OB03xLwg5OWHbc7INb7/j6sFiUDK2YJRitDeqnHt9AFTcRJtUGVfhYgoX8TVv3 xQT1yxbIdtPBL7EpyXmwV9QQ+xbgdlgCytaCeyIAhmach+mpq+Gnml6VIRSOnr1lzd CA3jYlHql/24dWMg2w30ghQTYw6jI3OaAcUEPD8U= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jianxin Pan , Martin Blumenstingl , Kevin Hilman , Emiliano Ingrassia , Linus Walleij , Sasha Levin Subject: [PATCH 4.19 170/187] pinctrl: meson: meson8b: add the eth_rxd2 and eth_rxd3 pins Date: Thu, 4 Apr 2019 10:48:27 +0200 Message-Id: <20190404084611.102825310@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190404084603.119654039@linuxfoundation.org> References: <20190404084603.119654039@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 6daae00243e622dd3feec7965bfe421ad6dd317e ] Gigabit Ethernet requires the Ethernet TXD0..3 and RXD0..3 data lines. Add the missing eth_rxd2 and eth_rxd3 definitions so we don't have to rely on the bootloader to set them up correctly. The vendor u-boot sources for Odroid-C1 use the following Ethernet pinmux configuration: SET_CBUS_REG_MASK(PERIPHS_PIN_MUX_6, 0x3f4f); SET_CBUS_REG_MASK(PERIPHS_PIN_MUX_7, 0xf00000); This translates to the following pin groups in the mainline kernel: - register 6 bit 0: eth_rxd1 (DIF_0_P) - register 6 bit 1: eth_rxd0 (DIF_0_N) - register 6 bit 2: eth_rx_dv (DIF_1_P) - register 6 bit 3: eth_rx_clk (DIF_1_N) - register 6 bit 6: eth_tx_en (DIF_3_P) - register 6 bit 8: eth_ref_clk (DIF_3_N) - register 6 bit 9: eth_mdc (DIF_4_P) - register 6 bit 10: eth_mdio_en (DIF_4_N) - register 6 bit 11: eth_tx_clk (GPIOH_9) - register 6 bit 12: eth_txd2 (GPIOH_8) - register 6 bit 13: eth_txd3 (GPIOH_7) - register 7 bit 20: eth_txd0_0 (GPIOH_6) - register 7 bit 21: eth_txd1_0 (GPIOH_5) - register 7 bit 22: eth_rxd3 (DIF_2_P) - register 7 bit 23: eth_rxd2 (DIF_2_N) All functions except eth_rxd2 and eth_rxd3 are already supported by the pinctrl-meson8b driver. Suggested-by: Jianxin Pan Signed-off-by: Martin Blumenstingl Reviewed-by: Kevin Hilman Tested-by: Emiliano Ingrassia Reviewed-by: Emiliano Ingrassia Signed-off-by: Linus Walleij Signed-off-by: Sasha Levin --- drivers/pinctrl/meson/pinctrl-meson8b.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/meson/pinctrl-meson8b.c b/drivers/pinctrl/meson/pinctrl-meson8b.c index ead4beb5f55f..036124fd363c 100644 --- a/drivers/pinctrl/meson/pinctrl-meson8b.c +++ b/drivers/pinctrl/meson/pinctrl-meson8b.c @@ -346,6 +346,8 @@ static const unsigned int eth_rx_dv_pins[] = { DIF_1_P }; static const unsigned int eth_rx_clk_pins[] = { DIF_1_N }; static const unsigned int eth_txd0_1_pins[] = { DIF_2_P }; static const unsigned int eth_txd1_1_pins[] = { DIF_2_N }; +static const unsigned int eth_rxd3_pins[] = { DIF_2_P }; +static const unsigned int eth_rxd2_pins[] = { DIF_2_N }; static const unsigned int eth_tx_en_pins[] = { DIF_3_P }; static const unsigned int eth_ref_clk_pins[] = { DIF_3_N }; static const unsigned int eth_mdc_pins[] = { DIF_4_P }; @@ -571,6 +573,8 @@ static struct meson_pmx_group meson8b_cbus_groups[] = { GROUP(eth_ref_clk, 6, 8), GROUP(eth_mdc, 6, 9), GROUP(eth_mdio_en, 6, 10), + GROUP(eth_rxd3, 7, 22), + GROUP(eth_rxd2, 7, 23), }; static struct meson_pmx_group meson8b_aobus_groups[] = { @@ -720,7 +724,7 @@ static const char * const ethernet_groups[] = { "eth_tx_clk", "eth_tx_en", "eth_txd1_0", "eth_txd1_1", "eth_txd0_0", "eth_txd0_1", "eth_rx_clk", "eth_rx_dv", "eth_rxd1", "eth_rxd0", "eth_mdio_en", "eth_mdc", "eth_ref_clk", - "eth_txd2", "eth_txd3" + "eth_txd2", "eth_txd3", "eth_rxd3", "eth_rxd2" }; static const char * const i2c_a_groups[] = { -- 2.19.1