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 {