From patchwork Tue Jul 17 09:25:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10528593 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 BE7D96020A for ; Tue, 17 Jul 2018 09:26:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 204D828498 for ; Tue, 17 Jul 2018 09:26:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1115E284AA; Tue, 17 Jul 2018 09:26:54 +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=unavailable 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 AE14128498 for ; Tue, 17 Jul 2018 09:26:53 +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=EjTZ+RiI/5UM3IXVY+i1lmMO7z+ymg84qMtrsM94xbE=; b=bKfzWBwsq31ya8huQxL+l31jxi paZZrVS2v8gP8rd5p6/uPCDiXu9KfayJEm/iYsR+QHNBIuTh43bpZ0ipkmmsafAuu+NZr7XK+SRWx LmGKCUqhxuqjyVBxEJvHzAN5ztWH5qs3/itIJatZAI0Zi/DMRg/Zasd9ATnvu6K/3C6lxJzZ5hAFT Cv6kCIWk+R4hWbRlw4Kf3Is6C7JaR/kJGBTVBbmokOYpErGN12kXJEB5i2uv9iYSgHZLINKqYOR16 UvUvV9WZZoGczrQx7mkMv9F7NP3O8TzuL7JxWFrBRY+wjXBemwptH8ptk1cBJ43+gxuUzATMjh5YZ rL2V7+6A==; 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 1ffMFt-0001LX-CM; Tue, 17 Jul 2018 09:26:49 +0000 Received: from mail-pf0-x244.google.com ([2607:f8b0:400e:c00::244]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ffMFd-0000zW-Mc for linux-arm-kernel@lists.infradead.org; Tue, 17 Jul 2018 09:26:36 +0000 Received: by mail-pf0-x244.google.com with SMTP id q7-v6so235653pff.2 for ; Tue, 17 Jul 2018 02:26:23 -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=ZhsuNQmGquGvUcNebAnno7XaAJMP6D3aPsEa7LIi5FQ=; b=e2B7zzjz3qozxuTBMqn8TPWyG9yUKnJOpYagmPsQoQPQTKwYZeiuVb5dlNs3JiP4ET mafLYQW9nc07yXR7ESp9j6KiMjCW8TiUxNTaIqWn0zDwFaP4JazD6u6Q1WmlU4hCMR5l ZldKCB8rr5hSKvo3sCre63zey9FPff6OtQb3M= 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=ZhsuNQmGquGvUcNebAnno7XaAJMP6D3aPsEa7LIi5FQ=; b=AC0AyTtyTdM31wL9wuGULrTnKuHgEbo1Ahuehs1OQKYRw9qeCbsefyqt0s3v0axrUA JwvLr/P7ETi0a9x5Wld3vP4XNkILLgidzUFULhIZVI1OJ3G52xzXmd54UBKba0QS8dyt JfM4QvOtmK1gZX7EKQ9JCBOJTHdhVm0tZkRqjxfZ/JGKZ8OxUgDcY4G4RnLTyrr22UrE Koh32I/6o4qfA4RsPXfrKy/SuXP9IzcBnyRrn3eC7NnXhsmVLwu+XS/3QTqSaG16Cl5g EO0WvrdXLTN/El6vrb+BVW4zduhzRiBUI7qwnoRU4fectBGUFP/8FYAAOPNyUSVn0HNh DTDw== X-Gm-Message-State: AOUpUlESc3SDmIrlrD9Xk/zS2ldbWlUnx+nVcShvpVDFYHijw1C9R1PM e9/kgXxhOxlCFecfDWADGTtr+A== X-Google-Smtp-Source: AAOMgpc/IW63GSQ5wQAkxjtm0JOV0m6ZUQ4PzwkgOn+ACCesUwrliWPxnlM0ZQKF7xKCbvJkY4iYjQ== X-Received: by 2002:a63:4306:: with SMTP id q6-v6mr799166pga.181.1531819583060; Tue, 17 Jul 2018 02:26:23 -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.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Jul 2018 02:26:22 -0700 (PDT) From: Jagan Teki To: Shawn Guo , Sascha Hauer , Fabio Estevam Subject: [PATCH v3 2/3] ARM: dts: i.MX6: imx6dl-mamoj: Add Wifi support Date: Tue, 17 Jul 2018 14:55:25 +0530 Message-Id: <20180717092526.32215-2-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_022633_908912_45FE875B X-CRM114-Status: GOOD ( 13.05 ) 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 Add TI WL18XX Wifi for BTicino i.MX6DL 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: - wlan is replace with wlangrp on iomux node Changes for v2: - collect Fabio r-w-b tag arch/arm/boot/dts/imx6dl-mamoj.dts | 53 ++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/arch/arm/boot/dts/imx6dl-mamoj.dts b/arch/arm/boot/dts/imx6dl-mamoj.dts index 38e94fd11a3f..530cb20ccc86 100644 --- a/arch/arm/boot/dts/imx6dl-mamoj.dts +++ b/arch/arm/boot/dts/imx6dl-mamoj.dts @@ -133,6 +133,18 @@ enable-active-high; vin-supply = <®_lcd_vgl>; }; + + reg_wl18xx_vmmc: regulator-wl18xx-vmcc { + compatible = "regulator-fixed"; + regulator-name = "vwl1807"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_wlan>; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + gpio = <&gpio6 21 GPIO_ACTIVE_HIGH>; + startup-delay-us = <70000>; + enable-active-high; + }; }; &fec { @@ -285,6 +297,30 @@ status = "okay"; }; +&usdhc1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usdhc1>; + bus-width = <4>; + vmmc-supply = <®_wl18xx_vmmc>; + no-1-8-v; + non-removable; + wakeup-source; + keep-power-in-suspend; + cap-power-off-card; + max-frequency = <25000000>; + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + wlcore: wlcore@2 { + compatible = "ti,wl1837"; + reg = <2>; + interrupt-parent = <&gpio6>; + interrupts = <23 IRQ_TYPE_LEVEL_HIGH>; + tcxo-clock-frequency = <26000000>; + }; +}; + &usdhc3 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usdhc3>; @@ -392,6 +428,17 @@ >; }; + pinctrl_usdhc1: usdhc1grp { + fsl,pins = < + MX6QDL_PAD_SD1_CMD__SD1_CMD 0x17069 + MX6QDL_PAD_SD1_CLK__SD1_CLK 0x10079 + MX6QDL_PAD_SD1_DAT0__SD1_DATA0 0x17069 + MX6QDL_PAD_SD1_DAT1__SD1_DATA1 0x17069 + MX6QDL_PAD_SD1_DAT2__SD1_DATA2 0x17069 + MX6QDL_PAD_SD1_DAT3__SD1_DATA3 0x17069 + >; + }; + pinctrl_usdhc3: usdhc3grp { fsl,pins = < MX6QDL_PAD_SD3_CMD__SD3_CMD 0x17059 @@ -406,4 +453,10 @@ MX6QDL_PAD_SD3_DAT7__SD3_DATA7 0x17059 >; }; + + pinctrl_wlan: wlangrp { + fsl,pins = < + MX6QDL_PAD_RGMII_TD1__GPIO6_IO21 0x4001b0b0 + >; + }; };