All of lore.kernel.org
 help / color / mirror / Atom feed
From: Loic Poulain <loic.poulain-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
	rjui-dY08KVG/lbpWk0Htik3J/w@public.gmane.org,
	sbranden-dY08KVG/lbpWk0Htik3J/w@public.gmane.org,
	f.fainelli-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
	marcel-kz+m5ild9QBg9hUCZPvPmw@public.gmane.org,
	johan.hedberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
	stefan.wahren-eS4NqCHxEME@public.gmane.org
Cc: linux-rpi-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
	linux-bluetooth-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Loic Poulain
	<loic.poulain-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Subject: [PATCH v2 2/3] ARM: dts: bcm2837-rpi-3-b: Add bcm43438 as serial slave
Date: Tue,  1 Aug 2017 10:38:23 +0200	[thread overview]
Message-ID: <1501576704-26423-2-git-send-email-loic.poulain@gmail.com> (raw)
In-Reply-To: <1501576704-26423-1-git-send-email-loic.poulain-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

Add BCM43438 as a slave device of uart0 (pl011/ttyAMA0).
This allows to automatically insert the bcm43438 to the bluetooth
subsystem instead of relying on userspace helpers (hciattach).

Overwrite bootargs to use 8250 aux uart (ttyS0) as console instead
of pl011/ttyAMA0.

Signed-off-by: Loic Poulain <loic.poulain-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
v2: dt-bindings as separate patch
    rebase on upcoming pi3 dts changes

 arch/arm/boot/dts/bcm2837-rpi-3-b.dts | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/arch/arm/boot/dts/bcm2837-rpi-3-b.dts b/arch/arm/boot/dts/bcm2837-rpi-3-b.dts
index 20725ca..5abc1df 100644
--- a/arch/arm/boot/dts/bcm2837-rpi-3-b.dts
+++ b/arch/arm/boot/dts/bcm2837-rpi-3-b.dts
@@ -8,6 +8,11 @@
 	compatible = "raspberrypi,3-model-b", "brcm,bcm2837";
 	model = "Raspberry Pi 3 Model B";
 
+	chosen {
+		/* 8250 auxiliar UART instead of pl011 */
+		bootargs = "earlyprintk console=ttyS0,115200";
+	};
+
 	memory {
 		reg = <0 0x40000000>;
 	};
@@ -24,6 +29,11 @@
 	pinctrl-names = "default";
 	pinctrl-0 = <&uart0_gpio32 &gpclk2_gpio43>;
 	status = "okay";
+
+	bluetooth {
+		compatible = "brcm,bcm43438-bt";
+		max-speed = <921600>;
+	};
 };
 
 /* uart1 is mapped to the pin header */
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

WARNING: multiple messages have this Message-ID (diff)
From: Loic Poulain <loic.poulain@gmail.com>
To: robh+dt@kernel.org, rjui@broadcom.com, sbranden@broadcom.com,
	f.fainelli@gmail.com, marcel@holtmann.org,
	johan.hedberg@gmail.com, stefan.wahren@i2se.com
Cc: linux-rpi-kernel@lists.infradead.org,
	linux-bluetooth@vger.kernel.org, devicetree@vger.kernel.org,
	Loic Poulain <loic.poulain@gmail.com>
Subject: [PATCH v2 2/3] ARM: dts: bcm2837-rpi-3-b: Add bcm43438 as serial slave
Date: Tue,  1 Aug 2017 10:38:23 +0200	[thread overview]
Message-ID: <1501576704-26423-2-git-send-email-loic.poulain@gmail.com> (raw)
In-Reply-To: <1501576704-26423-1-git-send-email-loic.poulain@gmail.com>

Add BCM43438 as a slave device of uart0 (pl011/ttyAMA0).
This allows to automatically insert the bcm43438 to the bluetooth
subsystem instead of relying on userspace helpers (hciattach).

Overwrite bootargs to use 8250 aux uart (ttyS0) as console instead
of pl011/ttyAMA0.

Signed-off-by: Loic Poulain <loic.poulain@gmail.com>
---
v2: dt-bindings as separate patch
    rebase on upcoming pi3 dts changes

 arch/arm/boot/dts/bcm2837-rpi-3-b.dts | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/arch/arm/boot/dts/bcm2837-rpi-3-b.dts b/arch/arm/boot/dts/bcm2837-rpi-3-b.dts
index 20725ca..5abc1df 100644
--- a/arch/arm/boot/dts/bcm2837-rpi-3-b.dts
+++ b/arch/arm/boot/dts/bcm2837-rpi-3-b.dts
@@ -8,6 +8,11 @@
 	compatible = "raspberrypi,3-model-b", "brcm,bcm2837";
 	model = "Raspberry Pi 3 Model B";
 
+	chosen {
+		/* 8250 auxiliar UART instead of pl011 */
+		bootargs = "earlyprintk console=ttyS0,115200";
+	};
+
 	memory {
 		reg = <0 0x40000000>;
 	};
@@ -24,6 +29,11 @@
 	pinctrl-names = "default";
 	pinctrl-0 = <&uart0_gpio32 &gpclk2_gpio43>;
 	status = "okay";
+
+	bluetooth {
+		compatible = "brcm,bcm43438-bt";
+		max-speed = <921600>;
+	};
 };
 
 /* uart1 is mapped to the pin header */
