Skip to content

Commit

Permalink
boards: arm: cy8cproto-062-4343w: enable BLE features
Browse files Browse the repository at this point in the history
Enable BLE features for CY8CPROTO-062-4343W board.

Signed-off-by: Nazar Palamar <nazar.palamar@infineon.com>
  • Loading branch information
npal-cy committed Mar 7, 2023
1 parent d59d98c commit 0fd68f2
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 0 deletions.
30 changes: 30 additions & 0 deletions boards/arm/cy8cproto_062_4343w/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,34 @@ if BOARD_CY8CPROTO_062_4343W
config BOARD
default "cy8cproto_062_4343w"

if WIFI || BT

# Select CYW43XXX part and module
choice CYW43XXX_PART
default CYW4343W
endchoice

choice CYW4343W_MODULE
default CYW4343W_MURATA_1DX
endchoice

endif # WIFI || BT


if BT

# Select HCI components
config UART
bool
default y

config BT_UART
default y

choice BT_HCI_BUS_TYPE
default BT_H4
endchoice

endif # BT

endif # BOARD_CY8CPROTO_062_4343W
17 changes: 17 additions & 0 deletions boards/arm/cy8cproto_062_4343w/cy8cproto_062_4343w-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,23 @@
* SPDX-License-Identifier: Apache-2.0
*/

/* Configure pin control bias mode for uart2 pins */
&p3_1_scb2_uart_tx {
drive-push-pull;
};

&p3_0_scb2_uart_rx {
input-enable;
};

&p3_2_scb2_uart_rts {
drive-push-pull;
};

&p3_3_scb2_uart_cts {
input-enable;
};

/* Configure pin control bias mode for uart5 pins */
&p5_1_scb5_uart_tx {
drive-push-pull;
Expand Down
27 changes: 27 additions & 0 deletions boards/arm/cy8cproto_062_4343w/cy8cproto_062_4343w.dts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
zephyr,flash = &flash0;
zephyr,console = &uart5;
zephyr,shell-uart = &uart5;
zephyr,bt_uart = &uart2;
};
};

Expand All @@ -33,6 +34,32 @@
pinctrl-names = "default";
};

&uart2 {
status = "okay";
/* The UART bus speed (current_speed) for zephyr_bt_uart should be the same
* as the default baudrate defined in CYW43xx firmware (default 115200).
*/

current-speed = <115200>;

/* HCI-UART pins*/
pinctrl-0 = <&p3_1_scb2_uart_tx &p3_0_scb2_uart_rx &p3_2_scb2_uart_rts &p3_3_scb2_uart_cts>;
pinctrl-names = "default";

bt-hci {
status = "okay";
compatible = "infineon,cyw43xxx-bt-hci";
bt-reg-on-gpios = <&gpio_prt3 4 (GPIO_ACTIVE_HIGH)>;

/* Configuration UART speeds for firmware download (fw-download-speed) and
* HCI operation (hci-operation-speed).
* If hci-operation-speed or fw-download-speed are not defined in bt-hci{...}
* node, cyw43xx driver will use bus/current-speed as default speed.
*/
fw-download-speed = <3000000>;
};
};

/* System clock configuration */
&fll0 {
status = "okay";
Expand Down
3 changes: 3 additions & 0 deletions boards/arm/cy8cproto_062_4343w/cy8cproto_062_4343w_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,8 @@ CONFIG_SERIAL=y
# Enable pin controller
CONFIG_PINCTRL=y

# Enable GPIO driver
CONFIG_GPIO=y

# Enable clock controller
CONFIG_CLOCK_CONTROL=y

0 comments on commit 0fd68f2

Please sign in to comment.