From patchwork Tue Feb 16 21:00:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Korsgaard X-Patchwork-Id: 8331911 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 8D29CC02AA for ; Tue, 16 Feb 2016 21:03:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A405D202A1 for ; Tue, 16 Feb 2016 21:03:04 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CB81720279 for ; Tue, 16 Feb 2016 21:03:03 +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 1aVmkC-0000Eh-AC; Tue, 16 Feb 2016 21:01:12 +0000 Received: from mail-wm0-x233.google.com ([2a00:1450:400c:c09::233]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aVmk9-0008Rx-ST for linux-arm-kernel@lists.infradead.org; Tue, 16 Feb 2016 21:01:10 +0000 Received: by mail-wm0-x233.google.com with SMTP id b205so128010186wmb.1 for ; Tue, 16 Feb 2016 13:00:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id; bh=rAw5wBB5s7YadI2Ny2K0JV/VEcMxm8jbMVl6P0jxLqk=; b=XeIedMAeoy+2BqVV1WuiWoZ9saoGYn1/LA7WoXUm+k1rMKvb6DX3mBh8B2zOfuM4Wn VwTl/xpj+r52X2m9KQbVt6w8AV4rzvq8kpUCcX8aDL6WpfzGAx2+NP7QGETWkSZ2G+UQ 5TW4J9zh2bFpEOLHSRvOvSGx8zOuEhhnU2un2hM5VX5H4PjzJ7BUHAMnS+Twl6H8Srnj DXUtU6mHTMMUwGAPrTd6xz7vuPuxwRT9faexU1QVkXucHRTlX2uZ8B3/mq0aJqjozPC9 Rpy+3cnOmUm93L7IeIlAnUPwyQOD4y9wxl21ddfLq2/b9HXdcjfttgq/Io1qCC5jYQ4/ eQxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=rAw5wBB5s7YadI2Ny2K0JV/VEcMxm8jbMVl6P0jxLqk=; b=OIBlpDNUUYIlifyNhxXPVWx9s8HFi/ojfQGqQXxS689TSXVzAzEbhxdT4WVRAaEgTR GgKazxR9A0Kjhx0ZRrRrDUiThucjcZDhBkPuxMaMsMP+Sfrs7/UljT8lFuBJZ7bMxjBE Q+DFa0an917vW5GICrxQ1cnl4xxfLecOzdS2hTWuK6hzNxfUia0dfgmyVtb+5Q2Yz76L JEWN9cO4lF8pmmHkEPEWKjkqClfIwPpGcVYhPZVUiOH21W+V/ili09nt8UGSK9NclISq WowqbjPlsbmhdpqzzA1yr0/nbAa2iVfx6k+NSmFRJMt/oR1fmyB6XHqdpWgZ+pglYyO+ lEhQ== X-Gm-Message-State: AG10YOTYH/8XJv8uoZuhnFWjX64yRzHupmh7olYJw7WrIWGM/g56tistPEpd4e32UJim+g== X-Received: by 10.195.13.98 with SMTP id ex2mr23967875wjd.45.1455656447748; Tue, 16 Feb 2016 13:00:47 -0800 (PST) Received: from dell.be.48ers.dk (d51A5BC31.access.telenet.be. [81.165.188.49]) by smtp.gmail.com with ESMTPSA id h132sm22191003wmf.9.2016.02.16.13.00.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Feb 2016 13:00:46 -0800 (PST) Received: from peko by dell.be.48ers.dk with local (Exim 4.84) (envelope-from ) id 1aVmjl-00088J-Q7; Tue, 16 Feb 2016 22:00:45 +0100 From: Peter Korsgaard To: maxime.ripard@free-electrons.com, hdegoede@redhat.com Subject: [PATCH] ARM: dts: sun4i: Enable USB DRC on Hyundai-a7hd Date: Tue, 16 Feb 2016 22:00:04 +0100 Message-Id: <1455656404-31191-1-git-send-email-peter@korsgaard.com> X-Mailer: git-send-email 2.1.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160216_130110_093947_C83D1C60 X-CRM114-Status: GOOD ( 10.11 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-sunxi@googlegroups.com, Peter Korsgaard , linux-arm-kernel@lists.infradead.org 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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,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 Enable the OTG USB controller on the A7HD. Signed-off-by: Peter Korsgaard Reviewed-by: Hans de Goede Reviewed-by: Hans de Goede --- arch/arm/boot/dts/sun4i-a10-hyundai-a7hd.dts | 34 ++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/arch/arm/boot/dts/sun4i-a10-hyundai-a7hd.dts b/arch/arm/boot/dts/sun4i-a10-hyundai-a7hd.dts index 43f58fb..9103864 100644 --- a/arch/arm/boot/dts/sun4i-a10-hyundai-a7hd.dts +++ b/arch/arm/boot/dts/sun4i-a10-hyundai-a7hd.dts @@ -87,6 +87,30 @@ status = "okay"; }; +&otg_sram { + status = "okay"; +}; + +&pio { + usb0_id_detect_pin: usb0_id_detect_pin@0 { + allwinner,pins = "PH4"; + allwinner,function = "gpio_in"; + allwinner,drive = ; + allwinner,pull = ; + }; + + usb0_vbus_detect_pin: usb0_vbus_detect_pin@0 { + allwinner,pins = "PH5"; + allwinner,function = "gpio_in"; + allwinner,drive = ; + allwinner,pull = ; + }; +}; + +®_usb0_vbus { + status = "okay"; +}; + ®_usb2_vbus { gpio = <&pio 7 6 GPIO_ACTIVE_HIGH>; /* PH6 */ status = "okay"; @@ -102,7 +126,17 @@ allwinner,pins = "PH6"; }; +&usb_otg { + dr_mode = "otg"; + status = "okay"; +}; + &usbphy { + pinctrl-names = "default"; + pinctrl-0 = <&usb0_id_detect_pin>, <&usb0_vbus_detect_pin>; + usb0_id_det-gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */ + usb0_vbus_det-gpio = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */ + usb0_vbus-supply = <®_usb0_vbus>; usb2_vbus-supply = <®_usb2_vbus>; status = "okay"; };