From mboxrd@z Thu Jan 1 00:00:00 1970 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=-8.8 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_PASS,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 032BBC43381 for ; Thu, 28 Feb 2019 21:29:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BC7E32084F for ; Thu, 28 Feb 2019 21:29:02 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kemnade.info header.i=@kemnade.info header.b="JALbSt8d" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729815AbfB1V3B (ORCPT ); Thu, 28 Feb 2019 16:29:01 -0500 Received: from mail.andi.de1.cc ([85.214.239.24]:37974 "EHLO h2641619.stratoserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729540AbfB1V3A (ORCPT ); Thu, 28 Feb 2019 16:29:00 -0500 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=uQmnNxVjVkQ/QZdasUIo6i6vJES8qeqEweltLSTemYs=; b=JALbSt8d8B60AHLXp69Mh+0Fn0 Ep4gLs1MxM14es/MDfb2TjyOdXJdfjp16Ino2coD9lbXuX8Ug/sxL3LWZCVqgvNk1m4n6OfgrSEsG +dPRILT+hpGIYntvCYS+12AC7fSQd3qsygIddRAuCj3RVIbf7K+pLOsXIFoTa2b+Mx3o=; Received: from p200300ccfbd0cd001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:cc:fbd0:cd00: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 1gzTES-0004al-B2; Thu, 28 Feb 2019 22:28:44 +0100 Received: from andi by aktux with local (Exim 4.89) (envelope-from ) id 1gzTET-0006VN-CT; Thu, 28 Feb 2019 22:28:45 +0100 From: Andreas Kemnade To: robh+dt@kernel.org, mark.rutland@arm.com, maxime.ripard@bootlin.com, wens@csie.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Andreas Kemnade Subject: [PATCH] ARM: sun8i: h3: bluetooth for Banana Pi M2 Zero board Date: Thu, 28 Feb 2019 22:28:40 +0100 Message-Id: <20190228212840.24964-1-andreas@kemnade.info> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- .../boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts | 29 ++++++++++++++++++++++ 1 file changed, 29 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..39e206fac4e3 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,34 @@ &uart1 { pinctrl-names = "default"; pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>; + uart-has-rtscts; status = "okay"; + + bluetooth { + compatible = "brcm,bcm43438-bt"; + pinctrl-names = "default"; + pinctrl-0 = <&bt_pins_out>, <&bt_pins_in>; + 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 */ + }; + +}; + +&pio { + bt_pins_out: bt_out { + pins = "PG12", "PG13"; + function = "gpio_out"; + }; + + bt_pins_in: bt_in { + pins = "PG11"; + function = "gpio_in"; + }; }; &usb_otg { -- 2.11.0 From mboxrd@z Thu Jan 1 00:00:00 1970 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=-9.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,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 89217C43381 for ; Thu, 28 Feb 2019 21:29:05 +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 56D482084F for ; Thu, 28 Feb 2019 21:29:05 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Zh7n1ZFM"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kemnade.info header.i=@kemnade.info header.b="JALbSt8d" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 56D482084F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kemnade.info Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.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: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=SXOxUJeE7lQfGdtlTJ3cNkgUGRYt84DwrQfLHAxKd8o=; b=Zh7 n1ZFMbuS/tAehXiroYDaLKuRC/kw3+yH4a28Pdua2fXvxtKtSFeFpQDbDKu6eh1qOIf3vldS9C/GQ BXsOwJeYivrd1siHOIvn79XWmicHbLJqCvO8+UBS2zcpWC7AIHHu4iykap/9Hpm/rqw9/HBdzRzKr OHZtuZtpmowi/sYV/Xhh5vcMSM55i0SiesXLIUCfVCpj62Xp11QMcXKT1h+DSZPjPxy8Y7o7QBJy7 hXiFpp8TKD7eYp/fwAflD3zfB6fqQy5HjywwLrjBaGW2PV/xGCKuOD2mxgMq3wlZ2aMqBibBguwVH Dinq0UdNxLGCpd88UsawAy42fRyIlDw==; 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 1gzTEl-0008PX-QZ; Thu, 28 Feb 2019 21:29:03 +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 1gzTEi-0008Oi-3w for linux-arm-kernel@lists.infradead.org; Thu, 28 Feb 2019 21:29:02 +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=uQmnNxVjVkQ/QZdasUIo6i6vJES8qeqEweltLSTemYs=; b=JALbSt8d8B60AHLXp69Mh+0Fn0 Ep4gLs1MxM14es/MDfb2TjyOdXJdfjp16Ino2coD9lbXuX8Ug/sxL3LWZCVqgvNk1m4n6OfgrSEsG +dPRILT+hpGIYntvCYS+12AC7fSQd3qsygIddRAuCj3RVIbf7K+pLOsXIFoTa2b+Mx3o=; Received: from p200300ccfbd0cd001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:cc:fbd0:cd00: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 1gzTES-0004al-B2; Thu, 28 Feb 2019 22:28:44 +0100 Received: from andi by aktux with local (Exim 4.89) (envelope-from ) id 1gzTET-0006VN-CT; Thu, 28 Feb 2019 22:28:45 +0100 From: Andreas Kemnade To: robh+dt@kernel.org, mark.rutland@arm.com, maxime.ripard@bootlin.com, wens@csie.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: sun8i: h3: bluetooth for Banana Pi M2 Zero board Date: Thu, 28 Feb 2019 22:28:40 +0100 Message-Id: <20190228212840.24964-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-20190228_132900_487715_82F88B9E X-CRM114-Status: UNSURE ( 9.53 ) 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: Andreas Kemnade MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 --- .../boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts | 29 ++++++++++++++++++++++ 1 file changed, 29 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..39e206fac4e3 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,34 @@ &uart1 { pinctrl-names = "default"; pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>; + uart-has-rtscts; status = "okay"; + + bluetooth { + compatible = "brcm,bcm43438-bt"; + pinctrl-names = "default"; + pinctrl-0 = <&bt_pins_out>, <&bt_pins_in>; + 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 */ + }; + +}; + +&pio { + bt_pins_out: bt_out { + pins = "PG12", "PG13"; + function = "gpio_out"; + }; + + bt_pins_in: bt_in { + pins = "PG11"; + function = "gpio_in"; + }; }; &usb_otg { -- 2.11.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel