From patchwork Mon Dec 4 04:53:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10089617 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 E5155600C5 for ; Mon, 4 Dec 2017 04:53:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D8AF828CD5 for ; Mon, 4 Dec 2017 04:53:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CD45528F48; Mon, 4 Dec 2017 04:53:57 +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=-4.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 6249128CD5 for ; Mon, 4 Dec 2017 04:53:56 +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: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:In-Reply-To: References:List-Owner; bh=lMegORThuejCEN0OydpWwmTyQMWmk4lfVZZ19JW4yho=; b=DP9 2fDe/DCq4fZMx8RBznHgJj7AgmN/Mtzl7LmORDactQshVbHpdDHl6Huj/E1N+sxGghwrFDjeW1ycc eSemYe9dSkoOemuUkLAU79SH0OPea1ehjshrZ946ehdudTFKXVP47zr2MaAtJhhAVejEDKotglKzn ZZOwcVGRawIASxcGUZ9X6dz1rURNproW3gkFhEgHCDVtGHvg1MHj0QtOr95CK6p6LeXrQTGd+/yfL Zxg7/7YKU5CHkzFZqri4qrnK5aPyv6DxESGrSVU+jcjFFnQidot7AA/lMS4cMAPVQhBnD0P+75Ay3 mbKHzoTfFBSjMoW2mqREbtC+vn/nW/w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eLilF-0001d3-Kf; Mon, 04 Dec 2017 04:53:45 +0000 Received: from mail-pf0-x244.google.com ([2607:f8b0:400e:c00::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eLil9-0001cG-6o for linux-arm-kernel@lists.infradead.org; Mon, 04 Dec 2017 04:53:43 +0000 Received: by mail-pf0-x244.google.com with SMTP id d23so7664098pfe.9 for ; Sun, 03 Dec 2017 20:53:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=mo6FJCHZaX6TVJcm4KB4StEEXhoawvN4TX6T3AvEWY0=; b=gOL9kEBOdDsNQ/Geshleut156MjzMEQ1m23GyXx/FVElbuuRZRV8rMPTTscKn1CTEG j1LLYeZcInqfrfUuCJyfcm8ZMjC2i3XCJH7+frqSCnD5C9rM1klFGx7t2yJ3ZOMjxm0a 7FPShPMkNrYbECj68eL0uBeB5MJbMaFgTmNIOd+Umz5PcIsKK/JH7c8yR5D7xd6wMcOM gQiLZMwmb1rbuondaiAubx6UEqvaGJMzMRtoA11NjPl/s4WT8anzFDkuBQBcP4dpYbCj 45EDKb5k8usY/TCjVQTC9KLHlOLgp6BRnHLhn0AD4/+BD84B4Ie88WZ9Mc4V67OJnNcq 2p3w== 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=mo6FJCHZaX6TVJcm4KB4StEEXhoawvN4TX6T3AvEWY0=; b=mLURrlFQth0E4QWuRL6jYT/WMnM05KD7T8jclPRDPZtR7Bx1B98UNDHUFUwvUrY+kS NYnkuPRJKrugB9pSi0jatn9JsrPVlsyQDl1O0qfE0/wKxpK9+GNFmnYk6ka0CQxkTn+D t6S6LCzwIxKdzTVZY7snDtoWrLsOukkw4DmYltMSQfMPvNdyUuxMk2UGTlbcHOBAhcYo FhJs+wwoeFd0yRAlg/zos5r5ySWFiJYuUL1iVaJpNahETm/1WcfOFDixq3Qjk/sDa3Sf HYdIdiWSzZM0sHOYpZ8w8w+83BaQvqGiEeEiI52UqvOn+EbdDVmfriJmsBUg8fnzl0yY XQeA== X-Gm-Message-State: AJaThX4wyJ/ccA46mnQqpQbYMOguEfMoWw9X3FV+V6hh8hf6Xw+eeY3l ZZB37EVr8SZysWOM/USI984= X-Google-Smtp-Source: AGs4zMZMjP6GbY6SpNZx9xyP4Gl+w67s9YmCgixsXfuudjglYv8v3c+T3u4Eoy3OrjSkGZsZxilOzQ== X-Received: by 10.98.51.6 with SMTP id z6mr18262904pfz.34.1512363197619; Sun, 03 Dec 2017 20:53:17 -0800 (PST) Received: from localhost.localdomain ([115.97.180.212]) by smtp.gmail.com with ESMTPSA id c191sm23084518pfg.24.2017.12.03.20.53.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 03 Dec 2017 20:53:16 -0800 (PST) From: Jagan Teki X-Google-Original-From: Jagan Teki To: Maxime Ripard Subject: [PATCH v2 1/2] arm64: dts: a64-olinuxino: Enable RTL8723BS WiFi Date: Mon, 4 Dec 2017 10:23:06 +0530 Message-Id: <1512363187-8353-1-git-send-email-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171203_205339_335917_503FD965 X-CRM114-Status: UNSURE ( 9.26 ) X-CRM114-Notice: Please train this message. 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, Catalin Marinas , linux-sunxi@googlegroups.com, Will Deacon , linux-kernel@vger.kernel.org, Chen-Yu Tsai , Rob Herring , Jagan Teki , Michael Trimarchi , linux-arm-kernel@lists.infradead.org, Icenowy Zheng 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 Enable RTL8723BS WiFi chip on a64-olinuxino board: - WiFi SDIO interface is connected to MMC1 - WiFi REG_ON pin connected to gpio PL2: attach to mmc-pwrseq - WiFi HOST_WAKE pin connected to gpio PL3 Signed-off-by: Jagan Teki Acked-by: Maxime Ripard --- Changes for v2: - Remove wrong commit message .../boot/dts/allwinner/sun50i-a64-olinuxino.dts | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts index 338e7861..8807664 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts @@ -57,6 +57,11 @@ chosen { stdout-path = "serial0:115200n8"; }; + + wifi_pwrseq: wifi_pwrseq { + compatible = "mmc-pwrseq-simple"; + reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */ + }; }; &mmc0 { @@ -70,6 +75,24 @@ status = "okay"; }; +&mmc1 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc1_pins>; + vmmc-supply = <®_aldo2>; + vqmmc-supply = <®_dldo4>; + mmc-pwrseq = <&wifi_pwrseq>; + bus-width = <4>; + non-removable; + status = "okay"; + + rtl8723bs: wifi@1 { + reg = <1>; + interrupt-parent = <&r_pio>; + interrupts = <0 3 IRQ_TYPE_LEVEL_LOW>; /* PL3 */ + interrupt-names = "host-wake"; + }; +}; + &r_rsb { status = "okay";