]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
drivers: core: ofnode: fix typo in panel timing decode
authorRaphael Gallais-Pou <raphael.gallais-pou@foss.st.com>
Thu, 11 May 2023 14:36:52 +0000 (16:36 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 15 May 2023 21:14:46 +0000 (17:14 -0400)
In case where a single timing resolution is implemented in the
device-tree, the property is named "panel-timing", as specify
in Linux kernel binding file:

Documentation/devicetree/bindings/display/panel/panel-common.yaml

  # Display Timings
  panel-timing:
    description:
      Most display panels are restricted to a single resolution and
      require specific display timings. The panel-timing subnode expresses those
      timings.
    $ref: panel-timing.yaml#

  display-timings:
    description:
      Some display panels support several resolutions with different timings.
      The display-timings bindings supports specifying several timings and
      optionally specifying which is the native mode.
    $ref: display-timings.yaml#

Fixes: 0347cc773270 ("drivers: core: ofnode: Add panel timing decode.")
Signed-off-by: Raphael Gallais-Pou <raphael.gallais-pou@foss.st.com>
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
arch/sandbox/dts/test.dts
drivers/core/ofnode.c

index 6f9af489a37e7d8535134535d979c9c6ab16820b..ff9f9222e6f938d35c70c8a902b01029a021685a 100644 (file)
                                vsync-len = <13>;
                        };
                };
-               panel-timings {
+               panel-timing {
                        clock-frequency = <6500000>;
                        hactive = <240>;
                        vactive = <320>;
index f49ee493d3cc06d52527c954562cf5d66f86cfaf..ec574c4460790af132e288b064555d3122f7cba7 100644 (file)
@@ -998,7 +998,7 @@ int ofnode_decode_panel_timing(ofnode parent,
        u32 val = 0;
        int ret = 0;
 
-       timings = ofnode_find_subnode(parent, "panel-timings");
+       timings = ofnode_find_subnode(parent, "panel-timing");
        if (!ofnode_valid(timings))
                return -EINVAL;
        memset(dt, 0, sizeof(*dt));