drivers: bluetooth: hci_ambiq: get the spi cfg from the device

Use the SPI configuration from the SPI device for data transaction.

Signed-off-by: Hao Luo <hluo@ambiq.com>
This commit is contained in:
Hao Luo 2024-06-27 18:32:50 +08:00 committed by Anas Nashif
commit 8379f64393
7 changed files with 106 additions and 32 deletions

View file

@ -71,7 +71,7 @@
status = "okay";
};
&iom0 {
&i2c0 {
compatible = "ambiq,i2c";
pinctrl-0 = <&i2c0_default>;
pinctrl-names = "default";
@ -79,7 +79,7 @@
status = "okay";
};
&iom1 {
&spi1 {
compatible = "ambiq,spi";
pinctrl-0 = <&spi1_default>;
pinctrl-names = "default";
@ -88,7 +88,7 @@
status = "okay";
};
&iom4 {
&spi4 {
pinctrl-0 = <&spi4_default>;
pinctrl-names = "default";
status = "okay";