* [PATCH 2/4] drm/tiny: Read separate I/O regulator from DT
@ 2022-11-25 17:44 Otto Pflüger
0 siblings, 0 replies; only message in thread
From: Otto Pflüger @ 2022-11-25 17:44 UTC (permalink / raw)
To: Noralf Trønnes, Thierry Reding, Sam Ravnborg, David Airlie,
Daniel Vetter, Rob Herring, Krzysztof Kozlowski,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, dri-devel,
devicetree, linux-kernel
Some platforms have a separate vddi supply for the panel I/O interface
(as defined by the MIPI DBI specification), so one power-supply is not
enough. Introduce a new "io-supply" property to set the vddi regulator.
After getting the regulator specified the device tree, use the new
io_regulator property of the DBI device so that the drm_mipi_dbi driver
can enable it.
Signed-off-by: Otto Pflüger <affenull2345@gmail.com>
---
drivers/gpu/drm/tiny/panel-mipi-dbi.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/gpu/drm/tiny/panel-mipi-dbi.c
b/drivers/gpu/drm/tiny/panel-mipi-dbi.c
index 03a7d569cd56..b09d2a47a409 100644
--- a/drivers/gpu/drm/tiny/panel-mipi-dbi.c
+++ b/drivers/gpu/drm/tiny/panel-mipi-dbi.c
@@ -297,6 +297,11 @@ static int panel_mipi_dbi_spi_probe(struct
spi_device *spi)
return dev_err_probe(dev, PTR_ERR(dbidev->regulator),
"Failed to get regulator 'power'\n");
+ dbidev->io_regulator = devm_regulator_get(dev, "io");
+ if (IS_ERR(dbidev->io_regulator))
+ return dev_err_probe(dev, PTR_ERR(dbidev->io_regulator),
+ "Failed to get regulator 'io'\n");
+
dbidev->backlight = devm_of_find_backlight(dev);
if (IS_ERR(dbidev->backlight))
return dev_err_probe(dev, PTR_ERR(dbidev->backlight), "Failed to get
backlight\n");
--
2.30.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-11-25 17:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-25 17:44 [PATCH 2/4] drm/tiny: Read separate I/O regulator from DT Otto Pflüger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).