1. 02 3月, 2015 2 次提交
  2. 14 1月, 2015 1 次提交
  3. 26 11月, 2014 1 次提交
  4. 25 11月, 2014 1 次提交
    • P
      of/overlay: Introduce DT overlay support · 7518b589
      Pantelis Antoniou 提交于
      Overlays are a method to dynamically modify part of the kernel's
      device tree with dynamically loaded data. Add the core functionality to
      parse, apply and remove an overlay changeset. The core functionality
      takes care of managing the overlay data format and performing the add
      and remove. Drivers are expected to use the overlay functionality to
      support custom expansion busses commonly found on consumer development
      boards like the BeagleBone or Raspberry Pi.
      
      The overlay code uses CONFIG_OF_DYNAMIC changesets to perform the low
      level work of modifying the devicetree.
      
      Documentation about internal and APIs is provided in
      	Documentation/devicetree/overlay-notes.txt
      
      v2:
      - Switch from __of_node_alloc() to __of_node_dup()
      - Documentation fixups
      - Remove 2-pass processing of properties
      - Remove separate ov_lock; just use the DT mutex.
      v1:
      - Drop delete capability using '-' prefix. The '-' prefixed names
      are valid properties and nodes and there is no need for it just yet.
      - Do not update special properties - name & phandle ones.
      - Change order of node attachment, so that the special property update
      works.
      Signed-off-by: NPantelis Antoniou <pantelis.antoniou@konsulko.com>
      Signed-off-by: NGrant Likely <grant.likely@linaro.org>
      7518b589
  5. 19 11月, 2014 1 次提交
    • A
      of/fdt: export fdt blob as /sys/firmware/fdt · 08d53aa5
      Ard Biesheuvel 提交于
      Create a new /sys entry '/sys/firmware/fdt' to export the FDT blob
      that was passed to the kernel by the bootloader. This allows userland
      applications such as kexec to access the raw binary.
      
      The fact that this node does not reside under /sys/firmware/device-tree
      is deliberate: FDT is also used on arm64 UEFI/ACPI systems to
      communicate just the UEFI and ACPI entry points, but the FDT is never
      unflattened and used to configure the system.
      
      A CRC32 checksum is calculated over the entire FDT blob, and verified
      at late_initcall time. The sysfs entry is instantiated only if the
      checksum is valid, i.e., if the FDT blob has not been modified in the
      mean time. Otherwise, a warning is printed.
      Signed-off-by: NArd Biesheuvel <ard.biesheuvel@linaro.org>
      Signed-off-by: NGrant Likely <grant.likely@linaro.org>
      08d53aa5
  6. 05 11月, 2014 1 次提交
  7. 05 10月, 2014 2 次提交
    • G
      of/selftest: Use the resolver to fixup phandles · 2eb46da2
      Grant Likely 提交于
      The selftest data ends up causing duplicate phandles in the live tree
      for the time that the testcase data is inserted into the live tree. This
      is obviously a bad situation because anything attempting to read the
      tree while the selftests are running make resolve phandles to one of the
      testcase data nodes. Fix the problem by using the of_resolve_phandles()
      function to eliminate duplicates.
      Signed-off-by: NGrant Likely <grant.likely@linaro.org>
      Cc: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
      Cc: Gaurav Minocha <gaurav.minocha.os@gmail.com>
      2eb46da2
    • P
      of: Introduce Device Tree resolve support. · 7941b27b
      Pantelis Antoniou 提交于
      Introduce support for dynamic device tree resolution.
      Using it, it is possible to prepare a device tree that's
      been loaded on runtime to be modified and inserted at the kernel
      live tree.
      
      Export of of_resolve and bug fix of double free by
      	Guenter Roeck <groeck@juniper.net>
      Signed-off-by: NPantelis Antoniou <pantelis.antoniou@konsulko.com>
      [grant.likely: Don't need to select CONFIG_OF_DYNAMIC and CONFIG_OF_DEVICE]
      [grant.likely: Don't need to depend on OF or !SPARC]
      [grant.likely: Factor out duplicate code blocks into single function]
      Signed-off-by: NGrant Likely <grant.likely@linaro.org>
      7941b27b
  8. 04 8月, 2014 1 次提交
    • G
      of: Fixing OF Selftest build error · 32147e9a
      Gaurav Minocha 提交于
      This patch is to fix following error while compiling OF selftests.
      "drivers/of/selftest.c:617:2: error: implicit declaration of function
      'of_fdt_unflatten_tree'"
      
      Now, CONFIG_OF_SELFTEST depends on CONFIG_OF_EARLY_FLATTREE so that the
      broken configuration cannot be selected. Ultimately it would be a good
      idea to allow CONFIG_OF_SELFTEST to select CONFIG_OF_EARLY_FLATTREE, but
      there is a dependency problem on i386 and x86_64 that causes dtc to not
      get built and causes the build to fail. That problem needs to be fixed
      first.
      Signed-off-by: NGaurav Minocha <gaurav.minocha.os@gmail.com>
      Signed-off-by: NGrant Likely <grant.likely@linaro.org>
      32147e9a
  9. 25 7月, 2014 1 次提交
    • G
      Adding selftest testdata dynamically into live tree · ae9304c9
      Gaurav Minocha 提交于
      This patch attaches selftest's device tree data (required by /drivers/of/selftest.c)
      dynamically into live device tree. First, it links selftest device tree data into the
      kernel image and then iterates over all the nodes and attaches them into the live tree.
      Once the testcases are complete, it removes the data attached.
      
      This patch will remove the manual process of addition and removal of selftest device
      tree data into the machine's dts file.
      
      Tested successfully with current selftest's testcases.
      Signed-off-by: NGaurav Minocha <gaurav.minocha.os@gmail.com>
      [glikely: Removed ability to build as a module and fixed no-devicetree bug]
      Signed-off-by: NGrant Likely <grant.likely@linaro.org>
      ae9304c9
  10. 30 4月, 2014 1 次提交
    • R
      of/fdt: Convert FDT functions to use libfdt · e6a6928c
      Rob Herring 提交于
      The kernel FDT functions predate libfdt and are much more limited in
      functionality. Also, the kernel functions and libfdt functions are
      not compatible with each other because they have different definitions
      of node offsets. To avoid this incompatibility and in preparation to
      add more FDT parsing functions which will need libfdt, let's first
      convert the existing code to use libfdt.
      
      The FDT unflattening, top-level FDT scanning, and property retrieval
      functions are converted to use libfdt. The scanning code should be
      re-worked to be more efficient and understandable by using libfdt to
      find nodes directly by path or compatible strings.
      Signed-off-by: NRob Herring <robh@kernel.org>
      Tested-by: NMichal Simek <michal.simek@xilinx.com>
      Tested-by: NGrant Likely <grant.likely@linaro.org>
      Tested-by: NStephen Chivers <schivers@csc.com>
      e6a6928c
  11. 12 3月, 2014 2 次提交
  12. 20 2月, 2014 1 次提交
  13. 10 1月, 2014 1 次提交
  14. 31 12月, 2013 1 次提交
  15. 09 11月, 2013 1 次提交
  16. 15 10月, 2013 1 次提交
  17. 27 8月, 2013 1 次提交
  18. 23 8月, 2013 1 次提交
    • W
      i2c: move OF helpers into the core · 687b81d0
      Wolfram Sang 提交于
      I2C of helpers used to live in of_i2c.c but experience (from SPI) shows
      that it is much cleaner to have this in the core. This also removes a
      circular dependency between the helpers and the core, and so we can
      finally register child nodes in the core instead of doing this manually
      in each driver. So, fix the drivers and documentation, too.
      Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
      687b81d0
  19. 12 6月, 2013 1 次提交
  20. 08 12月, 2012 1 次提交
  21. 14 4月, 2012 1 次提交
  22. 08 4月, 2012 1 次提交
  23. 15 3月, 2012 1 次提交
  24. 22 2月, 2012 1 次提交
  25. 13 12月, 2011 1 次提交
  26. 08 6月, 2011 1 次提交
    • B
      pci/of: Match PCI devices to OF nodes dynamically · 98d9f30c
      Benjamin Herrenschmidt 提交于
      powerpc has two different ways of matching PCI devices to their
      corresponding OF node (if any) for historical reasons. The ppc64 one
      does a scan looking for matching bus/dev/fn, while the ppc32 one does a
      scan looking only for matching dev/fn on each level in order to be
      agnostic to busses being renumbered (which Linux does on some
      platforms).
      
      This removes both and instead moves the matching code to the PCI core
      itself. It's the most logical place to do it: when a pci_dev is created,
      we know the parent and thus can do a single level scan for the matching
      device_node (if any).
      
      The benefit is that all archs now get the matching for free. There's one
      hook the arch might want to provide to match a PHB bus to its device
      node. A default weak implementation is provided that looks for the
      parent device device node, but it's not entirely reliable on powerpc for
      various reasons so powerpc provides its own.
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Acked-by: NMichal Simek <monstr@monstr.eu>
      Acked-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      98d9f30c
  27. 24 2月, 2011 1 次提交
  28. 05 2月, 2011 1 次提交
  29. 30 12月, 2010 1 次提交
    • S
      of/flattree: Add Kconfig for EARLY_FLATTREE · e6ce1324
      Stephen Neuendorffer 提交于
      The device tree code is now in two pieces: some which can be used generically
      on any platform which selects CONFIG_OF_FLATTREE, and some early which is used
      at boot time on only a few architectures.  This patch segregates the early
      code so that only those architectures which care about it need compile it.
      This also means that some of the requirements in the early code (such as
      a cmd_line variable) that most architectures (e.g. X86) don't provide
      can be ignored.
      Signed-off-by: NStephen Neuendorffer <stephen.neuendorffer@xilinx.com>
      [grant.likely@secretlab.ca: remove extra blank line addition]
      [grant.likely@secretlab.ca: fixed incorrect #ifdef CONFIG_EARLY_FLATTREE check]
      [grant.likely@secretlab.ca: Made OF_EARLY_FLATTREE select instead of depend
                                  on OF_FLATTREE]
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      e6ce1324
  30. 01 11月, 2010 1 次提交
  31. 11 10月, 2010 1 次提交
  32. 06 7月, 2010 5 次提交
  33. 29 6月, 2010 1 次提交