From patchwork Tue Oct 7 20:26:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 5049021 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B88E6C11AB for ; Tue, 7 Oct 2014 20:26:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 95B2220222 for ; Tue, 7 Oct 2014 20:26:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6C5E22021F for ; Tue, 7 Oct 2014 20:26:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753723AbaJGU0L (ORCPT ); Tue, 7 Oct 2014 16:26:11 -0400 Received: from mail-la0-f43.google.com ([209.85.215.43]:39561 "EHLO mail-la0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752776AbaJGU0K (ORCPT ); Tue, 7 Oct 2014 16:26:10 -0400 Received: by mail-la0-f43.google.com with SMTP id mc6so7169491lab.16 for ; Tue, 07 Oct 2014 13:26:08 -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:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=g6WuFzXrSbNlikLwJRIEJ8BF3y9g7+jnL/KquVbVAv0=; b=AGEpF0CMVDfXB4JBcqGbTyzHCIyCZ7zHptL+Kakw6vF8ci5Q4QSje5OrpCahRUHoiC R+oqQataBs1cd2gkSVjTv7VSOi53va8s4UZHKDww//Nw65FcpVKOucs09/qBYZ6GLax1 DmU6jnTyFYQOP7OGcNcloZx67x5SXqqfDYJxWsupq+BSY8SXXuxH20LCJo1PwYH92BGk cbSgNQi1oz+wbcvmWggmszTUzRGFSnuQ0Nuofh5mxhTEp0fjEtyYVyy4S4tYXIEeMyTd GqFmyScngoCkS8Cl3COMNPc3EwuFQHh4s0nHxd+KyfVr0jNbcMqs2wmyFC0LnWlRLIXY K3CQ== X-Gm-Message-State: ALoCoQmQRUnMr/o4dnN8AQWUro/3b+D9WLzHOZZykupRBhPxDL3gTBMbpIrak27u957btHGCV038 X-Received: by 10.112.172.202 with SMTP id be10mr1621884lbc.98.1412713568652; Tue, 07 Oct 2014 13:26:08 -0700 (PDT) Received: from wasted.cogentembedded.com (ppp22-173.pppoe.mtu-net.ru. [81.195.22.173]) by mx.google.com with ESMTPSA id f8sm2897958lbv.39.2014.10.07.13.26.07 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Oct 2014 13:26:07 -0700 (PDT) From: Sergei Shtylyov To: horms@verge.net.au, linux-sh@vger.kernel.org, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, devicetree@vger.kernel.org Cc: magnus.damm@gmail.com, linux@arm.linux.org.uk, linux-arm-kernel@lists.infradead.org, linux-usb@vger.kernel.org, yoshihiro.shimoda.uh@renesas.com Subject: [PATCH v3 2/2] ARM: shmobile: lager: enable HS-USB Date: Wed, 08 Oct 2014 00:26:06 +0400 Message-ID: <2298118.7qjLAFjuvd@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.14.1 (Linux/3.16.3-200.fc20.x86_64; KDE/4.14.1; x86_64; ; ) In-Reply-To: <2438577.UAUDMkTTWI@wasted.cogentembedded.com> References: <2438577.UAUDMkTTWI@wasted.cogentembedded.com> MIME-Version: 1.0 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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: Yoshihiro Shimoda Enable HS-USB device for the Lager board, defining the GPIO that the driver should check when probing. Since this board doesn't have the OTG ID pin, we assume that GP5_18 (USB0_PWEN) is an ID pin because it is 1 when the SW5 is in position 2-3 (meaning USB function) and 0 in other positions. Note that there will be pinctrl-related error messages if both internal PCI and HS-USB drivers are enabled but they should be just ignored. Signed-off-by: Yoshihiro Shimoda [Sergei: added pin function/group and prop, moved device node, fixed summary, supplemented changelog] Signed-off-by: Sergei Shtylyov --- Changes in version 3: - added pin function/group and the pinctrl-related prop; - moved the HS-USB node to precede the USB PHY node; - uppercased "arm" in the summary; - supplemented changelog. arch/arm/boot/dts/r8a7790-lager.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: renesas/arch/arm/boot/dts/r8a7790-lager.dts =================================================================== --- renesas.orig/arch/arm/boot/dts/r8a7790-lager.dts +++ renesas/arch/arm/boot/dts/r8a7790-lager.dts @@ -226,6 +226,11 @@ renesas,function = "usb0"; }; + hsusb_pins: usb0 { + renesas,groups = "usb0_ovc_vbus"; + renesas,function = "usb0"; + }; + usb1_pins: usb1 { renesas,groups = "usb1"; renesas,function = "usb1"; @@ -425,6 +430,13 @@ pinctrl-names = "default"; }; +&hsusb { + status = "okay"; + pinctrl-0 = <&hsusb_pins>; + pinctrl-names = "default"; + renesas,enable-gpio = <&gpio5 18 GPIO_ACTIVE_HIGH>; +}; + &usbphy { status = "okay"; };