From patchwork Fri Apr 12 04:58:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Kemnade X-Patchwork-Id: 10897237 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A178013B5 for ; Fri, 12 Apr 2019 04:59:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4D6A528D9D for ; Fri, 12 Apr 2019 04:59:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 402B828E44; Fri, 12 Apr 2019 04:59:21 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 6356928D9D for ; Fri, 12 Apr 2019 04:59:20 +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=mjtIX3xQRdPS+ouqyVWpAJKfWV2ihXaLgXEUie+5YA8=; b=i0d FD1X91k8OCZv1yfeBhb8SPfkut4vUQ1orq7xjezolE8RZZb6m5MkRzIRYDJsaQ85846bZiHb8MK0Y RXfZzafHnnGg5AnI+FnsDdV9L4/R6iVwWEYaBfK1pYs+UksJoa2BfXJzeomN4hiuiFDOSFTiFoFh5 vfMkkPw4K06LuQGwuOkUKkxYpBy5ff5jquEkthO7ZiqfJd53gbNaLrRVMk9rn+vY9kI1SC/p6RIHy DcSH9B+jZrHpf3V/8xDRuWuQi4rnPvdKboMYwTqCnUEwO+PFPM/FqII9IEkoGvN/n6EuAxJe/MZad XrHUfBglTDYlZgxqxZplXZ/ZfrvuD2g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hEoHR-0007fi-E2; Fri, 12 Apr 2019 04:59:13 +0000 Received: from mail.andi.de1.cc ([2a01:238:43f3:0:615b:ee97:1f81:cbf2] helo=h2641619.stratoserver.net) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hEoHN-0007eV-W9 for linux-arm-kernel@lists.infradead.org; Fri, 12 Apr 2019 04:59:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20180802; h=Message-Id:Date:Subject:Cc:To:From:Sender: Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=oVCTSjPkwdx6tRas2KGgRjrRoqpSskzQHkdp+NNCgec=; b=QzAfqT25HCNSS1sGe5UNaWSZz0 ncK3CuOHetNof7LPKV8VzexdSVRmaz9hSGbf89B0eT6dXJcmbiWUWWAwqfe5ZYa81DO5ghIT5M5mG V4CX/OfeUqw9M0F9i1Sek7lE9/7CJ2U1v+E5vDVhMmEmsCE4u3F1h1oTwrPWFvP6CkQM=; Received: from p200300ccfbcd83001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:cc:fbcd:8300:1a3d:a2ff:febf:d33a] helo=aktux) by h2641619.stratoserver.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hEoHB-0002hr-P5; Fri, 12 Apr 2019 06:58:57 +0200 Received: from andi by aktux with local (Exim 4.89) (envelope-from ) id 1hEoHD-0001LL-Hw; Fri, 12 Apr 2019 06:58:59 +0200 From: Andreas Kemnade To: Rob Herring , Mark Rutland , devicetree , linux-arm-kernel , linux-kernel , Chen-Yu Tsai , maxime.ripard@bootlin.com Subject: [PATCH v3] ARM: sun8i: h3: bluetooth for Banana Pi M2 Zero board Date: Fri, 12 Apr 2019 06:58:32 +0200 Message-Id: <20190412045832.5109-1-andreas@kemnade.info> X-Mailer: git-send-email 2.11.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190411_215910_336415_D96C7684 X-CRM114-Status: GOOD ( 10.38 ) 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: Andreas Kemnade 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 The Banana Pi M2 Zero board has an AP6212 BT+Wifi combo chip with Broadcom internals attached to UART1 and some gpios. This addition is in line with similar boards. Signed-off-by: Andreas Kemnade --- changes in v3: spelling fixes changes in v2: remove pinctrl things arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts b/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts index 1db2541135a7..57432d0500b1 100644 --- a/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts +++ b/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts @@ -69,6 +69,8 @@ compatible = "mmc-pwrseq-simple"; pinctrl-names = "default"; reset-gpios = <&r_pio 0 7 GPIO_ACTIVE_LOW>; /* PL7 */ + clocks = <&rtc 1>; + clock-names = "ext_clock"; }; }; @@ -122,7 +124,20 @@ &uart1 { pinctrl-names = "default"; pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>; + uart-has-rtscts; status = "okay"; + + bluetooth { + compatible = "brcm,bcm43438-bt"; + clocks = <&rtc 1>; + clock-names = "lpo"; + vbat-supply = <®_vcc3v3>; + vddio-supply = <®_vcc3v3>; + device-wakeup-gpios = <&pio 6 13 GPIO_ACTIVE_HIGH>; /* PG13 */ + host-wakeup-gpios = <&pio 6 11 GPIO_ACTIVE_HIGH>; /* PG11 */ + shutdown-gpios = <&pio 6 12 GPIO_ACTIVE_HIGH>; /* PG12 */ + }; + }; &usb_otg {