From patchwork Sun Feb 25 14:10:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 10240915 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D21D6603B4 for ; Sun, 25 Feb 2018 14:12:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C367029CE5 for ; Sun, 25 Feb 2018 14:12:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B77C229CEC; Sun, 25 Feb 2018 14:12:28 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID 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 A32F129CE5 for ; Sun, 25 Feb 2018 14:12:27 +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: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=2v4ZN5xFF9xiZTSxaFchDORrRdypA8YxkzsXOoqaUm8=; b=f8++X3UCj1K3PEUJJrwRe5P3MB xh1Juc9RR/10ro/nd1NJms83mk9MVznRdKuwvAMunPcEar9RtgDD/TjAmdY9eSiQnuk2V0/wUeWVv 98t103jkAZoNeSDHm+rr9LtQf1ivt0m97WrbHFRWIxzJ6YaUYxKhGKDskheDYHNDySfxAze1KgaK2 ++aoiKxz1gacosBUPc9Me/BPNcVy4BCNvU2wsmCH+PMJmzALf7Iw2HcF2Z/5S+rqj0teQ+C/xvd1A dZlOFBfdHQavPsE+i088JE6R5xU/PaCKH23lopXJFmXnHzuMyxF7LB7MFUpVFy8FGzlvqbnMT2AAp 4LLc/2XA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1epx28-0003gT-Nq; Sun, 25 Feb 2018 14:12:08 +0000 Received: from mout.kundenserver.de ([212.227.17.10]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1epx21-0003dr-NY; Sun, 25 Feb 2018 14:12:03 +0000 Received: from localhost.localdomain ([95.90.209.156]) by mrelayeu.kundenserver.de (mreue104 [212.227.15.183]) with ESMTPSA (Nemesis) id 0Mf1KL-1f5aE91XK5-00OYj0; Sun, 25 Feb 2018 15:11:40 +0100 From: Stefan Wahren To: Loic Poulain , =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Danis?= , Marcel Holtmann , Johan Hedberg , Eric Anholt , Rob Herring , Mark Rutland Subject: [PATCH 3/4] ARM: dts: bcm2835-rpi-zero-w: Add bcm43438 serial slave Date: Sun, 25 Feb 2018 15:10:54 +0100 Message-Id: <1519567855-26105-4-git-send-email-stefan.wahren@i2se.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1519567855-26105-1-git-send-email-stefan.wahren@i2se.com> References: <1519567855-26105-1-git-send-email-stefan.wahren@i2se.com> X-Provags-ID: V03:K0:ZZrm6hgCEfkaVuXqbAgEsz4OvNRVn3uc2Fl8EQHbPvb0ejgUz+9 OCWQGdxjhvlc3IU5Pym9cJrTcserDMsbeQD9ejI0waW/vj++3a3x+Rwlyc9BuDpNIClqBq9 cepadzT2IdAL6BZzu/KcceLcZXHCtaHZHpFLwqtfO6ui36Dys5qFlxbipypy/OshJJtrZ1S QhzHgGqleXHKZDnRFLKfA== X-UI-Out-Filterresults: notjunk:1; V01:K0:Cg6Fw1L8K50=:8doV1HkCIyoMqL0QPg45Ip el6HepFnhdkGzSqk8nce4yzKn3KZFeUINr28zVd8uDX4zQJZFPesMOD7NlM7y6obOIreKPc/w SR4uYcGG8jw1vuryQ5Fz20l12Xae9WP/Zk5I/MAbMyvw/R/EXYdEXu5cGFEkjDdZom5ZKYODH 6S4ZTJf5mHN71Peuo7u0WMFN87TIlG9Wkg9fJKAmoKFguACMDKCqUT0U7V4m8HXZ1iySnu6EY 6DkEUpGWRFucBw+hVsgy9ozJ3eP7g1r/iibX21JWLWs71QE7dZZaYuK/SPRoMlg97NM7InNZC OeIrXKLnf1LM+yE64GIUNPT3UiuhsVR/q5X82rl/JqaLyrhiu9Z3ey49inLMxYgnfKfJ3xzaQ E+pOvX85j8mcLeSdAP3NVACnRZcbUmJgOUWhv0zR6g5qoTZ1Uw1Jwf/iqUAJJENaDs0rlUlB9 xUuwKiRlaSUMzIsuosKjKVubM/0S7/aaq3AQW/nJZKr/BNqVDY+KdttbVpVYxsrZ+xjr5XrlM NSIPmfEYCCe8NzenQvJNNYrPuTne2PvqCXH32QTMEtksMY+tyu9RSjEFliTyj6eG6ig3xAbPg AOvXk7x5xbAo4DKvppkcKnt6aYieVPeroRz4Ect4jSRZFgtR/zlfDWHQxjG5x8NgeJZuxIKnI 4wZv3aa7Oelw5g1Jh7yUfDXd6VL/IYKAyf22xK/7V2FgU1xw68lzkW0ysfWWQQ1fRFyWOx92I QH9y93K8ZX8x0FpV3kmVHrzrbjc/3YqYFHbM8g== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180225_061202_089438_642FA493 X-CRM114-Status: UNSURE ( 9.99 ) 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: Stefan Wahren , devicetree@vger.kernel.org, Florian Fainelli , Phil Elwell , linux-bluetooth@vger.kernel.org, Lukas Wunner , linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org 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 Add BCM43438 (bluetooth) as a serdev slave device of uart0 (pl011/ttyAMA0). This allows to automatically insert the bcm43438 to the bluetooth subsystem instead of relying on patched userspace helpers (hciattach). In order to keep a debug UART we need to switch to uart1. Signed-off-by: Stefan Wahren --- arch/arm/boot/dts/bcm2835-rpi-zero-w.dts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/bcm2835-rpi-zero-w.dts b/arch/arm/boot/dts/bcm2835-rpi-zero-w.dts index cf53436..b7f79f1 100644 --- a/arch/arm/boot/dts/bcm2835-rpi-zero-w.dts +++ b/arch/arm/boot/dts/bcm2835-rpi-zero-w.dts @@ -131,6 +131,18 @@ &uart0 { pinctrl-names = "default"; - pinctrl-0 = <&uart0_gpio14>; + pinctrl-0 = <&uart0_gpio32 &uart0_ctsrts_gpio30>; + status = "okay"; + + bluetooth { + compatible = "brcm,bcm43438-bt"; + max-speed = <2000000>; + shutdown-gpios = <&gpio 45 GPIO_ACTIVE_HIGH>; + }; +}; + +&uart1 { + pinctrl-names = "default"; + pinctrl-0 = <&uart1_gpio14>; status = "okay"; };