[PATCH 0/7] support overlays to the barebox live tree

Sascha Hauer s.hauer at pengutronix.de
Wed Mar 8 06:05:38 PST 2023


Support for applying a device tree overlay to the barebox live tree
is already present. This series adds a few missing pieces:

- add support for applying overlays to the live tree from the command
  line
- add support for adding new I2C/SPI devices via overlays
- add Makefile magic to build dtbo files and dtbo.o files to include
  into the barebox binary from dtso files

Sascha Hauer (7):
  kbuild: Add target to build dtb overlay files
  driver: Add rescan hook to struct device
  i2c: implement rescan
  spi: Directly register SPI device
  spi: reduce scope of 'chip'
  spi: implement rescan
  of_overlay: Add option to apply overlay to live tree

 commands/of_overlay.c  | 38 ++++++++++++++++++++++++++++++++++----
 drivers/i2c/i2c.c      | 16 +++-------------
 drivers/of/platform.c  |  5 ++++-
 drivers/spi/spi.c      | 31 ++++++++++++++++++++++++++-----
 include/driver.h       |  1 +
 scripts/Makefile.build |  4 ++++
 scripts/Makefile.lib   | 11 ++++++++++-
 7 files changed, 82 insertions(+), 24 deletions(-)

-- 
2.30.2




More information about the barebox mailing list