From patchwork Wed Dec 18 22:35:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Soeren Moch X-Patchwork-Id: 11302335 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B324114B7 for ; Wed, 18 Dec 2019 22:35:50 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8CDE0227BF for ; Wed, 18 Dec 2019 22:35:50 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="AtmOxow2"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=web.de header.i=@web.de header.b="Q6e5cOL0" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8CDE0227BF Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=web.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org 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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=qlrhyltkOdDDUz2ZMyZd0FF+KD807Xyjc9IbUhBlzbI=; b=AtmOxow21SJfz0 3uipgkq9MZ143cQmY+qoZbXED+FxbLTtRjbsetv/X9Qd3pC4fq436Ps0X+A0wMexQhlBmd3nHv4Ne KrWMDbROsxPcn/0L/sKKXgZUtUIXEBSa/FEZE5nH11CZr0Az3NoHjqDUSIjOBEfiapoXGuqjC8qKY vOOc4GOI7DXQcHlohXd10nRLhjHg5lalsGeE5WmrNauTm1oSqFt9L28sRHTDNmnEPAzGk5gyo34K0 TcrZA70haQHZIYly2kgrFzQ7qq1trmQhEyt+9L0L1TOPHlSZFSVcFdVHnBB8Y8zSXpxKNh9PqOg4R rHcmU8/SScIdWj0NZqzg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ihhv1-0006zc-Qf; Wed, 18 Dec 2019 22:35:47 +0000 Received: from mout.web.de ([217.72.192.78]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ihhuy-0006yN-NG; Wed, 18 Dec 2019 22:35:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1576708539; bh=dWWWJ56z1+3McYaTHm68m10tWxr+xp0Nfa2r5nT/XzM=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=Q6e5cOL09ofwA4pprMspntmwlHo2cj3FfkHb+T+fo+Hokc0pgbhwlsaLXBuFqCQFP LUhDsQfBaIFzGK5VnIh/Wsy83NQ3qofTSflXxMyqdGVF+qCCaYhhFdu+YNIkDhIZYd OeMpota4U8gq4SgV8yG+/SR5WuWOoNu0++IohITQ= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from localhost.localdomain ([89.204.137.218]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LeLSr-1huKBy0mzt-00qDza; Wed, 18 Dec 2019 23:35:39 +0100 From: Soeren Moch To: Heiko Stuebner Subject: [PATCH v3 1/2] arm64: dts: rockchip: RockPro64: enable wifi module at sdio0 Date: Wed, 18 Dec 2019 23:35:22 +0100 Message-Id: <20191218223523.30154-2-smoch@web.de> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191218223523.30154-1-smoch@web.de> References: <20191218223523.30154-1-smoch@web.de> MIME-Version: 1.0 X-Provags-ID: V03:K1:ROAhb4S5HnA8zC1UxSpS35h6K1uYG1iZNFj0qH1Upg0Ypl38cVT KHwIZnhcqQFTHjIGJmcOSDo6GPae4t640XYWTwIfcSeErvbBsWzKrA5Qv5gYv9XLQTqWrKE xk4sf/ZpyVe4B5+FhRhNGodEQ0RLFB4O/o7+kTwDkPgjAJRf2GV4c7Tt60eL8DnnnIk0UfH 2Z4sU/Ore3JwH8bCkj75A== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:WjCFWLClYzs=:sfZYTqTROrpebhd/C8nXmJ QulDk9vDBdJGdA9icQsumC87GMwKHlCewB1YaAeB/4yGhAoVIvE91PEDjHkacHNfN+Bt8R3+K atOp8SKjNYkowSZcUOwc1b7LitlCwTSPRjbDbqIQp+yWzBqQ+jlaKKFxnElosmf5nXpdv2FxR 1bUmSUdFPdtw03UFMVvGH/H3jYTMpG4zdUZdbWEvwgT+zpbAhTz8oLMPxjUHkxMpIl3bc/1L3 q9Dk3PaKyAuEuMFTsQG+a3S4tTXE1ovS4Jr6Blb3XvjTn8LyqWA2dN2wMxMWan8JNByZoVSOe E9elEXDngX2dXKdyqftHY81xCwKE7vY1gG2qj7IIPScoGK6IPilciBjtaDjyY1YrxcbhgAsoO FuSrPuyS0znVddHgKsWPcOvIhDKVaDykCQOo6E7HYTUVzPLOFrwTj8Pld6nMaQWDz47rNE8IZ wgCnJjq+HJkf9BmZCSalPxaQOugPc/fITL3rM1L94vf015E1W+FkN2qFZBUislon64M1XaW3M acFP+tF7VON/3QJPH0OUwBYtqU/ua8iOqmBeBobDc43xotypdP9pXKe1v5mDc4xQcMNbtYZ+C jmsIWc1mlcBd9S2g0hdkm9VN0cV79Qlw6JRhbsMoOBEcRd8B6aPzUsMLkgSW5j6S/Hbtfqvwf 1BV03R9cWgWsh9L8tmnep9B1Jx4wIZItyguUNzl62Z8OUUYOhwj7F7Iic3HywHcAGTpFk3zA6 ntcMz+JJLNnm1FdOf64UPFxEiRr9pQdHsmFMlEYuNuKIXhO93s7Ow2EZiwIi5KEI92fv7gKrx eLQavYqLH9qjjPPm/tAUGPrdqp7qH4xc+jDTTPhhiyxwMJ3JvUZEW/dflmO1JIGZKu+DNmqrI 0i5JbqtMYkwxlYRIgYAvcw9p63JNxiQ/IVkITm8rFBzVmgpzfef/AphctNC4+5yjWqlQ4Frrc JvDGeYgoK4bpUEabFOBKrGz+WqntDCxeVE2I56n5iJebZ7HOK9lohhDxfB+pbgELZZbFfXQZ/ GG8qPZhbXUm4ToWK9poMYdSha2RjgtAIi501cPT0B7/Dz2ynI2PptER2Osw90hTJuLd9MJMvQ TANrT+8fuMoqRxsdvbHkOo+SDnhLpKWpyZecFVda9fbObLZZXxtYkX2fa2V+4Car8IxPNA8PY EAcffdHrDmVOBNdda6W+/5Gj1E6Qv9wLTTP6y9UyRMF29esf1ajk4/D5EAGrOwGl9aNbKwxTh sXjd8HgAYpVU2uYZMzWZZgWBFJ8lP5pX3Quo/iw== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191218_143545_090201_7D4869C1 X-CRM114-Status: GOOD ( 11.63 ) X-Spam-Score: 0.6 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (0.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [217.72.192.78 listed in list.dnswl.org] 1.5 RCVD_IN_SORBS_WEB RBL: SORBS: sender is an abusable web server [89.204.137.218 listed in dnsbl.sorbs.net] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (smoch[at]web.de) -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-rockchip@lists.infradead.org, Soeren Moch , Robin Murphy , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org RockPro64 supports an Ampak AP6359SA based wifi/bt combo module. The BCM4359/9 wifi controller in this module is connected to sdio0, enable this interface. Use the in-band sdio irq instead of the out-of-band wifi_host_wake_l signal since the latter is not working reliably on this board (probably due to it's PCIe WAKE# connection). Signed-off-by: Soeren Moch --- changes in v3: - none changes in v2: - add comment about irq in commit message Not sure where to place exactly the sdio0 node in the dts because existing sd nodes are not sorted alphabetically. Cc: Heiko Stuebner Cc: Robin Murphy Cc: linux-arm-kernel@lists.infradead.org Cc: linux-rockchip@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- .../boot/dts/rockchip/rk3399-rockpro64.dts | 21 ++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) -- 2.17.1 diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dts b/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dts index 7f4b2eba31d4..9fa92790d6e0 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dts @@ -71,13 +71,6 @@ clock-names = "ext_clock"; pinctrl-names = "default"; pinctrl-0 = <&wifi_enable_h>; - - /* - * On the module itself this is one of these (depending - * on the actual card populated): - * - SDIO_RESET_L_WL_REG_ON - * - PDN (power down when low) - */ reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>; }; @@ -650,6 +643,20 @@ status = "okay"; }; +&sdio0 { + bus-width = <4>; + cap-sd-highspeed; + cap-sdio-irq; + disable-wp; + keep-power-in-suspend; + mmc-pwrseq = <&sdio_pwrseq>; + non-removable; + pinctrl-names = "default"; + pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>; + sd-uhs-sdr104; + status = "okay"; +}; + &sdmmc { bus-width = <4>; cap-sd-highspeed; From patchwork Wed Dec 18 22:35:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Soeren Moch X-Patchwork-Id: 11302381 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D19F914E3 for ; Wed, 18 Dec 2019 22:36:26 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8BFD32146E for ; Wed, 18 Dec 2019 22:36:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="D3tH+pmu"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=web.de header.i=@web.de header.b="fe2soDgP" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8BFD32146E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=web.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org 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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=oEyvcW7r/dfDMzkTUVYQ7l1q98V85Z+gLMdNxhgi6JU=; b=D3tH+pmuOky6I6 QMaMlwJ1Ikrund2Fkg02xepS6Pqk3zVn0HKY7yblagPRBbDELDOTFBcmRUmmldLR2fKepf2TfFFMV Rge/X0u/GbK0RDRpq716w58WZGOdlfEJYd0fxv+paxDsPSxS4JcmXd3UU9/t+mLdYTk1xuMSuimxX JDY+tUgQijrFOEMrMMwsfAIb8fYclc3i1+QJRoUayQ9D8zkC1ZJuV5lsGtNpu8tIijRD2L0Yh9FaS 8Jb8tDnwzTSpUpynzByV2lf0w3szIOeo0n26YlG55a704uUJ2mzAtWD7VYFLTGqs851akLFvi4arP a3cki+aeuIuBzvhYP0dA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ihhva-0007aq-Kf; Wed, 18 Dec 2019 22:36:22 +0000 Received: from mout.web.de ([217.72.192.78]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ihhuz-0006yP-Lp; Wed, 18 Dec 2019 22:35:48 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1576708540; bh=8ZRx4y81hHZJO5QcZ9dH2x8e4A8ig8L8U4hPDWTL4Fk=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=fe2soDgPKrDPbLobU0YHjkE1t5sDoCYUJEGoHfb/g/2Z7KqElN/UdgAHwRZmDiREc PcaTYrxfy/Ijwr3D/A6W8IqwtR4Fne5eNZq6ahFYtX5L5vQkbX+dufqJIjfaOpwwzj TBpG+e7BY1l0lhVCEa1ldJhF7XRL47qOfuMn1hF4= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from localhost.localdomain ([89.204.137.218]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LkyEb-1i9kXm43q1-00andm; Wed, 18 Dec 2019 23:35:40 +0100 From: Soeren Moch To: Heiko Stuebner Subject: [PATCH v3 2/2] arm64: dts: rockchip: RockPro64: hook up bluetooth at uart0 Date: Wed, 18 Dec 2019 23:35:23 +0100 Message-Id: <20191218223523.30154-3-smoch@web.de> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191218223523.30154-1-smoch@web.de> References: <20191218223523.30154-1-smoch@web.de> MIME-Version: 1.0 X-Provags-ID: V03:K1:l+ItjJlDtrlJ5iojY1W0IyP/csk5hm2m8TkpvkslsWVninqUkpA ipZrdB6978T9oj9RLdlqMYhKf0Qbh8NeKm8W+z/MQkNBVQ/XpiFWMvsaA/4wbaR/xTEVvc9 sFRkTUen1CfyoiWXVNXvtuAHlGOSSJjDIsW3od43x49M26JZsQT7SnbNo1KkW3NL/L6l5Tm w2M9Q9ABcjb9MQvpperqA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:CbjWo1dqzEg=:Hbg+q57jVTLeibDUB3tmYB eRtooKn3Rjj28azAkhZ5O1P9Y2+u3I8PLA7rCufMqYwuli8FdZA4Psktiak87x2+2xvtmCA6N Zdlgn/pC+p3wNYQOOEFhHRJwbFn6ObVOyxVjQZ4zKf8zz/bVtHFVdQeS4mbZgnBFOV9cqdDfA THGLaa9bIF8iB9O+Nn7Gd5tOg3z3PNB1eT2uGNKCSc+T4JoaTjiiwQUx/TLWBTpI6S6gWLpAO u7BErTwJ868JilKT5usTdVMOchGIUIQI21+iJ2/Zmua0zUvwSphemKVrNpjX/RNajQOLqcBpD EPZvSm6pb4CFiSDUxaEs+3CwDlvQGnU5KajQeo8CSUlf14QyJlnWSjeREcq+6mh6+W3fh1MCC +wQzpfNnglBRgYJ/sbyWD7U/fUIly4Aq2G3O1hXptrtLCDCZNOkhotw6+XmrE3fS1IilIROZS S/SsBiYWysdO97ZUlETBuPWGslruHPv9h2c3/KQGltXOLy/Q4KEudxg8BRqm/7XLWr+vIW+uq f7EGWCGNB711qBhqccfwXGdlD3ti3OD0Fxrcsxu1xsebbDvs4SNj5C4aJPVpDa06d9R3cM7Sq WMfSgG5WQK02zxb8FuXInHm0bXsOO+sKB1sjE9DcmqyjE6y5odGVtWDVcdBnoyqNYVcmw5MX0 JT+2ntrWifF0nQgNXpZPcct0bomAbpRPJecXxFOdWD8FxTVBEYR7FnjKAI34G6Bci5veqrFqa T3/dEhFQKrwXx1vT7bDPY7eR5PB2GSUqO6CEH5rgTVnvXr/BoJNOMi+AUHfIJe0lhilw4Tl9B 252vNQPyhXqTD0vRK+CvSMXVcus4ot7K0eRc2bZvPCbtJBrJTgvqOSXg7viw0XNG0gmB70SCI 0yT6GzmVyXavOd8OSdIAcD7o56xVFwQshJkV+AMEIN/00VMFYyNZBwLFVm5QMZzwNA6iQn1md Jt7VUNzNuf1S4ztJfDIF4+TLogciV/69b/NpsHmyDwRPLWr3He7vJ1DmK0yn0NcPCZ5lvQjAC d/YJht5XNvSGJYg2JIXFAueYDSSC7juWdMSFs2y5wOOYNjIx5ozXyeMScssdZ6mZOM9jZ7m5f PSYgsDqE/D3rFE1f9tnER+wA5Lsmbv4yfG5/btl3/fCF4d1l6lhBOh27T7Vv+JVxccSXPpz8N x5Bbjct/VQLe8X9u6Aj7xsbfMc8ewlogHEQLLIIoXcqnYtOHKbV2jAE8HuITHZdkn14fIHsqB eiceuuOwQXnJkqUFlSiBIHXtjXZHzO1gBdd81uQ== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191218_143546_011436_A533CFB2 X-CRM114-Status: UNSURE ( 8.96 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.6 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (0.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- 1.5 RCVD_IN_SORBS_WEB RBL: SORBS: sender is an abusable web server [89.204.137.218 listed in dnsbl.sorbs.net] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [217.72.192.78 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (smoch[at]web.de) -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-rockchip@lists.infradead.org, Soeren Moch , Robin Murphy , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org With enabled wifi support (required for firmware loading) for the Ampak AP6359SA based wifi/bt combo module we now also can enable the bluetooth part. Suggested-by: Heiko Stuebner Signed-off-by: Soeren Moch --- changes in v3: - fix bluetooth clock name as reported by Robin Murphy changes in v2: - new patch Cc: Heiko Stuebner Cc: Robin Murphy Cc: linux-arm-kernel@lists.infradead.org Cc: linux-rockchip@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- .../boot/dts/rockchip/rk3399-rockpro64.dts | 29 ++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) -- 2.17.1 diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dts b/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dts index 9fa92790d6e0..d9206730c88c 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dts @@ -561,6 +561,20 @@ }; &pinctrl { + bt { + bt_enable_h: bt-enable-h { + rockchip,pins = <0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + bt_host_wake_l: bt-host-wake-l { + rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_down>; + }; + + bt_wake_l: bt-wake-l { + rockchip,pins = <2 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + buttons { pwrbtn: pwrbtn { rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>; @@ -729,8 +743,21 @@ &uart0 { pinctrl-names = "default"; - pinctrl-0 = <&uart0_xfer &uart0_cts>; + pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>; status = "okay"; + + bluetooth { + compatible = "brcm,bcm43438-bt"; + clocks = <&rk808 1>; + clock-names = "lpo"; + device-wakeup-gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>; + host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>; + shutdown-gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&bt_host_wake_l &bt_wake_l &bt_enable_h>; + vbat-supply = <&vcc3v3_sys>; + vddio-supply = <&vcc_1v8>; + }; }; &uart2 {