1. Mar 12, 2022
    • Rob Herring's avatar
      dt-bindings: kbuild: Use DTB files for validation · ef8795f3
      Rob Herring authored
      
      
      Switch the DT validation to use DTB files directly instead of a DTS to
      YAML conversion.
      
      The original motivation for supporting validation on DTB files was to
      enable running validation on a running system (e.g. 'dt-validate
      /sys/firmware/fdt') or other cases where the original source DTS is not
      available.
      
      The YAML format was not without issues. Using DTBs with the schema type
      information solves some of those problems. The YAML format relies on the
      DTS source level information including bracketing of properties, size
      directives, and phandle tags all of which are lost in a DTB file. While
      standardizing the bracketing is a good thing, it does cause a lot of
      extra warnings and churn to fix them.
      
      Another issue has been signed types are not validated correctly as sign
      information is not propagated to YAML. Using the schema type information
      allows for proper handling of signed types. YAML also can't represent
      the full range of 64-bit integers as numbers are stored as floats by
      most/all parsers.
      
      The DTB validation works by decoding property values using the type
      information in the schemas themselves. The main corner case this does
      not work for is matrix types where neither dimension is fixed. For
      now, checking the dimensions in these cases are skipped.
      
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      Tested-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
      Link: https://lore.kernel.org/r/20220310160513.1708182-3-robh@kernel.org
      ef8795f3
  2. Mar 11, 2022
  3. Mar 10, 2022
  4. Mar 09, 2022
  5. Mar 08, 2022
  6. Mar 05, 2022
  7. Mar 04, 2022
  8. Mar 03, 2022
  9. Mar 01, 2022
  10. Feb 25, 2022
  11. Feb 24, 2022
  12. Feb 23, 2022