From patchwork Fri Dec 1 22:49:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Adamski X-Patchwork-Id: 10088209 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 140CC6035E for ; Fri, 1 Dec 2017 22:50:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 032A72A440 for ; Fri, 1 Dec 2017 22:50:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E8E5C2A455; Fri, 1 Dec 2017 22:50:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2445E2A440 for ; Fri, 1 Dec 2017 22:50:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:To:From:Date: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=hInpkGIGYgi5YgDSUPWC4pOP/IPAQcmqeHEEfUE+efo=; b=YeTlI9HKICoO9F mVDZHD2SlDvTS7RomvGHQdDVF4oixfLFqbyWpy1n/ERVJSPW9pxfmqP4KgVQDmJW+07NwEI5jdsVI TeqW6UmBBsh8XHtuR+/oFRhg5A2MzofxoLgqOHXUXUnGHzeHfUfr2gZ2UU3nfcvym7KoC0BvL17QB LeiIOYYrZu2JaX4TkR6zEf5fNx5j6A1ONgGY/btqXpV74rnKXPtZmvu4CWhTPXfjzbrOlC1HZX0nA 2szqin3lTlWtxnG4VmzMT3nzHjlosqnX1wFgLS4Rm3ann20WxjPkmigi74ATI9RCCDYYyyqV6JNgG wR1sHcl2ZbFJcON87scg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eKu8P-0003dI-LG; Fri, 01 Dec 2017 22:50:17 +0000 Received: from box2.japko.eu ([91.121.152.53]) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eKu8L-0002DW-9T for linux-arm-kernel@lists.infradead.org; Fri, 01 Dec 2017 22:50:15 +0000 Received: from t440.localdomain (bobine.static.korbank.pl [193.239.58.166]) by box2.japko.eu (Postfix) with ESMTPSA id 9373863B5B; Fri, 1 Dec 2017 23:49:40 +0100 (CET) Date: Fri, 1 Dec 2017 23:49:42 +0100 From: Krzysztof Adamski To: Rob Herring , Mark Rutland , Russell King , Maxime Ripard , Chen-Yu Tsai , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: dts: sun8i: h3: enable USB OTG for NanoPi Neo board Message-ID: <20171201224942.GA12473@t440.localdomain> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.9.1 (2017-09-22) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171201_145013_572804_8B261E70 X-CRM114-Status: UNSURE ( 7.63 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 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-Virus-Scanned: ClamAV using ClamSMTP Similarly to Orange Pi Zero, NanoPi Neo board has an USB OTG port with an ID pin but with unpowered VBUS. This patch enables this port in forced peripheral mode. Signed-off-by: Krzysztof Adamski --- arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts b/arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts index 78f6c24952dd..14c3f137dbd3 100644 --- a/arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts +++ b/arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts @@ -53,3 +53,20 @@ allwinner,leds-active-low; status = "okay"; }; + +&usb_otg { + status = "okay"; + dr_mode = "peripheral"; +}; + +&usbphy { + usb0_id_det-gpios = <&pio 6 12 GPIO_ACTIVE_HIGH>; /* PG12 */ +}; + +&ohci0 { + status = "okay"; +}; + +&ehci0 { + status = "okay"; +};