From 26e3c5615fce4f96f8a1daf879af0d1941e48043 Mon Sep 17 00:00:00 2001 From: Carles Cufi Date: Wed, 3 May 2017 10:33:42 +0200 Subject: [PATCH] samples: bluetooth: Set DT baud rate for nRF5x boards Since most of nRF5x-based boards can be used either as a standalone development kit or as a BLE controller to connect to an external host, add DT overlays so that the baud rate is correctly set to 1Mbit/s whenever building the hci_uart sample application. Signed-off-by: Carles Cufi --- samples/bluetooth/hci_uart/96b_nitrogen.overlay | 5 +++++ samples/bluetooth/hci_uart/nrf51_blenano.overlay | 5 +++++ samples/bluetooth/hci_uart/nrf51_pca10028.overlay | 5 +++++ samples/bluetooth/hci_uart/nrf52840_pca10056.overlay | 5 +++++ samples/bluetooth/hci_uart/nrf52_blenano2.overlay | 5 +++++ samples/bluetooth/hci_uart/nrf52_pca10040.overlay | 5 +++++ 6 files changed, 30 insertions(+) create mode 100644 samples/bluetooth/hci_uart/96b_nitrogen.overlay create mode 100644 samples/bluetooth/hci_uart/nrf51_blenano.overlay create mode 100644 samples/bluetooth/hci_uart/nrf51_pca10028.overlay create mode 100644 samples/bluetooth/hci_uart/nrf52840_pca10056.overlay create mode 100644 samples/bluetooth/hci_uart/nrf52_blenano2.overlay create mode 100644 samples/bluetooth/hci_uart/nrf52_pca10040.overlay diff --git a/samples/bluetooth/hci_uart/96b_nitrogen.overlay b/samples/bluetooth/hci_uart/96b_nitrogen.overlay new file mode 100644 index 0000000000000..4113eafe1d36c --- /dev/null +++ b/samples/bluetooth/hci_uart/96b_nitrogen.overlay @@ -0,0 +1,5 @@ +&uart0 { + compatible = "nordic,nrf-uart"; + current-speed = <1000000>; + status = "ok"; +}; diff --git a/samples/bluetooth/hci_uart/nrf51_blenano.overlay b/samples/bluetooth/hci_uart/nrf51_blenano.overlay new file mode 100644 index 0000000000000..4113eafe1d36c --- /dev/null +++ b/samples/bluetooth/hci_uart/nrf51_blenano.overlay @@ -0,0 +1,5 @@ +&uart0 { + compatible = "nordic,nrf-uart"; + current-speed = <1000000>; + status = "ok"; +}; diff --git a/samples/bluetooth/hci_uart/nrf51_pca10028.overlay b/samples/bluetooth/hci_uart/nrf51_pca10028.overlay new file mode 100644 index 0000000000000..4113eafe1d36c --- /dev/null +++ b/samples/bluetooth/hci_uart/nrf51_pca10028.overlay @@ -0,0 +1,5 @@ +&uart0 { + compatible = "nordic,nrf-uart"; + current-speed = <1000000>; + status = "ok"; +}; diff --git a/samples/bluetooth/hci_uart/nrf52840_pca10056.overlay b/samples/bluetooth/hci_uart/nrf52840_pca10056.overlay new file mode 100644 index 0000000000000..4113eafe1d36c --- /dev/null +++ b/samples/bluetooth/hci_uart/nrf52840_pca10056.overlay @@ -0,0 +1,5 @@ +&uart0 { + compatible = "nordic,nrf-uart"; + current-speed = <1000000>; + status = "ok"; +}; diff --git a/samples/bluetooth/hci_uart/nrf52_blenano2.overlay b/samples/bluetooth/hci_uart/nrf52_blenano2.overlay new file mode 100644 index 0000000000000..4113eafe1d36c --- /dev/null +++ b/samples/bluetooth/hci_uart/nrf52_blenano2.overlay @@ -0,0 +1,5 @@ +&uart0 { + compatible = "nordic,nrf-uart"; + current-speed = <1000000>; + status = "ok"; +}; diff --git a/samples/bluetooth/hci_uart/nrf52_pca10040.overlay b/samples/bluetooth/hci_uart/nrf52_pca10040.overlay new file mode 100644 index 0000000000000..4113eafe1d36c --- /dev/null +++ b/samples/bluetooth/hci_uart/nrf52_pca10040.overlay @@ -0,0 +1,5 @@ +&uart0 { + compatible = "nordic,nrf-uart"; + current-speed = <1000000>; + status = "ok"; +};