build/patch/kernel/archive/sunxi-6.4/patches.megous/media-i2c-imx258-Add-i2c-supply.patch

28 lines
861 B
Diff

From 208e9130a36548a343074df52707ac582f7244c1 Mon Sep 17 00:00:00 2001
From: Ondrej Jirman <megi@xff.cz>
Date: Sun, 22 May 2022 03:25:06 +0200
Subject: [PATCH 347/469] media: i2c: imx258: Add i2c supply
Sensor depends on I2C bus to be powered up to work.
Signed-off-by: Ondrej Jirman <megi@xff.cz>
---
drivers/media/i2c/imx258.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/media/i2c/imx258.c b/drivers/media/i2c/imx258.c
index b34e7d5b04ab..c511fdb40a26 100644
--- a/drivers/media/i2c/imx258.c
+++ b/drivers/media/i2c/imx258.c
@@ -608,6 +608,7 @@ static const char * const imx258_supply_names[] = {
"vana", /* Analog (2.8V) supply */
"vdig", /* Digital Core (1.5V) supply */
"vif", /* Digital I/O (1.8V) supply */
+ "i2c", /* I2C BUS I/O (1.8V) supply */
};
#define IMX258_SUPPLY_COUNT ARRAY_SIZE(imx258_supply_names)
--
2.34.1