Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4170413ybp; Sun, 13 Oct 2019 23:53:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqw6mtFnTIa1hdv3eTEk4AL6wX1/VfA5jZq+ZV6GItT4dcN8YddEi0rr8iFtJDpQjyIMDd+/ X-Received: by 2002:aa7:c259:: with SMTP id y25mr26307835edo.117.1571035996867; Sun, 13 Oct 2019 23:53:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571035996; cv=none; d=google.com; s=arc-20160816; b=udKFCx+DOYRikby78zrEeeEb+le7OWW1vGabQu1ky5ejYo+FQCHpHwftoJFLA+2d/T ibl8Rp3arNdLgQddE4g3X9judgjA4JdfhFyeT4FrQ6HusMlX0Y8+Vsznj7wyd67/3BP8 ZCMsrn8ZCA4AJzIIHp+B3NUem98AMxrC5ZazTAyzgObCyiIu0RjKIlI1zQMjCDUM6hb1 uOHX/lOd3zTRLyCVUvDQPEElzKr3YO1qfz7U8Gx+V6M9BjaIqs2U7CzT6N9O08/Tm2Gm d5w9v0LDKZr34iyAzyIK+y0zbb0C1FePpTgY9vu3+++D3XLWaLoQElCwncYpkCoXO2YX r71w== 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=ez1NsB6Ss/aN3rVlqp8cn8/4JZPtIm/5UWWsfRjREVA=; b=bpgt1xvJnEJ3q3IhiOGUUZIjy5vDaUUHS7HpUWBQdd/JW3Z6HpFWfu0tWJRBHttcRP b89qC2gWC4fNJoNozMTIdnpOqtCVoTPJmPEq1ytG1plV7x4OOMxAxyVdBe1XyYgRWXQe Dh/oREoCTQGOLdSrsD1MPxfRNu/sdC3Engs3CeyWJLXY/ph3I+EU9lpT91Eqym295Cna AW5dcM0Bhpi5jCWWI5DCTsOyNvbkwRr2AMdresUo7nCfMEnv/qVQb21cP+9SlH+eCipw HnBHE/BNb6gGZVf0KGh2wRUCmHdhdLSbE1/0DRP/K0VL5DUBV42HxbOKr8khmKbsXZ58 RMmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="p/KvMtro"; 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 h19si10782418ejd.142.2019.10.13.23.52.53; Sun, 13 Oct 2019 23:53:16 -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="p/KvMtro"; 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 S1730116AbfJNGwn (ORCPT + 99 others); Mon, 14 Oct 2019 02:52:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:57756 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726618AbfJNGwn (ORCPT ); Mon, 14 Oct 2019 02:52:43 -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 7C5A820673; Mon, 14 Oct 2019 06:52:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1571035962; bh=ryBaBPoQwcBEQb8d+s/UEB6ik9EIb3YdztJHUWV605s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=p/KvMtroXkV8GiWQIn+dSLyMRFwdNPWAG29vw7nciv0J/g+p7LcbmU9aobj6Ilmwm qBz/SqM64cC3/J6WofC0XzsS7O6z4ofdXIO48yqFl0+RFifGVFhTMe5B7fW7QnJHHs /fJOMGgEtYaUQmkspNJ5aZ3okx7bS4zaAaFvtPNU= Date: Mon, 14 Oct 2019 14:52:12 +0800 From: Shawn Guo To: Yinbo Zhu Cc: Li Yang , Rob Herring , Mark Rutland , xiaobo.xie@nxp.com, jiafei.pan@nxp.com, Ran Wang , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] usb: dwc3: enable otg mode for dwc3 usb ip on layerscape Message-ID: <20191014065210.GE12262@dragon> References: <20190924032903.32775-1-yinbo.zhu@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190924032903.32775-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 Tue, Sep 24, 2019 at 11:29:03AM +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 > --- > arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts | 4 ++++ > arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts | 4 ++++ > arch/arm64/boot/dts/freescale/fsl-ls1088a-rdb.dts | 1 + This is an arm64 DTS patch, so the patch prefix should be something like 'arm64 dts: fsl: ...' Shawn > 3 files changed, 9 insertions(+) > > diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts b/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts > index 9fb9113..076cac6 100644 > --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts > +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts > @@ -171,3 +171,7 @@ > &sata { > status = "okay"; > }; > + > +&usb1 { > + dr_mode = "otg"; > +}; > diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts b/arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts > index 6a6514d..0c742be 100644 > --- a/arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts > +++ b/arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts > @@ -122,6 +122,10 @@ > }; > }; > > +&usb1 { > + dr_mode = "otg"; > +}; > + > #include "fsl-ls1046-post.dtsi" > > &fman0 { > diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1088a-rdb.dts b/arch/arm64/boot/dts/freescale/fsl-ls1088a-rdb.dts > index 8e925df..90b1989 100644 > --- a/arch/arm64/boot/dts/freescale/fsl-ls1088a-rdb.dts > +++ b/arch/arm64/boot/dts/freescale/fsl-ls1088a-rdb.dts > @@ -95,5 +95,6 @@ > }; > > &usb1 { > + dr_mode = "otg"; > status = "okay"; > }; > -- > 2.9.5 >