From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1162850AbdAJUZX (ORCPT ); Tue, 10 Jan 2017 15:25:23 -0500 Received: from lelnx194.ext.ti.com ([198.47.27.80]:28233 "EHLO lelnx194.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030869AbdAJUZV (ORCPT ); Tue, 10 Jan 2017 15:25:21 -0500 Date: Tue, 10 Jan 2017 14:24:43 -0600 From: Bin Liu To: Icenowy Zheng CC: Maxime Ripard , Chen-Yu Tsai , Kishon Vijay Abraham I , , , , Subject: Re: [PATCH 4/4] ARM: dts: sun8i: add OTG function to Lichee Pi Zero Message-ID: <20170110202443.GC2479@uda0271908> Mail-Followup-To: Bin Liu , Icenowy Zheng , Maxime Ripard , Chen-Yu Tsai , Kishon Vijay Abraham I , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org References: <20170103152534.20118-1-icenowy@aosc.xyz> <20170103152534.20118-5-icenowy@aosc.xyz> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20170103152534.20118-5-icenowy@aosc.xyz> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 03, 2017 at 11:25:34PM +0800, Icenowy Zheng wrote: > Lichee Pi Zero features a USB OTG port. > > Add support for it. > > Note: in order to use the Host mode, the board must be powered via the > +5V and GND pins. > > Signed-off-by: Icenowy Zheng > --- > arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts b/arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts > index 0099affc6ce3..3d9168cbaeca 100644 > --- a/arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts > +++ b/arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts > @@ -71,3 +71,13 @@ > pinctrl-names = "default"; > status = "okay"; > }; > + > +&usb_otg { > + dr_mode = "otg"; Why not set this default mode in dtsi instead? Regards, -Bin. > + status = "okay"; > +}; > + > +&usbphy { > + usb0_id_det-gpio = <&pio 5 6 GPIO_ACTIVE_HIGH>; > + status = "okay"; > +}; > -- > 2.11.0 >