From patchwork Mon May 22 12:59:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 9740301 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 D3E96601C2 for ; Mon, 22 May 2017 13:12:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C5EC628419 for ; Mon, 22 May 2017 13:12:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BAC3128531; Mon, 22 May 2017 13:12:38 +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=0.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,SUSPICIOUS_RECIPS autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 707E528419 for ; Mon, 22 May 2017 13:12:38 +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=fxB+6EyuEO5PL+wCqDRMZytFRkaSlhlAlA+04Swk1T4=; b=gK7nbB6Go9pLjMP+iW0WzrXToa mFgDN80Rb+Tgo8NCS0Uz/tlv17SuIbQBHfrsTk/o3ASajwjNtHj4qI09n/iPKDK4oz4z2Yn5qNvNS SArjpNU33TNC4FEvkoXjo9ZPKN1o/t86GIGr8NVEd7zpXwYRnXmrJdFGeuGmng185biGSa5x87E5p VOkOpZb+xv/rFzCMkBKEeWdJe8xQoxMubfq0V2LlrGie16mA3dH4GTjlxsOt1nZYmjMu2xLdDLn31 EARpI+3orDIs0lohfgpk0seA+EIrnuNZBgC2P8J1ja5JRAQF6P7mB5YugYo03IWEmPt10cZzSaFIo A9QpmT9Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dCn8N-00055b-E1; Mon, 22 May 2017 13:12:27 +0000 Received: from mail-wr0-x235.google.com ([2a00:1450:400c:c0c::235]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dCmwH-0004GS-KM for linux-amlogic@lists.infradead.org; Mon, 22 May 2017 13:00:01 +0000 Received: by mail-wr0-x235.google.com with SMTP id l50so38075220wrc.3 for ; Mon, 22 May 2017 05:59:38 -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=nxCCmWP/BcXETrA4dVh1MnbPVcHwi9fKeUmyt3WSI4I=; b=Rn36rnbvRnUW2klJs4u9ep3ek8oLB8rgzYisuQSX2MeEQKAeoseqfbMNr588HO3DeX V3MDpzEjnQGlXCkDrvsy9jSflFv5bfFCpL42vrZeyJK8ElkRNYlCBqul/QYCi3khPpy3 A6UHlJpWdcSMfIeONn99pjH5/DebwZwepwXn6qErGwSg+89jiqx9FYbwAmQnwPSFofXi uwTCDGnStCK4XMEXf7S8g20MtQqMoLDguZrT9lf+ZoiQZ0aEW/NRxyclqtch/VgKg16p eta1FgVvcBq/8nMi0E4BNBB+B4rFZo1hMIOeFm8AAiR40s6tIZ42clJSS1snYPniSqBa TqLQ== 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=nxCCmWP/BcXETrA4dVh1MnbPVcHwi9fKeUmyt3WSI4I=; b=PutQueNpHbZpDPbeYNF+aneo9KTbUbLs2DsttX5sO47E4J6i0HqmMnlAunf82nTBa6 KIcMiwbxYas+AO7WTo8tSDco+G9uiaWVioHL2ST6vObToMz91R/wcC40znE84dluQY46 HHejvdcHRht1RsVynH7T3FyHYqIlmkOmeaab8WUhXaQTDaYlObMegP2D14uLCBSsytuR OK69+ILBmZYU+8lpjix+Y6kvSE9AABU4D6hM4pfC8WO4Rlw2LtAqjX+X/Za49X6MxPVz kHxU9MlU3gvZqApdXVry56Q3Uy1qvfhxlvnUQlOQfDlElMQHfYF4N0L6IQhWgOS9EB4O DbrQ== X-Gm-Message-State: AODbwcCwERtkwgGyttNKKzh/88Guqnl/fBStuEYprOMcaCyVLXO/0n2b mc/dBBshRZPEoj57 X-Received: by 10.223.153.181 with SMTP id y50mr11333898wrb.41.1495457977116; Mon, 22 May 2017 05:59:37 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id y6sm14518847wrc.51.2017.05.22.05.59.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 22 May 2017 05:59:36 -0700 (PDT) From: Neil Armstrong To: linus.walleij@linaro.org Subject: [PATCH 2/2] pinctrl: meson-gxbb: Add SPI pins for SPICC controller Date: Mon, 22 May 2017 14:59:26 +0200 Message-Id: <1495457966-2359-3-git-send-email-narmstrong@baylibre.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1495457966-2359-1-git-send-email-narmstrong@baylibre.com> References: <1495457966-2359-1-git-send-email-narmstrong@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170522_055957_839924_F9DC58D3 X-CRM114-Status: UNSURE ( 8.70 ) X-CRM114-Notice: Please train this message. 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-gpio@vger.kernel.org, linux-amlogic@lists.infradead.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 SPICC controller has dedicated SPI pins, this patchs add the pins definition in the GXBB pinctrl driver Signed-off-by: Neil Armstrong --- 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 9b00be1..3ccb0f4f 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-gxbb.c +++ b/drivers/pinctrl/meson/pinctrl-meson-gxbb.c @@ -161,6 +161,11 @@ 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 spi_sclk_pins[] = { PIN(GPIOZ_6, EE_OFF) }; +static const unsigned int spi_ss0_pins[] = { PIN(GPIOZ_7, EE_OFF) }; +static const unsigned int spi_miso_pins[] = { PIN(GPIOZ_12, EE_OFF) }; +static const unsigned int spi_mosi_pins[] = { PIN(GPIOZ_13, 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) }; @@ -462,6 +467,10 @@ GROUP(eth_txd1, 6, 4), GROUP(eth_txd2, 6, 3), GROUP(eth_txd3, 6, 2), + GROUP(spi_ss0, 5, 26), + GROUP(spi_sclk, 5, 27), + GROUP(spi_miso, 5, 28), + GROUP(spi_mosi, 5, 29), /* Bank H */ GROUP(hdmi_hpd, 1, 26), @@ -598,6 +607,10 @@ "nor_d", "nor_q", "nor_c", "nor_cs", }; +static const char * const spi_groups[] = { + "spi_mosi", "spi_miso", "spi_ss0", "spi_sclk", +}; + static const char * const sdcard_groups[] = { "sdcard_d0", "sdcard_d1", "sdcard_d2", "sdcard_d3", "sdcard_cmd", "sdcard_clk", @@ -743,6 +756,7 @@ FUNCTION(gpio_periphs), FUNCTION(emmc), FUNCTION(nor), + FUNCTION(spi), FUNCTION(sdcard), FUNCTION(sdio), FUNCTION(nand),