From patchwork Sat Jun 23 13:24:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 10483625 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0030F601C8 for ; Sat, 23 Jun 2018 13:24:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CCED028C50 for ; Sat, 23 Jun 2018 13:24:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BE1E328DE8; Sat, 23 Jun 2018 13:24:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5119628C50 for ; Sat, 23 Jun 2018 13:24:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751871AbeFWNYO (ORCPT ); Sat, 23 Jun 2018 09:24:14 -0400 Received: from mail-it0-f68.google.com ([209.85.214.68]:38634 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751847AbeFWNYN (ORCPT ); Sat, 23 Jun 2018 09:24:13 -0400 Received: by mail-it0-f68.google.com with SMTP id v83-v6so6516396itc.3 for ; Sat, 23 Jun 2018 06:24:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=fLkGS8KwrdTlgQSQaYd6HDIdTXpHhKkY9dq5IhLEBa8=; b=i9tzXmELEVyU90bIAl2WXtn1dUET1YxHiU7iGKN8l4PW/c2iQZ6laEoFI1oLh1DUqT YbtIe5BuLZcxVr9NTiQ9vhHP/6frkDYBrogCxrOJIuS6kBZVgc1bSfPf9cFk0DdblmKq JsodVLWRka7xyu0vbzE1Py1r/AwbkKfrrPUJzW1kql0ry1SMvS9UToHMDlufSGQbm9sk 8hMLyolokp/PFAA/x2DIUHHm64oEANnU2qF6FIG+GuuJpCU0n236nqjrhcYI1vUOrfrK VpI6tU5sFoIRq7mUJGh6FbBUxOiYPGev9VQYq2cNtA0DweC/YF27jBRpeW+6pGlJAeO5 n7Hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=fLkGS8KwrdTlgQSQaYd6HDIdTXpHhKkY9dq5IhLEBa8=; b=YoOyEZdgGOWt43MJDEnwfeJCxSbsAPibY9CbnsA3Z5aUvVSM95tJP/dOL2ALTvkBid 13hg566olgF/UplyND8ImTR1e2BAClAyv9IPCPqof/+MhdCRp/KtLIWlurC+RAfBWU0r KwMHgrN9GSgtgh8fPJEFqPXqOE9dVEdRJ1++5HbindGixc+3/6uEDHxxhRxF+82lkoqx c0chlJt4nozA5w88PhTW7dLIklVYqTWviEx+6CuhAX5HVwQyQ6MHuUPj+zyDgQsk/iSE 2mGZOkBuqzuoujgvIR4Hi54YA5B2oPYdlqwfdryMHuPZqJABd7HzS5zgvvTea7TYgVmV o74Q== X-Gm-Message-State: APt69E3TrpfChobpJk1RoJATg8Xu7eYl9Y6yWGqV4RDJWFYKx/TCnwq3 gISQ7d5EiBc3gx9WVdd7xVmrGg== X-Google-Smtp-Source: ADUXVKIwTSqDXBnlF09mGePDd1xdj03NymtNF+TMLy/NYgH/p/rnZl/wJQoyyqdWYE3kTJDugsK0bA== X-Received: by 2002:a24:6ed0:: with SMTP id w199-v6mr4727118itc.65.1529760252019; Sat, 23 Jun 2018 06:24:12 -0700 (PDT) Received: from localhost.localdomain (c-75-73-34-135.hsd1.mn.comcast.net. [75.73.34.135]) by smtp.gmail.com with ESMTPSA id v17-v6sm4322708iob.11.2018.06.23.06.24.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 23 Jun 2018 06:24:10 -0700 (PDT) From: Adam Ford To: linux-omap@vger.kernel.org Cc: tony@atomide.com, woods.technical@gmail.com, adam.ford@logicpd.com, Adam Ford Subject: [PATCH] ARM: dts: am3517-evm: Enable USB1 Host Date: Sat, 23 Jun 2018 08:24:03 -0500 Message-Id: <20180623132403.3081-1-aford173@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The AM3517-evm has a single USB Host port connected to hsusb1. This patch enables that USB port. Signed-off-by: Adam Ford Tested-by: Derald D. Woods diff --git a/arch/arm/boot/dts/am3517-evm.dts b/arch/arm/boot/dts/am3517-evm.dts index 98aadb0f81c5..56fdec33afc1 100644 --- a/arch/arm/boot/dts/am3517-evm.dts +++ b/arch/arm/boot/dts/am3517-evm.dts @@ -168,6 +168,13 @@ ti,timers = <&timer11>; #pwm-cells = <3>; }; + + /* HS USB Host PHY on PORT 1 */ + hsusb1_phy: hsusb1_phy { + compatible = "usb-nop-xceiv"; + reset-gpios = <&gpio2 25 GPIO_ACTIVE_LOW>; /* gpio_57 */ + #phy-cells = <0>; + }; }; &davinci_emac { @@ -228,7 +235,17 @@ status = "disabled"; }; +&usbhshost { + port1-mode = "ehci-phy"; +}; + +&usbhsehci { + phys = <&hsusb1_phy>; +}; + &omap3_pmx_core { + pinctrl-names = "default"; + pinctrl-0 = <&hsusb1_rst_pins>; leds_pins: pinmux_leds_pins { pinctrl-single,pins = < @@ -287,4 +304,32 @@ OMAP3_CORE1_IOPAD(0x20fa, PIN_OUTPUT | MUX_MODE0) /* dss_data15.dss_data15 */ >; }; + + hsusb1_rst_pins: pinmux_hsusb1_rst_pins { + pinctrl-single,pins = < + OMAP3_CORE1_IOPAD(0x20ba, PIN_OUTPUT | MUX_MODE4) /* gpmc_ncs6.gpio_57 */ + >; + }; +}; + +&omap3_pmx_core2 { + pinctrl-names = "default"; + pinctrl-0 = <&hsusb1_pins>; + + hsusb1_pins: pinmux_hsusb1_pins { + pinctrl-single,pins = < + OMAP3430_CORE2_IOPAD(0x25d8, PIN_OUTPUT | MUX_MODE3) /* etk_clk.hsusb1_stp */ + OMAP3430_CORE2_IOPAD(0x25da, PIN_OUTPUT | MUX_MODE3) /* etk_ctl.hsusb1_clk */ + OMAP3430_CORE2_IOPAD(0x25ec, PIN_INPUT | MUX_MODE3) /* etk_d8.hsusb1_dir */ + OMAP3430_CORE2_IOPAD(0x25ee, PIN_INPUT | MUX_MODE3) /* etk_d9.hsusb1_nxt */ + OMAP3430_CORE2_IOPAD(0x25dc, PIN_INPUT | MUX_MODE3) /* etk_d0.hsusb1_data0 */ + OMAP3430_CORE2_IOPAD(0x25de, PIN_INPUT | MUX_MODE3) /* etk_d1.hsusb1_data1 */ + OMAP3430_CORE2_IOPAD(0x25e0, PIN_INPUT | MUX_MODE3) /* etk_d2.hsusb1_data2 */ + OMAP3430_CORE2_IOPAD(0x25ea, PIN_INPUT | MUX_MODE3) /* etk_d7.hsusb1_data3 */ + OMAP3430_CORE2_IOPAD(0x25e4, PIN_INPUT | MUX_MODE3) /* etk_d4.hsusb1_data4 */ + OMAP3430_CORE2_IOPAD(0x25e6, PIN_INPUT | MUX_MODE3) /* etk_d5.hsusb1_data5 */ + OMAP3430_CORE2_IOPAD(0x25e8, PIN_INPUT | MUX_MODE3) /* etk_d6.hsusb1_data6 */ + OMAP3430_CORE2_IOPAD(0x25e2, PIN_INPUT | MUX_MODE3) /* etk_d3.hsusb1_data7 */ + >; + }; };