Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp4817727ybe; Mon, 9 Sep 2019 15:19:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqzUQaQzKl27Spz0KJaF164qJFiNZNnJOPqhTcdxec8r2vYhbOZEuzvR4HS3qOI1PPdiQSzb X-Received: by 2002:a17:906:944c:: with SMTP id z12mr21510218ejx.223.1568067593613; Mon, 09 Sep 2019 15:19:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568067593; cv=none; d=google.com; s=arc-20160816; b=oHa59XiPwV0S/t+SM7qm3fMFJxSSk+8x9v/ZeZEiqDSYpLki7RpMNnHYDk3M+a5JwQ rprbs2jaYuavzbMyUNgd39QxTsibI3DaUbor6Vb+8MEE+5zXy7R0yylhvPlVXX8r2453 HNFeuHRiBpuUrZvB6ZfQifawO0oHKw8FJf1V8OjZsNzeEBJZPaQ4mKqV2t0lqoWFaVd5 XYpffyIgI5dRM4S21r14qv8QYQ2k9ayEF/PfM2ZrZA8m75UBENmEVOk7Oio3RuSnV8UI Z7ZjfDgCtJ55L2EePNWUVuc7J/C1PH5Edd3F3C7xeFgFq9c2Sei/nPZzkxv08DjgXZgL Eosg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=yKQeNbrq2sT6ubeCyac34LsLAwm1+V2wM9UeXMqgAGg=; b=GGzuJ5NtXYH46sYIkUC1w5N3QtnKMJTwOO6aTG1vq8h4KJvo7uaXBw2cyFblXrMClq yA834A0StDqmuCiEbid60kFZD6Pp8Y5fwwYyzOKyGpD43mwBh3F09r9WgdFGA6Ov/9Oa jqzunNeTZPI12nHmuUTBzTgY9tyzTq3zFVivelx5pHrNg2xr5jCCEGdkE+badF4pvBLC /FE5zAegFvc6bBw/Vyve6NhU6gb1Bq5pN3HrnMfp/XqUG64G/oQx+I/d5bmAxO18+Dla gD8tPhq6oa3nx5y3+TEq/EB54zeniVWJNh9dUzpNTKz5Z5bzpnv1ZdHkSy+0WtUxuRFQ sLkQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w8si8196827ejq.283.2019.09.09.15.19.29; Mon, 09 Sep 2019 15:19:53 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728150AbfIIJBG (ORCPT + 99 others); Mon, 9 Sep 2019 05:01:06 -0400 Received: from inva020.nxp.com ([92.121.34.13]:32804 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726847AbfIIJBF (ORCPT ); Mon, 9 Sep 2019 05:01:05 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id DC9E31A026E; Mon, 9 Sep 2019 11:01:03 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id E22451A000C; Mon, 9 Sep 2019 11:00:58 +0200 (CEST) Received: from localhost.localdomain (mega.ap.freescale.net [10.192.208.232]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 82D10402CF; Mon, 9 Sep 2019 17:00:52 +0800 (SGT) From: Yinbo Zhu To: Shawn Guo , Li Yang , Rob Herring , Mark Rutland Cc: yinbo.zhu@nxp.com, 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: [PATCH v1] usb: dwc3: enable otg mode for dwc3 usb ip on layerscape Date: Mon, 9 Sep 2019 17:02:44 +0800 Message-Id: <20190909090244.42543-1-yinbo.zhu@nxp.com> X-Mailer: git-send-email 2.17.1 X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.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