From patchwork Fri Dec 1 09:06:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10086579 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 18E946035E for ; Fri, 1 Dec 2017 09:11:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0953F2A4BB for ; Fri, 1 Dec 2017 09:11:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F25FE2A4C3; Fri, 1 Dec 2017 09:11:46 +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 88A7E2A4BB for ; Fri, 1 Dec 2017 09:11:46 +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=5CsTUxQNcI+Old969ezeQKKc5jmBInZR0avukEr9y9U=; b=O4R qcQjFw+AFfODOSRJdLyqpekxj0Zz9Ls+VBHByFH0rUkGRgzRdtsBCxxuzG7fadTNd47Q8zn96Le0o m+J9mga3kiX72USZOudtYwJ+Q1zwY2hid2auWMfZslvge/FokCRisyS+Zs8OhZE6FVe/Z46sfx8Rn v1NF9iItQ6DhWEnUuXrQNK9j2iSJIANqYmYWbRjh8N53sAUxWQvqOe6tLTXuGKq3qsPPYDOjTpzsj f8fGGM1gyOJsvZnKC7eymji3vefdW+axixJs71O54Hj9flNwPZSwrtjINdVKPvUFWVWudwBXF6cC4 k1Mkz5eZsPPoq3k2YfEHPbDlQAXXm4g==; 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 1eKhMC-0001Qb-B4; Fri, 01 Dec 2017 09:11:40 +0000 Received: from mail-pl0-x241.google.com ([2607:f8b0:400e:c01::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eKhM9-0001Pe-Ph for linux-arm-kernel@lists.infradead.org; Fri, 01 Dec 2017 09:11:39 +0000 Received: by mail-pl0-x241.google.com with SMTP id b12so5950841plm.3 for ; Fri, 01 Dec 2017 01:11:16 -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=NYjP7gMhWRYlTHtht/B2CqDX7fh6ahk9yyWps5CaiNw=; b=MT0rpDekYisUwQCY1H6u+u3JF4T45IMMMkfgTzH7TjFdQ6uLHxoBr9m6083Ldf+x64 ec0iWhCuHyBwEU9cXF63g48yPTvm9QbwQhMNU8yvCbJzKPKKI8zzbhx5UVToTl0NSDXh HyEJ9lfKV3b2njHz7IkRUkeV3bGjPAMJqwX4pnJ5rACbvUrRJLQn8EJSgc4PgrRpo6u8 R2vWot0hSr8npqIa0S10K8NcltGOpkKrFPuCag+NsBkPYJd9k6pnEpSVGKLO4QcjJ9e9 ABTdeXMola2V4CL1uP3HutpnxBWn0HKbHQCXMZ+G/pkUGg93uX+1b2BfR6GePE3lnnmh IrUQ== 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=NYjP7gMhWRYlTHtht/B2CqDX7fh6ahk9yyWps5CaiNw=; b=KY09ANIDFi37aHHDIHzygKyYzkoQyAhUBZ5tOsSn5hPYm79JmSHhiR44/UaowOdPrK BZ3uIVZP9tcgwBUhYIn68yVJq5GsToVbdFSApttbL0rtwyba823B2ca3XUTX7BtdJVaq Pv6dyndZONMNKs59rVmP1i+5HOjNgVtya+5L9aIG4w8nHZzqE5Ou+5IRseflrC/5Waql aTNeoRMcQmk0MRbPzZe7b0C6gH//s/f9kKV+nLSxfgOrbCzkjTGRhBSAVJcw3iJCT0hJ Y5WXD/Wwt6zygl7NwFkufDasAKTSDVodUocUONBpFV+vDjnc7W/sKFzN7i5fi5PNEuaI 1dJQ== X-Gm-Message-State: AJaThX4CCPZIH4hrFkWo2eJnjVc/l3SF1uhiAH+BVq2t9PUxDakUU3Iw e0YZC1TuK0Hu8v4DGLFp/7k= X-Google-Smtp-Source: AGs4zMaz5CAJIJ0EcJPz6rl9vWgQeh2taE0t2ja3DhDgXaMtP2OLitKQukSewpt6E4KPiI1EMoBcTQ== X-Received: by 10.84.135.101 with SMTP id 92mr5704311pli.172.1512119476261; Fri, 01 Dec 2017 01:11:16 -0800 (PST) Received: from localhost.localdomain ([115.97.180.212]) by smtp.gmail.com with ESMTPSA id 10sm11624716pfi.72.2017.12.01.01.11.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 01 Dec 2017 01:11:14 -0800 (PST) From: Jagan Teki X-Google-Original-From: Jagan Teki To: Maxime Ripard Subject: [PATCH 1/2] arm64: dts: a64-olinuxino: Enable RTL8723BS WiFi Date: Fri, 1 Dec 2017 14:36:04 +0530 Message-Id: <1512119165-15290-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-20171201_011137_897357_1E17F8D7 X-CRM114-Status: UNSURE ( 9.98 ) 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 To make rtl8723bs chip to work build it as module to and run CONFIG_RTL8723BS=m Signed-off-by: Jagan Teki Acked-by: Maxime Ripard --- .../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";