[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CADRPPNQpGXf8kEGzP3ux7Zxu-Z_ztz6CRdr-B=3hWJdCg8gFFQ@mail.gmail.com>
Date: Sat, 5 Oct 2019 21:58:12 -0500
From: Li Yang <leoyang.li@....com>
To: Shawn Guo <shawnguo@...nel.org>
Cc: Yinbo Zhu <yinbo.zhu@....com>, Rob Herring <robh+dt@...nel.org>,
Mark Rutland <mark.rutland@....com>,
Xiaobo Xie <xiaobo.xie@....com>,
Jiafei Pan <jiafei.pan@....com>,
"moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE"
<linux-arm-kernel@...ts.infradead.org>,
"open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS"
<devicetree@...r.kernel.org>, lkml <linux-kernel@...r.kernel.org>,
Ran Wang <ran.wang_1@....com>
Subject: Re: [PATCH v1] usb: dwc3: enable otg mode for dwc3 usb ip on layerscape
On Sat, Oct 5, 2019 at 9:56 PM Shawn Guo <shawnguo@...nel.org> wrote:
>
> 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 <yinbo.zhu@....com>
>
> The patch prefix should be something like: 'arm64: dts: ...'
>
> @Leo, do you agree with the changes?
No. The USB mode of operation should be defined at board level.
>
> 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 = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
> > - 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 = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
> > - 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
> >
Powered by blists - more mailing lists