From patchwork Tue Sep 13 15:12:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 9329295 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 83B0F6077F for ; Tue, 13 Sep 2016 15:15:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7251628736 for ; Tue, 13 Sep 2016 15:15:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 66B8A29534; Tue, 13 Sep 2016 15:15:19 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D519428736 for ; Tue, 13 Sep 2016 15:15:15 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bjpOr-0002M1-TN; Tue, 13 Sep 2016 15:13:29 +0000 Received: from mail-wm0-x22b.google.com ([2a00:1450:400c:c09::22b]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bjpOj-0002J4-7R for linux-arm-kernel@lists.infradead.org; Tue, 13 Sep 2016 15:13:26 +0000 Received: by mail-wm0-x22b.google.com with SMTP id i130so733401wmf.0 for ; Tue, 13 Sep 2016 08:13:00 -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; bh=BkUA+PPToGJdGn3BAa1YSsKQpaCUW6tNRl6DlAIfOyc=; b=NW0PJsyyUOQJiFSQT8Qxr6pulnE/uFGJt+P6vLsNDOKFQyxg+4Cna5CXDr5KuRVB8P gRKHqwzvK7i1WUVACE45a74KrsMRy4KExog2A7jjCP06Y9hlS9N9WlHTFAWFjJVDpsl+ Mrkg3Xj7iFYWEuz5Yk5EGad0GGLghW97Zzph4hY/kdQx8vt/geljX4Zi7e8u9FmR4afp P43PXmNZ54rsPh5F4Gvzmrd+86bmIorC2FMl3gnV7R/k7Lsac+2mAylA9qIwm5umNfQ3 cTUlQ3spymEQid4lDxoImi6Ir+Bk5FVHoNoUUWzS5grqyI99g9tOKBhB4GrUdoqk48yU ALDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to; bh=BkUA+PPToGJdGn3BAa1YSsKQpaCUW6tNRl6DlAIfOyc=; b=PpNbincERj4bikpujTRxb/VbvIHeWkHxcD7qUTTIVvi1RqrFXzhYpjz+35Z9yJr/Md hd96fQig7Rm22F2VOwFitQSqFW6CY4qaowSFdz8SZdNBbxi4nM4oOOL5jUZH5A8WZUvq xkVr9M4cWDe9DqekptcYy8QbO0RsJWh9cx/Gj2zX/ztK6zDAc/faNBb/FZdD4SaP3kNa CwjJZPgpeeRpBt2WvCwNlnjHocl/RpyFZIRDH9W0GaIzDNilSrEmWrVJPLVVQHtpG4LZ nB4BuykZbE0RfFrTXNFk26G+eqw0xkGpoa1rnfWgNJewI2GISQvD7xDxDRDnk0URbDxc b1iA== X-Gm-Message-State: AE9vXwNLegLCroiGdVd0Ww+V8+/oxCM8PqDxmxc6w5cg7eWTxe61ybYOgytCIBrcqjtvEVfs X-Received: by 10.28.15.194 with SMTP id 185mr1295425wmp.58.1473779579371; Tue, 13 Sep 2016 08:12:59 -0700 (PDT) Received: from mogwai.baylibre.com ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id b128sm5813245wmb.21.2016.09.13.08.12.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Sep 2016 08:12:58 -0700 (PDT) From: Jerome Brunet To: Linus Walleij , Kevin Hilman , Carlo Caione Subject: [RESEND PATCH v2 1/4] pinctrl: amlogic: gxbb: add spi nor pins Date: Tue, 13 Sep 2016 17:12:21 +0200 Message-Id: <1473779542-2635-1-git-send-email-jbrunet@baylibre.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1473409738-27175-1-git-send-email-jbrunet@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160913_081321_523077_9156AF8E X-CRM114-Status: UNSURE ( 9.97 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 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-arm-kernel@lists.infradead.org, Jerome Brunet 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 Add EE domains pins for the SPI flash controller Acked-by: Kevin Hilman Signed-off-by: Jerome Brunet --- drivers/pinctrl/meson/pinctrl-meson-gxbb.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/pinctrl/meson/pinctrl-meson-gxbb.c b/drivers/pinctrl/meson/pinctrl-meson-gxbb.c index f115638e8699..573901887cee 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-gxbb.c +++ b/drivers/pinctrl/meson/pinctrl-meson-gxbb.c @@ -156,6 +156,11 @@ static const unsigned int emmc_clk_pins[] = { PIN(BOOT_8, EE_OFF) }; static const unsigned int emmc_cmd_pins[] = { PIN(BOOT_10, EE_OFF) }; static const unsigned int emmc_ds_pins[] = { PIN(BOOT_15, EE_OFF) }; +static const unsigned int nor_d_pins[] = { PIN(BOOT_11, EE_OFF) }; +static const unsigned int nor_q_pins[] = { PIN(BOOT_12, EE_OFF) }; +static const unsigned int nor_c_pins[] = { PIN(BOOT_13, EE_OFF) }; +static const unsigned int nor_cs_pins[] = { PIN(BOOT_15, EE_OFF) }; + static const unsigned int sdcard_d0_pins[] = { PIN(CARD_1, EE_OFF) }; static const unsigned int sdcard_d1_pins[] = { PIN(CARD_0, EE_OFF) }; static const unsigned int sdcard_d2_pins[] = { PIN(CARD_5, EE_OFF) }; @@ -430,6 +435,10 @@ static struct meson_pmx_group meson_gxbb_periphs_groups[] = { GROUP(emmc_clk, 4, 18), GROUP(emmc_cmd, 4, 19), GROUP(emmc_ds, 4, 31), + GROUP(nor_d, 5, 1), + GROUP(nor_q, 5, 3), + GROUP(nor_c, 5, 2), + GROUP(nor_cs, 5, 0), /* Bank CARD */ GROUP(sdcard_d1, 2, 14), @@ -517,6 +526,10 @@ static const char * const emmc_groups[] = { "emmc_nand_d07", "emmc_clk", "emmc_cmd", "emmc_ds", }; +static const char * const nor_groups[] = { + "nor_d", "nor_q", "nor_c", "nor_cs", +}; + static const char * const sdcard_groups[] = { "sdcard_d0", "sdcard_d1", "sdcard_d2", "sdcard_d3", "sdcard_cmd", "sdcard_clk", @@ -619,6 +632,7 @@ static const char * const pwm_ao_b_groups[] = { static struct meson_pmx_func meson_gxbb_periphs_functions[] = { FUNCTION(gpio_periphs), FUNCTION(emmc), + FUNCTION(nor), FUNCTION(sdcard), FUNCTION(sdio), FUNCTION(uart_a),