From patchwork Wed May 24 08:20:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 9745319 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 EBDA5601C2 for ; Wed, 24 May 2017 08:22:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DC34128919 for ; Wed, 24 May 2017 08:22:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D110428926; Wed, 24 May 2017 08:22:11 +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=0.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,SUSPICIOUS_RECIPS autolearn=no 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 E3F6928919 for ; Wed, 24 May 2017 08:22:10 +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:References: In-Reply-To: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:List-Owner; bh=b2+Kc+onPxY9MhhuKe9KI3yrKAr8lJUNqBqfJn1DEiM=; b=Gc2Tsx1Ci0/sBNX8HxaX3cBCpL twCzamqxBjc4aiKn8BKLKnbOrME4mvF0FpxmLZ3IsjCrNktOOuVC7qCvZXop0ypQ+9VvdouLLBEgz a7OJGlnKUy/9MQ92tlqxc0PvuP8gT3p8Y31TM9+QIA6Vr8Eu9n8QOXvm64TEM4eJcjAAl7uVmyR26 sZKZ6aB1sGrL3uE69DB2QxbLx6eZqd1xX9duaT3+VUDAxYkoD5Q1hwWqKSjKTt7vIvKcbaBWM0TxM AWkBRjVIxIY5gRktpz1jh7wYahWzyDFjPbrSqupfmS89MeJePls7S03OELvJUBDMzJdI4PQV6mkkt gyCtRj8w==; 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 1dDRYG-0003iu-VW; Wed, 24 May 2017 08:21:52 +0000 Received: from merlin.infradead.org ([2001:4978:20e::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dDRXf-0003C0-RX for linux-amlogic@bombadil.infradead.org; Wed, 24 May 2017 08:21:15 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=KhKfVE6X8MvMLz5Uce+ZKqXxWN5J+e6F881lpk6Z8rY=; b=of/CCSa+Dl/1gxpPTfZ8SJCiD NtEq1R+y7kIwTbDv3f4MuqqecUKJZeZk5CBPKRXevJrA8kwz2HCazQc5IBLKrvhhV9Bt3Ypfieou2 O3D9hkyG8EWHP9FCw4WhqzBX1E0EGznZiA7O/uDOXrwIF6vzlXz/koxdV/lxAev4FQSe90bVF0E1U qUozTeyMg/Pa0rwLQHr7UVThfnsmAvHZVmSDlKhlmq23nNhish+rrcmHtlAj42kYjwubk4sKCrd4X 362rtix+bTMFlV9TUr4BmlxPcA3BukrJRPt00X/20fIyfydpPsqoKZlNF884VdMZNcrH94QMgtWP8 EsCVMrPMw==; Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dDRXd-0005eD-Jr for linux-amlogic@lists.infradead.org; Wed, 24 May 2017 08:21:15 +0000 Received: by mail-wm0-x235.google.com with SMTP id d127so58122399wmf.0 for ; Wed, 24 May 2017 01:20:53 -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=KhKfVE6X8MvMLz5Uce+ZKqXxWN5J+e6F881lpk6Z8rY=; b=1Jv92s2qJ2xMCY074JBUMSsWfuXsgRwOQas5Js5Ip9O06M3Dhn6gWGaaPFNENVKma7 0mW/IebVvuQef6AZzbVkiXN2Ls+h12JMEkuZBnelafeqzxXLBt1Z5VXDS/XwPcqrurUZ eMA7X2dCt7Ti7b8PRRmsEcO8i+DMyr1dqUPxkhQ8D8fQxhyc40p/edmIpKo218YxT1iV VnSgtSzBIWmvpMCFUnk2Ag94kjF7J9DbUpAfvUUbkYZ3vmNFndQn8FRYol4b7y1mQdEy nxLsaJbd+oDjk1cftv7qwiSxNTGlH7o1ebX8RTBxNYj+ZlGEQzbEfzxDlERFy5FU7Ois 3kZQ== 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=KhKfVE6X8MvMLz5Uce+ZKqXxWN5J+e6F881lpk6Z8rY=; b=hcsRXE9jqNNYhp9hIdk3uwfW0/TWXPeSebQjU4shRghD70H1Qrsf465Ltrt+i5cK1Q P++gziotSC30gJgRuh8MoVJSOVniF9lhkn+04En5yn3+O2R79OWb/p2tvl6HB2NrZfvJ FLenxri9KZrirenrqbnKaxEgB1U34mws+XkRNjqbn7Pfv8ef0JQJLsgvYNabyKA3K6UV Hp69P2koIi9lMpuF617oyQolVNVXhTC+Y4ZXoUx+weETtyP55OkcufHH870L4rvzSpIa WYKvZcqjuAdnoloUOnlLSxtd6MMWIrLBepqOsl58wYwsJp9r7pF8ujQ+WczfX7bwkU55 BtPQ== X-Gm-Message-State: AODbwcAoRTZbKHrTtEt52qQyfEnRiVlAtDukiInEktpjZwXPt1MucWUo 4RCINgIxFctVIQAE X-Received: by 10.223.138.237 with SMTP id z42mr21128088wrz.66.1495614051148; Wed, 24 May 2017 01:20:51 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id 185sm3645614wmp.1.2017.05.24.01.20.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 24 May 2017 01:20:50 -0700 (PDT) From: Neil Armstrong To: linus.walleij@linaro.org Subject: [PATCH 3/5] pinctrl: meson-gxbb: Add CEC pins Date: Wed, 24 May 2017 10:20:40 +0200 Message-Id: <1495614042-2676-4-git-send-email-narmstrong@baylibre.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1495614042-2676-1-git-send-email-narmstrong@baylibre.com> References: <1495614042-2676-1-git-send-email-narmstrong@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170524_042113_871787_AF9E6B62 X-CRM114-Status: GOOD ( 10.02 ) 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: linux-gpio@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong 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 the AO and EE domain CEC pins for the Amlogic Meson GXBB SoCs. Signed-off-by: Neil Armstrong Reviewed-by: Jerome Brunet --- drivers/pinctrl/meson/pinctrl-meson-gxbb.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/pinctrl/meson/pinctrl-meson-gxbb.c b/drivers/pinctrl/meson/pinctrl-meson-gxbb.c index 3ccb0f4f..b44314a 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-gxbb.c +++ b/drivers/pinctrl/meson/pinctrl-meson-gxbb.c @@ -295,6 +295,9 @@ 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 const unsigned int ao_cec_pins[] = { PIN(GPIOAO_12, 0) }; +static const unsigned int ee_cec_pins[] = { PIN(GPIOAO_12, 0) }; + static struct meson_pmx_group meson_gxbb_periphs_groups[] = { GPIO_GROUP(GPIOZ_0, EE_OFF), GPIO_GROUP(GPIOZ_1, EE_OFF), @@ -560,6 +563,8 @@ GROUP(i2s_out_ch45_ao, 1, 1), GROUP(spdif_out_ao_6, 0, 16), GROUP(spdif_out_ao_13, 0, 4), + GROUP(ao_cec, 0, 15), + GROUP(ee_cec, 0, 14), }; static const char * const gpio_periphs_groups[] = { @@ -752,6 +757,10 @@ "spdif_out_ao_6", "spdif_out_ao_13", }; +static const char * const cec_ao_groups[] = { + "ao_cec", "ee_cec", +}; + static struct meson_pmx_func meson_gxbb_periphs_functions[] = { FUNCTION(gpio_periphs), FUNCTION(emmc), @@ -793,6 +802,7 @@ FUNCTION(pwm_ao_b), FUNCTION(i2s_out_ao), FUNCTION(spdif_out_ao), + FUNCTION(cec_ao), }; static struct meson_bank meson_gxbb_periphs_banks[] = {