Thanks to grok3, the new AI tool, i was able to resolve this . Now i have to bring down rfkill and up it again to make bluetooth work
+#if 0
pinctrl_uart3: uart3grp {
fsl,pins = <
MX8MMN(IOMUXC_ECSPI1_SCLK_UART3_DCE_RX, 0x140)
@@ -320,6 +321,17 @@ MX8MMN(IOMUXC_ECSPI1_MISO_UART3_DCE_CTS_B, 0x140)
MX8MMN(IOMUXC_NAND_DQS_GPIO3_IO14, 0x119)
>;
};
+#else
+ pinctrl_uart3: uart3grp {
+ fsl,pins = <
+ MX8MM_IOMUXC_ECSPI1_SCLK_UART3_DCE_RX 0x49
+ MX8MM_IOMUXC_ECSPI1_MOSI_UART3_DCE_TX 0x49
+ MX8MM_IOMUXC_ECSPI1_SS0_UART3_DCE_RTS_B 0x49
+ MX8MM_IOMUXC_ECSPI1_MISO_UART3_DCE_CTS_B 0x49
+ MX8MM_IOMUXC_NAND_DQS_GPIO3_IO14 0x19 /* BT_REG_ON */
+ >;
+ };
+#endif
+#if 0
&uart3 { /* BT */
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart3>;
@@ -1259,15 +1272,29 @@ &uart3 { /* BT */
assigned-clock-parents = <&clk IMX8MMN(SYS_PLL1_80M)>;
uart-has-rtscts;
status = "okay";
-#if 1
- 1 {
+ bluetooth {
compatible = "brcm,bcm43438-bt";
brcm,bt-pcm-int-params = [01 02 00 01 01];
enable-gpios = GP_BT_ENABLE;
max-speed = <2000000>;
};
-#endif
};
+#else
+&uart3 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_uart3>;
+ assigned-clocks = <&clk IMX8MM_CLK_UART3>;
+ assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_80M>;
+ uart-has-rtscts; /* Flow control for AP6275S */
+ status = "okay";
+
+ bluetooth {
+ compatible = "brcm,bcm43438-bt"; /* AP6275S */
+ max-speed = <3000000>;
+ shutdown-gpios = <&gpio3 14 GPIO_ACTIVE_HIGH>; /* BT_REG_ON */
+ };
+};
+#endif