Commit 5a09c177 authored by Johan Hedberg's avatar Johan Hedberg Committed by Anas Nashif
Browse files

Bluetooth: drivers: Convert SPI drivers to use new HCI API

Convert the spi.c and hci_spi_st.c drivers to use the new HCI driver API.
Both drivers are converted in one go since one derives from the other's
devicetree binding.

Signed-off-by: default avatarJohan Hedberg <johan.hedberg@gmail.com>
parent 8953b4eb
Loading
Loading
Loading
Loading
+2 −1
Changes for boards/96boards/carbon/96b_carbon_stm32f401xe.dts: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@
		zephyr,sram = &sram0;
		zephyr,flash = &flash0;
		zephyr,code-partition = &slot0_partition;
		zephyr,bt-hci = &hci_spi;
	};

	leds {
@@ -124,7 +125,7 @@
	pinctrl-names = "default";

	/* Nordic nRF51822-QFAC */
	bt-hci@0 {
	hci_spi: bt-hci@0 {
		compatible = "zephyr,bt-hci-spi";
		reg = <0>;
		reset-gpios = <&gpiob 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
+7 −1
Changes for boards/shields/x_nucleo_bnrg2a1/x_nucleo_bnrg2a1.overlay: 7 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -4,10 +4,16 @@
 * SPDX-License-Identifier: Apache-2.0
 */

 / {
	 chosen {
		 zephyr,bt-hci = &hci_spi;
	 };
 };

&arduino_spi {
	cs-gpios = <&arduino_header 1 GPIO_ACTIVE_LOW>;	/* A1 */

	bluenrg-2@0 {
	hci_spi: bluenrg-2@0 {
		compatible = "st,hci-spi-v2";
		reg = <0>;
		reset-gpios = <&arduino_header 13 GPIO_ACTIVE_LOW>;  /* D7 */
+6 −0
Changes for boards/shields/x_nucleo_idb05a1/x_nucleo_idb05a1.overlay: 6 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -4,6 +4,12 @@
 * SPDX-License-Identifier: Apache-2.0
 */

 / {
	 chosen {
		 zephyr,bt-hci = &spbtle_rf_x_nucleo_idb05a1;
	 };
 };

&arduino_spi {
	cs-gpios = <&arduino_header 1 GPIO_ACTIVE_LOW>;	      /* A1 */

+2 −1
Changes for boards/st/b_l4s5i_iot01a/b_l4s5i_iot01a.dts: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@
		zephyr,code-partition = &slot0_partition;
		zephyr,flash-controller = &mx25r6435f;
		zephyr,bt-c2h-uart = &usart1;
		zephyr,bt-hci = &hci_spi;
	};

	leds {
@@ -151,7 +152,7 @@
	cs-gpios = <&gpiod 13 GPIO_ACTIVE_LOW>,
		   <&gpioe 0 GPIO_ACTIVE_LOW>;

	spbtle-rf@0 {
	hci_spi: spbtle-rf@0 {
		compatible = "st,hci-spi-v1";
		reg = <0>;
		reset-gpios = <&gpioa 8 GPIO_ACTIVE_LOW>;
+2 −1
Changes for boards/st/disco_l475_iot1/disco_l475_iot1.dts: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@
		zephyr,code-partition = &slot0_partition;
		zephyr,flash-controller = &mx25r6435f;
		zephyr,bt-c2h-uart = &usart1;
		zephyr,bt-hci = &hci_spi;
	};

	leds {
@@ -190,7 +191,7 @@
	cs-gpios = <&gpiod 13 GPIO_ACTIVE_LOW>,
		   <&gpioe 0 GPIO_ACTIVE_LOW>;

	spbtle-rf@0 {
	hci_spi: spbtle-rf@0 {
		compatible = "st,hci-spi-v1";
		reg = <0>;
		reset-gpios = <&gpioa 8 GPIO_ACTIVE_LOW>;
Loading