From patchwork Wed Jan 29 23:10:19 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 3555071 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 2B79B9F2E9 for ; Wed, 29 Jan 2014 23:11:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 561B320160 for ; Wed, 29 Jan 2014 23:11:00 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5AF282015E for ; Wed, 29 Jan 2014 23:10:59 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W8eGl-00073B-C4; Wed, 29 Jan 2014 23:10:08 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1W8eGY-0004lK-Fd; Wed, 29 Jan 2014 23:09:54 +0000 Received: from mail-pb0-x235.google.com ([2607:f8b0:400e:c01::235]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W8eGC-0004io-HS for linux-arm-kernel@lists.infradead.org; Wed, 29 Jan 2014 23:09:34 +0000 Received: by mail-pb0-f53.google.com with SMTP id md12so2341002pbc.26 for ; Wed, 29 Jan 2014 15:09:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:date:message-id:in-reply-to:references:subject; bh=a1FDijqZH6AxwwkEb4XRIUJw7yba05JarCfqurrjTow=; b=HvAhp48V/y1VWzMvERQQu+1Xv9JLYh6c1/5aOFM7g+uzxAwZy9yEZzVCe7gaF8EOQ3 G9fc0fr7Ssd16uxFz9KB4Nsqg3R4wJli2Rypq7GV2EclTDrtIfS9cH85mUH2tOlGixZT KwiqrLf/smpPPbcWem1uT96oyqrK5SI/BzKLEpP0TzGFQYdZSC3ejTv3o6w7ydBxMpcA gbE8agiirgQaW+FdJ0N7s19ptuwybwxHvEv4JDR99I/6w750cuOMh3ceSNQdnwzTHVvN mXD/5mebyKKSVnWhnz60WRB4h1xCUyRz21JxJ9/d97gZlSpwO14ViChpcx5oTPp2Llx/ lFfA== X-Received: by 10.66.16.131 with SMTP id g3mr10930569pad.138.1391036951126; Wed, 29 Jan 2014 15:09:11 -0800 (PST) Received: from [127.0.0.1] (s214090.ppp.asahi-net.or.jp. [220.157.214.90]) by mx.google.com with ESMTPSA id pq1sm10813978pbc.8.2014.01.29.15.09.08 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Jan 2014 15:09:10 -0800 (PST) From: Magnus Damm To: linux-sh@vger.kernel.org Date: Thu, 30 Jan 2014 08:10:19 +0900 Message-Id: <20140129231019.22655.41456.sendpatchset@w520> In-Reply-To: <20140129230959.22655.55645.sendpatchset@w520> References: <20140129230959.22655.55645.sendpatchset@w520> Subject: [PATCH 02/03] pinctrl: sh-pfc: r8a7790: Break out USB0 OVC/VBUS X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140129_180932_734269_71B73E7C X-CRM114-Status: UNSURE ( 9.32 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) Cc: Magnus Damm , valentine.barshak@cogentembedded.com, horms@verge.net.au, laurent.pinchart@ideasonboard.com, ben.dooks@codethink.co.uk, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Magnus Damm Create a new group for the USB0 OVC/VBUS pin by itself. This allows us to monitor PWEN as GPIO on the Lager board. Signed-off-by: Magnus Damm Acked-by: Laurent Pinchart Acked-by: Simon Horman --- drivers/pinctrl/sh-pfc/pfc-r8a7790.c | 9 +++++++++ 1 file changed, 9 insertions(+) --- 0001/drivers/pinctrl/sh-pfc/pfc-r8a7790.c +++ work/drivers/pinctrl/sh-pfc/pfc-r8a7790.c 2014-01-24 10:23:32.000000000 +0900 @@ -3231,6 +3231,13 @@ static const unsigned int usb0_pins[] = static const unsigned int usb0_mux[] = { USB0_PWEN_MARK, USB0_OVC_VBUS_MARK, }; +static const unsigned int usb0_ovc_vbus_pins[] = { + /* OVC/VBUS */ + RCAR_GP_PIN(5, 19), +}; +static const unsigned int usb0_ovc_vbus_mux[] = { + USB0_OVC_VBUS_MARK, +}; /* - USB1 ------------------------------------------------------------------- */ static const unsigned int usb1_pins[] = { /* PWEN, OVC */ @@ -3789,6 +3796,7 @@ static const struct sh_pfc_pin_group pin SH_PFC_PIN_GROUP(tpu0_to2), SH_PFC_PIN_GROUP(tpu0_to3), SH_PFC_PIN_GROUP(usb0), + SH_PFC_PIN_GROUP(usb0_ovc_vbus), SH_PFC_PIN_GROUP(usb1), SH_PFC_PIN_GROUP(usb2), VIN_DATA_PIN_GROUP(vin0_data, 24), @@ -4134,6 +4142,7 @@ static const char * const tpu0_groups[] static const char * const usb0_groups[] = { "usb0", + "usb0_ovc_vbus", }; static const char * const usb1_groups[] = {