From patchwork Thu Apr 29 06:08:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen-Yu Tsai X-Patchwork-Id: 429381 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 51EBDC433ED for ; Thu, 29 Apr 2021 06:08:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0DD0D61090 for ; Thu, 29 Apr 2021 06:08:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230423AbhD2GJa (ORCPT ); Thu, 29 Apr 2021 02:09:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:49818 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229814AbhD2GJa (ORCPT ); Thu, 29 Apr 2021 02:09:30 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D5FF261434; Thu, 29 Apr 2021 06:08:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1619676524; bh=9dFSVbrkwUxIsVzVumyBgih3vCXCrFXuL4F7lB86YGk=; h=From:To:Cc:Subject:Date:From; b=Ix5mLXnNpkc19hshwNUZ+Il5Sd+D9IPVhzhUmSfY9R7tim4tl9dV7fd0rnh5pOXoT NLoKwJxcZCgXmgQcusLd6OKQ+UZcysyXzvcdl+KefM7dVDVeZdUwOX0zLhsdG/aqcq ngn2mHoyhOJiQd4g4kCPTVKL71byo5g2eXhT8/HuChYeVm0Ctr/oKnRtlu0Tujc8N2 XkH/GqU4Qs2MGiIYVJ5T2Bi1WlMH7ZVLq0FSC5MkPAIuW445G/jZ/nFGEPTBs0pQLG W4jl1PQKdsNwmxSdY/1X/xDYWBM2kOyy5Qptb3l+tV+ZsUGLP9LECfzum+ioYfiOzK 8y+8Q0wA4xlrA== Received: by wens.tw (Postfix, from userid 1000) id 18AD15FBA4; Thu, 29 Apr 2021 14:08:41 +0800 (CST) From: Chen-Yu Tsai To: Kevin Hilman , Neil Armstrong , Jerome Brunet , Martin Blumenstingl Cc: Chen-Yu Tsai , devicetree@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: dts: meson-gxbb: nanopi-k2: Enable Bluetooth Date: Thu, 29 Apr 2021 14:08:30 +0800 Message-Id: <20210429060830.6266-1-wens@kernel.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Chen-Yu Tsai The NanoPi K2 has a AP6212 WiFi+BT combo module. The WiFi portion is already enabled. The BT part is connected via UART and I2S. Enable the UART and add a device node describing the Bluetooth portion of the module. Signed-off-by: Chen-Yu Tsai --- arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts index 7273eed5292c..10f48fb1af61 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts @@ -385,9 +385,19 @@ &uart_AO { /* Bluetooth on AP6212 */ &uart_A { - status = "disabled"; + status = "okay"; pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>; pinctrl-names = "default"; + + bluetooth { + compatible = "brcm,bcm43438-bt"; + clocks = <&wifi_32k>; + clock-names = "lpo"; + vbat-supply = <&vddio_ao3v3>; + vddio-supply = <&vddio_ao18>; + host-wakeup-gpios = <&gpio GPIOX_21 GPIO_ACTIVE_HIGH>; + shutdown-gpios = <&gpio GPIOX_20 GPIO_ACTIVE_HIGH>; + }; }; /* 40-pin CON1 */