From patchwork Sat Aug 20 09:54:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 9291671 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 449E6600CB for ; Sat, 20 Aug 2016 09:55:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 570FF29161 for ; Sat, 20 Aug 2016 09:55:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4BA4C2916D; Sat, 20 Aug 2016 09:55:25 +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=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 05E0829161 for ; Sat, 20 Aug 2016 09:55:25 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bb2zl-0004pt-QQ; Sat, 20 Aug 2016 09:55:17 +0000 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bb2zO-0003xU-Px; Sat, 20 Aug 2016 09:54:56 +0000 Received: by mail-wm0-x244.google.com with SMTP id i5so6280361wmg.2; Sat, 20 Aug 2016 02:54:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=epYG4k248rR+k1YgDx9d4EFvhEwRaMWREg/0qqaE0sM=; b=QdsHXt5d+xxqs1fDIOK6/29coru7x7/JcpDdGp8FZ/bI7nsOozrKJu8VVjGUgpd5VJ 1rqGanUxS1i0c2Cdstg33aAqCbmd3zEBb4hv6JTkzVLA6HzK1JWIgLPpNA4jmnVmwEXP +LfJKVNTLzcykG8CibcNvLvV8K0NfI6qLTCEAP4dnJMwOW52CYCH/A2Xnp0T0XIjLdQZ 8ogMpEJk5cnjnvxuqBoWqMUAj2wgcovXkiVrjdzuyxQG6BdC4mZNE6YLQt5SMAuEnvRu E/+YaywD3axlsUPN1qJONbGhpeGzMQFTrvtVsm1XC02tBENAF0Ka3CkMyiQshOlNlrGy aSmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=epYG4k248rR+k1YgDx9d4EFvhEwRaMWREg/0qqaE0sM=; b=XAHkIy6kHilGkcns8lS+k6o+l6U/p3kQsbJXrfdtJhXTCZv0sNnmtO/tQtrCyJtRnB FRMxC/FCsi06ItZ5DjXZmEohWXdCW8H1FZkjQ3EU/KlBnJ/U31bghOhBxHpxDVDLuqOl Ye32y3XWSGu4BlLO54dynPvwK5UM09JqqiE10j28MSzL7lmGjmDJNf7A6St9BKno/97b TOq+nNXEDH94YRaTGLMnJQGQbruwCrKx1DOUQC6Rq7FqiFgMiR8f/xIYMsGdPnFUwN6R cOCxAlJFeuXWpEdgZ4i1QQzqRECYY8l9cBa2PK8p8sjyTRf1Jn34NO89FpyRdnacKxLK K2YA== X-Gm-Message-State: AEkoouuPxstiYv/qH0bnusNw0X3fcTmsMjrN+AsszPxK1kREwMJEjuU1AnnAUT7xeEiXow== X-Received: by 10.194.54.37 with SMTP id g5mr11423509wjp.65.1471686872918; Sat, 20 Aug 2016 02:54:32 -0700 (PDT) Received: from blackbox.darklights.net (p5DE388BA.dip0.t-ipconnect.de. [93.227.136.186]) by smtp.googlemail.com with ESMTPSA id 142sm8478777wmh.12.2016.08.20.02.54.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 20 Aug 2016 02:54:32 -0700 (PDT) From: Martin Blumenstingl To: linux-media@vger.kernel.org, linux-gpio@vger.kernel.org, linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, narmstrong@baylibre.com, linus.walleij@linaro.org, khilman@baylibre.com, carlo@caione.org Subject: [PATCH v5 1/6] pinctrl: amlogic: gxbb: add the IR remote input pin Date: Sat, 20 Aug 2016 11:54:19 +0200 Message-Id: <20160820095424.636-2-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20160820095424.636-1-martin.blumenstingl@googlemail.com> References: <20160819215547.20063-1-martin.blumenstingl@googlemail.com> <20160820095424.636-1-martin.blumenstingl@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160820_025455_117269_8EEA9641 X-CRM114-Status: UNSURE ( 8.60 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, Martin Blumenstingl , catalin.marinas@arm.com, will.deacon@arm.com, b.galvani@gmail.com, robh+dt@kernel.org, mchehab@kernel.org, linux-arm-kernel@lists.infradead.org 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 This adds the IR remote receiver to the AO domain devices. Signed-off-by: Martin Blumenstingl Reviewed-by: Kevin Hilman --- drivers/pinctrl/meson/pinctrl-meson-gxbb.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/pinctrl/meson/pinctrl-meson-gxbb.c b/drivers/pinctrl/meson/pinctrl-meson-gxbb.c index cb4d6ad..ff900d1 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-gxbb.c +++ b/drivers/pinctrl/meson/pinctrl-meson-gxbb.c @@ -225,6 +225,8 @@ static const unsigned int i2c_sda_ao_pins[] = {PIN(GPIOAO_5, 0) }; static const unsigned int i2c_slave_sck_ao_pins[] = {PIN(GPIOAO_4, 0) }; static const unsigned int i2c_slave_sda_ao_pins[] = {PIN(GPIOAO_5, 0) }; +static const unsigned int remote_input_ao_pins[] = {PIN(GPIOAO_7, 0) }; + static struct meson_pmx_group meson_gxbb_periphs_groups[] = { GPIO_GROUP(GPIOZ_0, EE_OFF), GPIO_GROUP(GPIOZ_1, EE_OFF), @@ -432,6 +434,7 @@ static struct meson_pmx_group meson_gxbb_aobus_groups[] = { GROUP(i2c_sda_ao, 0, 5), GROUP(i2c_slave_sck_ao, 0, 2), GROUP(i2c_slave_sda_ao, 0, 1), + GROUP(remote_input_ao, 0, 0), }; static const char * const gpio_periphs_groups[] = { @@ -521,6 +524,10 @@ static const char * const i2c_slave_ao_groups[] = { "i2c_slave_sdk_ao", "i2c_slave_sda_ao", }; +static const char * const remote_input_ao_groups[] = { + "remote_input_ao", +}; + static struct meson_pmx_func meson_gxbb_periphs_functions[] = { FUNCTION(gpio_periphs), FUNCTION(emmc), @@ -537,6 +544,7 @@ static struct meson_pmx_func meson_gxbb_aobus_functions[] = { FUNCTION(uart_ao_b), FUNCTION(i2c_ao), FUNCTION(i2c_slave_ao), + FUNCTION(remote_input_ao), }; static struct meson_bank meson_gxbb_periphs_banks[] = {