[PATCH 1/3] drm/ssd130x: Fix reset timing for ssd132x
From: John Keeping
Date: Mon Jan 13 2025 - 10:28:28 EST
The ssd132x family of chips require the result pulse to be at least
100us in length. Increase the reset time to meet this requirement.
Signed-off-by: John Keeping <jkeeping@xxxxxxxxxxxxxxxxx>
---
drivers/gpu/drm/solomon/ssd130x.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/solomon/ssd130x.c b/drivers/gpu/drm/solomon/ssd130x.c
index b777690fd6607..2622172228361 100644
--- a/drivers/gpu/drm/solomon/ssd130x.c
+++ b/drivers/gpu/drm/solomon/ssd130x.c
@@ -363,7 +363,7 @@ static void ssd130x_reset(struct ssd130x_device *ssd130x)
/* Reset the screen */
gpiod_set_value_cansleep(ssd130x->reset, 1);
- udelay(4);
+ usleep_range(100, 1000);
gpiod_set_value_cansleep(ssd130x->reset, 0);
udelay(4);
}
--
2.47.1