From patchwork Wed Apr 25 17:39:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10363985 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 5CF0F601D3 for ; Wed, 25 Apr 2018 17:42:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4FB6728FC2 for ; Wed, 25 Apr 2018 17:42:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 41D9C28FEC; Wed, 25 Apr 2018 17:42:27 +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 D174528FC2 for ; Wed, 25 Apr 2018 17:42:26 +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=8nNRR5WE03vKLj23pYX8LPB4C/kG/xAhJn/RmsM6zjE=; b=I5SEsql/B6KazvuxTpAiSWyhu/ jdjpQ7M8ArulPaM+48pQztzA+f9ANyiUYrUT15py0hD2Km3ZwoiezoupRYnwGqdyl/DrbPRKu0Ca7 UNNpgV8jyGKlTiYQ8Xyvg8pa/D6BoD7AO2Ib5/hp+CivzagV/ZnmGvsfgVwqyZUzO/z781MKL+Xdm i4cmGdXGzd0fYCOBnB0nsuP/bGBvk88kZ2lDvkX3I+BVpsfyIhGZgZGlHf1m4w0r9YDnuPRR6hp/2 55yUAu+F5Occ8jgBvTNA9C6DAtsHLmyo9a3QV28aBUEbKL1zDO34UAlHmujMb/vVbBPlA5iVhFdg6 5kas/2zg==; 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 1fBOQs-0001bA-LZ; Wed, 25 Apr 2018 17:42:18 +0000 Received: from mail-pg0-x241.google.com ([2607:f8b0:400e:c05::241]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fBOOt-0007rE-US for linux-arm-kernel@lists.infradead.org; Wed, 25 Apr 2018 17:40:18 +0000 Received: by mail-pg0-x241.google.com with SMTP id p10so13829702pgn.1 for ; Wed, 25 Apr 2018 10:40:05 -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=i7CnSS4WXg3FNxTQmvoEWPrJSjVLXE0rgUbV8oPSvoI=; b=DLAN+1czKdh8j0wlyVX0vna2KAhTQgx6nctzEvcwG6EuygA+zoLsPtsYDa8lQ6PfuG oNGfnQxIMG402MKo0tEOQ8jQyJ+BHZmeKJa6KsGeD/2c+gBFMM/TB/+oI6gqTZsNjhNv mJ83LX72sVc965dR23V71FSoh6FvCWFEc/6iM= 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=i7CnSS4WXg3FNxTQmvoEWPrJSjVLXE0rgUbV8oPSvoI=; b=NSrwX8l6ALsD9+As80wRizWvDT2/CXYQaPnVghcmVTgPSvLkG5Nj/wLhBDe3nJz139 FrebyZCa8jDGf89k5DTtv3F8Hb0t83X3jYMb57UtYB0aJHu9waMMMBkWHOeqS4ddGNGJ qbpRsVpGY60OfQOANRlZRAaxIBSHyQ4JxO7dKJnD+ZWx9CsINwL14tuzoKeyGmv8WvFD USYUnoPicJqLTNlAjCYb7jlFwI25vfo7e4kIo36KsID+UK7Zi/MjrjkCXaKvpUvh5gxq 3hi9bh2PURfZDTOuHHy5sClV4hbcCc4mzGOnV94R9fki7uzuMep/+ONrCNJVvgE6toIW tPOw== X-Gm-Message-State: ALQs6tD+6D8vF0HTm8R3xtMBfoQxGs0lB85DR5qg8LC06Lj7qEbqVlB8 MmAjaSB4IZzKwzVoxOiIvlEs4A== X-Google-Smtp-Source: AB8JxZr9sQHOpi4lQNZC+QvURv8zoHyITBQP7nQIHXjrsTO0fwBrgzTVMIlme2v3GLTaC3z+WFKtqg== X-Received: by 2002:a17:902:82c3:: with SMTP id u3-v6mr6937252plz.83.1524678004916; Wed, 25 Apr 2018 10:40:04 -0700 (PDT) Received: from localhost.localdomain ([183.82.229.182]) by smtp.gmail.com with ESMTPSA id v187sm33228854pfv.21.2018.04.25.10.39.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 25 Apr 2018 10:40:04 -0700 (PDT) From: Jagan Teki To: Shawn Guo Subject: [PATCH 4/4] ARM: dts: i.MX6: imx6dl-mamoj: Add usb host and device support Date: Wed, 25 Apr 2018 23:09:32 +0530 Message-Id: <20180425173932.7213-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180425173932.7213-1-jagan@amarulasolutions.com> References: <20180425173932.7213-1-jagan@amarulasolutions.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180425_104016_051873_769D6881 X-CRM114-Status: GOOD ( 13.12 ) 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 --- 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