[PATCH 05/11] media: i2c: st-vd55g1: Default to illuminator on GPIO 1
From: Peter Marshall
Date: Fri Sep 18 2026 - 18:21:58 EST
Sensors enumerated through a bus at runtime instead of a device tree may
not have any GPIO pins detected. Assume the illuminator is connected to
GPIO 1.
Signed-off-by: Peter Marshall <pm@xxxxxxxxxxxxxxxx>
---
drivers/media/i2c/vd55g1.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/media/i2c/vd55g1.c b/drivers/media/i2c/vd55g1.c
index 22b1497e8851..032b76a84638 100644
--- a/drivers/media/i2c/vd55g1.c
+++ b/drivers/media/i2c/vd55g1.c
@@ -1895,6 +1895,11 @@ static int vd55g1_parse_dt_gpios(struct vd55g1 *sensor)
set_bit(led_gpios[i], &sensor->ext_leds_mask);
}
+ if (nb_gpios_leds == 0) {
+ sensor->gpios[1] = VD55G1_GPIO_MODE_STROBE;
+ set_bit(1, &sensor->ext_leds_mask);
+ }
+
return 0;
}
--
2.55.0