From patchwork Tue Apr 11 13:16:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 97255 Delivered-To: patch@linaro.org Received: by 10.140.89.233 with SMTP id v96csp1804415qgd; Tue, 11 Apr 2017 06:16:56 -0700 (PDT) X-Received: by 10.84.229.10 with SMTP id b10mr75730325plk.148.1491916616687; Tue, 11 Apr 2017 06:16:56 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u2si16804807pfu.282.2017.04.11.06.16.56; Tue, 11 Apr 2017 06:16:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752429AbdDKNQz (ORCPT + 7 others); Tue, 11 Apr 2017 09:16:55 -0400 Received: from fllnx209.ext.ti.com ([198.47.19.16]:40660 "EHLO fllnx209.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751861AbdDKNQy (ORCPT ); Tue, 11 Apr 2017 09:16:54 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx209.ext.ti.com (8.15.1/8.15.1) with ESMTP id v3BDGRAE001382; Tue, 11 Apr 2017 08:16:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1491916587; bh=TB8KZeMsn/f7yXL2W/LyVpqVRmwAp+omfUZ0cd9YIP0=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=gpyhxLaGnZpFNBbffpGLxuYHV4Zycs7L7spazK+uAWjgpZwReY47Ci/J5jXuRqaHp laujEfWKTbrqYcjIoBFwoT04a4gU5mA+YGFEJR3jNNnUaVIu6iuqZxXJl9mPBgaOFt vI1Jf1oiNu0LjBJrd9R6QtDoGAOOtn7KXn5qlkDE= Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id v3BDGLB9011233; Tue, 11 Apr 2017 08:16:21 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.3.294.0; Tue, 11 Apr 2017 08:16:21 -0500 Received: from lta0400828d.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id v3BDGH1w032017; Tue, 11 Apr 2017 08:16:19 -0500 From: Roger Quadros To: CC: , , , Roger Quadros , Sekhar Nori Subject: [PATCH 1/1] ARM: dts: dra7x-evm: Enable dual-role mode for USB1 Date: Tue, 11 Apr 2017 16:16:15 +0300 Message-ID: <1491916575-16023-2-git-send-email-rogerq@ti.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1491916575-16023-1-git-send-email-rogerq@ti.com> References: <1491916575-16023-1-git-send-email-rogerq@ti.com> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org USB1 port is micro-AB type and can function as peripheral as well as host. Enable dual-role mode for USB1. We don't want to use the OTG controller block on this platform as it limits host mode to high-speed. Instead we rely on extcon framework to give us ID events for dual-role mode detection. Signed-off-by: Roger Quadros Signed-off-by: Sekhar Nori --- arch/arm/boot/dts/dra7-evm.dts | 3 ++- arch/arm/boot/dts/dra72-evm-common.dtsi | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/boot/dts/dra7-evm.dts b/arch/arm/boot/dts/dra7-evm.dts index 4bc4b57..c408aaa 100644 --- a/arch/arm/boot/dts/dra7-evm.dts +++ b/arch/arm/boot/dts/dra7-evm.dts @@ -527,7 +527,8 @@ }; &usb1 { - dr_mode = "peripheral"; + dr_mode = "otg"; + extcon = <&extcon_usb1>; }; &usb2 { diff --git a/arch/arm/boot/dts/dra72-evm-common.dtsi b/arch/arm/boot/dts/dra72-evm-common.dtsi index ad24544..8578054 100644 --- a/arch/arm/boot/dts/dra72-evm-common.dtsi +++ b/arch/arm/boot/dts/dra72-evm-common.dtsi @@ -392,7 +392,8 @@ }; &usb1 { - dr_mode = "peripheral"; + dr_mode = "otg"; + extcon = <&extcon_usb1>; }; &usb2 {