iMX8QM EVK Android Automotive OS 12 Bluetooth Driver Issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iMX8QM EVK Android Automotive OS 12 Bluetooth Driver Issue

797 Views
efecancebel
Contributor IV

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.

0 Kudos
6 Replies

773 Views
jimmychan
NXP TechSupport
NXP TechSupport

There is "depends on RFKILL". Do you also select it in the kernel to build?

0 Kudos

761 Views
efecancebel
Contributor IV

Hello @jimmychan,

RFKILL parameter is selected in Android Automotive OS 12 "imx_v8_android_car_defconfig" file.

Defconfig:
CONFIG_RFKILL=y

However, the Bluetooth module cannot be run with the "mx8_bt_rfkill.c" driver.

Do you have any other suggestion?

Best regards.

Tags (1)
0 Kudos

740 Views
jimmychan
NXP TechSupport
NXP TechSupport

How is it not working? Is there any error message? Is the driver load succeed? could you show me the boot log? Is the gpio pin (gpio 4 22) work properly? the BT module is running?

0 Kudos

735 Views
efecancebel
Contributor IV

Hello @jimmychan,

Yes the Bluetooth module and the GPIO pin are working fine.

I'm writing Android Automotive OS 10 on the same board and my Bluetooth module is working fine.

Attached you can find the Android Automotive OS 12 boot log file.

I am attaching the boot log of the Android Automotive OS 10 image, where the Bluetooth module is running, so that you can compare.

Best regards.

0 Kudos

723 Views
jimmychan
NXP TechSupport
NXP TechSupport

Seems the gpio pin is not the same value. Please double check the gpio pin you set in the dts file.

0 Kudos

695 Views
efecancebel
Contributor IV

Hello @jimmychan,

Android Automotive OS10 and Android Automotive OS12 device tree files
I checked.

But "bt-power-gpios = <&lsio_gpio4 22 GPIO_ACTIVE_LOW>;" on GPIO pin
I couldn't observe any difference. Another ".dtsi" or ".dts" file I should look into
is there?

Can you help me with this? Android Automotive OS10 and
Due to what difference between Android Automotive OS12 such a pin on GPIO
was the difference?

Best regards.

0 Kudos