Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751055AbdHRIFq (ORCPT ); Fri, 18 Aug 2017 04:05:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:46098 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750709AbdHRIFm (ORCPT ); Fri, 18 Aug 2017 04:05:42 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EED9322B5F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=shawnguo@kernel.org Date: Fri, 18 Aug 2017 16:03:57 +0800 From: Shawn Guo To: Yinbo Zhu Cc: Mark Rutland , Harninder Rai , Andy Tang , "open list:" , Catalin Marinas , Will Deacon , Ashish Kumar , open list , Rob Herring , "linux-devel@gforge.freescale.net" , Raghav Dogra , "moderated list:" Subject: Re: [PATCH] arm64: dts: ls1088a: Add USB support Message-ID: <20170818080355.GK7608@dragon> References: <1502938358-23522-1-git-send-email-yinbo.zhu@nxp.com> <20170817140232.GE7608@dragon> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Content-Length: 1344 Lines: 44 On Fri, Aug 18, 2017 at 07:48:19AM +0000, Yinbo Zhu wrote: > > diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi > > index 3a3be87..0dbff29 100644 > > --- a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi > > +++ b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi > > @@ -458,6 +458,24 @@ > > status = "disabled"; > > }; > > > > + usb0: usb3@3100000 { > > + compatible = "snps,dwc3"; > > + reg = <0x0 0x3100000 0x0 0x10000>; > > + interrupts = <0 80 0x4>; /* Level high type */ > > Use IRQ_TYPE_LEVEL_HIGH, so that you can save the comment. > > > + dr_mode = "host"; > > + configure-gfladj; > > What is this? I do not see it in upstream kernel. > > > + snps,dis_rxdet_inp3_quirk; > > You probably need a "disabled" status. > > Shawn > > Hi Shawn, > > About your description " You probably need a "disabled" status." > Your meaning is that remove the property "snps,dis_rxdet_inp3_quirk;", isn't it? > In fact, if remove the property , 1088ardb usb will doesn't detect. No, that's not what I meant. I meant the USB device should be disabled by default in .dtsi by having the following line. status = "disabled"; And then if your board has the pin-out of this USB device, you have the line below to turn on the support. status = "okay"; Shawn