Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2134270ybh; Fri, 17 Jul 2020 10:03:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUDh7hQ53KXInQP4jiwXCKVpozDPomXDQs8vKs8BViEPWRXru3wGXAJ0OfYXM7huQ5ZPj7 X-Received: by 2002:a17:906:840a:: with SMTP id n10mr9181764ejx.453.1595005434211; Fri, 17 Jul 2020 10:03:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595005434; cv=none; d=google.com; s=arc-20160816; b=B6l00F25MEkxV/AI9PebPhzZUzKgSe8zWrzBnPw8IwUh4mH+Xq4I+4lPA292nAgF/q niD6DOVKP6ApQV/bhBRNavFmDr4qNz2s4NF1NeTMLB0USahg/pmxatyijWqIqBjJYM+P s4asDNWs3cN8chDC9OfFjF9FuAKhE47m6aRfK5K7kn5Yxj4NVbkwx7UL2Qo3pr83X0ae dFtwabxvENRD25mCo4ZhBPNAULMpdlba68MKzycSiyaikt+/AIRvtNU45YFmsr/ZuMgs W/adUpNoe2CQdL62h2sSLEScka9Wy6fqxO0WkzFpbW58+iwC5QYu8ZWJsHf1FabOlFsS g9Rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=aN+GSoxKFIzcKGAzvYlrmwBZuUdjTy6nM2Xiphkggs8=; b=CdxOY4cvaQTUUgWt6dEOo952FmQDIWPOFYDo64JHSwXhojvnfNIMqZGBcVa6ObqaIM kw8J/9Z8+w873KxQwh1DWpidNQCHCVoHzrx2G1T5PImwYygfFn3WbQ7s5oDkOVVOyEqX fApSUOfEdHZyVZVBTUhAlaTRo7Dy3pYK5OkNVvKtw1elXywqUpOBR2gkQnylya2ee0g7 WNdVl7Lk/l51L3EJEvoZzdMiU5kMNvTBiATfCr7p9Nr18pmnl+gnT3IWI7nCeFby5rz6 Ih+IJVqHGuP4TPMvqDtgB2s5kDdyeL4sbz62+WXeisazt8ML6kIcRIMLgAOJ48Tzb3eU +aSw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x17si6439509edq.338.2020.07.17.10.03.29; Fri, 17 Jul 2020 10:03:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727052AbgGQRAm (ORCPT + 99 others); Fri, 17 Jul 2020 13:00:42 -0400 Received: from relmlor1.renesas.com ([210.160.252.171]:21061 "EHLO relmlie5.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726938AbgGQRAc (ORCPT ); Fri, 17 Jul 2020 13:00:32 -0400 X-IronPort-AV: E=Sophos;i="5.75,362,1589209200"; d="scan'208";a="52419821" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 18 Jul 2020 02:00:30 +0900 Received: from localhost.localdomain (unknown [10.226.36.204]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 9500D40061A0; Sat, 18 Jul 2020 02:00:28 +0900 (JST) From: Lad Prabhakar To: Geert Uytterhoeven , Rob Herring , Linus Walleij , devicetree@vger.kernel.org Cc: Magnus Damm , linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Prabhakar , Lad Prabhakar Subject: [PATCH v2 1/2] pinctrl: sh-pfc: r8a7790: Add USB1 PWEN pin and group Date: Fri, 17 Jul 2020 18:00:24 +0100 Message-Id: <1595005225-11519-2-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1595005225-11519-1-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <1595005225-11519-1-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add USB1 PWEN pin and group for USB1 interface. Signed-off-by: Lad Prabhakar Reviewed-by: Biju Das --- drivers/pinctrl/sh-pfc/pfc-r8a7790.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7790.c b/drivers/pinctrl/sh-pfc/pfc-r8a7790.c index f524401fec5f..39ba1e7cc1c3 100644 --- a/drivers/pinctrl/sh-pfc/pfc-r8a7790.c +++ b/drivers/pinctrl/sh-pfc/pfc-r8a7790.c @@ -3611,6 +3611,13 @@ static const unsigned int usb1_pins[] = { static const unsigned int usb1_mux[] = { USB1_PWEN_MARK, USB1_OVC_MARK, }; +static const unsigned int usb1_pwen_pins[] = { + /* PWEN */ + RCAR_GP_PIN(5, 20), +}; +static const unsigned int usb1_pwen_mux[] = { + USB1_PWEN_MARK, +}; /* - USB2 ------------------------------------------------------------------- */ static const unsigned int usb2_pins[] = { /* PWEN, OVC */ @@ -3939,7 +3946,7 @@ static const unsigned int vin3_clk_mux[] = { }; static const struct { - struct sh_pfc_pin_group common[289]; + struct sh_pfc_pin_group common[290]; struct sh_pfc_pin_group automotive[1]; } pinmux_groups = { .common = { @@ -4193,6 +4200,7 @@ static const struct { SH_PFC_PIN_GROUP(usb0), SH_PFC_PIN_GROUP(usb0_ovc_vbus), SH_PFC_PIN_GROUP(usb1), + SH_PFC_PIN_GROUP(usb1_pwen), SH_PFC_PIN_GROUP(usb2), VIN_DATA_PIN_GROUP(vin0_data, 24), VIN_DATA_PIN_GROUP(vin0_data, 20), @@ -4640,6 +4648,7 @@ static const char * const usb0_groups[] = { static const char * const usb1_groups[] = { "usb1", + "usb1_pwen", }; static const char * const usb2_groups[] = { -- 2.17.1