From patchwork Wed Jan 27 21:38:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 60662 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp99041lbb; Wed, 27 Jan 2016 13:38:52 -0800 (PST) X-Received: by 10.66.230.201 with SMTP id ta9mr45884431pac.52.1453930732070; Wed, 27 Jan 2016 13:38:52 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id oj11si11832013pab.106.2016.01.27.13.38.51; Wed, 27 Jan 2016 13:38:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dkim=pass header.i=@linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935996AbcA0Viu (ORCPT + 30 others); Wed, 27 Jan 2016 16:38:50 -0500 Received: from mail-lf0-f47.google.com ([209.85.215.47]:36134 "EHLO mail-lf0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935637AbcA0Viq (ORCPT ); Wed, 27 Jan 2016 16:38:46 -0500 Received: by mail-lf0-f47.google.com with SMTP id h129so15156765lfh.3 for ; Wed, 27 Jan 2016 13:38:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=HSU3+hT3hBNBdWoEOgn2er1/TLKQAeErJRYQ105e78I=; b=ZD0uPZAGbZUMD8OUTXsGlEwhq3/xTZSDOyXDI9cxG+PJBvkySFICjYGGNEoTO60SI4 H3cmKDi3nT/MVvBPu0ovlxojfO31kGmcfJFTNyuPwhKFyMSc/2fOdax38hBrdnviaNTs dDlCubJHQZXGgsAkgO78ehuJQN0vFymN8yhkE= 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; bh=HSU3+hT3hBNBdWoEOgn2er1/TLKQAeErJRYQ105e78I=; b=cKLJiKFzTGnPeIcoWKVhmfl/Bp5D272Zti42XQNnWTec6MgL3yEi2GwuRAoBRtbPiL /TTEhE7qC+iNtlkzzZ5dAMczBdUnOi0xw70yW5mgoZ/jz8dIaypgSl0xuGFrkSklIijq kP4fDjEEQZ2Ruu1URkqNXR+25DRws/lduFVZDVcc244K8JnOzT4rhBJLdZIIi9tMR50+ GtkwnxPzlwDckOk7ZB3xUnWDCiPpWEq5sgq/+AH7fy2Bbahnm5dVmWgILL+k1T6UDTeZ b4jrUbnCLzYwkeFC6LI1Wr53C6SkMMXLBCodB/sQrkmzMQ9dMIXurUa0q6fWi1ITSSCE v70w== X-Gm-Message-State: AG10YOSQ3mDKByPAk2VJD2jQ797qEkXqqqPEwke/fdHfLJjUuBs0nyVTdRBhSsHzKK4Epel7 X-Received: by 10.25.17.229 with SMTP id 98mr9368675lfr.3.1453930724526; Wed, 27 Jan 2016 13:38:44 -0800 (PST) Received: from localhost.localdomain.localdomain (c-917a71d5.01-192-6c756e10.cust.bredbandsbolaget.se. [213.113.122.145]) by smtp.gmail.com with ESMTPSA id r202sm1034468lfr.43.2016.01.27.13.38.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Jan 2016 13:38:42 -0800 (PST) From: Linus Walleij To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: linux-gpio@vger.kernel.org, Linus Walleij Subject: [PATCH] pinctrl: nomadik: stn8815 CLCD alternate functions Date: Wed, 27 Jan 2016 22:38:30 +0100 Message-Id: <1453930710-19163-1-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 2.4.3 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The STn8815 has 22 dedicated pins for CLCD with up to 16 bits in parallel, but pins 32 thru 39 can be used for an additional CLCD signal lines 16 thru 23. Signed-off-by: Linus Walleij --- drivers/pinctrl/nomadik/pinctrl-nomadik-stn8815.c | 7 +++++++ 1 file changed, 7 insertions(+) -- 2.4.3 diff --git a/drivers/pinctrl/nomadik/pinctrl-nomadik-stn8815.c b/drivers/pinctrl/nomadik/pinctrl-nomadik-stn8815.c index 587b222f12f3..e852048c4c04 100644 --- a/drivers/pinctrl/nomadik/pinctrl-nomadik-stn8815.c +++ b/drivers/pinctrl/nomadik/pinctrl-nomadik-stn8815.c @@ -287,6 +287,10 @@ static const unsigned i2c0_a_1_pins[] = { STN8815_PIN_D3, STN8815_PIN_D2 }; /* Altfunction B */ static const unsigned u1_b_1_pins[] = { STN8815_PIN_B16, STN8815_PIN_A16 }; static const unsigned i2cusb_b_1_pins[] = { STN8815_PIN_C21, STN8815_PIN_C20 }; +static const unsigned clcd_16_23_b_1_pins[] = { STN8815_PIN_AB6, + STN8815_PIN_AA6, STN8815_PIN_Y6, STN8815_PIN_Y5, STN8815_PIN_AA5, + STN8815_PIN_AB5, STN8815_PIN_AB4, STN8815_PIN_Y4 }; + #define STN8815_PIN_GROUP(a, b) { .name = #a, .pins = a##_pins, \ .npins = ARRAY_SIZE(a##_pins), .altsetting = b } @@ -302,6 +306,7 @@ static const struct nmk_pingroup nmk_stn8815_groups[] = { STN8815_PIN_GROUP(i2c0_a_1, NMK_GPIO_ALT_A), STN8815_PIN_GROUP(u1_b_1, NMK_GPIO_ALT_B), STN8815_PIN_GROUP(i2cusb_b_1, NMK_GPIO_ALT_B), + STN8815_PIN_GROUP(clcd_16_23_b_1, NMK_GPIO_ALT_B), }; /* We use this macro to define the groups applicable to a function */ @@ -314,6 +319,7 @@ STN8815_FUNC_GROUPS(u1, "u1_a_1", "u1_b_1"); STN8815_FUNC_GROUPS(i2c1, "i2c1_a_1"); STN8815_FUNC_GROUPS(i2c0, "i2c0_a_1"); STN8815_FUNC_GROUPS(i2cusb, "i2cusb_b_1"); +STN8815_FUNC_GROUPS(clcd, "clcd_16_23_b_1"); #define FUNCTION(fname) \ { \ @@ -329,6 +335,7 @@ static const struct nmk_function nmk_stn8815_functions[] = { FUNCTION(i2c1), FUNCTION(i2c0), FUNCTION(i2cusb), + FUNCTION(clcd), }; static const struct nmk_pinctrl_soc_data nmk_stn8815_soc = {