From patchwork Wed Aug 1 10:00:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 10552023 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 35575174A for ; Wed, 1 Aug 2018 10:01:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 23A9C2AD16 for ; Wed, 1 Aug 2018 10:01:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 17A7F2AD49; Wed, 1 Aug 2018 10:01:28 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 A3A312AD16 for ; Wed, 1 Aug 2018 10:01:27 +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=n19SnBEEhKnO+eZW0MFrCgnZCRD8OOVGMM+4qi1JuXg=; b=aXljJVrXv4NKNMIgf7OmYi+78n S8Q/By1Wax/R1ssfgXe/1g1fNonIyHL4433j7HTWyuuUWd/1aQN77113cDvwDKKuZY3z9tmZ4/ngV 780kJvixGTVmFtDn+Fm7/mfqOyTpLRrbG1S9EXPlmgJf2Ddi4OLbP6Fkq3Uud0prkL7q6CkgzjSvy tWKgpy7ebZ4WTrscmkCudV9XaM5ywmytDH00hrweVBVgm0U0lRpyLtxGlmCn//MzXkb/64SLPdm5/ q6Gur+3U97/taWYX2jeybTlMI0NyJvDpuZM1l4kRDD3OwLLxFqU/dWDHJH3lal0OK1pBdLZcT00xs rLFm7pUQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fknwY-0001ZD-L5; Wed, 01 Aug 2018 10:01:22 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fknvs-0000hH-1x for linux-arm-kernel@lists.infradead.org; Wed, 01 Aug 2018 10:00:47 +0000 Received: by mail-wr1-x441.google.com with SMTP id h10-v6so19482048wre.6 for ; Wed, 01 Aug 2018 03:00: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=dKCpiYXulo0kPH2043KgLwLQAz9rpNhmMFF0a3/0vxA=; b=C6xmq3WhHQdiM/pb6xQSID6lTPHX49MMpGMFrg4OaglwO5EzDG6ysLwG0cmRZfu/NO jq4GQkI7+WTGJcX2agiumEB7Z1pR2tqZCvARViS/0HHBTYlHv56Za+ROi/VOU6JO8pwN B/xGTSv+ap5dPD4nntdoT1QxX9U+T7eZWKfJZZFLerhGrRZxx/Z9jnO32CLTfr9NyAQo +TY9TX+McmbXgHeOGAsk10QG7CUybhhBuMJrhoU88gQ8Jmc3HgKMEMiH7o6dfxeEPHcm gTF5N0iv1citaSHVSGDArxGtNmWMxCHMt7apd322pcsEN5tq5QB8aeB/KydeH8qdEKCW z6bw== 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=dKCpiYXulo0kPH2043KgLwLQAz9rpNhmMFF0a3/0vxA=; b=QTNOuGn/vliD69ArXa12DIzec7IhDNpZ5A0/LCJul6avo1TDkH8C1rE+8ur4fF79Ud 3rRSrzOaDW7Upb3ntC/A0mPovlVHvN126fm/KXyFsiXi/HQNfs025S6xOa3K9gPTkc9W NrVEHW5BcwuZGwhN/akAQmMLeUQ7UijA3vIO4ohS97kCpsrrp5y06Fle7u1ctfB4scKZ lPvmFa8NsqqednNt9r2U8Drp/HpgMkoCa04t90LqvHjyjoGE2WYEUTGGw/JEJfJW68Bb MiID4qBNKmA2hYPabJWA4E07X4ypgxXIpzKGo7pW5pxYkDAqK8G3pqcHNglsIS+jcLXx lB3A== X-Gm-Message-State: AOUpUlEhqjuAAig3lqvqKrNvwzAaohxuqffwZJnsJNwQts/6hGXdnK2Y lTjeZO2GCs1+QyppCzugCWn8Sw== X-Google-Smtp-Source: AAOMgpf8GNNIsy7ZBIII7Bo1J50fNFQZ/k96scoDbLX5JXxKv+nrrSNmD7msG9HtB1ISiLFuMlLr/A== X-Received: by 2002:adf:9546:: with SMTP id 64-v6mr23008055wrs.257.1533117632093; Wed, 01 Aug 2018 03:00:32 -0700 (PDT) Received: from bender.baylibre.local ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id u7-v6sm6317067wmd.46.2018.08.01.03.00.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 01 Aug 2018 03:00:31 -0700 (PDT) From: Neil Armstrong To: khilman@baylibre.com, linus.walleij@linaro.org Subject: [PATCH 3/5] meson: pinctrl-gxbb: add support for TEST_N pin Date: Wed, 1 Aug 2018 12:00:21 +0200 Message-Id: <1533117623-27856-4-git-send-email-narmstrong@baylibre.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1533117623-27856-1-git-send-email-narmstrong@baylibre.com> References: <1533117623-27856-1-git-send-email-narmstrong@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180801_030040_110394_7BAE8913 X-CRM114-Status: GOOD ( 13.62 ) X-BeenThere: linux-arm-kernel@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-amlogic@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The Amlogic Meson GXBB SoCs needs a Secure Monitor call to set the TEST_N direction, add a special bank to support this pin. Signed-off-by: Neil Armstrong --- drivers/pinctrl/meson/pinctrl-meson-gxbb.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/pinctrl/meson/pinctrl-meson-gxbb.c b/drivers/pinctrl/meson/pinctrl-meson-gxbb.c index 2c97a2e0..c0954be 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-gxbb.c +++ b/drivers/pinctrl/meson/pinctrl-meson-gxbb.c @@ -15,6 +15,7 @@ #include #include "pinctrl-meson.h" #include "pinctrl-meson8-pmx.h" +#include static const struct pinctrl_pin_desc meson_gxbb_periphs_pins[] = { MESON_PIN(GPIOZ_0), @@ -823,6 +824,9 @@ static struct meson_bank meson_gxbb_periphs_banks[] = { static struct meson_bank meson_gxbb_aobus_banks[] = { /* name first last irq pullen pull dir out in */ BANK("AO", GPIOAO_0, GPIOAO_13, 0, 13, 0, 0, 0, 16, 0, 0, 0, 16, 1, 0), + /* This PIN Direction must be set using a SMC call, so dir reg offset is the sm call */ + BANK_SMC("TEST", GPIO_TEST_N, GPIO_TEST_N, + -1, -1, 0, 30, 0, 14, SM_TEST_N_DIR, 1, 0, 31, 1, 31), }; static struct meson_pinctrl_data meson_gxbb_periphs_pinctrl_data = {