From patchwork Wed Aug 1 10:00:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 10552021 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 D028615E9 for ; Wed, 1 Aug 2018 10:01:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BE3892AD16 for ; Wed, 1 Aug 2018 10:01:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B19102AD49; Wed, 1 Aug 2018 10:01:16 +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 576722AD16 for ; Wed, 1 Aug 2018 10:01:16 +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=Z0j9cfhSn4+3RxcFVWK5qntDGUcDW3Z7wTTaL9WpyDM=; b=EgpTvRPVQPNl25/9To+hOBwQUL JqrPP4aoq1n39c/WEgqf96YhrdYOIhpI85tA7ggVjsjFqqm1TKnRMs9o0EWPdwKTNVl5cSRWoulOL rMV8ufvuH1EmYcOZYcnYZgnPFvFSghyVTKfnETqTwlPNsS20UlqnaiXu3P1eQKXfc8emsLU7k8DnW IIefpImTB6gFKcku3CY1E5URtIeKo8xPTrrwpKGOA6SaXNls7vT43vXYuSavZRgEtvWReWIDHf+Ar uWRgW7Ju3V2e96hsdzxtXahpEOp1W0EOGsDBkNDXzGkbcnhjrW+gi4dMFds1uD/MDjYm8WjSwHEmx myXCx1kw==; 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 1fknwL-0001He-Qb; Wed, 01 Aug 2018 10:01:09 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fknvs-0000hU-1Q for linux-arm-kernel@lists.infradead.org; Wed, 01 Aug 2018 10:00:47 +0000 Received: by mail-wr1-x443.google.com with SMTP id r16-v6so19487087wrt.11 for ; Wed, 01 Aug 2018 03:00:35 -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=uW+eatmHxK9liMsreOsDXjGltRq9gJbcnas+7BZDc6o=; b=oz32aOznlxpzo6M5L34E9qUE1uNRcQjybrYQIVlFbPfku+aH8xDYNCW34LT/p8Rh12 ykWgszxnU1sPFrUjH2eBViAivPT69vEZRns+7kBh/DAaLPWFd7yGrP9BwxaFnuImeNvg u0O67ECOy7tjVtS+HWKFpP/1opjNeGayORAn6DqD5TDb5sEPkthYSXPiKyP03JckS224 YRSNbmYOFpPd+fhsmh7id0CJRIvia7Vscy8pnd/2AZvYp4qibX6MNGrrb9jD+oC5K0al 8gNV/eYi6++m3I/00Gy/nVacLbpA1FtsabZ5fAmNAjXTV/8UgQNDrS1/nXK85OU+olWh zDuA== 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=uW+eatmHxK9liMsreOsDXjGltRq9gJbcnas+7BZDc6o=; b=Nth3sILoLFiYM/lT3APbLafuB4/acSt9JEzrnKnvgdff/mEb32Rlmzm0A6y8hAZf2M mLbFOsBUjkcwBtPrhMaNeDJJDVnNZkMpO6iklR3a9a3FmNoZIYTvTCUo9x2d8qF2jQxQ Gq966O1InVecb26woZtj2PNH6bimCzEFPaatZCJzXGPbKT3g/FLDs/1GIFNgvMnWT/Jo WGUL+XEjcAGeJQypbb32FiY83jjYnlkqndL7NtZodJxLzFFa/MKch9s8ytvi6sLWrRyb 5pkHBUf2Kp1mhQSikywcnqAzU1EBxFhQGK5LUH81UG7FTQ4308d2mB5hbwz0UkwLNl2b B32g== X-Gm-Message-State: AOUpUlFuyqtdJMZ5T0QOIU3sD9jvKZjcETqvh2ESPX66GIATUEHTpUsd 4V/42c7Msg3Bl9Nhy4Q6KHwvFQ== X-Google-Smtp-Source: AAOMgpfqTZetwfJaZSTuSiGTAi0Xp4+g6Rjbk4aYHyGngl/H3Wm3td1j2iPSQI48TyJpI30S3Beg9g== X-Received: by 2002:adf:eb4c:: with SMTP id u12-v6mr24758551wrn.174.1533117634474; Wed, 01 Aug 2018 03:00:34 -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.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 01 Aug 2018 03:00:33 -0700 (PDT) From: Neil Armstrong To: khilman@baylibre.com, linus.walleij@linaro.org Subject: [PATCH 5/5] meson: pinctrl-axg: add support for TEST_N pin Date: Wed, 1 Aug 2018 12:00:23 +0200 Message-Id: <1533117623-27856-6-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_107766_078FB56C 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 AXG 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-axg.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/pinctrl/meson/pinctrl-meson-axg.c b/drivers/pinctrl/meson/pinctrl-meson-axg.c index 46a0918..12615d8 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-axg.c +++ b/drivers/pinctrl/meson/pinctrl-meson-axg.c @@ -10,6 +10,7 @@ #include #include "pinctrl-meson.h" #include "pinctrl-meson-axg-pmx.h" +#include static const struct pinctrl_pin_desc meson_axg_periphs_pins[] = { MESON_PIN(GPIOZ_0), @@ -1006,6 +1007,9 @@ static struct meson_bank meson_axg_periphs_banks[] = { static struct meson_bank meson_axg_aobus_banks[] = { /* name first last irq pullen pull dir out in */ BANK("AO", GPIOAO_0, GPIOAO_13, 0, 13, 0, 16, 0, 0, 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_pmx_bank meson_axg_periphs_pmx_banks[] = {