From patchwork Fri Sep 9 08:28:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 9322671 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 1718D60752 for ; Fri, 9 Sep 2016 08:31:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 09AC429CEB for ; Fri, 9 Sep 2016 08:31:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F29BF29CEE; Fri, 9 Sep 2016 08:31:31 +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 62CDD29CEB for ; Fri, 9 Sep 2016 08:31:31 +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 1biHCH-0001hO-EI; Fri, 09 Sep 2016 08:30:05 +0000 Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1biHBu-0001Nf-Pe for linux-arm-kernel@lists.infradead.org; Fri, 09 Sep 2016 08:29:44 +0000 Received: by mail-wm0-x236.google.com with SMTP id b187so18280158wme.1 for ; Fri, 09 Sep 2016 01:29:22 -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=vrMa9URmQF9Tpn50PpAkt1rWNpAV5NArYjnov6F26Fw=; b=LtHiWkj4x7X06xiPvbEBrW/Th9/fRKKoF+CX8zxpTXSZ0SFTOIyZTsatSjNra0Ey/0 VgTiygmnu//mX22GCNLshzC2vBj1EkPKzQBfQlIYtOeL8N5YoyYqSETpbDb4KZF2a2ax WsiuyyxDQ4otoMJ3QapGj+zNXLrHcuQGV2ME/PRBTbLoQ40eGVtE7hM0SKiUBflyL6+7 AnSAlNsNqFxTmKayC/jUxjjLjdRw+P56q88YaPjdcsTdS7JjEASSqZk7kobUgUf28Iyi d4+VvnwiI2OPxGCzM1QnpgtzXoiSYfOmkPHSn3J+S5Gg2ZyRI6W97pj1OgxIMyaDWSbl +97A== 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 :references; bh=vrMa9URmQF9Tpn50PpAkt1rWNpAV5NArYjnov6F26Fw=; b=ZTc+zqy437SHixjFnSPySdewl2xcrvVgpngXSVrR04S7f9vT/ZA3zIRxf0cwkdlQCn pIjU+kmX76GSdo2nyLlhAKEdOFh6SPFNu9Ij0IuQjp8lxV2L+QCTWLfkc4gSosXzL5gg J7NWktCXhb3c7U4n6lyfMHqnzU5Ez6Li7JFAbVMzIkq6TzG3BUIF0TygTdchegHBusgn 5WAGzn8XEy5hTjbM8wLt/ht9Zd2ngUUEBLY7u74siKFsxtXDjNXQ6xY+vOZafE2Gy7R4 htbBdpfg2TDppuJ3bEqg+A5PKFkzFELb+jR378ubmRRmOTGEFyHUhHrpDHuZrXxQSl1a 9U9Q== X-Gm-Message-State: AE9vXwO0Ap7M+6hxB1qh1fb8WNwVT7yUQXX2abniQRRFWXlnL3vJf8cPcJ8+Fiysh9dAGWm2 X-Received: by 10.194.140.167 with SMTP id rh7mr1777819wjb.11.1473409760870; Fri, 09 Sep 2016 01:29:20 -0700 (PDT) Received: from mogwai.baylibre.com ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id r4sm2147809wme.21.2016.09.09.01.29.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Sep 2016 01:29:20 -0700 (PDT) From: Jerome Brunet To: Linus Walleij , Kevin Hilman , Carlo Caione Subject: [PATCH v2 1/4] pinctrl: amlogic: gxbb: add spi nor pins Date: Fri, 9 Sep 2016 10:28:55 +0200 Message-Id: <1473409738-27175-2-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> References: <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-20160909_012943_162814_C95669D7 X-CRM114-Status: GOOD ( 10.15 ) 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-kernel@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 Signed-off-by: Jerome Brunet Acked-by: Kevin Hilman --- 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 cb4d6ad30530..f74dbd5d350b 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) }; @@ -393,6 +398,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), @@ -475,6 +484,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", @@ -524,6 +537,7 @@ static const char * const i2c_slave_ao_groups[] = { static struct meson_pmx_func meson_gxbb_periphs_functions[] = { FUNCTION(gpio_periphs), FUNCTION(emmc), + FUNCTION(nor), FUNCTION(sdcard), FUNCTION(uart_a), FUNCTION(uart_b),