Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5092612ybp; Mon, 7 Oct 2019 19:56:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqwGo0iw86VmIz6g5VO3bASiZ5f+hPtL31LC9/UH3t+bKW7HDUDVnKAS9rTvNlqThurEnMqq X-Received: by 2002:a17:906:1e44:: with SMTP id i4mr26527315ejj.141.1570503415094; Mon, 07 Oct 2019 19:56:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570503415; cv=none; d=google.com; s=arc-20160816; b=OXdVRukm0T3ub59v4r9OOPfbVneDoz5+a+8D7ZoCm5fcGoGrAm0ZRx4x7i3uzClbb8 Fak3qEEEksmQRO3cwDuwJEObGT3nCuyGsXkx+lQBOIDbxLvbClP2VeFIkNktFyLEwAkY vdgrMqYMtzI4H/hixWMqqS7R19RZ67LiKHZXv/kfIKtiuyNRj2fVzHT+LlvvqlAo4z+a 089717/tUjCk3rSm3ckj6SI/b7XuF9/oRqQ4YAiC6HnRHU4cEiRDnsSwSeh64Y0kXQh+ tcWhKtJWy4qvx/wzvf5+qEzGaymiBeyYgZy6ETLcMarjjUP+zlhJYeCG+VHl+Z0s4QzR 1Sww== 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=5DrJ2HBLrR6XFZIIbOpEj+FJ4bkFXAYKJd6hoX3VPm4=; b=PlQs2sRzqrMyJl0x88U6icSqCzr186F2PuTHLsSsrztYTuhbr9TgcWZv/OnmxUwLJn +ZWy3R4T3zzHXJItFg+QKrt9NS4BNdtT4ya9dxq/tCkdITz5DrB8iT8+e9mnsxMQxh1a dkcg7mL0cYcKltGTRb1A/rkMMm7esrfNoiO90g6dFI1fHwQZsMylC4nH6mzhxlyBNJLs XHQcxJvh0+aWk4DeHE0eBc0TPG8fWCrCm6/58GqmTTsy0py/JIv6+ga55yOXCiH7XXHn xWpCLx2dMbX2SSJZpbNq8awumpR8Jm4H2j0Tbpt7AuGpXS/UWNqpFWfDRFI5NNOnW7sZ Fa5Q== 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 e5si10381949ede.150.2019.10.07.19.56.30; Mon, 07 Oct 2019 19:56:55 -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 S1729809AbfJHCzx (ORCPT + 99 others); Mon, 7 Oct 2019 22:55:53 -0400 Received: from inva021.nxp.com ([92.121.34.21]:58872 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729682AbfJHCzw (ORCPT ); Mon, 7 Oct 2019 22:55:52 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 8B4E420009D; Tue, 8 Oct 2019 04:55:50 +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 473E7200070; Tue, 8 Oct 2019 04:55:45 +0200 (CEST) Received: from localhost.localdomain (mega.ap.freescale.net [10.192.208.232]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 8B495402DF; Tue, 8 Oct 2019 10:55:38 +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 v3] arm64: dts: enable otg mode for dwc3 usb ip on layerscape Date: Tue, 8 Oct 2019 10:56:42 +0800 Message-Id: <20191008025642.19519-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 --- Changed in v3: updated the patch title with "arm64: dts" 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