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: 10552035 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 4A761174A for ; Wed, 1 Aug 2018 10:05:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3B1682AA5F for ; Wed, 1 Aug 2018 10:05:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2FBF82AB47; Wed, 1 Aug 2018 10:05:23 +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 D751D2A895 for ; Wed, 1 Aug 2018 10:05:22 +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=F2z0ejSa49a8IusDB9YsMv+Ne5Mbh5KEuJWOilAWCVo=; b=acAdQ/G5rxVqIynzqntBlDi+ay /f+pZ1Mj1fwTMjNUY2UvuHM/gGhNPcYhp8V68hlsN2m5Qvre/y9Vb2ufmmM+OL1zq9Hn8OQcStKwX 9K1LjhTX9e1l+Cpv5xO8/qQnFRik6oEANo2oghr2dTKr8fbCgNLCOB/dJrNsmY9xraK+ebnDx9/H+ LX0RdV9PJCDzkbhES49j2idk1f8cdGbLGNrN5SfoLVsWqd8lf29bIUhaYvV6pPW9y7+UBrOHDMJt8 I33Jwq7ZJVCO8yc6Ecw35uD2nSBXbm8AtCo++Vw71JniW3REXnkdCiY18TVyI12lkUyec6fT7gU4T eL6/AlGw==; 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 1fko0O-0003T3-Om; Wed, 01 Aug 2018 10:05:20 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fknvw-0000hI-1z for linux-amlogic@lists.infradead.org; Wed, 01 Aug 2018 10:00:52 +0000 Received: by mail-wr1-x442.google.com with SMTP id j5-v6so19507180wrr.8 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=CtNvFHpIV+TwUSlXASGfDKmibQCnB58mrS/RL6gZ30o5WmQ5m24WAXyhF8+bXMWyce heNqjq+OxCotMhtU1YKDFQDPuB1Ip084p6/c18s3+oitzyROLfMJsw9UFW/180S3QK56 P/6ozCX8FEk9mftPq5qbQ6THzoIRyU1+iZA20OLMi13aS0dc72ZGj0EV3oyijhUn38tl ebqvEHSMJ+KiosjEG8keAiGN1qNDQfyUY0b0tpa7Pg1BuOq/42XuxLFYMrQy0yUxEI42 nLU3mto5l5o9TSeP0ULW7Y61YV+Vkf4aGTfq0oBZoF6/E5HKaF3nP67WhfyMPEpyFm9r ZIFw== X-Gm-Message-State: AOUpUlGl9EYte7LdX+TUrNsCa/pDiuzKnS7j4F4NfZdF5EUSvNt1/NJD tRgxcJUJzL3GrQRq6Ju77VAZjQ== 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_030044_208489_8ECC1AFA X-CRM114-Status: GOOD ( 11.95 ) 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-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-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=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 = {