Skip to content
Snippets Groups Projects
  1. May 31, 2018
    • Rob Herring's avatar
      scripts/dtc: Update to upstream version v1.4.6-9-gaadd0b65c987 · db405d19
      Rob Herring authored
      
      This adds the following commits from upstream:
      
      aadd0b65c987 checks: centralize printing of property names in failure messages
      88960e398907 checks: centralize printing of node path in check_msg
      f1879e1a50eb Add limited read-only support for older (V2 and V3) device tree to libfdt.
      37dea76e9700 srcpos: drop special handling of tab
      65893da4aee0 libfdt: overlay: Add missing license
      962a45ca034d Avoid installing pylibfdt when dependencies are missing
      cd6ea1b2bea6 Makefile: Split INSTALL out into INSTALL_{PROGRAM,LIB,DATA,SCRIPT}
      51b3a16338df Makefile.tests: Add LIBDL make(1) variable for portability sake
      333d533a8f4d Attempt to auto-detect stat(1) being used if not given proper invocation
      e54388015af1 dtc: Bump version to v1.4.6
      a1fe86f380cb fdtoverlay: Switch from using alloca to malloc
      c8d5472de3ff tests: Improve compatibility with other platforms
      c81d389a10cc checks: add chosen node checks
      e671852042a7 checks: add aliases node checks
      d0c44ebe3f42 checks: check for #{size,address}-cells without child nodes
      18a3d84bb802 checks: add string list check for *-names properties
      8fe94fd6f19f checks: add string list check
      6c5730819604 checks: add a string check for 'label' property
      a384191eba09 checks: fix sound-dai phandle with arg property check
      b260c4f610c0 Fix ambiguous grammar for devicetree rule
      fe667e382bac tests: Add some basic tests for the pci_bridge checks
      7975f6422260 Fix widespread incorrect use of strneq(), replace with new strprefixeq()
      fca296445eab Add strstarts() helper function
      cc392f089007 tests: Check non-matching cases for fdt_node_check_compatible()
      bba26a5291c8 livetree: avoid assertion of orphan phandles with overlays
      c8f8194d76cc implement strnlen for systems that need it
      c8b38f65fdec libfdt: Remove leading underscores from identifiers
      3b62fdaebfe5 Remove leading underscores from identifiers
      2d45d1c5c65e Replace FDT_VERSION() with stringify()
      2e6fe5a107b5 Fix some errors in comments
      b0ae9e4b0ceb tests: Correct warning in sw_tree1.c
      
      Commit c8b38f65fdec upstream ("libfdt: Remove leading underscores from
      identifiers") changed the multiple inclusion define protection, so the
      kernel's libfdt_env.h needs the corresponding update.
      
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      [ Linux commit: 9130ba884640328bb78aaa4840e5ddf06ccafb1c ]
      [erosca: - Fixup conflicts in include/linux/libfdt_env.h caused by v2018.03-rc4
                 commit b08c8c48 ("libfdt: move headers to <linux/libfdt.h>
      	   and <linux/libfdt_env.h>")
      	 - Fix build errors in lib/libfdt/fdt_ro.c, tools/libfdt/fdt_rw.c by:
      	   - s/_fdt_mem_rsv/fdt_mem_rsv_/
      	   - s/_fdt_offset_ptr/fdt_offset_ptr_/
      	   - s/_fdt_check_node_offset/fdt_check_node_offset_/
      	   - s/_fdt_check_prop_offset/fdt_check_prop_offset_/
      	   - s/_fdt_find_add_string/fdt_find_add_string_/]
      Signed-off-by: default avatarEugeniu Rosca <erosca@de.adit-jv.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      Reviewed-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      db405d19
  2. May 07, 2018
    • Tom Rini's avatar
      SPDX: Convert all of our multiple license tags to Linux Kernel style · 4549e789
      Tom Rini authored
      
      When U-Boot started using SPDX tags we were among the early adopters and
      there weren't a lot of other examples to borrow from.  So we picked the
      area of the file that usually had a full license text and replaced it
      with an appropriate SPDX-License-Identifier: entry.  Since then, the
      Linux Kernel has adopted SPDX tags and they place it as the very first
      line in a file (except where shebangs are used, then it's second line)
      and with slightly different comment styles than us.
      
      In part due to community overlap, in part due to better tag visibility
      and in part for other minor reasons, switch over to that style.
      
      This commit changes all instances where we have multiple licenses (in
      these cases, dual license) declared in the SPDX-License-Identifier tag.
      In this case we change from listing "LICENSE-A LICENSE-B" or "LICENSE-A
      or LICENSE-B" or "(LICENSE-A OR LICENSE-B)" to "LICENSE-A OR LICENSE-B"
      as per the Linux Kernel style document.  Note that parenthesis are
      allowed so when they were used before we continue to use them.
      
      Reviewed-by: default avatarFabio Estevam <fabio.estevam@nxp.com>
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      4549e789
    • Tom Rini's avatar
      SPDX: Convert all of our single license tags to Linux Kernel style · 83d290c5
      Tom Rini authored
      
      When U-Boot started using SPDX tags we were among the early adopters and
      there weren't a lot of other examples to borrow from.  So we picked the
      area of the file that usually had a full license text and replaced it
      with an appropriate SPDX-License-Identifier: entry.  Since then, the
      Linux Kernel has adopted SPDX tags and they place it as the very first
      line in a file (except where shebangs are used, then it's second line)
      and with slightly different comment styles than us.
      
      In part due to community overlap, in part due to better tag visibility
      and in part for other minor reasons, switch over to that style.
      
      This commit changes all instances where we have a single declared
      license in the tag as both the before and after are identical in tag
      contents.  There's also a few places where I found we did not have a tag
      and have introduced one.
      
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      83d290c5
  3. Apr 01, 2018
  4. Mar 05, 2018
  5. Jan 28, 2018
  6. Dec 04, 2017
  7. Nov 17, 2017
  8. Sep 15, 2017
    • Pantelis Antoniou's avatar
      fdt: Allow stacked overlays phandle references · f00c36a0
      Pantelis Antoniou authored
      
      This patch enables an overlay to refer to a previous overlay's
      labels by performing a merge of symbol information at application
      time.
      
      In a nutshell it allows an overlay to refer to a symbol that a previous
      overlay has defined. It requires both the base and all the overlays
      to be compiled with the -@ command line switch so that symbol
      information is included.
      
      base.dts
      --------
      
      	/dts-v1/;
      	/ {
      		foo: foonode {
      			foo-property;
      		};
      	};
      
      	$ dtc -@ -I dts -O dtb -o base.dtb base.dts
      
      bar.dts
      -------
      
      	/dts-v1/;
      	/plugin/;
      	/ {
      		fragment@1 {
      			target = <&foo>;
      			__overlay__ {
      				overlay-1-property;
      				bar: barnode {
      					bar-property;
      				};
      			};
      		};
      	};
      
      	$ dtc -@ -I dts -O dtb -o bar.dtb bar.dts
      
      baz.dts
      -------
      
      	/dts-v1/;
      	/plugin/;
      	/ {
      		fragment@1 {
      			target = <&bar>;
      			__overlay__ {
      				overlay-2-property;
      				baz: baznode {
      					baz-property;
      				};
      			};
      		};
      	};
      
      	$ dtc -@ -I dts -O dtb -o baz.dtb baz.dts
      
      Applying the overlays:
      
      	$ fdtoverlay -i base.dtb -o target.dtb bar.dtb baz.dtb
      
      Dumping:
      
      	$ fdtdump target.dtb
      	/ {
                  foonode {
                      overlay-1-property;
                      foo-property;
                      linux,phandle = <0x00000001>;
                      phandle = <0x00000001>;
                      barnode {
                          overlay-2-property;
                          phandle = <0x00000002>;
                          linux,phandle = <0x00000002>;
                          bar-property;
                          baznode {
                              phandle = <0x00000003>;
                              linux,phandle = <0x00000003>;
                              baz-property;
                          };
                      };
                  };
                  __symbols__ {
                      baz = "/foonode/barnode/baznode";
                      bar = "/foonode/barnode";
                      foo = "/foonode";
                  };
      	};
      
      Signed-off-by: default avatarPantelis Antoniou <pantelis.antoniou@konsulko.com>
      Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
      Acked-by: default avatarSimon Glass <sjg@chromium.org>
      f00c36a0
    • Tien Fong Chee's avatar
      libfdt: Initialize the stack variable · 18c991ca
      Tien Fong Chee authored
      
      Report Coverity log:
      The code uses a variable that has not
      been initialized, leading to unpredictable
      or unintended results.
      
      Reported-by: Coverity (CID: 60519)
      Signed-off-by: default avatarTien Fong Chee <tien.fong.chee@intel.com>
      18c991ca
    • Simon Glass's avatar
      fdt: Sync libfdt up to upstream · 93c94b88
      Simon Glass authored
      
      Add upstream changes to U-Boot:
      
      - new pylibfdt functions
      - fdt_setprop_placeholder()
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      93c94b88
  9. Sep 12, 2017
  10. Jul 10, 2017
  11. Jun 02, 2017
  12. Apr 13, 2017
  13. Apr 10, 2017
  14. Jan 14, 2017
    • David Gibson's avatar
      libfdt: Correct fdt handling of overlays without fixups and base trees without symbols · 46743c41
      David Gibson authored
      
      The fdt_overlay_apply() function purports to support the edge cases where
      an overlay has no fixups to be applied, or a base tree which has no
      symbols (the latter can only work if the former is also true).  However it
      gets it wrong in a couple of small ways:
      
        * In the no fixups case, it doesn't fail immediately, but will attempt
          fdt_for_each_property_offset() giving -FDT_ERR_NOTFOUND as the node
          offset, which will fail.  Instead it should succeed immediately, since
          there's nothing to do.
        * In the case of no symbols, it again doesn't fail immediately.  However
          if there is an actual fixup it will fail with an unexpected error,
          because -FDT_ERR_NOTFOUND is passed to fdt_getprop() when attempting to
          look up the symbols.  We should instead return -FDT_ERR_NOTFOUND
          directly.
      
      Both of these errors lead to the code returning misleading error codes in
      failing cases.
      
      [ DTC commit: 7d8ef6e1db9794f72805a0855f4f7f12fadd03d3 ]
      
      Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: default avatarStefan Agner <stefan.agner@toradex.com>
      Acked-by: default avatarSimon Glass <sjg@chromium.org>
      46743c41
  15. Oct 24, 2016
  16. Oct 23, 2016
  17. Oct 13, 2016
  18. Sep 23, 2016
  19. Sep 19, 2016
Loading