From 46adc2c927fca871e6489b7706cf377c2875abc0 Mon Sep 17 00:00:00 2001 From: Luo Wei Date: Thu, 18 Jan 2024 18:41:40 +0800 Subject: [PATCH] mfd: display-serdes: rohm gpio0 support 1MHZ used for pwm Signed-off-by: Luo Wei Change-Id: I358b2f9c51ecbdc0c913a1123818a2e22a1e4078 --- drivers/mfd/display-serdes/maxim/maxim-max96752.c | 3 +++ drivers/mfd/display-serdes/maxim/maxim-max96772.c | 3 +++ drivers/mfd/display-serdes/rohm/rohm-bu18rl82.c | 7 +++++-- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/display-serdes/maxim/maxim-max96752.c b/drivers/mfd/display-serdes/maxim/maxim-max96752.c index 8da93ea60a68..e39649d9972c 100644 --- a/drivers/mfd/display-serdes/maxim/maxim-max96752.c +++ b/drivers/mfd/display-serdes/maxim/maxim-max96752.c @@ -248,6 +248,9 @@ static struct function_desc max96752_functions_desc[] = { FUNCTION_DESC_GPIO_OUTPUT_HIGH(15), FUNCTION_DES_DELAY_MS(10), + FUNCTION_DES_DELAY_MS(20), + FUNCTION_DES_DELAY_MS(30), + FUNCTION_DES_DELAY_MS(40), FUNCTION_DES_DELAY_MS(50), FUNCTION_DES_DELAY_MS(100), FUNCTION_DES_DELAY_MS(200), diff --git a/drivers/mfd/display-serdes/maxim/maxim-max96772.c b/drivers/mfd/display-serdes/maxim/maxim-max96772.c index 20599620e061..a4a6089468ae 100644 --- a/drivers/mfd/display-serdes/maxim/maxim-max96772.c +++ b/drivers/mfd/display-serdes/maxim/maxim-max96772.c @@ -253,6 +253,9 @@ static struct function_desc max96772_functions_desc[] = { FUNCTION_DESC_GPIO_OUTPUT_HIGH(15), FUNCTION_DES_DELAY_MS(10), + FUNCTION_DES_DELAY_MS(20), + FUNCTION_DES_DELAY_MS(30), + FUNCTION_DES_DELAY_MS(40), FUNCTION_DES_DELAY_MS(50), FUNCTION_DES_DELAY_MS(100), FUNCTION_DES_DELAY_MS(200), diff --git a/drivers/mfd/display-serdes/rohm/rohm-bu18rl82.c b/drivers/mfd/display-serdes/rohm/rohm-bu18rl82.c index 385b26691495..1b9baf2daa8d 100644 --- a/drivers/mfd/display-serdes/rohm/rohm-bu18rl82.c +++ b/drivers/mfd/display-serdes/rohm/rohm-bu18rl82.c @@ -60,7 +60,7 @@ static const char *serdes_gpio_groups[] = { .group_names = serdes_gpio_groups, \ .num_group_names = ARRAY_SIZE(serdes_gpio_groups), \ .data = (void *)(const struct serdes_function_data []) { \ - { .gpio_rx_en = 1, .gpio_id = id + 2 } \ + { .gpio_rx_en = 1, .gpio_id = id ? (id + 2) : 0x12 } \ }, \ } \ @@ -71,7 +71,7 @@ static const char *serdes_gpio_groups[] = { .group_names = serdes_gpio_groups, \ .num_group_names = ARRAY_SIZE(serdes_gpio_groups), \ .data = (void *)(const struct serdes_function_data []) { \ - { .gpio_rx_en = 0, .gpio_id = id + 2 } \ + { .gpio_rx_en = 0, .gpio_id = id ? (id + 2) : 0x12 } \ }, \ } \ @@ -167,6 +167,9 @@ static struct function_desc bu18rl82_functions_desc[] = { FUNCTION_DESC_GPIO_OUTPUT_LOW(), FUNCTION_DES_DELAY_MS(10), + FUNCTION_DES_DELAY_MS(20), + FUNCTION_DES_DELAY_MS(30), + FUNCTION_DES_DELAY_MS(40), FUNCTION_DES_DELAY_MS(50), FUNCTION_DES_DELAY_MS(100), FUNCTION_DES_DELAY_MS(200),