From 0347cc7732703bdf94bba5ce8a157c2174f01067 Mon Sep 17 00:00:00 2001 From: Nikhil M Jain Date: Tue, 31 Jan 2023 15:35:14 +0530 Subject: drivers: core: ofnode: Add panel timing decode. ofnode_decode_display_timing supports reading timing parameters from subnode of display-timings node, for displays supporting multiple resolution, in case if a display supports single resolution, it fails reading directly from display-timings node, to support it ofnode_decode_panel_timing is added. Signed-off-by: Nikhil M Jain Reviewed-by: Simon Glass --- include/dm/ofnode.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include/dm/ofnode.h') diff --git a/include/dm/ofnode.h b/include/dm/ofnode.h index fa9865602d8..3f6b0843c58 100644 --- a/include/dm/ofnode.h +++ b/include/dm/ofnode.h @@ -974,6 +974,18 @@ struct display_timing; int ofnode_decode_display_timing(ofnode node, int index, struct display_timing *config); +/** + * ofnode_decode_panel_timing() - decode display timings + * + * Decode panel timings from the supplied 'panel-timings' node. + * + * @node: 'display-timing' node containing the timing subnodes + * @config: Place to put timings + * Return: 0 if OK, -FDT_ERR_NOTFOUND if not found + */ +int ofnode_decode_panel_timing(ofnode node, + struct display_timing *config); + /** * ofnode_get_property() - get a pointer to the value of a node property * -- cgit v1.2.3