From patchwork Thu Jun 7 13:47:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10451899 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 1908D60234 for ; Thu, 7 Jun 2018 13:49:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0898B29FA9 for ; Thu, 7 Jun 2018 13:49:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F162429FB2; Thu, 7 Jun 2018 13:49:30 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9AC5C29FA9 for ; Thu, 7 Jun 2018 13:49:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=E56xnuWyX7qqh5YhL0fs4kvPhNyJEH4ZBoe6iraYqNQ=; b=m2m0pjn87O29HCa9Y1GKD0RM5L 66wEdfjeQ+aEOD6NVCwAb9P+SaazPVCNh3Atr70godcsyscJNaclIaPLD6y1XF9WyIAuVjQmI9ufl AS54N5X3i5oVJoVprkDXj2JLi6jT15BEjKDj5gUw01Yhm1Cj/APQxNUDg/6pF7VONYIf8l+3FzFu8 X6Jn7qXhbscAbuod5Ulf5GsNuCWsJfzjxAea7EzDHdpcXXFkFNJ5L6RHvkgxEqIrBfXY4CAXUXxTc 8RXYNH+51ZfI6Um9StzdDQk74HPHdO/Gi3quAVCGENCsg4tAeR4SSr8UjNpNczqJEjlWnlFVQsB20 E7T+G1og==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fQvI0-00034p-D4; Thu, 07 Jun 2018 13:49:20 +0000 Received: from mail-pg0-x242.google.com ([2607:f8b0:400e:c05::242]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fQvHP-0002dL-41 for linux-arm-kernel@lists.infradead.org; Thu, 07 Jun 2018 13:48:52 +0000 Received: by mail-pg0-x242.google.com with SMTP id c9-v6so4794281pgf.5 for ; Thu, 07 Jun 2018 06:48:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Sj8yVXuwGwsCtUoahHUvuwNMeyIeFv8aqTfmIvYWQrg=; b=LKl1MBsHBVJ5X/iEc74I8EEa/wtzXQ0h/0OI7+HdG+5ZSgTym8wqTZbdKAvXGpQlPs 3w+hbN/2E94ESXtWIRdMgw4cA4hFX5l0j2n+WQlYZz0gMd1hz3npSaaNJtAvldtiNcvS +Jvt2AOHL8B3ke8lnPPsy/acQj7819DXlV+PE= 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:in-reply-to :references; bh=Sj8yVXuwGwsCtUoahHUvuwNMeyIeFv8aqTfmIvYWQrg=; b=lEDLI6RvEAjzEtsFE4AH7GEBPOLvxR1VNqdocOLCQTaEn+e9xzwddH8ebd1rFc3gXh IxVYL9JK9NOEHQ4M9+nSs4UeiegOfDhWZAapzXMbUnRjcdWZebA56sSvQnihzZQa75E7 +D19Hl3wfp3U+TkRZFaaPadOexJo6bluVwDkMtQdyw1FRU6m1qfPThuZ1FLUqRs3GwRw eBlm8Y+t71sHEUNvQ5Pf/7+vCWxWwkbnvkHskVY8WmShCKRhWEYgZWT7yq+CZJ+fneNe aG7oedbeooTtQol8uRqZqVw78v+yHS9icDgz2hWQZLcYu7hJKHwJPKF1vRsGy7H0sERv tGmw== X-Gm-Message-State: APt69E0N3V8OMP1zy6U6JybB32loQlFp5xDChFMk4FzUMfE4lDV0tQ6Y 5xwH9jmo2JPrU9rHv/+e/fhg8g== X-Google-Smtp-Source: ADUXVKKuBH5nLOAL3Z3HNXrtdtUOA82dadG88zpZWmk0PFiJwHskA0OegFSB2qtiY+8hDiQQYwSbpQ== X-Received: by 2002:a63:2b15:: with SMTP id r21-v6mr1662303pgr.269.1528379312180; Thu, 07 Jun 2018 06:48:32 -0700 (PDT) Received: from localhost.localdomain ([115.97.190.51]) by smtp.gmail.com with ESMTPSA id r30-v6sm12879137pgn.58.2018.06.07.06.48.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Jun 2018 06:48:31 -0700 (PDT) From: Jagan Teki To: Shawn Guo Subject: [PATCH v2 4/4] ARM: dts: i.MX6: imx6dl-mamoj: Add usb host and device support Date: Thu, 7 Jun 2018 19:17:48 +0530 Message-Id: <20180607134748.2970-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180607134748.2970-1-jagan@amarulasolutions.com> References: <20180607134748.2970-1-jagan@amarulasolutions.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180607_064843_189214_06870ED2 X-CRM114-Status: GOOD ( 14.77 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Fabio maggi , linux-kernel@vger.kernel.org, "davide . bonfanti" , Shyam Saini , Rob Herring , Andrea CORTESE , lamiaposta71@gmail.com, Sascha Hauer , Fabio Estevam , Simone CIANNI , Michael Trimarchi , Raffaele RECALCATI , linux-arm-kernel@lists.infradead.org, Jagan Teki MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Michael Trimarchi Add USB host and device support for BTicino i.MX6DL Mamoj board. Signed-off-by: Simone CIANNI Signed-off-by: Raffaele RECALCATI Signed-off-by: Michael Trimarchi Signed-off-by: Jagan Teki Reviewed-by: Fabio Estevam --- Changes for v2: - collect Fabio r-w-b tag arch/arm/boot/dts/imx6dl-mamoj.dts | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm/boot/dts/imx6dl-mamoj.dts b/arch/arm/boot/dts/imx6dl-mamoj.dts index 5034b086035f..a727e1471006 100644 --- a/arch/arm/boot/dts/imx6dl-mamoj.dts +++ b/arch/arm/boot/dts/imx6dl-mamoj.dts @@ -134,6 +134,17 @@ vin-supply = <®_lcd_vgl>; }; + reg_usb_host: regulator-usb-vbus { + compatible = "regulator-fixed"; + regulator-name = "usbhost-vbus"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usbhost>; + regulator-min-microvolt = <50000000>; + regulator-max-microvolt = <50000000>; + gpio = <&gpio6 6 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + reg_wl18xx_vmmc: regulator-wl18xx-vmcc { compatible = "regulator-fixed"; regulator-name = "vwl1807"; @@ -297,6 +308,16 @@ status = "okay"; }; +&usbh1 { + vbus-supply = <®_usb_host>; + status = "okay"; +}; + +&usbotg { + dr_mode = "peripheral"; + status = "okay"; +}; + &usdhc1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usdhc1>; @@ -428,6 +449,12 @@ >; }; + pinctrl_usbhost: usbhost { + fsl,pins = < + MX6QDL_PAD_EIM_A23__GPIO6_IO06 0x4001b0b0 + >; + }; + pinctrl_usdhc1: usdhc1grp { fsl,pins = < MX6QDL_PAD_SD1_CMD__SD1_CMD 0x17069