From ff01e2a55375b3d550474644445cbb4dcdef1979 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrzej=20G=C5=82=C4=85bek?= Date: Thu, 12 Mar 2020 13:14:41 +0000 Subject: [PATCH] samples/bluetooth/hci_spi: Add configuration for nrf51_pca10028 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This sample has nrf51_pca10028 on its platform_whitelist but lacks configuration and overlay files that would make it possible to build this sample for that board. This commit provides such files. Signed-off-by: Andrzej Głąbek --- .../hci_spi/boards/nrf51_pca10028.conf | 1 + .../bluetooth/hci_spi/nrf51_pca10028.overlay | 21 +++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 samples/bluetooth/hci_spi/boards/nrf51_pca10028.conf create mode 100644 samples/bluetooth/hci_spi/nrf51_pca10028.overlay diff --git a/samples/bluetooth/hci_spi/boards/nrf51_pca10028.conf b/samples/bluetooth/hci_spi/boards/nrf51_pca10028.conf new file mode 100644 index 00000000000..047baffeecb --- /dev/null +++ b/samples/bluetooth/hci_spi/boards/nrf51_pca10028.conf @@ -0,0 +1 @@ +CONFIG_SPI_1_NRF_SPIS=y diff --git a/samples/bluetooth/hci_spi/nrf51_pca10028.overlay b/samples/bluetooth/hci_spi/nrf51_pca10028.overlay new file mode 100644 index 00000000000..1517abad579 --- /dev/null +++ b/samples/bluetooth/hci_spi/nrf51_pca10028.overlay @@ -0,0 +1,21 @@ +/* + * Copyright (c) 2020 Nordic Semiconductor ASA + * + * SPDX-License-Identifier: Apache-2.0 + */ + +&spi1 { + compatible = "nordic,nrf-spis"; + status = "okay"; + sck-pin = <6>; + mosi-pin = <5>; + miso-pin = <4>; + csn-pin = <3>; + def-char = <0x00>; + + bt-hci@0 { + compatible = "zephyr,bt-hci-spi-slave"; + reg = <0>; + irq-gpios = <&gpio0 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; + }; +};