dts: arm: ambiq: add bt-hci subnode for Apollo3 Blue SOC

This commit defines the bt-hci subnode under the bleif node on
Ambiq Apollo3 Blue and Apollo3 Blue Plus SOC.
Also add the default configurations for Bluetooth feature on Ambiq
apollo3_evb and apollo3p_evb.

Signed-off-by: Aaron Ye <aye@ambiq.com>
This commit is contained in:
Aaron Ye 2024-05-16 16:31:57 +08:00 committed by Carles Cufí
parent 3f56baa295
commit 69d790b293
4 changed files with 78 additions and 0 deletions

View File

@ -232,6 +232,11 @@
#size-cells = <0>;
status = "disabled";
ambiq,pwrcfg = <&pwrcfg 0x8 0x8000>;
bt-hci@0 {
compatible = "ambiq,bt-hci-spi";
reg = <0>;
};
};
pinctrl: pin-controller@40010000 {

View File

@ -252,6 +252,11 @@
#size-cells = <0>;
status = "disabled";
ambiq,pwrcfg = <&pwrcfg 0x8 0x8000>;
bt-hci@0 {
compatible = "ambiq,bt-hci-spi";
reg = <0>;
};
};
pinctrl: pin-controller@40010000 {

View File

@ -7,4 +7,38 @@ if SOC_APOLLO3_BLUE
config NUM_IRQS
default 31
config MAIN_STACK_SIZE
default 2048 if BT
if BT
choice BT_HCI_BUS_TYPE
default BT_AMBIQ_HCI
endchoice
config BT_BUF_ACL_TX_COUNT
default 4
config BT_BUF_CMD_TX_SIZE
default 255
config BT_BUF_EVT_RX_SIZE
default 255
config BT_BUF_ACL_TX_SIZE
default 251
config BT_BUF_ACL_RX_SIZE
default 251
# L2CAP SDU/PDU TX MTU
# BT_L2CAP_RX_MTU = CONFIG_BT_BUF_ACL_RX_SIZE - BT_L2CAP_HDR_SIZE
config BT_L2CAP_TX_MTU
default 247
config BT_HCI_ACL_FLOW_CONTROL
default n
endif # BT
endif # SOC_APOLLO3_BLUE

View File

@ -7,4 +7,38 @@ if SOC_APOLLO3P_BLUE
config NUM_IRQS
default 33
config MAIN_STACK_SIZE
default 2048 if BT
if BT
choice BT_HCI_BUS_TYPE
default BT_AMBIQ_HCI
endchoice
config BT_BUF_ACL_TX_COUNT
default 4
config BT_BUF_CMD_TX_SIZE
default 255
config BT_BUF_EVT_RX_SIZE
default 255
config BT_BUF_ACL_TX_SIZE
default 251
config BT_BUF_ACL_RX_SIZE
default 251
# L2CAP SDU/PDU TX MTU
# BT_L2CAP_RX_MTU = CONFIG_BT_BUF_ACL_RX_SIZE - BT_L2CAP_HDR_SIZE
config BT_L2CAP_TX_MTU
default 247
config BT_HCI_ACL_FLOW_CONTROL
default n
endif # BT
endif # SOC_APOLLO3P_BLUE