PCA953X driver intégration

Hi, 

I want to use the pca953X driver present in the latest version of Zephyr. 

For this purpose I started with this exemple : https://github.com/circuitdojo/air-quality-wing-zephyr-drivers 

I copied gpio_pca953x.c and it's devicetree binding. 

Everything compile without error but it seem the driver init function (gpio_pca953x_init) is never called. 

The code define DEVICE_DT_INST_DEFINE() so it should be called at kernel initialization.

How can I check that DEVICE_DT_INST_DEFINE is properly set and that the device will be initialized by the kernel ? 

Is there a way to debug Zephyr device initialization process ? 

Parents Reply Children
No Data
Related