-- 
1.9.1

  parent reply	other threads:[~2017-08-01  8:38 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-01  8:38 [PATCH v2 1/3] dt-bindings: net: bluetooth: Add broadcom-bluetooth Loic Poulain
2017-08-01  8:38 ` Loic Poulain
     [not found] ` <1501576704-26423-1-git-send-email-loic.poulain-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-08-01  8:38   ` Loic Poulain [this message]
2017-08-01  8:38     ` [PATCH v2 2/3] ARM: dts: bcm2837-rpi-3-b: Add bcm43438 as serial slave Loic Poulain
     [not found]     ` <1501576704-26423-2-git-send-email-loic.poulain-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-08-04  7:24       ` Marcel Holtmann
2017-08-04  7:24         ` Marcel Holtmann
2017-08-01  8:38   ` [PATCH v2 3/3] Bluetooth: hci_bcm: Add serdev support Loic Poulain
2017-08-01  8:38     ` Loic Poulain
     [not found]     ` <1501576704-26423-3-git-send-email-loic.poulain-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-08-01  8:51       ` Sebastian Reichel
2017-08-01  8:51         ` Sebastian Reichel
2017-08-04 14:36       ` Marcel Holtmann
2017-08-04 14:36         ` Marcel Holtmann
     [not found]         ` <696124D4-A5DA-46FA-A0F0-5DC74363BD23-kz+m5ild9QBg9hUCZPvPmw@public.gmane.org>
2017-08-04 19:26           ` Stefan Wahren
2017-08-04 19:26             ` Stefan Wahren
     [not found]             ` <444254163.121186.1501874785594-7tX72C7vayboQLBSYMtkGA@public.gmane.org>
2017-08-04 19:37               ` Marcel Holtmann
2017-08-04 19:37                 ` Marcel Holtmann
     [not found]                 ` <51D602E3-B21A-402B-A1F5-6241D55448E9-kz+m5ild9QBg9hUCZPvPmw@public.gmane.org>
2017-08-04 19:44                   ` Stefan Wahren
2017-08-04 19:44                     ` Stefan Wahren
     [not found]                     ` <1498038890.121361.1501875841550-7tX72C7vayboQLBSYMtkGA@public.gmane.org>
2017-08-04 19:45                       ` Marcel Holtmann
2017-08-04 19:45                         ` Marcel Holtmann
     [not found]                         ` <BB04C3A8-2BFC-44B7-AA84-E0B81F560B8C-kz+m5ild9QBg9hUCZPvPmw@public.gmane.org>
2017-08-04 19:50                           ` Stefan Wahren
2017-08-04 19:50                             ` Stefan Wahren
     [not found]                             ` <653244764.121525.1501876203800-7tX72C7vayboQLBSYMtkGA@public.gmane.org>
2017-08-04 20:58                               ` Marcel Holtmann
2017-08-04 20:58                                 ` Marcel Holtmann
     [not found]                                 ` <A997C486-989A-4040-9871-773A858D8410-kz+m5ild9QBg9hUCZPvPmw@public.gmane.org>
2017-08-07 22:17                                   ` Eric Anholt
2017-08-07 22:17                                     ` Eric Anholt
     [not found]                                     ` <87o9rr10qy.fsf-omZaPlIz5HhaEpDpdNBo/KxOck334EZe@public.gmane.org>
2017-08-08  4:47                                       ` Marcel Holtmann
2017-08-08  4:47                                         ` Marcel Holtmann
2017-08-22  7:47   ` [PATCH v2 1/3] dt-bindings: net: bluetooth: Add broadcom-bluetooth Maxime Ripard
2017-08-22  7:47     ` Maxime Ripard
     [not found]     ` <20170822074726.e424lflqxn6mb4xd-ZC1Zs529Oq4@public.gmane.org>
2017-08-22 11:01       ` Stefan Wahren
2017-08-22 11:01         ` Stefan Wahren
     [not found]         ` <f2fcf522-cd1e-e748-0ee7-ad28bbf8ae5d-eS4NqCHxEME@public.gmane.org>
2017-08-22 20:27           ` Loic Poulain
2017-08-22 20:27             ` Loic Poulain
     [not found]             ` <4c23bcb6-1b90-c41e-6e47-7d8315e760ae-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-08-23 14:12               ` Maxime Ripard
2017-08-23 14:12                 ` Maxime Ripard
2017-08-23 14:19               ` Marcel Holtmann
2017-08-23 14:19                 ` Marcel Holtmann
     [not found]                 ` <9BD5C644-6B89-496C-B442-F276D7A99102-kz+m5ild9QBg9hUCZPvPmw@public.gmane.org>
2017-08-27  9:54                   ` Stefan Wahren
2017-08-27  9:54                     ` Stefan Wahren
     [not found]                     ` <123116901.43777.1503827664160-7tX72C7vayboQLBSYMtkGA@public.gmane.org>
2017-08-27 10:23                       ` Marcel Holtmann
2017-08-27 10:23                         ` Marcel Holtmann
     [not found]                         ` <CF7BCF4E-A2BE-4D5D-9F3D-0490E75A0677-kz+m5ild9QBg9hUCZPvPmw@public.gmane.org>
2017-08-27 10:40                           ` Stefan Wahren
2017-08-27 10:40                             ` Stefan Wahren
2017-08-31 19:32                   ` Frédéric Danis
2017-08-31 19:32                     ` Frédéric Danis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1501576704-26423-2-git-send-email-loic.poulain@gmail.com \
    --to=loic.poulain-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=f.fainelli-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=johan.hedberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=linux-bluetooth-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-rpi-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=marcel-kz+m5ild9QBg9hUCZPvPmw@public.gmane.org \
    --cc=rjui-dY08KVG/lbpWk0Htik3J/w@public.gmane.org \
    --cc=robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=sbranden-dY08KVG/lbpWk0Htik3J/w@public.gmane.org \
    --cc=stefan.wahren-eS4NqCHxEME@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.