From patchwork Sat Jan 10 18:20:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 427394 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id DF76714018C for ; Sun, 11 Jan 2015 05:20:57 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753072AbbAJSU5 (ORCPT ); Sat, 10 Jan 2015 13:20:57 -0500 Received: from mail-la0-f49.google.com ([209.85.215.49]:58561 "EHLO mail-la0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753393AbbAJSU4 (ORCPT ); Sat, 10 Jan 2015 13:20:56 -0500 Received: by mail-la0-f49.google.com with SMTP id hs14so19003235lab.8 for ; Sat, 10 Jan 2015 10:20:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:organization :user-agent:mime-version:content-transfer-encoding:content-type; bh=WuesbaTsLcj0mN6Pf2p9RDxa/OnVIbX2h77zg/rJUXc=; b=TV+7GOixsFg/nZ2k5GEwElgltXGrHDcmEnLrlnCTEqpX7Ut6GS38htrmKKxqYwCZR+ QkG1GN5zwH+cHH3/2jHdKbYrrqC56tftYHbT5LntArKh3QLGvFM2EsLJ5auTYmX2e1Al s7s4nlDCtNPAvKV7MqL6zT/FB8SSRf8yJbE3o4DlWtTPalGFO//e37ALSIJvHZZY3b0u +SbHO9UEXjVRqdfQfb/L8V8UC/R4IKNSCTe/pDW/F7rKfWSJ3DfrpddyMHG2m9z5p2+K UvmTYFAxomsb606e1SYia31H4ylGUgQEgb1MkUP7hn24Ml8EbemFIIPPdFuZMa2dn5tZ BKpw== X-Gm-Message-State: ALoCoQkPuL37Aud0InbGyJE4wibKSzM43FOgR+KGj4jsvnzxiplq+PhKiOju0fUtxDQj5W18Y3b2 X-Received: by 10.112.43.66 with SMTP id u2mr28561648lbl.35.1420914054611; Sat, 10 Jan 2015 10:20:54 -0800 (PST) Received: from wasted.cogentembedded.com (ppp16-226.pppoe.mtu-net.ru. [81.195.16.226]) by mx.google.com with ESMTPSA id w9sm2696854laj.13.2015.01.10.10.20.52 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 10 Jan 2015 10:20:53 -0800 (PST) From: Sergei Shtylyov To: linus.walleij@linaro.org, linux-sh@vger.kernel.org, laurent.pinchart@ideasonboard.com, linux-gpio@vger.kernel.org Subject: [PATCH] sh-pfc: r8a7790: add MLB+ pin group Date: Sat, 10 Jan 2015 21:20:47 +0300 Message-ID: <4254413.Ay0OtsgpoE@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.14.3 (Linux/3.17.7-200.fc20.x86_64; KDE/4.14.3; x86_64; ; ) MIME-Version: 1.0 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Add MLB+ 3-pin mode pin group to R8A7790 PFC driver. Based on original patch by Andrey Gusakov . Signed-off-by: Sergei Shtylyov Acked-by: Geert Uytterhoeven Acked-by: Laurent Pinchart --- The patch is against the 'devel' branch of Linus W.'s 'linux-pinctrl.git' repo. drivers/pinctrl/sh-pfc/pfc-r8a7790.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: linux-pinctrl/drivers/pinctrl/sh-pfc/pfc-r8a7790.c =================================================================== --- linux-pinctrl.orig/drivers/pinctrl/sh-pfc/pfc-r8a7790.c +++ linux-pinctrl/drivers/pinctrl/sh-pfc/pfc-r8a7790.c @@ -2241,6 +2241,13 @@ static const unsigned int intc_irq3_pins static const unsigned int intc_irq3_mux[] = { IRQ3_MARK, }; +/* - MLB+ ------------------------------------------------------------------- */ +static const unsigned int mlb_3pin_pins[] = { + RCAR_GP_PIN(4, 0), RCAR_GP_PIN(4, 1), RCAR_GP_PIN(4, 2), +}; +static const unsigned int mlb_3pin_mux[] = { + MLB_CLK_MARK, MLB_SIG_MARK, MLB_DAT_MARK, +}; /* - MMCIF0 ----------------------------------------------------------------- */ static const unsigned int mmc0_data1_pins[] = { /* D[0] */ @@ -3873,6 +3880,7 @@ static const struct sh_pfc_pin_group pin SH_PFC_PIN_GROUP(intc_irq1), SH_PFC_PIN_GROUP(intc_irq2), SH_PFC_PIN_GROUP(intc_irq3), + SH_PFC_PIN_GROUP(mlb_3pin), SH_PFC_PIN_GROUP(mmc0_data1), SH_PFC_PIN_GROUP(mmc0_data4), SH_PFC_PIN_GROUP(mmc0_data8), @@ -4198,6 +4206,10 @@ static const char * const intc_groups[] "intc_irq3", }; +static const char * const mlb_groups[] = { + "mlb_3pin", +}; + static const char * const mmc0_groups[] = { "mmc0_data1", "mmc0_data4", @@ -4511,6 +4523,7 @@ static const struct sh_pfc_function pinm SH_PFC_FUNCTION(iic2), SH_PFC_FUNCTION(iic3), SH_PFC_FUNCTION(intc), + SH_PFC_FUNCTION(mlb), SH_PFC_FUNCTION(mmc0), SH_PFC_FUNCTION(mmc1), SH_PFC_FUNCTION(msiof0),