From patchwork Mon Nov 3 16:46:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 40041 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id F2AEC21894 for ; Mon, 3 Nov 2014 16:47:16 +0000 (UTC) Received: by mail-lb0-f198.google.com with SMTP id p9sf2686884lbv.1 for ; Mon, 03 Nov 2014 08:47:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :mime-version:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe:content-type; bh=0ip3v3N3P9FiznQZPqKj+9T0UHinoeofC0HoNXrJ8uQ=; b=PwP5K/Xi8oUQRZZqdjX3osladme015GWwoJjEilfIdPLgz/YAzXo/RMdB62eVbEzSz tI3/hmqUn6WX00+SixZ9jvVhHgLK7BBvAKVYZyTUzEm/ZZTQilj22GZfo4CfbxcyyHQ2 yiRnDurbsQg96Lc+Q1d2Eu6ZgJCeW60PDT9ljKQLvcbmBerKjYoXquvzdBe2HG6WoQs8 4W+PtSKeof/AncLFEt2s0G7XVYDZ0k1Bd06ceuKv1DgDmC6bZSn3SfEK/TeDXwYpkzH9 M+3RK+k3ldjeVT0EuCeZGWRiTZRPdpFeykQ9WPamXIjXu087vI942aA+mUZVdIRwxxXw 3X6g== X-Gm-Message-State: ALoCoQnkWW53qj1gv5NNlewWbw7V9zhEW1GyBK5FqaIcPOlWH/ef3yBxC7Gn/paekBmVyqdDX1Cb X-Received: by 10.181.8.194 with SMTP id dm2mr3092791wid.2.1415033235840; Mon, 03 Nov 2014 08:47:15 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.37.36 with SMTP id v4ls172237laj.43.gmail; Mon, 03 Nov 2014 08:47:15 -0800 (PST) X-Received: by 10.112.150.41 with SMTP id uf9mr5016666lbb.100.1415033235644; Mon, 03 Nov 2014 08:47:15 -0800 (PST) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com. [209.85.217.176]) by mx.google.com with ESMTPS id p6si33161208lap.91.2014.11.03.08.47.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 03 Nov 2014 08:47:15 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) client-ip=209.85.217.176; Received: by mail-lb0-f176.google.com with SMTP id z11so7780155lbi.35 for ; Mon, 03 Nov 2014 08:47:15 -0800 (PST) X-Received: by 10.112.218.101 with SMTP id pf5mr16060537lbc.46.1415033235546; Mon, 03 Nov 2014 08:47:15 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.141.34 with SMTP id rl2csp19606lbb; Mon, 3 Nov 2014 08:47:14 -0800 (PST) X-Received: by 10.70.88.97 with SMTP id bf1mr4417818pdb.117.1415033233976; Mon, 03 Nov 2014 08:47:13 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fd3si15733217pad.74.2014.11.03.08.47.13 for ; Mon, 03 Nov 2014 08:47:13 -0800 (PST) Received-SPF: none (google.com: linux-omap-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753308AbaKCQrI (ORCPT + 5 others); Mon, 3 Nov 2014 11:47:08 -0500 Received: from comal.ext.ti.com ([198.47.26.152]:59410 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751908AbaKCQrF (ORCPT ); Mon, 3 Nov 2014 11:47:05 -0500 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id sA3Gl0Hv032387; Mon, 3 Nov 2014 10:47:01 -0600 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id sA3Gl0Pq019828; Mon, 3 Nov 2014 10:47:00 -0600 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.3.174.1; Mon, 3 Nov 2014 10:47:00 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id sA3GkxtC000906; Mon, 3 Nov 2014 10:47:00 -0600 From: Felipe Balbi To: Tony Lindgren CC: Linux OMAP Mailing List , George Cherian , Sekhar Nori , Felipe Balbi Subject: [PATCH] ARM: dts: dra7-evm: Add extcon nodes for USB Date: Mon, 3 Nov 2014 10:46:27 -0600 Message-ID: <1415033187-11192-1-git-send-email-balbi@ti.com> X-Mailer: git-send-email 2.1.0.GIT MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: balbi@ti.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: George Cherian Add extcon nodes for USB, without which USB won't work. EXTCON is used to tell dwc3-omap.ko that a cable has been connected. It also passes the state of ID pin so that can be written to UTMI_STATUS register on dwc3-omap's address space. Signed-off-by: George Cherian Signed-off-by: Sekhar Nori Signed-off-by: Felipe Balbi --- ********************************************************** ** ** ** UNTESTED ** ********************************************************** This patch was taken from TI's v3.14 tree available at [1], the patch was tested there. I didn't test on v3.18-rc3 because my DRA7 board has broken down. Working to get a replacement. Anyway, I'd suggest Tony to wait for a Tested-by tag. Note that in order for this to work you need following extra patches: http://marc.info/?l=linux-omap&m=141503217215492&w=2 http://marc.info/?l=linux-omap&m=141503238715590&w=2 http://marc.info/?l=linux-omap&m=141503246515631&w=2 http://marc.info/?l=linux-omap&m=141503241315599&w=2 http://marc.info/?l=linux-omap&m=141503282815782&w=2 [1] http://git.ti.com/ti-linux-kernel/ti-linux-kernel/commits/ti-linux-3.14.y arch/arm/boot/dts/dra7-evm.dts | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/arch/arm/boot/dts/dra7-evm.dts b/arch/arm/boot/dts/dra7-evm.dts index c6ce625..7710f29 100644 --- a/arch/arm/boot/dts/dra7-evm.dts +++ b/arch/arm/boot/dts/dra7-evm.dts @@ -26,6 +26,18 @@ regulator-max-microvolt = <3300000>; }; + extcon1: dra7x_usbid_extcon1 { + compatible = "linux,extcon-gpio"; + gpios = <&pcf_gpio_21 1 GPIO_ACTIVE_LOW>; + cable-name = "USB-HOST"; + }; + + extcon2: dra7x_usbid_extcon2 { + compatible = "linux,extcon-gpio"; + gpios = <&pcf_gpio_21 2 GPIO_ACTIVE_LOW>; + cable-name = "USB-HOST"; + }; + vtt_fixed: fixedregulator-vtt { compatible = "regulator-fixed"; regulator-name = "vtt_fixed"; @@ -291,6 +303,19 @@ }; }; }; + + pcf_gpio_21: gpio@21 { + compatible = "ti,pcf8575"; + reg = <0x21>; + lines-initial-states = <0x1408>; + gpio-controller; + #gpio-cells = <2>; + interrupt-parent = <&gpio6>; + interrupts = <14 IRQ_TYPE_EDGE_FALLING>; + interrupt-controller; + #interrupt-cells = <2>; + }; + }; &i2c2 { @@ -420,6 +445,14 @@ }; }; +&omap_dwc3_1 { + extcon = <&extcon1>; +}; + +&omap_dwc3_2 { + extcon = <&extcon2>; +}; + &usb1 { dr_mode = "peripheral"; pinctrl-names = "default";