Hello,
I added the "mx8_bt_rfkill.c" Bluetooth driver included in Android Automotive OS 10(5.4.24) and working in Android Automotive OS 12(5.15.32).
I added the driver to "android_build/vendor/nxp-opensource/kernel_imx/drivers/bluetooth" directory. The "mx8_bt_rfkill.c" source file I have attached is attached.
The following lines have been added to the Kconfig and Makefile files in the "android_build/vendor/nxp-opensource/kernel_imx/drivers/bluetooth" directory.
Makefile:
obj-$(CONFIG_MACH_IMX_BLUETOOTH_RFKILL) += mx8_bt_rfkill.o
Kconfig:
config MACH_IMX_BLUETOOTH_RFKILL
tristate "i.MX Bluetooth rfkill interface support"
default y
depends on RFKILL
help
Say Y to get the standard rfkill interface of Bluetooth
The following node has been added to the "imx8qm-mek.dts" file located in the "android_build/vendor/nxp-opensource/kernel_imx/arch/arm64/boot/dts/freescale" directory.
Device Tree:
bt_rfkill {
compatible = "fsl,mxc_bt_rfkill";
bt-power-gpios = <&lsio_gpio4 22 GPIO_ACTIVE_LOW>;
status ="okay";
};
The following parameter has been added to the "imx_v8_android_car_defconfig" file located in the "android_build/vendor/nxp-opensource/kernel_imx/arch/arm64/configs" directory.
Defconfig:
CONFIG_MACH_IMX_BLUETOOTH_RFKILL=y
Although I followed all the steps I listed above, the "mx8_bt_rfkill.c" driver does not work as in Android Automotive OS 10.
Is this driver not compatible with Android Automotive OS 12(5.15.32) Kernel?
Could you support me on this issue?
Best regards.