From patchwork Fri Jun 10 13:17:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 69779 Delivered-To: patch@linaro.org Received: by 10.140.106.246 with SMTP id e109csp290059qgf; Fri, 10 Jun 2016 06:18:21 -0700 (PDT) X-Received: by 10.67.3.161 with SMTP id bx1mr2344365pad.86.1465564701162; Fri, 10 Jun 2016 06:18:21 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s187si13164856pfb.183.2016.06.10.06.18.20; Fri, 10 Jun 2016 06:18:21 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161218AbcFJNSL (ORCPT + 30 others); Fri, 10 Jun 2016 09:18:11 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:38417 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161031AbcFJNSI (ORCPT ); Fri, 10 Jun 2016 09:18:08 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id u5ADHXaS023329; Fri, 10 Jun 2016 08:17:33 -0500 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id u5ADHoVv029352; Fri, 10 Jun 2016 08:17:50 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.3.294.0; Fri, 10 Jun 2016 08:17:49 -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 u5ADHWLT020504; Fri, 10 Jun 2016 08:17:47 -0500 From: Roger Quadros To: CC: , , , , , , , , , , , Roger Quadros Subject: [PATCH v7 4/4] ARM: dts: am43xx: Enable dual-role on USB1 Date: Fri, 10 Jun 2016 16:17:30 +0300 Message-ID: <1465564650-27516-5-git-send-email-rogerq@ti.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1465564650-27516-1-git-send-email-rogerq@ti.com> References: <1465564650-27516-1-git-send-email-rogerq@ti.com> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org USB1 port is micro-AB type and can function as peripheral as well as host. Enable dual-role mode for USB1. Signed-off-by: Roger Quadros --- arch/arm/boot/dts/am437x-gp-evm.dts | 5 ++++- arch/arm/boot/dts/am437x-sk-evm.dts | 5 ++++- arch/arm/boot/dts/am43x-epos-evm.dts | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) -- 2.7.4 diff --git a/arch/arm/boot/dts/am437x-gp-evm.dts b/arch/arm/boot/dts/am437x-gp-evm.dts index 5bcd3aa..d76a885 100644 --- a/arch/arm/boot/dts/am437x-gp-evm.dts +++ b/arch/arm/boot/dts/am437x-gp-evm.dts @@ -765,7 +765,10 @@ }; &usb1 { - dr_mode = "peripheral"; + dr_mode = "otg"; + hnp-disable; + srp-disable; + adp-disable; status = "okay"; }; diff --git a/arch/arm/boot/dts/am437x-sk-evm.dts b/arch/arm/boot/dts/am437x-sk-evm.dts index d82dd6e..b11d50e 100644 --- a/arch/arm/boot/dts/am437x-sk-evm.dts +++ b/arch/arm/boot/dts/am437x-sk-evm.dts @@ -571,8 +571,11 @@ }; &usb1 { - dr_mode = "peripheral"; status = "okay"; + dr_mode = "otg"; + hnp-disable; + srp-disable; + adp-disable; pinctrl-names = "default"; pinctrl-0 = <&usb1_pins>; }; diff --git a/arch/arm/boot/dts/am43x-epos-evm.dts b/arch/arm/boot/dts/am43x-epos-evm.dts index 3549b8c..9578602 100644 --- a/arch/arm/boot/dts/am43x-epos-evm.dts +++ b/arch/arm/boot/dts/am43x-epos-evm.dts @@ -676,8 +676,11 @@ }; &usb1 { - dr_mode = "peripheral"; status = "okay"; + dr_mode = "otg"; + hnp-disable; + srp-disable; + adp-disable; }; &usb2_phy2 {