From patchwork Sun Mar 26 17:19:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 743566 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3vrmjh1d3mz9s7Z for ; Mon, 27 Mar 2017 06:02:00 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="POBNBuTo"; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751577AbdCZRTg (ORCPT ); Sun, 26 Mar 2017 13:19:36 -0400 Received: from mail-wr0-f179.google.com ([209.85.128.179]:35519 "EHLO mail-wr0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751533AbdCZRTe (ORCPT ); Sun, 26 Mar 2017 13:19:34 -0400 Received: by mail-wr0-f179.google.com with SMTP id u1so25434749wra.2 for ; Sun, 26 Mar 2017 10:19:33 -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:in-reply-to:references; bh=lg2Yb8UbH7qz0TtLFcMU2PbZlbgPSrxgceeFyrfYeoI=; b=POBNBuToxpj2TweHTsygKsQSKLVYFG3zcZZjQSxqkCE9jOWbYORNvUg0/pPJnhpP/6 90G7xT1HTeXFouQK6gk8iyBE514hcVSnkp+309HhrMb6Ef5p3VjEi/mPyOR4EyIfqnOv 1CqRNTUuFoSKG63N1SXSdFnQnAp1l4X8Gl9JQYE67di/UEBqwgEXE4kCD1fIlpEZabBG lNII1AB96sMWCYiIRek29WY4EfeGP4Bxkp/L6CYiN4smg3lSLUDMcOu4mPl5Xwv8dFAN wDq+ilBKY15t7vR1nj92FCl9sOPlfr50wtnj76jkoxsz6wJ+1Cz+YW6YbOK+c/sCvBNJ gitw== 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=lg2Yb8UbH7qz0TtLFcMU2PbZlbgPSrxgceeFyrfYeoI=; b=bdd2OXYaDNKrAq6/R90/w3TIBoOb1Qf51oS4C+YO3Zloyf9IUb4oX80cI3MuJO3PNv bvLu/CmZSRMI0023W3uNkU7tUARNevrJXlYrG+du6k18FT4xzsHj7WjwxnG14zTLmq4f kl4BJ3889DX+B8MqTBgLYqYuzvgpu4f3OTq91wlOdhNVKvVef5mBnLkMj65dPeCM++2A jkU+49VtlmG8/tTrfr+iZry34oz9IA4pBNiGam3Cu7qtspPBNuefoK16MU+lmaz47SIY p3qkm+YNoAI1P7Hf6xr+A0mCmNhiacvrjE0zFlPCZGXmUbVXSItz5Js6E9OOv9CgUfU3 Lx7w== X-Gm-Message-State: AFeK/H0dnnSNtUAEOgPrlUJNrCkuks3jqC/ccaf5SM8dl2voeQl2yDceGsM4o4oRlmWJJn/2 X-Received: by 10.28.156.140 with SMTP id f134mr5887529wme.40.1490548772571; Sun, 26 Mar 2017 10:19:32 -0700 (PDT) Received: from localhost.localdomain (uluru.liltaz.com. [163.172.81.188]) by smtp.googlemail.com with ESMTPSA id t79sm10531214wmd.29.2017.03.26.10.19.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 26 Mar 2017 10:19:31 -0700 (PDT) From: Jerome Brunet To: Linus Walleij , Carlo Caione , Kevin Hilman Cc: Jerome Brunet , linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/8] pinctrl: meson: gxbb: add spdif output pins Date: Sun, 26 Mar 2017 19:19:17 +0200 Message-Id: <20170326171923.19269-3-jbrunet@baylibre.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170326171923.19269-1-jbrunet@baylibre.com> References: <20170326171923.19269-1-jbrunet@baylibre.com> Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Add EE and AO domains pins for the spdif output. Acked-by: Kevin Hilman Signed-off-by: Jerome Brunet --- drivers/pinctrl/meson/pinctrl-meson-gxbb.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/drivers/pinctrl/meson/pinctrl-meson-gxbb.c b/drivers/pinctrl/meson/pinctrl-meson-gxbb.c index b9772a124a82..9b00be15d258 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-gxbb.c +++ b/drivers/pinctrl/meson/pinctrl-meson-gxbb.c @@ -240,6 +240,8 @@ static const unsigned int i2s_out_ch23_y_pins[] = { PIN(GPIOY_8, EE_OFF) }; static const unsigned int i2s_out_ch45_y_pins[] = { PIN(GPIOY_9, EE_OFF) }; static const unsigned int i2s_out_ch67_y_pins[] = { PIN(GPIOY_10, EE_OFF) }; +static const unsigned int spdif_out_y_pins[] = { PIN(GPIOY_12, EE_OFF) }; + static const struct pinctrl_pin_desc meson_gxbb_aobus_pins[] = { MESON_PIN(GPIOAO_0, 0), MESON_PIN(GPIOAO_1, 0), @@ -285,6 +287,9 @@ static const unsigned int i2s_out_ch01_ao_pins[] = { PIN(GPIOAO_11, 0) }; static const unsigned int i2s_out_ch23_ao_pins[] = { PIN(GPIOAO_12, 0) }; static const unsigned int i2s_out_ch45_ao_pins[] = { PIN(GPIOAO_13, 0) }; +static const unsigned int spdif_out_ao_6_pins[] = { PIN(GPIOAO_6, 0) }; +static const unsigned int spdif_out_ao_13_pins[] = { PIN(GPIOAO_13, 0) }; + static struct meson_pmx_group meson_gxbb_periphs_groups[] = { GPIO_GROUP(GPIOZ_0, EE_OFF), GPIO_GROUP(GPIOZ_1, EE_OFF), @@ -440,6 +445,7 @@ static struct meson_pmx_group meson_gxbb_periphs_groups[] = { GROUP(i2s_out_ch23_y, 1, 5), GROUP(i2s_out_ch45_y, 1, 6), GROUP(i2s_out_ch67_y, 1, 7), + GROUP(spdif_out_y, 1, 9), /* Bank Z */ GROUP(eth_mdio, 6, 1), @@ -543,6 +549,8 @@ static struct meson_pmx_group meson_gxbb_aobus_groups[] = { GROUP(i2s_out_ch01_ao, 0, 27), GROUP(i2s_out_ch23_ao, 1, 0), GROUP(i2s_out_ch45_ao, 1, 1), + GROUP(spdif_out_ao_6, 0, 16), + GROUP(spdif_out_ao_13, 0, 4), }; static const char * const gpio_periphs_groups[] = { @@ -676,6 +684,10 @@ static const char * const i2s_out_groups[] = { "i2s_out_ch23_y", "i2s_out_ch45_y", "i2s_out_ch67_y", }; +static const char * const spdif_out_groups[] = { + "spdif_out_y", +}; + 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", @@ -723,6 +735,10 @@ static const char * const i2s_out_ao_groups[] = { "i2s_out_ch01_ao", "i2s_out_ch23_ao", "i2s_out_ch45_ao", }; +static const char * const spdif_out_ao_groups[] = { + "spdif_out_ao_6", "spdif_out_ao_13", +}; + static struct meson_pmx_func meson_gxbb_periphs_functions[] = { FUNCTION(gpio_periphs), FUNCTION(emmc), @@ -747,6 +763,7 @@ static struct meson_pmx_func meson_gxbb_periphs_functions[] = { FUNCTION(hdmi_hpd), FUNCTION(hdmi_i2c), FUNCTION(i2s_out), + FUNCTION(spdif_out), }; static struct meson_pmx_func meson_gxbb_aobus_functions[] = { @@ -761,6 +778,7 @@ static struct meson_pmx_func meson_gxbb_aobus_functions[] = { FUNCTION(pwm_ao_a_12), FUNCTION(pwm_ao_b), FUNCTION(i2s_out_ao), + FUNCTION(spdif_out_ao), }; static struct meson_bank meson_gxbb_periphs_banks[] = {