Thank for helping me out here.
My nRF Connect is v2.3.0. Zephyr version is 3.2.99.
I cloned https://github.com/circuitdojo/nrf9160-feather-examples-and-drivers as Jared mentioned. When trying to use accelerometer example, I am still getting warning for lines:
CONFIG_LIS2DH=y
CONFIG_LIS2DH_TRIGGER_GLOBAL_THREAD=y
Here is complete proj.conf file in accelerometer folder:
' General
CONFIG_NEWLIB_LIBC=y
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y
Adding I2C
CONFIG_I2C=y
Add the accelerometer
CONFIG_SENSOR=y
CONFIG_LIS2DH=y
CONFIG_LIS2DH_TRIGGER_GLOBAL_THREAD=y
CONFIG_BOOTLOADER_MCUBOOT=y`
I checked Kconfig file for lis2dh in folder zephyr\drivers\sensor\lis2dh. It does have “depends on GPIO”:
config LIS2DH_TRIGGER_GLOBAL_THREAD
bool “Use global thread”
depends on GPIO
select LIS2DH_TRIGGER