Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1394537ybn; Wed, 25 Sep 2019 17:41:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqxbaxxuugp2anmO76HHspdflfFg+Nl5J6DlWQMIBMOwit9f+sQphmXs8rPjoDoLlC3dPY0h X-Received: by 2002:a50:99da:: with SMTP id n26mr782013edb.293.1569458502772; Wed, 25 Sep 2019 17:41:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569458502; cv=none; d=google.com; s=arc-20160816; b=U/rKcxDZ4hgFtarQfEYbyM9gztfi8DOD2iMG2qpJnl7xwaI3PPqeFxlOH7HwUhcgLG 9a9mQj3TKWFRIBmVwzusiUtCByxrkOJyNFLMquxYG0g6+lisX+kVeCo4WtOGgyXBlvFq rQWbGfsEzWGYkVHTPEAEo/ewDxjC3cgKTvJHEpkVKG2AzDFfUTuU0asrgdxc3BY8Y8Hk PjnxQfL2E5aqpPHeoj+p3JZF32/0LDz4Q+CcDLnyfTNdvVqBDR41jTz0K6lb3qFxK/06 vKWbNkMK1Bb9plVZJYMKzRL/BgNPEICZnYQUtLHnqGeEFfjmsluqGf+v1NQY3JLaeKPA atCQ== 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=6vUJticmKLy6d9yvlAmoookAFrr7/xFv0cXpEBfYURA=; b=LIwpQ+exO1W26bwPICXk/ktaAeRX8xYhPdjnlemuemLLLV7qmDPBFOGWjj1HF1FtxD ago5bmZUjZdWNkJIM09qtLJq9eJhwOw8juuJrg6HUiiuwUU/hrod/FyBFWTg7lIT+F0j UgCzWbAkSoH2v4DqrlhLyp9196qQjF7EXn2EAqFAHoc5SnVPpGbyOHWKrcpErfYrxkeU RSy5luQ0ljb4VIRA+XQpDujB6H5xwzDpunaX038obIhen3RweXuQPlCl2WsGBfQgR6y8 OX+Nm4DqP73QgTFoxpAA1SHoLpbmHWTFjXt35+sOjLqJx6E5BiRPClgU2zE9PQ9M5J/x yemw== 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 f47si412249ede.263.2019.09.25.17.41.19; Wed, 25 Sep 2019 17:41:42 -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 S2408966AbfIXD1s (ORCPT + 99 others); Mon, 23 Sep 2019 23:27:48 -0400 Received: from inva021.nxp.com ([92.121.34.21]:60710 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2394624AbfIXD1s (ORCPT ); Mon, 23 Sep 2019 23:27:48 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 2BD892000B6; Tue, 24 Sep 2019 05:27:46 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 2DB96200019; Tue, 24 Sep 2019 05:27:41 +0200 (CEST) Received: from localhost.localdomain (mega.ap.freescale.net [10.192.208.232]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 2C214402B4; Tue, 24 Sep 2019 11:27:35 +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, Ran Wang , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] usb: dwc3: enable otg mode for dwc3 usb ip on layerscape Date: Tue, 24 Sep 2019 11:29:03 +0800 Message-Id: <20190924032903.32775-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-rdb.dts | 4 ++++ arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts | 4 ++++ arch/arm64/boot/dts/freescale/fsl-ls1088a-rdb.dts | 1 + 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