From patchwork Wed Aug 1 10:00:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 10552025 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 0C11C15E9 for ; Wed, 1 Aug 2018 10:01:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EDCEA2AD16 for ; Wed, 1 Aug 2018 10:01:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DFB932AD49; Wed, 1 Aug 2018 10:01:45 +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 884712AD16 for ; Wed, 1 Aug 2018 10:01:45 +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=bT4CluWnRp4HDQp5qJHY3hE6sqbZncMoJdr7ZhAJUF0=; b=oaiVKqr88ZObkpVEb6lUoM3DpU NVhf1iydWYT9XyjwlhyyChhiokbZHnm0hiMmdgkrIsM+fHvRyLdQQpGhGHiKJQhrXoCQVfC85LQNK 0d40Kij5Noxk1nOyimkfYsOaXUXkK8TlEThsR/TkPGPDIN0v2dr8lOFRoB1p0AlXY2Jf8KFo/Bjib 3OnRN5OixyGQpdWU1fwRsBiGcbi87XlL+IR7EKAqJgXIqlhLKgzH2hIoAOLBunhZa28MaxW+fAYtM 6FbBnTgtluG6hlbzDQPHL3V3jehcovzEWzbtyweo0KPODaCijWs/HOBrdy4D615s2bBvAGTXLTznK ohUF+nug==; 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 1fknwq-0001uE-D8; Wed, 01 Aug 2018 10:01:40 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fknvx-0000hJ-9e for linux-arm-kernel@lists.infradead.org; Wed, 01 Aug 2018 10:00:48 +0000 Received: by mail-wm0-x242.google.com with SMTP id w24-v6so4872066wmc.1 for ; Wed, 01 Aug 2018 03:00:34 -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=dtEVeGwd13XDLfsq1I81oTqBKNMFTLo0eMseg8KFGsA=; b=nV0JEEPL0DykgqL5mZKCigt2AH0nDlpFfGxu8LW7JRiL0f56JMPncRsNrxvKYkndvi uTex8VE6OFRZFrMqvH6pdT5Hyo1CUoxAIzjRRlBjndTnCblEBgSTnIE1CL/l3vEGrtb6 gSTnjowhQoArdcaW5CvZKbCnJkg3G01DJaYn6kjKvUmV6smm8oiQ+q7SWpFpyCiVGVvZ a1PHy0zYBTGchz/rqOoQw84RGyMKZHkej1HbReU4Q0bq7O17oIN+3E3jq9bu2CCUzmZ8 Oev4CVcwR0UA0IZP+0EjVv4g6jViU3tbOVrvUT3u/dofUJZHbOEl9A785XzysmjIZCnM l2Lw== 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=dtEVeGwd13XDLfsq1I81oTqBKNMFTLo0eMseg8KFGsA=; b=io9sNCxzYdewy9RHOmYt22ZJLf7fYW+He/YU3Mdu12aS7fnLEigeHAYB75r2yciz+z 431wHekUE3XeRcQZFr1oJ6YlP8J1SMPZgrbgfnpIOhH1nHidILBZa+7UL5qdwpCDFPmU R5fqet95fI/3N9WRJ7+lqBHLKnru3n9WZ9/xeDTDcHfila/2mjiz3YSylzPTr6KQJPPw WGOXLqzC4z/cL+13l0KlV1G55ExCkWSRwIrEeUIymtO1XEVKwp48C2Xe46gIgZZqDJEA Jk9h9YPfeEiJ35kEVKAbykUoJWK5NT3CVti3bGvlYS2IDZAtlSG0nWQOz5GMQVQWJu7W cqhA== X-Gm-Message-State: AOUpUlGP3rZi9ffDv1AMJ8xMDQJx+K7JnhsjLaMarLHqHDF51gKjj44b IaPcqdN5i1HmuOw6QNIZZIttaNzUWuM= X-Google-Smtp-Source: AAOMgpfcReKjTlre5Fx11+Cndx1iOJwvn0XUrTVjW5px2JE0a3rl0iMM3iGLunsF0hrv12t+BVh+uA== X-Received: by 2002:a1c:30c3:: with SMTP id w186-v6mr2111943wmw.153.1533117633292; Wed, 01 Aug 2018 03:00:33 -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.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 01 Aug 2018 03:00:32 -0700 (PDT) From: Neil Armstrong To: khilman@baylibre.com, linus.walleij@linaro.org Subject: [PATCH 4/5] meson: pinctrl-gxl: add support for TEST_N pin Date: Wed, 1 Aug 2018 12:00:22 +0200 Message-Id: <1533117623-27856-5-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_030045_346831_4F72340B X-CRM114-Status: GOOD ( 13.72 ) 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 GXL & GXM 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-gxl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/pinctrl/meson/pinctrl-meson-gxl.c b/drivers/pinctrl/meson/pinctrl-meson-gxl.c index 7dae1d7..d4dc42f 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-gxl.c +++ b/drivers/pinctrl/meson/pinctrl-meson-gxl.c @@ -15,6 +15,7 @@ #include #include "pinctrl-meson.h" #include "pinctrl-meson8-pmx.h" +#include static const struct pinctrl_pin_desc meson_gxl_periphs_pins[] = { MESON_PIN(GPIOZ_0), @@ -808,6 +809,9 @@ static struct meson_bank meson_gxl_periphs_banks[] = { static struct meson_bank meson_gxl_aobus_banks[] = { /* name first last irq pullen pull dir out in */ BANK("AO", GPIOAO_0, GPIOAO_9, 0, 9, 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_gxl_periphs_pinctrl_data = {