Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp5577imb; Thu, 28 Feb 2019 14:12:21 -0800 (PST) X-Google-Smtp-Source: APXvYqxKtFQnR1M1cg21uroMsb3t5F/AkKtL+f/qAyEQGR6OCCWguQ0kswkafTTPQMgQDqHBgemr X-Received: by 2002:a62:e005:: with SMTP id f5mr2030304pfh.64.1551391941729; Thu, 28 Feb 2019 14:12:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551391941; cv=none; d=google.com; s=arc-20160816; b=bQyDe0FRBWOZa0q+uilPkqEwsUCXbl0aqZp1g3dxF98tqF2R39d/tq6CJ0Pe1hWZ8U i1uUxyqvPh9mp7gIV3PriA4M/htTUL2czUnyhxdRdHzcGnHQfPG8hEjjwFxgz8E2oKbu 7FBVKTwkT2pvqSWwg/Qgp+91d0WtWxFlB2gja94Z8R80ATZJKkuqAfjVjJO6pyCFp652 4iUQVqrWlwYHcAFVs/o2Kl7A5D/Ga47H8xO5eNgy2X+L8KpGXPFKmRxItaUYvTOiQ6h0 4kNfCXxyNjE4/AVEk5XDvGKl6CMqFEuOE9Ks+uXbM0qdkt6VUOQlE19Xt10Spo0lIuga Erkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=uQmnNxVjVkQ/QZdasUIo6i6vJES8qeqEweltLSTemYs=; b=CHJ5mpd66dyhiq5mphtV/vENiXlC3eIQagC8/Hu4iAHaNYDZYGVzW0w/7ymTglVbAi u1H4zg27tKiJtEJNX/UJgHPhZadDMZSRgbe7EM73MjJyCXeFKDzCsatDb5lyfDAJYUDQ LKEy+8NCmAXlioldCc8shmyiWMQwVFNYwyGQsrUlrZC/HYG99o/LTk0Fsjk0OUSsg2ng ujDGSZDvbf4NncSccJu3jdgV7UNz4kSF8ONa7IQgdSoTH9h3VyrMP+XVE8Dg/GCyDqtj 9AKYBnuHZNOFx5XqfTF1X+sc13oq+eYUEsYGVOPT48MCzIH+lJGtLY+Yrr6bHkH45DAy 9Pog== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=JALbSt8d; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w4si18173473plp.141.2019.02.28.14.12.05; Thu, 28 Feb 2019 14:12:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=JALbSt8d; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729776AbfB1V3A (ORCPT + 99 others); Thu, 28 Feb 2019 16:29:00 -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