From patchwork Tue Jul 17 09:25:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10528617 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 41BB76020A for ; Tue, 17 Jul 2018 09:27:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 305EA2883A for ; Tue, 17 Jul 2018 09:27:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2118228849; Tue, 17 Jul 2018 09:27:53 +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 BC9F72883A for ; Tue, 17 Jul 2018 09:27:52 +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=keMgRmxPhGi/Tw4fxw6yiqp+aUcIGspGHGBf3FZ6Uog=; b=o030gyWjgn1Dwic1G2gQ5vicbO pL3/atKyHiKLqEueFGGVsjbCrpamzZpFe/JIhoxMNN2mCKVf8GKquIQsZzDX/u+HR5MAgtNNPVzN6 wKhX2yQpEghc3WdshN7znoMfkbscajz8K8xxykXupzY0+/l3Qr47Gk8/QNrriirYu0fxLMabUm6bN f+aYX6O2nBjNqu1+jLQy2hk5nWQGJ9py7pAg//kParNb3jZOJVZ3oJ2YMxK4VwoiOzYG1pQc3PSYO 87HvOJ+0yMxh20jzn6k6+0VEzUTzrzprub5Y7i2hXHWeYHVUSfwz7H+8HiBIwNLMZVfHlHCz6Jaqx Bu4FShpw==; 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 1ffMGr-0001kR-M0; Tue, 17 Jul 2018 09:27:49 +0000 Received: from mail-pl0-x242.google.com ([2607:f8b0:400e:c01::242]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ffMFj-0000zv-Jm for linux-arm-kernel@lists.infradead.org; Tue, 17 Jul 2018 09:26:43 +0000 Received: by mail-pl0-x242.google.com with SMTP id f6-v6so222409plo.1 for ; Tue, 17 Jul 2018 02:26:29 -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=L5m5dV8B3PCYn2WTmlF1m2BxJT5h/9rxOdGn08Yj740=; b=CQrCxf3Ma8iUY9PDA+OWUcD9E27DylBVWxNDi5WvUXMSMP6UzIC7VsgnnA4p1HCRkM tm5E2WZwQ7s/hn26qKt713lm1xfbUwfRSRsXJAX5VcO264DCPDZ27foMKow4TX5ye8Fn 89CpDzhyaPMVkRHdVfkRaEdQGtyfGjrSNnqMk= 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=L5m5dV8B3PCYn2WTmlF1m2BxJT5h/9rxOdGn08Yj740=; b=getCJUAhnR1E4C50xEeWYc3QeEp4LmeCboq0HoUq5amLxatH5wnNJCfljmnxX6XTcc GSiXmM5wfBwKXYyJ0IiMF10f2dxi3dWpxuH5e1LgZvNEiAFSzArWrqBLV9sgrk4hVAzr ZgxcjY4nZeD+2Po3Bh45qysRPo7VQvgFS7MRKlKb3wuuQk6/A0JSDibBUzg5PqwCHpDJ GuI2dOrSlDUW0Va8rkNzqHagucvUydeW6r2e9qVX4a2ZyO7f9UcbPkWCT9Ch7NmU3a8V LtMjN8y4Cjry+MvulInjRAT6fD48c+qiDsdQ8U08Ugg3yaxBwLBeunaIUOZyZNCcjbh6 0VfQ== X-Gm-Message-State: AOUpUlFSbOICYFkAs/wMPHBhVfm8b6Zoc0YliE3o+XDvAr1AgSa/XibP cQTvlhohxCSe78mBvVYQ3DsUFA== X-Google-Smtp-Source: AAOMgpdI4HhVQBNk+gHwhfhnqoaLzT1WdZZ0DNI+nKgXLFJ1XjblrQnQ67YZpCYYEOjgXslewEwqEg== X-Received: by 2002:a17:902:900b:: with SMTP id a11-v6mr862013plp.143.1531819588944; Tue, 17 Jul 2018 02:26:28 -0700 (PDT) Received: from localhost.localdomain ([183.82.229.107]) by smtp.gmail.com with ESMTPSA id l85-v6sm2652869pfk.34.2018.07.17.02.26.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Jul 2018 02:26:28 -0700 (PDT) From: Jagan Teki To: Shawn Guo , Sascha Hauer , Fabio Estevam Subject: [PATCH v3 3/3] ARM: dts: i.MX6: imx6dl-mamoj: Add usb host and device support Date: Tue, 17 Jul 2018 14:55:26 +0530 Message-Id: <20180717092526.32215-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180717092526.32215-1-jagan@amarulasolutions.com> References: <20180717092526.32215-1-jagan@amarulasolutions.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180717_022640_087291_806B06C8 X-CRM114-Status: GOOD ( 14.53 ) 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, linux-kernel@vger.kernel.org, Davide Bonfanti , Shyam Saini , Rob Herring , Andrea CORTESE , lamiaposta71@gmail.com, Fabio maggi , 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 v3: - usbhost is replace with usbhostgrp on iomux node 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 530cb20ccc86..df8607fe4142 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: usbhostgrp { + fsl,pins = < + MX6QDL_PAD_EIM_A23__GPIO6_IO06 0x4001b0b0 + >; + }; + pinctrl_usdhc1: usdhc1grp { fsl,pins = < MX6QDL_PAD_SD1_CMD__SD1_CMD 0x17069