From patchwork Wed Oct 8 19:55:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 5055431 Return-Path: X-Original-To: patchwork-linux-arm@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 27F8BC11AB for ; Wed, 8 Oct 2014 19:58:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 50F40201BC for ; Wed, 8 Oct 2014 19:58:36 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (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 76FDC2015D for ; Wed, 8 Oct 2014 19:58:35 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XbxLZ-0004pV-MP; Wed, 08 Oct 2014 19:56:29 +0000 Received: from mail-la0-f52.google.com ([209.85.215.52]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XbxLU-0004eA-6t for linux-arm-kernel@lists.infradead.org; Wed, 08 Oct 2014 19:56:25 +0000 Received: by mail-la0-f52.google.com with SMTP id hz20so9074789lab.25 for ; Wed, 08 Oct 2014 12:56:01 -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=cRpgHvzhD2YpauMQQB5sslSrQ+vv3ff0a0YvgpHTcbw=; b=lkSAlaFFXE1oYTk6sLvB9CevrpnjnNKLc7l3QI7XTpETFV/niCvmRXDsDkPyuiW3c2 3t76hRxsDjVbkD43+P92wCWYbbjW3QnHaCyokTwUk9HL6S87305wZ9g7oiIrE+gfANLt DJIH2LogEjL36qAxlVkTwRnG0TqnHTVobkG4oS7sKNCBZDzzTWBWUJVx4DeFiLqZZ2cq 1WorxEZPx1si8rREa0t9KbcurGGf6e+DCycYNbMQvAsyLQRPEAaFyOYL/iXeacrNoxtt LzVUsNWtFM5rt7Tn4pyl4mj9xEgDbhs56QisitMB8BwhFsJp+rx54JQ+Zko/CTex/L/h htfw== X-Gm-Message-State: ALoCoQl2+dloCGq1EoKJYclUeZbitMY8pH82aXji9sRZtCRzu9SQBhktY+5PxB9aW4yfCNIhoX4y X-Received: by 10.152.10.2 with SMTP id e2mr5702972lab.96.1412798161711; Wed, 08 Oct 2014 12:56:01 -0700 (PDT) Received: from wasted.cogentembedded.com (ppp83-237-248-242.pppoe.mtu-net.ru. [83.237.248.242]) by mx.google.com with ESMTPSA id jp17sm328647lab.18.2014.10.08.12.56.00 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Oct 2014 12:56:00 -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 Subject: [PATCH v4 2/2] ARM: shmobile: lager: enable HS-USB Date: Wed, 08 Oct 2014 23:55:59 +0400 Message-ID: <2455064.TG6DqQLVoV@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: <1674850.BZpGW9kEud@wasted.cogentembedded.com> References: <1674850.BZpGW9kEud@wasted.cogentembedded.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141008_125624_493239_985E0DB3 X-CRM114-Status: GOOD ( 10.65 ) X-Spam-Score: -0.7 (/) Cc: linux@arm.linux.org.uk, yoshihiro.shimoda.uh@renesas.com, linux-usb@vger.kernel.org, magnus.damm@gmail.com, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, T_RP_MATCHES_RCVD, 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: 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 node and prop, moved device node, fixed summary, supplemented changelog] Signed-off-by: Sergei Shtylyov --- Changes in version 4: - fixed pin node name; - moved pin node before USB0's one. 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(+) 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 @@ -221,6 +221,11 @@ renesas,function = "iic3"; }; + hsusb_pins: hsusb { + renesas,groups = "usb0_ovc_vbus"; + renesas,function = "usb0"; + }; + usb0_pins: usb0 { renesas,groups = "usb0"; renesas,function = "usb0"; @@ -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"; };