Skip to content

Commit

Permalink
Bluetooth: controller: Update to new HCI driver API
Browse files Browse the repository at this point in the history
Update the native controller to the new HCI driver API. The devicetree
node is placed under existing `radio` nodes, which seemed like the most
intuitive option.

Signed-off-by: Johan Hedberg <[email protected]>
  • Loading branch information
jhedberg committed May 5, 2024
1 parent 56f4706 commit a841b2a
Show file tree
Hide file tree
Showing 10 changed files with 124 additions and 35 deletions.
6 changes: 6 additions & 0 deletions dts/arm/nordic/nrf51822.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

/ {
chosen {
zephyr,bt-hci = &bt_hci;
zephyr,entropy = &rng;
zephyr,flash-controller = &flash_controller;
};
Expand Down Expand Up @@ -73,6 +74,11 @@
reg = <0x40001000 0x1000>;
interrupts = <1 NRF_DEFAULT_IRQ_PRIORITY>;
status = "okay";

bt_hci: bt_hci {
compatible = "zephyr,bt-hci-controller";
status = "okay";
};
};

uart0: uart@40002000 {
Expand Down
6 changes: 6 additions & 0 deletions dts/arm/nordic/nrf52805.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

/ {
chosen {
zephyr,bt-hci = &bt_hci;
zephyr,entropy = &rng;
zephyr,flash-controller = &flash_controller;
};
Expand Down Expand Up @@ -86,6 +87,11 @@
interrupts = <1 NRF_DEFAULT_IRQ_PRIORITY>;
status = "okay";
ble-2mbps-supported;

bt_hci: bt_hci {
compatible = "zephyr,bt-hci-controller";
status = "okay";
};
};

uart0: uart@40002000 {
Expand Down
6 changes: 6 additions & 0 deletions dts/arm/nordic/nrf52810.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

/ {
chosen {
zephyr,bt-hci = &bt_hci;
zephyr,entropy = &rng;
zephyr,flash-controller = &flash_controller;
};
Expand Down Expand Up @@ -90,6 +91,11 @@
interrupts = <1 NRF_DEFAULT_IRQ_PRIORITY>;
status = "okay";
ble-2mbps-supported;

bt_hci: bt_hci {
compatible = "zephyr,bt-hci-controller";
status = "okay";
};
};

uart0: uart@40002000 {
Expand Down
6 changes: 6 additions & 0 deletions dts/arm/nordic/nrf52811.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

/ {
chosen {
zephyr,bt-hci = &bt_hci;
zephyr,entropy = &rng;
zephyr,flash-controller = &flash_controller;
};
Expand Down Expand Up @@ -102,6 +103,11 @@
compatible = "nordic,nrf-ieee802154";
status = "disabled";
};

bt_hci: bt_hci {
compatible = "zephyr,bt-hci-controller";
status = "okay";
};
};

uart0: uart@40002000 {
Expand Down
6 changes: 6 additions & 0 deletions dts/arm/nordic/nrf52820.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
/ {

chosen {
zephyr,bt-hci = &bt_hci;
zephyr,entropy = &rng;
zephyr,flash-controller = &flash_controller;
};
Expand Down Expand Up @@ -98,6 +99,11 @@
compatible = "nordic,nrf-ieee802154";
status = "disabled";
};

bt_hci: bt_hci {
compatible = "zephyr,bt-hci-controller";
status = "okay";
};
};

uart0: uart@40002000 {
Expand Down
6 changes: 6 additions & 0 deletions dts/arm/nordic/nrf52832.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

/ {
chosen {
zephyr,bt-hci = &bt_hci;
zephyr,entropy = &rng;
zephyr,flash-controller = &flash_controller;
};
Expand Down Expand Up @@ -90,6 +91,11 @@
interrupts = <1 NRF_DEFAULT_IRQ_PRIORITY>;
status = "okay";
ble-2mbps-supported;

bt_hci: bt_hci {
compatible = "zephyr,bt-hci-controller";
status = "okay";
};
};

uart0: uart@40002000 {
Expand Down
6 changes: 6 additions & 0 deletions dts/arm/nordic/nrf52833.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

/ {
chosen {
zephyr,bt-hci = &bt_hci;
zephyr,entropy = &rng;
zephyr,flash-controller = &flash_controller;
};
Expand Down Expand Up @@ -97,6 +98,11 @@
compatible = "nordic,nrf-ieee802154";
status = "disabled";
};

bt_hci: bt_hci {
compatible = "zephyr,bt-hci-controller";
status = "okay";
};
};

uart0: uart@40002000 {
Expand Down
6 changes: 6 additions & 0 deletions dts/arm/nordic/nrf52840.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

/ {
chosen {
zephyr,bt-hci = &bt_hci;
zephyr,entropy = &rng;
zephyr,flash-controller = &flash_controller;
};
Expand Down Expand Up @@ -92,6 +93,11 @@
compatible = "nordic,nrf-ieee802154";
status = "disabled";
};

bt_hci: bt_hci {
compatible = "zephyr,bt-hci-controller";
status = "okay";
};
};

uart0: uart@40002000 {
Expand Down
6 changes: 6 additions & 0 deletions dts/arm/nordic/nrf5340_cpunet.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

/ {
chosen {
zephyr,bt-hci = &bt_hci;
zephyr,entropy = &rng;
zephyr,flash-controller = &flash_controller;
};
Expand Down Expand Up @@ -100,6 +101,11 @@
compatible = "nordic,nrf-ieee802154";
status = "disabled";
};

bt_hci: bt_hci {
compatible = "zephyr,bt-hci-controller";
status = "okay";
};
};

rng: random@41009000 {
Expand Down
Loading

0 comments on commit a841b2a

Please sign in to comment.