Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2753798ybp; Sat, 5 Oct 2019 19:59:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqyY0HGwm0KBLDUfi+89/h3ytN4rhIk/jfx6brTRD9xMl+dS5hQ/C+0d07sooy4Nr++to3sk X-Received: by 2002:a17:906:9703:: with SMTP id k3mr18225074ejx.159.1570330740961; Sat, 05 Oct 2019 19:59:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570330740; cv=none; d=google.com; s=arc-20160816; b=hj0uSY921CiB18ADUJjfhTU45IhPMBkCYauaVzzI/pkmVMCZOsS3Wd5MKlXGV3RH64 mWG9hFl1hzds9j6XGIiuRmT54mYKBfkpSj+xUReN9UsuwXL5MZQTa1SIhgdhPV62wkcU hEvEsq6TRcRt/JJyFY8nUaTNV9ScklQmlewi8P4nHk7l7VQDj4OYB+N9ZgwX2rXe54by PgWUkiwzdXwItt4fpgFVIFAVqaVWkD08BY8MC42GzV4F6kzJuO2Eg8uFKWRe0xTAb18m asLmXIoNRIKskQ2VgcGYzLVZ0FGSwOW0yB6AwXDn57WPxy6owkcGZ81d4Ze6+DOLenf0 LBRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=I7ZME2eshNoeNDgGB+SbBTSVekBL6rvn1Te/Fv76mUs=; b=sRr8JeEu7x+RT1ApM62PU0BLXwhBV/w6iqp0qFWDVmXUXAvEnphEZonSmijUqFcvaN HbyBTuT0iFbNKYHCP2nwqwog/7OwFm6CLPWU5IVrBLDjDf6urkqH7WbNLpaallasFbJt UMaLIyQzYHbho9INFV3B6jmkE+Gtliw8vIqEDlm2fH+MnlecenSJ4eesk6lntPt/Y29T 2G/ttGUtzppuaRgRPyFKfHfPrN4TuKSQrBkAwHak/O++UC5JdQ4mr5W8p+7ataUfEI6a CzkmqYWZfwJU3dDoZtKQM+G1jpQlSxU54zip+wlBdJDBMRxc1YhclNQshqPBazcgzuJC 5cXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=CD9w2Sr+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d10si5119534eja.69.2019.10.05.19.58.26; Sat, 05 Oct 2019 19:59:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=CD9w2Sr+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726107AbfJFCzQ (ORCPT + 99 others); Sat, 5 Oct 2019 22:55:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:50008 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725801AbfJFCzQ (ORCPT ); Sat, 5 Oct 2019 22:55:16 -0400 Received: from dragon (li937-157.members.linode.com [45.56.119.157]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4D539218AC; Sun, 6 Oct 2019 02:55:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570330515; bh=ieq18tBRGO65LoXREEvWqq2qiGQbPennPGhSD9vJ4AM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CD9w2Sr+yn51n+HDlK6lfj/NCATJMKBOJPO3TOvHsen/CPup5K1msxudmTCDNdxbm UcMmcAN3eompehkCvRvn1INLn0czUQwGmi/FrRruD6GrFL8nm0gQ2HQTItwsSiflAt odf3cv3YudRWWjZDj6zUJmJOm+NFPVLPzpIgD2QI= Date: Sun, 6 Oct 2019 10:54:52 +0800 From: Shawn Guo To: Yinbo Zhu , Li Yang Cc: Rob Herring , Mark Rutland , xiaobo.xie@nxp.com, jiafei.pan@nxp.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Ran Wang Subject: Re: [PATCH v1] usb: dwc3: enable otg mode for dwc3 usb ip on layerscape Message-ID: <20191006025450.GO7150@dragon> References: <20190909090244.42543-1-yinbo.zhu@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190909090244.42543-1-yinbo.zhu@nxp.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 09, 2019 at 05:02:44PM +0800, Yinbo Zhu wrote: > layerscape otg function should be supported HNP SRP and ADP protocol > accroing to rm doc, but dwc3 code not realize it and use id pin to > detect who is host or device(0 is host 1 is device) this patch is to > enable OTG mode on ls1028ardb ls1088ardb and ls1046ardb in dts > > Signed-off-by: Yinbo Zhu The patch prefix should be something like: 'arm64: dts: ...' @Leo, do you agree with the changes? Shawn > --- > arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 2 +- > arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 2 +- > arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 2 +- > 3 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi > index 7975519b4f56..5810d0400dbc 100644 > --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi > +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi > @@ -320,7 +320,7 @@ > compatible = "fsl,ls1028a-dwc3", "snps,dwc3"; > reg = <0x0 0x3110000 0x0 0x10000>; > interrupts = ; > - dr_mode = "host"; > + dr_mode = "otg"; > snps,dis_rxdet_inp3_quirk; > snps,quirk-frame-length-adjustment = <0x20>; > snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>; > diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi > index b0ef08b090dd..ecce6151b9b0 100644 > --- a/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi > +++ b/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi > @@ -582,7 +582,7 @@ > compatible = "snps,dwc3"; > reg = <0x0 0x3000000 0x0 0x10000>; > interrupts = ; > - dr_mode = "host"; > + dr_mode = "otg"; > snps,quirk-frame-length-adjustment = <0x20>; > snps,dis_rxdet_inp3_quirk; > snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>; > diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi > index dacd8cf03a7f..4b5413f7c90c 100644 > --- a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi > +++ b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi > @@ -385,7 +385,7 @@ > compatible = "snps,dwc3"; > reg = <0x0 0x3110000 0x0 0x10000>; > interrupts = <0 81 IRQ_TYPE_LEVEL_HIGH>; > - dr_mode = "host"; > + dr_mode = "otg"; > snps,quirk-frame-length-adjustment = <0x20>; > snps,dis_rxdet_inp3_quirk; > status = "disabled"; > -- > 2.17.1 >