ofnode: support panel-timings in ofnode_decode_display_timing
authorRaphael Gallais-Pou <raphael.gallais-pou@foss.st.com>
Thu, 4 Sep 2025 12:53:05 +0000 (14:53 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 17 Nov 2025 16:43:26 +0000 (10:43 -0600)
commit1a7ea0280eefd0c0c01dfab8e48e1909b81ba2de
treedd3815b76b27c758071ae33634134f178bce1a97
parent75defb7fbf9e10a7ddd817cbbcbabdd2a89805b3
ofnode: support panel-timings in ofnode_decode_display_timing

The "Display Timings" in panel-common.yaml can be provided by 2 properties
- panel-timing: when display panels are restricted to a single resolution
                the "panel-timing" node expresses the required timings.
- display-timings: several resolutions with different timings are supported
                   with several timing subnode of "display-timings" node

This patch update the parsing function to handle this 2 possibility
when index = 0.

Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Yannick Fertre <yannick.fertre@foss.st.com>
Signed-off-by: Raphael Gallais-Pou <raphael.gallais-pou@foss.st.com>
drivers/core/ofnode.c