mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] simple-panel: parse for bus-format of the panel
@ 2025-11-18 10:39 Michael Grzeschik
  0 siblings, 0 replies; only message in thread
From: Michael Grzeschik @ 2025-11-18 10:39 UTC (permalink / raw)
  To: Sascha Hauer, BAREBOX

When the bus-format is set in the simple-panel devicetree
use this for BUS_FORMAT queries of the vpl interface.

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
---
 drivers/video/simple-panel.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/video/simple-panel.c b/drivers/video/simple-panel.c
index 931cbbe65f4c8fd1bb95011bbf2c3a499f5f53d3..63a032a9b87d30cda436e3459223a8e307ec0f0a 100644
--- a/drivers/video/simple-panel.c
+++ b/drivers/video/simple-panel.c
@@ -130,6 +130,8 @@ static int simple_panel_ioctl(struct vpl *vpl, unsigned int port,
 		return simple_panel_disable(panel);
 	case VPL_GET_VIDEOMODES:
 		return simple_panel_get_modes(panel, ptr);
+	case VPL_GET_BUS_FORMAT:
+		return of_property_read_u32(panel->dev->of_node, "bus-format", ptr);
 	default:
 		return 0;
 	}

---
base-commit: cf3126e606c4eb1a4769575d0df951796c33b64e
change-id: 20251118-simple_panel-e3c423f3f422

Best regards,
-- 
Michael Grzeschik <m.grzeschik@pengutronix.de>




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-11-18 10:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-18 10:39 [PATCH] simple-panel: parse for bus-format of the panel Michael Grzeschik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox