Hello @Kousik ,
Here is your uart node:
======================================
/* Bluetooth */
&usart2 {
pinctrl-names = "default", "sleep", "idle";
pinctrl-0 = <&usart2_pins_c &bt_pins>;
pinctrl-1 = <&usart2_sleep_pins_c &bt_pins>;
pinctrl-2 = <&usart2_idle_pins_c &bt_pins>;
uart-has-rtscts;
status = "okay";
bluetooth {
compatibility = "nxp,88w8987-bt";
fw-init-baudrate = <115200>;
max-speed = <3000000>;
vbat-supply = <&v3v3>;
vddio-supply = <&v3v3>;
};
};
======================================
I didn't find usart1, usart3, usart4 in your device tree.
From tty device node you shared before:
/dev/ttySTM0 /dev/ttySTM3
usart1 -->ttySTM0
usart2-->ttySTM1 ( it can't be seen in /dev/ path, root cause should be due to bluetooth sub-node)
usart3-->ttySTM2 ( no usart3 node in dts, so there is no the tty device node in /dev/)
usart4-->ttySTM3 ( Bluetooth is actually connected to the interface)
From your test result , run hciattach command on ttySTM3 , hci0 can be created successfully.
So the bluetooth sub-node should be added to usart4 node of your device tree.
Try it, please!
Regards,
weidong