Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1008689yba; Thu, 4 Apr 2019 02:18:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqzJRM6cuLUKfuZj0VQ+xtihy0lbHk5UhM8GS9mD46JDC1Er0vmcRx0BrZ/wZGjwu078mmJf X-Received: by 2002:a63:3185:: with SMTP id x127mr4737769pgx.299.1554369533072; Thu, 04 Apr 2019 02:18:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554369533; cv=none; d=google.com; s=arc-20160816; b=YTsxiMjpQiC+5kpV540t+e4I7oJldUoF2SGppODaV+6G3wIiQTx3ZAMXC+ATyz0t+0 OsuzbcNxESDC9A1BvU3J6fkXvTOFHL4HkH6SEpLXCH957fy7hr3bmBjCK9EjXgCbSk0n PbMlh2HVAYbhe8jRnyrbJtyYOQnQSKfpBjjxYdGj1GJFMeH9JP3Qp7E9XGveX1l9Epve QJtnougx0wNyB3/SWy8mBzC6mWc/jU4v2a975FWcwfRuwP4uB4J6Pu7ykyTJI6ULSAhB U/aqK26cbfXU77j1w4uorD5mDz5e1DFpSCIYCzMLd9NdissvGY61s2CV0GUFyJtMHeBy aqnw== 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=Kzh+Xt6KUZvfxQpxjtbBGOOgaqVvWJy2QbflG8HQW8A=; b=POUgAwL9jQSV7hEj/WlOwkHo/6KVqsQy/1UtrQxo3cgJSuwK7efdFYfWkMjv1M//bG xxSGulJlzdJlRSMU2JgxoDNi+LM3bWsJNPu/F++fCQod8SZ6yOXQh15BXMgjv7pXDBAR 8/f/BUEylVZGxB7qGzckwwbK23SNFye8QQ/X4eA8IAaqnjUDYxHNeJeBdFQqPICZcAYM 5kVwPG3cbljpW7BJ5UGeFcEQrxDkoQ+3qnNhWmwib03PtoD/Y1XW20Wm6cm9NRq0YRGY abdp+eqvpC0LAs30Yzwnd/UDwlr4Q96De+qUSfhTm1Rw/Wl3lLxtgR7xcRN42ebIejv9 t61w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=CbdBpC2I; 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 22si16317739pgd.540.2019.04.04.02.18.37; Thu, 04 Apr 2019 02:18:53 -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=CbdBpC2I; 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 S2388095AbfDDJSE (ORCPT + 99 others); Thu, 4 Apr 2019 05:18:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:59978 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387867AbfDDJSB (ORCPT ); Thu, 4 Apr 2019 05:18:01 -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 37DD920693; Thu, 4 Apr 2019 09:18:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554369480; bh=4khj+k7PQKSxoEeN29uyK5NJOWDdryAXdUeXsXAeBPc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CbdBpC2IskkjH8n0QzOBvsfdTNuKwLddDwP2xcjy3u1YgRVEZaFtWCVhVljERBytU koePrugR1Szzk4z/yPLg/6qXW1sGcbrkKxaO91Mp518yBNyDF15EpjenOJcMPOZzXX cYz8tQE2aBzQnMJWpm4M3+mOMowDn5lOKk6tL+oo= 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 5.0 224/246] pinctrl: meson: meson8b: add the eth_rxd2 and eth_rxd3 pins Date: Thu, 4 Apr 2019 10:48:44 +0200 Message-Id: <20190404084627.059904182@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190404084619.236418459@linuxfoundation.org> References: <20190404084619.236418459@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 5.0-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 0f140a802137..7f76000cc12e 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 }; @@ -599,6 +601,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[] = { @@ -748,7 +752,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