Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751486AbdLAW4Y (ORCPT ); Fri, 1 Dec 2017 17:56:24 -0500 Received: from box2.japko.eu ([91.121.152.53]:57874 "EHLO box2.japko.eu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751188AbdLAW4X (ORCPT ); Fri, 1 Dec 2017 17:56:23 -0500 X-Greylist: delayed 396 seconds by postgrey-1.27 at vger.kernel.org; Fri, 01 Dec 2017 17:56:22 EST 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-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 844 Lines: 36 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"; +}; -- 2.13.6