Hi,
I'm having some trouble getting a device pointer for the OV7670 Camera. I've ported the OV7725 driver. It appears as if the program exits the driver before setting the I2C address:
drv_data->i2c = device_get_binding(DT_INST_BUS_LABEL(0));
printk("HERE!!!!!!!!!!!!!!!!!!!\n");
if (drv_data->i2c == NULL) {
LOG_ERR("Failed to get pointer to %s device!",
DT_INST_LABEL(0));
return -EINVAL;
}
printk("HERE!!!!!!!!!!!!!!!!!!!\n");
drv_data->i2c_addr = DT_INST_REG_ADDR(0);
I'm pretty sure I'm doing something but not entirely sure where.