-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARM: dts: Add Bluetooth nodes for Raspberry Pi
Add device tree nodes for Bluetooth on supported Raspberry Pi boards. It's disabled by default and can be enabled by `krnbt=on` dtparam. It's an alternative way of configuring Bluetooth, as compared to hciattach or btattach. When the dtparam is enabled, the Bluetooth driver is probed automatically and doesn't require any additional bring-up scripts. Note that Raspberry Pi 3 B rev 1.2 doesn't have the required hardware flow control pins of UART0 connected to the Bluetooth module, so the user should decrease the baudrate by passing `krnbt_baudrate=921600` dtparam to make it more stable. It resembles the behavior of the btuart script from Raspbian. The miniuart-bt overlay was modified to support Bluetooth probing with device tree, too. It's disabled by default and can be enabled by `krnbt=on` parameter of the miniuart-bt overlay. Signed-off-by: Maxim Mikityanskiy <[email protected]>
- Loading branch information
1 parent
a3703e6
commit 856dd81
Showing
9 changed files
with
94 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// SPDX-License-Identifier: GPL-2.0 | ||
|
||
&uart0 { | ||
bt: bluetooth { | ||
compatible = "brcm,bcm43438-bt"; | ||
max-speed = <3000000>; | ||
shutdown-gpios = <&gpio 45 GPIO_ACTIVE_HIGH>; | ||
status = "disabled"; | ||
}; | ||
}; | ||
|
||
&uart1 { | ||
minibt: bluetooth { | ||
compatible = "brcm,bcm43438-bt"; | ||
max-speed = <460800>; | ||
shutdown-gpios = <&gpio 45 GPIO_ACTIVE_HIGH>; | ||
status = "disabled"; | ||
}; | ||
}; | ||
|
||
/ { | ||
__overrides__ { | ||
krnbt = <&bt>,"status"; | ||
krnbt_baudrate = <&bt>,"max-speed:0"; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// SPDX-License-Identifier: GPL-2.0 | ||
|
||
&uart0 { | ||
bt: bluetooth { | ||
compatible = "brcm,bcm43438-bt"; | ||
max-speed = <3000000>; | ||
shutdown-gpios = <&expgpio 0 GPIO_ACTIVE_HIGH>; | ||
status = "disabled"; | ||
}; | ||
}; | ||
|
||
&uart1 { | ||
minibt: bluetooth { | ||
compatible = "brcm,bcm43438-bt"; | ||
max-speed = <460800>; | ||
shutdown-gpios = <&expgpio 0 GPIO_ACTIVE_HIGH>; | ||
status = "disabled"; | ||
}; | ||
}; | ||
|
||
/ { | ||
__overrides__ { | ||
krnbt = <&bt>,"status"; | ||
krnbt_baudrate = <&bt>,"max-speed:0"; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters