From patchwork Tue Aug 18 22:26:55 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 508514 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 E0C28140327 for ; Wed, 19 Aug 2015 08:27:01 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753217AbbHRW1A (ORCPT ); Tue, 18 Aug 2015 18:27:00 -0400 Received: from mail-la0-f47.google.com ([209.85.215.47]:33843 "EHLO mail-la0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752690AbbHRW07 (ORCPT ); Tue, 18 Aug 2015 18:26:59 -0400 Received: by laba3 with SMTP id a3so4928461lab.1 for ; Tue, 18 Aug 2015 15:26:57 -0700 (PDT) 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:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=5cymyikrLZS91nJQrwaA9NVXC0KkGP0Yz4gfm5f94sI=; b=SYMfiT6EBCJXzSjSQZRpMIKH48jp/OCJ1BrPdX/AhPgkY/xzWG2v9jPkNzNScPtL1l 8X97L+PBPr1qqup8ulq3spFXOv7+Zwgq+Y9GWN1gC/0B6G9lxmcfZ6ZLWDYFudnVAUZJ FosJ1khdzdD5DjmAqwqDj34SNys7/JM2PCNX++xxY5ye1c051+0I/P2tkyyKxLD1MtNq Za/IfgEo2pPkRI3YNX4AB2HdqA9NRw9yblf+ijPOWnpF7uYG/yPVmc+umgtveCXjZtl6 qnAlTeO0udJESb2vHWXf3cQmExVXEs3wDjU1hBiA36MVuC3en22jKhVHI4UotDE6eU8b DlRQ== X-Gm-Message-State: ALoCoQmEDlSYITKRO2FW7Kv5i8EsGmTeS3r/V0Sq58+iVkXujX+Aod5FDBbC0hhJP+075/fyEpVq X-Received: by 10.112.166.106 with SMTP id zf10mr8327107lbb.36.1439936817402; Tue, 18 Aug 2015 15:26:57 -0700 (PDT) Received: from wasted.cogentembedded.com (ppp17-61.pppoe.mtu-net.ru. [81.195.17.61]) by smtp.gmail.com with ESMTPSA id qm6sm5250653lbb.23.2015.08.18.15.26.56 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Aug 2015 15:26:56 -0700 (PDT) From: Sergei Shtylyov To: linus.walleij@linaro.org, linux-sh@vger.kernel.org, laurent.pinchart@ideasonboard.com, linux-gpio@vger.kernel.org Subject: [PATCH 1/2] pinctrl: sh-pfc: r8a7794: add USB pin groups Date: Wed, 19 Aug 2015 01:26:55 +0300 Message-ID: <6436990.f6AZfhkFnG@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.14.9 (Linux/4.1.4-100.fc21.x86_64; KDE/4.14.9; x86_64; ; ) In-Reply-To: <13219129.kD4pZSmcAP@wasted.cogentembedded.com> References: <13219129.kD4pZSmcAP@wasted.cogentembedded.com> MIME-Version: 1.0 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org From: Shinobu Uehara Add USB0/1 pin groups to R8A7794 PFC driver. Signed-off-by: Shinobu Uehara [Sergei: rebased, renamed, added changelog.] Signed-off-by: Sergei Shtylyov Acked-by: Laurent Pinchart --- drivers/pinctrl/sh-pfc/pfc-r8a7794.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 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: renesas/drivers/pinctrl/sh-pfc/pfc-r8a7794.c =================================================================== --- renesas.orig/drivers/pinctrl/sh-pfc/pfc-r8a7794.c +++ renesas/drivers/pinctrl/sh-pfc/pfc-r8a7794.c @@ -2770,6 +2770,24 @@ static const unsigned int sdhi2_wp_pins[ static const unsigned int sdhi2_wp_mux[] = { SD2_WP_MARK, }; +/* - USB0 ------------------------------------------------------------------- */ +static const unsigned int usb0_pins[] = { + RCAR_GP_PIN(5, 24), /* PWEN */ + RCAR_GP_PIN(5, 25), /* OVC */ +}; +static const unsigned int usb0_mux[] = { + USB0_PWEN_MARK, + USB0_OVC_MARK, +}; +/* - USB1 ------------------------------------------------------------------- */ +static const unsigned int usb1_pins[] = { + RCAR_GP_PIN(5, 26), /* PWEN */ + RCAR_GP_PIN(5, 27), /* OVC */ +}; +static const unsigned int usb1_mux[] = { + USB1_PWEN_MARK, + USB1_OVC_MARK, +}; static const struct sh_pfc_pin_group pinmux_groups[] = { SH_PFC_PIN_GROUP(eth_link), @@ -2945,6 +2963,8 @@ static const struct sh_pfc_pin_group pin SH_PFC_PIN_GROUP(sdhi2_ctrl), SH_PFC_PIN_GROUP(sdhi2_cd), SH_PFC_PIN_GROUP(sdhi2_wp), + SH_PFC_PIN_GROUP(usb0), + SH_PFC_PIN_GROUP(usb1), }; static const char * const eth_groups[] = { @@ -3219,6 +3239,14 @@ static const char * const sdhi2_groups[] "sdhi2_wp", }; +static const char * const usb0_groups[] = { + "usb0", +}; + +static const char * const usb1_groups[] = { + "usb1", +}; + static const struct sh_pfc_function pinmux_functions[] = { SH_PFC_FUNCTION(eth), SH_PFC_FUNCTION(hscif0), @@ -3253,6 +3281,8 @@ static const struct sh_pfc_function pinm SH_PFC_FUNCTION(sdhi0), SH_PFC_FUNCTION(sdhi1), SH_PFC_FUNCTION(sdhi2), + SH_PFC_FUNCTION(usb0), + SH_PFC_FUNCTION(usb1), }; static const struct pinmux_cfg_reg pinmux_config_regs[] = {