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: 5055381 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 5EA09C11AB for ; Wed, 8 Oct 2014 19:56:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8AF7C201CD for ; Wed, 8 Oct 2014 19:56:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9FDF82016C for ; Wed, 8 Oct 2014 19:56:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753049AbaJHT4G (ORCPT ); Wed, 8 Oct 2014 15:56:06 -0400 Received: from mail-lb0-f172.google.com ([209.85.217.172]:63345 "EHLO mail-lb0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754150AbaJHT4D (ORCPT ); Wed, 8 Oct 2014 15:56:03 -0400 Received: by mail-lb0-f172.google.com with SMTP id b6so8855423lbj.17 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=S6RQ+u3NJYYMw6RGh/ICpHjlsBs9XS5y3Qg/wr11efRmMLjTUKPqGbT/hioyEUh4Wk nZS1ZA/xUaTF6SHrnbAR0mDaQMWQbtfwhEto+UYusSjkAPlE5M+VkbDR/5bkoyUcPN2F 60MUwQk4E7A/Twiidd47Gwle2WXEIr4zKltKlBc2tLalz0JClFISY0icFrbvXaXwuJ27 QP4uHoSEerLviogpPUWQll/umVNX8MzZvYbOTCkKdaJYn4loZ8EIEpnpMn6mxBBKUIfZ R8C9gXXOmq0yIAoLB2zplPbqIBesvaIDBycRjxG57y93qwUfxKUg5ttImxo1hdec/SqE Qv/w== X-Gm-Message-State: ALoCoQmygdyqXs8anwXKgMq1+izUHeKEuVa6+OSxSaODcDvSWjErud3LwfqHfDixAXWHr9zCQn0f 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 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 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 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 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(+) -- 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 @@ -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"; };