From patchwork Sun Feb 21 14:01:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 8368871 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 7B407C0553 for ; Sun, 21 Feb 2016 18:10:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9005E203C0 for ; Sun, 21 Feb 2016 18:10:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8E128203B1 for ; Sun, 21 Feb 2016 18:10:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751390AbcBUSKD (ORCPT ); Sun, 21 Feb 2016 13:10:03 -0500 Received: from mail-ig0-f169.google.com ([209.85.213.169]:37954 "EHLO mail-ig0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751130AbcBUSKB (ORCPT ); Sun, 21 Feb 2016 13:10:01 -0500 Received: by mail-ig0-f169.google.com with SMTP id y8so66667911igp.1 for ; Sun, 21 Feb 2016 10:10:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=nx7pKlws7glqjZ9tgxvVq4siPB1lE+95J7e6XjMkOFQ=; b=rXG7p9WgtSCjHKkd2lwBn3HkiBUG9mrbOCNAXdpW9ffF9cVGvE8Rb6jux+2BjkNP9Q yO5W0I//6ZpKEVRXWB4O8HqpRkJh6Fc13pFvJ7NiumBJ+DgG94YANYllcL1aLw9e9OxE n+qCQg7JPQ5GL0VnxPAg9DMAhXsaEQ2r7+cck9E+X8f7RG0y1qRIcFjH8kwyzol5wRrc QIHpvR9uO0zD2ImVv0PIWN1g5NQx1rrlsmDNEIsiXXboPRVILNmWoZ6Glc0JlGPds+qH Lz17jnXirKmLP9mH4Cmi1D6dMvkSn8BNTIXpkZe4Nwy81mWfc4C/iR+2H11IBlGLjn5R 404Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=nx7pKlws7glqjZ9tgxvVq4siPB1lE+95J7e6XjMkOFQ=; b=FX10jtJXvzik3qkKfOWHEX0Wz/Z1ec3nTWpSuAjMZNYWVqoPKBlgxyYrgiiw5UroLm 6BY9jPxp4S51LNmk1CK9US32jcuzh6j3N0CdL6M8/cfqOEVWP4gM4PISgzFioArNvgmC Sem3paW2gDtDGjh6ofUJw0ZiXLZ7X+EZeZVFDHKfhB8DVQEFzP/HBnlj3kIHkTByvW35 70pqNQt4L6eTNAUVkwcNSY3aBGgz9Qgk9VEqkSczD4kb+0nxZpwCb20wfRM5qA5eRcoX n8Ha5t708jnlQWLSOACb6Qw+STMoxT6wBh3CI6/L9DWEWLqh7q+WGZLO7GYzKLQNy+Ex aCKg== X-Gm-Message-State: AG10YOTYGAIGcp1ETOhl9vbTtWu+U47zUxAPohLymY5C7zUHngc3Knk6pk1zkebng+eCAw== X-Received: by 10.50.1.109 with SMTP id 13mr6684073igl.34.1456063272492; Sun, 21 Feb 2016 06:01:12 -0800 (PST) Received: from localhost.localdomain (c-76-113-128-183.hsd1.mn.comcast.net. [76.113.128.183]) by smtp.gmail.com with ESMTPSA id pk7sm7425134igb.17.2016.02.21.06.01.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 21 Feb 2016 06:01:11 -0800 (PST) From: Adam Ford To: linux-omap@vger.kernel.org Cc: tony@atomide.com, adam.ford@logicpd.com, Adam Ford Subject: [PATCH] OMAP3: DTS: Add HSUSB2 EHCI Support to Logic PD DM37xx SOM-LV Date: Sun, 21 Feb 2016 08:01:04 -0600 Message-Id: <1456063264-20649-1-git-send-email-aford173@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The Logic PD SOM-LV has a USB Host Controller connected to 3-port hub. This enables the pin muxing for the host controller and ehci-phy. Signed-off-by: Adam Ford --- arch/arm/boot/dts/logicpd-som-lv.dtsi | 57 +++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/arch/arm/boot/dts/logicpd-som-lv.dtsi b/arch/arm/boot/dts/logicpd-som-lv.dtsi index aa9572b..365f39f 100644 --- a/arch/arm/boot/dts/logicpd-som-lv.dtsi +++ b/arch/arm/boot/dts/logicpd-som-lv.dtsi @@ -23,6 +23,12 @@ enable-active-high; vin-supply = <&vmmc2>; }; + + /* HS USB Host PHY on PORT 1 */ + hsusb2_phy: hsusb2_phy { + compatible = "usb-nop-xceiv"; + reset-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; /* gpio_4 */ + }; }; &gpmc { @@ -126,7 +132,19 @@ }; }; +&usbhshost { + port2-mode = "ehci-phy"; +}; + +&usbhsehci { + phys = <0 &hsusb2_phy>; +}; + + &omap3_pmx_core { + pinctrl-names = "default"; + pinctrl-0 = <&hsusb2_pins>; + mmc3_pins: pinmux_mm3_pins { pinctrl-single,pins = < OMAP3_CORE1_IOPAD(0x2164, PIN_INPUT_PULLUP | MUX_MODE3) /* sdmmc2_dat4.sdmmc3_dat0 */ @@ -164,6 +182,18 @@ OMAP3_CORE1_IOPAD(0x21ce, PIN_OUTPUT | MUX_MODE0) /* mcspi1_cs0.mcspi1_cs0 */ >; }; + + hsusb2_pins: pinmux_hsusb2_pins { + pinctrl-single,pins = < + OMAP3_CORE1_IOPAD(0x21d4, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi1_cs3.hsusb2_data2 */ + OMAP3_CORE1_IOPAD(0x21d6, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_clk.hsusb2_data7 */ + OMAP3_CORE1_IOPAD(0x21d8, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_simo.hsusb2_data4 */ + OMAP3_CORE1_IOPAD(0x21da, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_somi.hsusb2_data5 */ + OMAP3_CORE1_IOPAD(0x21dc, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs0.hsusb2_data6 */ + OMAP3_CORE1_IOPAD(0x21de, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs1.hsusb2_data3 */ + >; + }; + hsusb_otg_pins: pinmux_hsusb_otg_pins { pinctrl-single,pins = < OMAP3_CORE1_IOPAD(0x21a2, PIN_INPUT | MUX_MODE0) /* hsusb0_clk.hsusb0_clk */ @@ -180,6 +210,33 @@ OMAP3_CORE1_IOPAD(0x21b8, PIN_INPUT | MUX_MODE0) /* hsusb0_data7.hsusb0_data7 */ >; }; + + +}; + +&omap3_pmx_wkup { + pinctrl-names = "default"; + pinctrl-0 = <&hsusb2_reset_pin>; + hsusb2_reset_pin: pinmux_hsusb1_reset_pin { + pinctrl-single,pins = < + OMAP3_WKUP_IOPAD(0x2a0e, PIN_OUTPUT | MUX_MODE4) /* sys_boot2.gpio_4 */ + >; + }; +}; + +&omap3_pmx_core2 { + pinctrl-names = "default"; + pinctrl-0 = <&hsusb2_2_pins>; + hsusb2_2_pins: pinmux_hsusb2_2_pins { + pinctrl-single,pins = < + OMAP3630_CORE2_IOPAD(0x25f0, PIN_OUTPUT | MUX_MODE3) /* etk_d10.hsusb2_clk */ + OMAP3630_CORE2_IOPAD(0x25f2, PIN_OUTPUT | MUX_MODE3) /* etk_d11.hsusb2_stp */ + OMAP3630_CORE2_IOPAD(0x25f4, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d12.hsusb2_dir */ + OMAP3630_CORE2_IOPAD(0x25f6, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d13.hsusb2_nxt */ + OMAP3630_CORE2_IOPAD(0x25f8, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d14.hsusb2_data0 */ + OMAP3630_CORE2_IOPAD(0x25fa, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d15.hsusb2_data1 */ + >; + }; }; &uart2 {