|
|
27e72a6 |
From a92507095467d77f4fd05f54ae8d299459c2c3a3 Mon Sep 17 00:00:00 2001
|
|
|
27e72a6 |
From: Peter Robinson <pbrobinson@gmail.com>
|
|
|
27e72a6 |
Date: Sun, 10 Sep 2017 19:29:23 +0100
|
|
|
27e72a6 |
Subject: [PATCH 1/2] ARM: dts: bcm283x: Use stdout-path instead of console
|
|
|
27e72a6 |
bootarg
|
|
|
27e72a6 |
|
|
|
27e72a6 |
Add the serial port config to "chosen/stdout-path".
|
|
|
27e72a6 |
Create serial0/1 aliases referring to uart0 ant uart1 paths.
|
|
|
27e72a6 |
Remove unneeded earlyprintk.
|
|
|
27e72a6 |
|
|
|
27e72a6 |
Signed-off-by: Loic Poulain <loic.poulain@xxxxxxxxx>
|
|
|
27e72a6 |
Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
|
|
|
27e72a6 |
---
|
|
|
27e72a6 |
arch/arm/boot/dts/bcm283x.dtsi | 7 ++++++-
|
|
|
27e72a6 |
1 file changed, 6 insertions(+), 1 deletion(-)
|
|
|
27e72a6 |
|
|
|
27e72a6 |
diff --git a/arch/arm/boot/dts/bcm283x.dtsi b/arch/arm/boot/dts/bcm283x.dtsi
|
|
|
27e72a6 |
index 431dcfc900c0..013431e3d7c3 100644
|
|
|
27e72a6 |
--- a/arch/arm/boot/dts/bcm283x.dtsi
|
|
|
27e72a6 |
+++ b/arch/arm/boot/dts/bcm283x.dtsi
|
|
|
27e72a6 |
@@ -20,8 +20,13 @@
|
|
|
27e72a6 |
#address-cells = <1>;
|
|
|
27e72a6 |
#size-cells = <1>;
|
|
|
27e72a6 |
|
|
|
27e72a6 |
+ aliases {
|
|
|
27e72a6 |
+ serial0 = &uart;;
|
|
|
27e72a6 |
+ serial1 = &uart;;
|
|
|
27e72a6 |
+ };
|
|
|
27e72a6 |
+
|
|
|
27e72a6 |
chosen {
|
|
|
27e72a6 |
- bootargs = "earlyprintk console=ttyAMA0";
|
|
|
27e72a6 |
+ stdout-path = "serial0:115200n8";
|
|
|
27e72a6 |
};
|
|
|
27e72a6 |
|
|
|
27e72a6 |
thermal-zones {
|
|
|
27e72a6 |
--
|
|
|
27e72a6 |
2.13.5
|
|
|
27e72a6 |
|
|
|
27e72a6 |
From 50252c318fe2fcfcbd0832fa835e7fd1fafd7d2d Mon Sep 17 00:00:00 2001
|
|
|
27e72a6 |
From: Peter Robinson <pbrobinson@gmail.com>
|
|
|
27e72a6 |
Date: Sun, 10 Sep 2017 19:30:02 +0100
|
|
|
27e72a6 |
Subject: [PATCH 2/2] ARM: dts: bcm2837-rpi-3-b: Add bcm43438 serial slave
|
|
|
27e72a6 |
|
|
|
27e72a6 |
Add BCM43438 (bluetooth) as a slave device of uart0 (pl011/ttyAMA0).
|
|
|
27e72a6 |
This allows to automatically insert the bcm43438 to the bluetooth
|
|
|
27e72a6 |
subsystem instead of relying on userspace helpers (hciattach).
|
|
|
27e72a6 |
|
|
|
27e72a6 |
Overwrite chosen/stdout-path to use 8250 aux uart as console.
|
|
|
27e72a6 |
|
|
|
27e72a6 |
Signed-off-by: Loic Poulain <loic.poulain@xxxxxxxxx>
|
|
|
27e72a6 |
Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
|
|
|
27e72a6 |
---
|
|
|
27e72a6 |
arch/arm/boot/dts/bcm2837-rpi-3-b.dts | 10 ++++++++++
|
|
|
27e72a6 |
1 file changed, 10 insertions(+)
|
|
|
27e72a6 |
|
|
|
27e72a6 |
diff --git a/arch/arm/boot/dts/bcm2837-rpi-3-b.dts b/arch/arm/boot/dts/bcm2837-rpi-3-b.dts
|
|
|
27e72a6 |
index 20725ca487f3..e4488cb3067e 100644
|
|
|
27e72a6 |
--- a/arch/arm/boot/dts/bcm2837-rpi-3-b.dts
|
|
|
27e72a6 |
+++ b/arch/arm/boot/dts/bcm2837-rpi-3-b.dts
|
|
|
27e72a6 |
@@ -8,6 +8,11 @@
|
|
|
27e72a6 |
compatible = "raspberrypi,3-model-b", "brcm,bcm2837";
|
|
|
27e72a6 |
model = "Raspberry Pi 3 Model B";
|
|
|
27e72a6 |
|
|
|
27e72a6 |
+ chosen {
|
|
|
27e72a6 |
+ /* 8250 auxiliar UART instead of pl011 */
|
|
|
27e72a6 |
+ stdout-path = "serial1:115200n8";
|
|
|
27e72a6 |
+ };
|
|
|
27e72a6 |
+
|
|
|
27e72a6 |
memory {
|
|
|
27e72a6 |
reg = <0 0x40000000>;
|
|
|
27e72a6 |
};
|
|
|
27e72a6 |
@@ -24,6 +29,11 @@
|
|
|
27e72a6 |
pinctrl-names = "default";
|
|
|
27e72a6 |
pinctrl-0 = <&uart0_gpio32 &gpclk2_gpio43>;
|
|
|
27e72a6 |
status = "okay";
|
|
|
27e72a6 |
+
|
|
|
27e72a6 |
+ bluetooth {
|
|
|
27e72a6 |
+ compatible = "brcm,bcm43438-bt";
|
|
|
27e72a6 |
+ max-speed = <2000000>;
|
|
|
27e72a6 |
+ };
|
|
|
27e72a6 |
};
|
|
|
27e72a6 |
|
|
|
27e72a6 |
/* uart1 is mapped to the pin header */
|
|
|
27e72a6 |
--
|
|
|
27e72a6 |
2.13.5
|
|
|
27e72a6 |
|