From patchwork Mon Apr 9 14:54:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 133044 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp336669ljb; Mon, 9 Apr 2018 07:54:45 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/JrAsdCb7VXr3Hcs4C3E8OMCIwkRBrqWAwQAVG6pkQJZdb2i5KtwpAKfXdl9+lABQgCSNW X-Received: by 2002:a17:902:2e43:: with SMTP id q61-v6mr38546582plb.404.1523285684983; Mon, 09 Apr 2018 07:54:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523285684; cv=none; d=google.com; s=arc-20160816; b=Es/ffXTZavXOFljhGOBS6LY6tkJKvaC8KycSF6q5lRVCfG/uGSua0U7bWzlr+wACJ1 fOpv6Y5rGFgfIEPQuI9MOrMJkP2flRK3jl5iHPslBpIX7FH0TW5yoXTux6jRkYnMQCIa M6y28Gq+cvVF3QbVKPc8RlM7liEQdriSodCJSgBXwxUocCh8lsZ+6o2jFy1eoGwPylLv Mqfuf1dnwfu/KxXuUeiqEiEjSVxJiLRz7pX7AOOQSnmpeweSyCWQegEdhLBrwKNvRffB WwBkbXdvRFLc5qz1PEh+JxZdmEWEl/q0l+7kfazIDNC35BcizQIjPX8RiSZxPMrWzFof H7Ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=SR42ufaZbXuGwcUg/eAA6YY9Iz9oPCt1BYJKe3h50yE=; b=EgCBIN1Kec63sbBCZwxXFL5rlaTvdMrmGW9cj9N630364nJO97kD81xeGII4HpcQpQ jhezbkFLf/gBld/zVnCcQxwDefb6S8b5HIjV5JWoAg7+AxGZfvhH6Zf0btO9hiy03bRI 88kUlFb6gYNmpgcs5y0rKK0OxtfT5fXoUoIE8pPkof2LH0LpujwGA6G7yVz+644bEKTe JJ4/J3WRKNCfWVlpsX9WbFFdwKyoRdgaQSETnppKkO2GbSzVnlDX/WqKR4yDJp1MBnmM mx5VfgMR7OlFoMZUWLGgsfLKRmVIfXW0QUDFHmT28cQxEmt1sf4qe7vELwQR037pgd8T xvUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=A4Yxi5sq; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-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 r26si327737pge.608.2018.04.09.07.54.44; Mon, 09 Apr 2018 07:54:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=A4Yxi5sq; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752588AbeDIOyn (ORCPT + 5 others); Mon, 9 Apr 2018 10:54:43 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:37067 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751902AbeDIOyn (ORCPT ); Mon, 9 Apr 2018 10:54:43 -0400 Received: by mail-wm0-f67.google.com with SMTP id r131so17349431wmb.2 for ; Mon, 09 Apr 2018 07:54:42 -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=w2IjjvoDyZdh0J50ULDsmByH0fk6Toz6j85vAs+fJco=; b=A4Yxi5sqAT7AcL/M4P0G+K1nYOyqfffAiDlVh0duEYv20E7eYAm4EIaLkPf2Z6t0SM Vzj1YAnQw55T+UcUa4ugQeh86TOki1zWUq3TyU80h0DAOSPEQoENi4xwLFKeyS/f8cK4 1nf7qdffQXP6CMRGvrE14VMkqzlg/Y6lH4vu3JYWzEUR2bBlDJhIBIMWRqziSBTR2wgc fQbQmyGbloOBVcA3K6rsiYJ5UUqVbgvvv3NcFZ6DKOXNsAif64iWCQMXE0+3kpsD/B6C slzYETN+QLCDoNCSjT7TWVVqLl+S+geTyyiF2PKuwP5uX7A6CM8Z0Q9D8ReLPS73KBzd Mq0A== 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; bh=w2IjjvoDyZdh0J50ULDsmByH0fk6Toz6j85vAs+fJco=; b=ThoIzQsuyMmtLbeHaY9gUC71JQJV68AsvG/KPhx0PndmV3utaX2LbGAQgStnfeoSF/ tmuj8QpQgieK+89+6Lw2vcwt9wVcQvUXLB2JF8bD/b44yq+eGemBO3SXqp7VmOLtvr96 rbL8lkEEs041m4Nz+8stLz7PCyRbrOExg9sd6pQtWvDW2uzMsPujQ9WTnHGSue7HvznE DiPaDCBtWmQA3/bDaRwBaL39kTsJcr3qW/gnMxHPfYKSWd4S3jvl4m9EtU4/PLkyf6og iOsmphf+Xh/wVecnDiRLQbPOZwcPnlDXIk5U6nBCpj4Ll235UVYPgAEEW271hNLyaXA3 EtSg== X-Gm-Message-State: ALQs6tD4eG4TUnetAKt38bwUc5+b197DvzfHDK8QsxmyjkRyXuzTZdAr LgHg7wp0V8ZFdmnmeRIH8KWlZT8/ X-Received: by 10.28.184.204 with SMTP id i195mr198959wmf.15.1523285681655; Mon, 09 Apr 2018 07:54:41 -0700 (PDT) Received: from boomer.baylibre.local ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id o17sm752537wrc.71.2018.04.09.07.54.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 09 Apr 2018 07:54:41 -0700 (PDT) From: Jerome Brunet To: Linus Walleij , Carlo Caione , Kevin Hilman Cc: Jerome Brunet , linux-gpio@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] pinctrl: meson: axg: add tdm pins Date: Mon, 9 Apr 2018 16:54:29 +0200 Message-Id: <20180409145429.16619-1-jbrunet@baylibre.com> X-Mailer: git-send-email 2.14.3 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Add the information related to the tdm pins of the A113D SoC Signed-off-by: Jerome Brunet --- drivers/pinctrl/meson/pinctrl-meson-axg.c | 107 ++++++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) -- 2.14.3 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Reviewed-by: Neil Armstrong diff --git a/drivers/pinctrl/meson/pinctrl-meson-axg.c b/drivers/pinctrl/meson/pinctrl-meson-axg.c index 4b91ff74779b..11dc23fde6d5 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-axg.c +++ b/drivers/pinctrl/meson/pinctrl-meson-axg.c @@ -312,6 +312,47 @@ static const unsigned int pdm_din1_pins[] = {GPIOA_16}; static const unsigned int pdm_din2_pins[] = {GPIOA_17}; static const unsigned int pdm_din3_pins[] = {GPIOA_18}; +/* mclk */ +static const unsigned int mclk_c_pins[] = {GPIOA_0}; +static const unsigned int mclk_b_pins[] = {GPIOA_1}; + +/* tdm */ +static const unsigned int tdma_sclk_pins[] = {GPIOX_12}; +static const unsigned int tdma_sclk_slv_pins[] = {GPIOX_12}; +static const unsigned int tdma_fs_pins[] = {GPIOX_13}; +static const unsigned int tdma_fs_slv_pins[] = {GPIOX_13}; +static const unsigned int tdma_din0_pins[] = {GPIOX_14}; +static const unsigned int tdma_dout0_x14_pins[] = {GPIOX_14}; +static const unsigned int tdma_dout0_x15_pins[] = {GPIOX_15}; +static const unsigned int tdma_dout1_pins[] = {GPIOX_15}; +static const unsigned int tdma_din1_pins[] = {GPIOX_15}; + +static const unsigned int tdmc_sclk_pins[] = {GPIOA_2}; +static const unsigned int tdmc_sclk_slv_pins[] = {GPIOA_2}; +static const unsigned int tdmc_fs_pins[] = {GPIOA_3}; +static const unsigned int tdmc_fs_slv_pins[] = {GPIOA_3}; +static const unsigned int tdmc_din0_pins[] = {GPIOA_4}; +static const unsigned int tdmc_dout0_pins[] = {GPIOA_4}; +static const unsigned int tdmc_din1_pins[] = {GPIOA_5}; +static const unsigned int tdmc_dout1_pins[] = {GPIOA_5}; +static const unsigned int tdmc_din2_pins[] = {GPIOA_6}; +static const unsigned int tdmc_dout2_pins[] = {GPIOA_6}; +static const unsigned int tdmc_din3_pins[] = {GPIOA_7}; +static const unsigned int tdmc_dout3_pins[] = {GPIOA_7}; + +static const unsigned int tdmb_sclk_pins[] = {GPIOA_8}; +static const unsigned int tdmb_sclk_slv_pins[] = {GPIOA_8}; +static const unsigned int tdmb_fs_pins[] = {GPIOA_9}; +static const unsigned int tdmb_fs_slv_pins[] = {GPIOA_9}; +static const unsigned int tdmb_din0_pins[] = {GPIOA_10}; +static const unsigned int tdmb_dout0_pins[] = {GPIOA_10}; +static const unsigned int tdmb_din1_pins[] = {GPIOA_11}; +static const unsigned int tdmb_dout1_pins[] = {GPIOA_11}; +static const unsigned int tdmb_din2_pins[] = {GPIOA_12}; +static const unsigned int tdmb_dout2_pins[] = {GPIOA_12}; +static const unsigned int tdmb_din3_pins[] = {GPIOA_13}; +static const unsigned int tdmb_dout3_pins[] = {GPIOA_13}; + static struct meson_pmx_group meson_axg_periphs_groups[] = { GPIO_GROUP(GPIOZ_0), GPIO_GROUP(GPIOZ_1), @@ -495,6 +536,15 @@ static struct meson_pmx_group meson_axg_periphs_groups[] = { GROUP(eth_rx_dv_x, 4), GROUP(eth_mdio_x, 4), GROUP(eth_mdc_x, 4), + GROUP(tdma_sclk, 1), + GROUP(tdma_sclk_slv, 2), + GROUP(tdma_fs, 1), + GROUP(tdma_fs_slv, 2), + GROUP(tdma_din0, 1), + GROUP(tdma_dout0_x14, 2), + GROUP(tdma_dout0_x15, 1), + GROUP(tdma_dout1, 2), + GROUP(tdma_din1, 3), /* bank GPIOY */ GROUP(eth_txd0_y, 1), @@ -544,6 +594,32 @@ static struct meson_pmx_group meson_axg_periphs_groups[] = { GROUP(pdm_din1, 1), GROUP(pdm_din2, 1), GROUP(pdm_din3, 1), + GROUP(mclk_c, 1), + GROUP(mclk_b, 1), + GROUP(tdmc_sclk, 1), + GROUP(tdmc_sclk_slv, 2), + GROUP(tdmc_fs, 1), + GROUP(tdmc_fs_slv, 2), + GROUP(tdmc_din0, 2), + GROUP(tdmc_dout0, 1), + GROUP(tdmc_din1, 2), + GROUP(tdmc_dout1, 1), + GROUP(tdmc_din2, 2), + GROUP(tdmc_dout2, 1), + GROUP(tdmc_din3, 2), + GROUP(tdmc_dout3, 1), + GROUP(tdmb_sclk, 1), + GROUP(tdmb_sclk_slv, 2), + GROUP(tdmb_fs, 1), + GROUP(tdmb_fs_slv, 2), + GROUP(tdmb_din0, 2), + GROUP(tdmb_dout0, 1), + GROUP(tdmb_din1, 2), + GROUP(tdmb_dout1, 1), + GROUP(tdmb_din2, 2), + GROUP(tdmb_dout2, 1), + GROUP(tdmb_din3, 2), + GROUP(tdmb_dout3, 1), }; /* uart_ao_a */ @@ -845,6 +921,32 @@ static const char * const jtag_ao_groups[] = { "jtag_ao_tdi", "jtag_ao_tdo", "jtag_ao_clk", "jtag_ao_tms", }; +static const char * const mclk_c_groups[] = { + "mclk_c", +}; + +static const char * const mclk_b_groups[] = { + "mclk_b", +}; + +static const char * const tdma_groups[] = { + "tdma_sclk", "tdma_sclk_slv", "tdma_fs", "tdma_fs_slv", + "tdma_din0", "tdma_dout0_x14", "tdma_dout0_x15", "tdma_dout1", + "tdma_din1", +}; + +static const char * const tdmc_groups[] = { + "tdmc_sclk", "tdmc_sclk_slv", "tdmc_fs", "tdmc_fs_slv", + "tdmc_din0", "tdmc_dout0", "tdmc_din1", "tdmc_dout1", + "tdmc_din2", "tdmc_dout2", "tdmc_din3", "tdmc_dout3", +}; + +static const char * const tdmb_groups[] = { + "tdmb_sclk", "tdmb_sclk_slv", "tdmb_fs", "tdmb_fs_slv", + "tdmb_din0", "tdmb_dout0", "tdmb_din1", "tdmb_dout1", + "tdmb_din2", "tdmb_dout2", "tdmb_din3", "tdmb_dout3", +}; + static struct meson_pmx_func meson_axg_periphs_functions[] = { FUNCTION(gpio_periphs), FUNCTION(emmc), @@ -870,6 +972,11 @@ static struct meson_pmx_func meson_axg_periphs_functions[] = { FUNCTION(spdif_in), FUNCTION(jtag_ee), FUNCTION(pdm), + FUNCTION(mclk_b), + FUNCTION(mclk_c), + FUNCTION(tdma), + FUNCTION(tdmb), + FUNCTION(tdmc), }; static struct meson_pmx_func meson_axg_aobus_functions[] = {