OF partitions rework

Sascha Hauer s.hauer at pengutronix.de
Thu Mar 30 22:33:09 PDT 2017


This series reworks some aspects of device tree partitions.

- device tree partitions can be > 4GiB. So far we assumed
  #address-cells and #size-cells are both 1. Parse the
  cell size properly to support bigger partitions
- support the new device tree partition binding which collects
  the device tree partitions under a "partitions" node with
  compatible = "fixed-partitions"
- Add the counterpart of of_find_path(): of_find_node_by_devpath()
  converts a barebox device path back to a device node. This function
  will be used by the state framework in a later series.

----------------------------------------------------------------
Sascha Hauer (14):
      of: Add of_property_write_string()
      treewide: Use of_property_write_string() where appropriate
      of: partition: Move of_mtd_fixup to drivers/of/
      mtd: of: Make used partition binding configurable
      of: partition: support 64bit partition sizes
      mtd: partition: set cdev->offset to the actual offset
      cdev: Collect partitions on list
      of: partition: Make partition fixup independent from mtd devices
      fs: devfs-core: remove unused code
      fs: devfs-core: replace DEVFS_PARTITION_FIXED flag with pointer to the master cdev
      of: partition: only create partition node when partitions exist
      of: partitions: flag partitions from a partition table
      of: partition: Register the of partition fixup for of partition users
      of: of_path: add of_find_node_by_devpath()

 arch/arm/boards/highbank/init.c |   6 +-
 arch/arm/cpu/psci.c             |   6 +-
 arch/sandbox/board/hostfile.c   |   6 +-
 common/memory.c                 |   2 +-
 common/oftree.c                 |   2 +-
 common/partitions.c             |   2 +
 common/state/state.c            |   5 +-
 drivers/base/driver.c           |   2 +-
 drivers/eeprom/at24.c           |   1 +
 drivers/eeprom/at25.c           |   2 +
 drivers/mci/mci-core.c          |   4 +-
 drivers/mtd/core.c              |  65 +--------------
 drivers/mtd/partition.c         |   3 +
 drivers/of/base.c               |  24 +++++-
 drivers/of/of_path.c            | 107 +++++++++++++++++++++++++
 drivers/of/partition.c          | 170 +++++++++++++++++++++++++++++++++++++++-
 drivers/video/simplefb.c        |  12 +--
 fs/devfs-core.c                 |  82 +++----------------
 include/driver.h                |   4 +-
 include/linux/mtd/mtd.h         |   1 +
 include/of.h                    |  15 ++++
 21 files changed, 355 insertions(+), 166 deletions(-)



More information about the barebox mailing list