From: Michael Grzeschik <m.grzeschik@pengutronix.de>
To: Sascha Hauer <s.hauer@pengutronix.de>,
BAREBOX <barebox@lists.infradead.org>
Subject: [PATCH] simple-panel: parse for bus-format of the panel
Date: Tue, 18 Nov 2025 11:39:33 +0100 [thread overview]
Message-ID: <20251118-simple_panel-v1-1-7d8f617953ce@pengutronix.de> (raw)
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>
reply other threads:[~2025-11-18 10:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251118-simple_panel-v1-1-7d8f617953ce@pengutronix.de \
--to=m.grzeschik@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=s.hauer@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox