From patchwork Thu Jun 8 13:09:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 9774637 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 E8341601C3 for ; Thu, 8 Jun 2017 13:10:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D9FDC28520 for ; Thu, 8 Jun 2017 13:10:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CEBA028534; Thu, 8 Jun 2017 13:10:31 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 5A21228520 for ; Thu, 8 Jun 2017 13:10:31 +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: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:In-Reply-To: References:List-Owner; bh=ok0Z0gKMsdorl/2nAIFZSDWY8EgrBuRTjddnxHEtXhM=; b=kFN VPRBEVJ9kv8dikwpcg/d9kHaVI8hJA91vOCTQWesNG5N5zJPrgdyxmuV0xnthl9YFk/Oh1l0dFyL/ ySv8zXGLYNGggqsouc5JbzYd5z3PpRRtm5zM1MgrEAJCvxZyHhmQ4n+D32KlT9wTTcVkbMwi4gbT7 PQsyxILw/4/wql6kln8kASvQI0sJ8DiO1QJjRWTtqqMlHOEDbOnV9C6WkM+rCirAxaVK3YTNXJi+J jwq8X68zGIMu42FoofVkErUMAgJUTbz3uavFCzmBqGGuKRJevKQzmozL1nVD4n1iE/k98vc8jN/T8 XIl92kDoEia7SEO6y9fHu3z7P0OUYog==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dIxCh-0005Yh-Ti; Thu, 08 Jun 2017 13:10:23 +0000 Received: from mail-wm0-x22b.google.com ([2a00:1450:400c:c09::22b]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dIxCZ-0004FT-Lg for linux-amlogic@lists.infradead.org; Thu, 08 Jun 2017 13:10:21 +0000 Received: by mail-wm0-x22b.google.com with SMTP id d73so30717819wma.0 for ; Thu, 08 Jun 2017 06:09:55 -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=CmQ5Tb/r142tS/El3t0Kya1Ds0j6JXN8+Qt6G8gFYho=; b=pKZ7x6LvF9uQhhoA+PTwnwKswJxFHRYZas48wXRlooiQ29O8Wvo6f17f48StiA2mUR 5B0c3iUqTuHfmYSEKnvrtqNr+QJ8FUsLERmgtQHyjr1YR2H5S45vbTKNKRxQYcI/GfAz GMXB4m1xl5i5I27Q3V8RPjpgTkfMa91EZvm8fDxA129R/p2emtrr1wfddDKGGoJPFKAU W1k/B0Y5AC3agQk+bsx8JhgRRy69xonrs9jQfg5HhKoB3ADEevw644j2KUAHS6QlX286 a6qTCaQAgXd7Tzvc0+5vKCiUoW+98fAArjIKBOiajh4stMJ8fAE83in2iJ3UaXJ6/jrn iXyA== 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=CmQ5Tb/r142tS/El3t0Kya1Ds0j6JXN8+Qt6G8gFYho=; b=GAAS4K06XKzBT2KhJOAF7//3TJHGJWtxSItHLb4fsAKTCJNZko0P1g5sna7/2cbN/L 1IfVgBEpwQCd6vP3ZCRlQQk3eNeHSTWRGP9yYqWjBhldI6sYPlE8rCydc4vmYWoXuMXL fkKHOlGk4T8PqsUDUArci79Sm0sBJ/bQ5oL8+pRvN3FNJqXKCdQ3SI1m7IuqKcNLShog pV0xR0a1/4fCH7HYf0nfwSCBTEbxHyUko8ALWChFgbIB+q5PWZPgF9lTps/MGxxjJtMc lFbPVpQeZWdK+f/mbBwxDJooqzuryiJ/wOKoVrqZyF/RW9XMZ4B6lxjxU8VIq5QTtTl3 r1Qg== X-Gm-Message-State: AODbwcBoVS58Hp0QwV3E/FCm80uJIXlm5W03OEfhBd4HMzpsa/WZmNJW mAGqXkmYjdTh5AFL X-Received: by 10.28.138.73 with SMTP id m70mr3200416wmd.99.1496927393600; Thu, 08 Jun 2017 06:09:53 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id i64sm6926941wmd.33.2017.06.08.06.09.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Jun 2017 06:09:53 -0700 (PDT) From: Jerome Brunet To: Linus Walleij , Kevin Hilman Subject: [PATCH] pinctrl: meson-gxl: add tsin_a pins Date: Thu, 8 Jun 2017 15:09:48 +0200 Message-Id: <20170608130948.16426-1-jbrunet@baylibre.com> X-Mailer: git-send-email 2.9.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170608_061015_873281_F35C0EF9 X-CRM114-Status: GOOD ( 10.36 ) 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: Carlo Caione , linux-gpio@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, Jerome Brunet 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 Add Tsin A pins to bank DV and X. We don't have a driver for the tsin yet but since the tsin A pinmux is enabled by default at boot time, declaring this pinmux is required to properly operate on GPIOX. Without this change, GPIOX 8, 9, 10 and 11 can't be driven as GPIO output as the tsin A seems to have priority. Signed-off-by: Jerome Brunet Acked-by: Neil Armstrong --- drivers/pinctrl/meson/pinctrl-meson-gxl.c | 36 +++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/drivers/pinctrl/meson/pinctrl-meson-gxl.c b/drivers/pinctrl/meson/pinctrl-meson-gxl.c index 190f50c6a9ba..2624b0d4d3c4 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-gxl.c +++ b/drivers/pinctrl/meson/pinctrl-meson-gxl.c @@ -243,6 +243,25 @@ static const unsigned int spdif_out_h_pins[] = { PIN(GPIOH_4, EE_OFF) }; static const unsigned int eth_link_led_pins[] = { PIN(GPIOZ_14, EE_OFF) }; static const unsigned int eth_act_led_pins[] = { PIN(GPIOZ_15, EE_OFF) }; +static const unsigned int tsin_a_d0_pins[] = { PIN(GPIODV_0, EE_OFF) }; +static const unsigned int tsin_a_d0_x_pins[] = { PIN(GPIOX_10, EE_OFF) }; +static const unsigned int tsin_a_clk_pins[] = { PIN(GPIODV_8, EE_OFF) }; +static const unsigned int tsin_a_clk_x_pins[] = { PIN(GPIOX_11, EE_OFF) }; +static const unsigned int tsin_a_sop_pins[] = { PIN(GPIODV_9, EE_OFF) }; +static const unsigned int tsin_a_sop_x_pins[] = { PIN(GPIOX_8, EE_OFF) }; +static const unsigned int tsin_a_d_valid_pins[] = { PIN(GPIODV_10, EE_OFF) }; +static const unsigned int tsin_a_d_valid_x_pins[] = { PIN(GPIOX_9, EE_OFF) }; +static const unsigned int tsin_a_fail_pins[] = { PIN(GPIODV_11, EE_OFF) }; +static const unsigned int tsin_a_dp_pins[] = { + PIN(GPIODV_1, EE_OFF), + PIN(GPIODV_2, EE_OFF), + PIN(GPIODV_3, EE_OFF), + PIN(GPIODV_4, EE_OFF), + PIN(GPIODV_5, EE_OFF), + PIN(GPIODV_6, EE_OFF), + PIN(GPIODV_7, EE_OFF), +}; + static const struct pinctrl_pin_desc meson_gxl_aobus_pins[] = { MESON_PIN(GPIOAO_0, 0), MESON_PIN(GPIOAO_1, 0), @@ -421,6 +440,10 @@ static struct meson_pmx_group meson_gxl_periphs_groups[] = { GROUP(spi_miso, 5, 2), GROUP(spi_ss0, 5, 1), GROUP(spi_sclk, 5, 0), + GROUP(tsin_a_sop_x, 6, 3), + GROUP(tsin_a_d_valid_x, 6, 2), + GROUP(tsin_a_d0_x, 6, 1), + GROUP(tsin_a_clk_x, 6, 0), /* Bank Z */ GROUP(eth_mdio, 4, 23), @@ -469,6 +492,12 @@ static struct meson_pmx_group meson_gxl_periphs_groups[] = { GROUP(i2c_sck_c, 1, 10), GROUP(pwm_b, 2, 11), GROUP(pwm_d, 2, 12), + GROUP(tsin_a_d0, 2, 4), + GROUP(tsin_a_dp, 2, 3), + GROUP(tsin_a_clk, 2, 2), + GROUP(tsin_a_sop, 2, 1), + GROUP(tsin_a_d_valid, 2, 0), + GROUP(tsin_a_fail, 1, 31), /* Bank BOOT */ GROUP(emmc_nand_d07, 7, 31), @@ -675,6 +704,12 @@ static const char * const eth_led_groups[] = { "eth_link_led", "eth_act_led", }; +static const char * const tsin_a_groups[] = { + "tsin_a_clk", "tsin_a_clk_x", "tsin_a_sop", "tsin_a_sop_x", + "tsin_a_d_valid", "tsin_a_d_valid_x", "tsin_a_d0", "tsin_a_d0_x", + "tsin_a_dp", "tsin_a_fail", +}; + static const char * const gpio_aobus_groups[] = { "GPIOAO_0", "GPIOAO_1", "GPIOAO_2", "GPIOAO_3", "GPIOAO_4", "GPIOAO_5", "GPIOAO_6", "GPIOAO_7", "GPIOAO_8", "GPIOAO_9", @@ -747,6 +782,7 @@ static struct meson_pmx_func meson_gxl_periphs_functions[] = { FUNCTION(i2s_out), FUNCTION(spdif_out), FUNCTION(eth_led), + FUNCTION(tsin_a), }; static struct meson_pmx_func meson_gxl_aobus_functions[] = {