I like to override a Zephyr sensor driver with an out of tree driver with the same name and vendor. (Background the driver has a bug in I2C that needs to be solved).
I copied all relevant files to the out of tree project but now it gives the error below.
devicetree error: both OutOfTreeProject/dts/bindings\sensor\st,lis2dw12-i2c.yaml and C:/ncs/v2.5.2/zephyr/dts/bindings\sensor\st,lis2dw12-i2c.yaml have 'compatible: st,lis2dw12' and 'on-bus: i2c'
What’s the way to override an existing Zephyr driver in an out of tree project?