Re: Please pull u-boot-dm/next into -next

2021-03-26 Thread Tom Rini
On Fri, Mar 26, 2021 at 07:05:43PM +1300, Simon Glass wrote:

> Hi Tom,
> 
> Well here we are again...let's see how this one fares.
> 
> This is for the -next branch.
> 
> 
> https://source.denx.de/u-boot/custodians/u-boot-dm/-/pipelines/6933
> 
> 
> The following changes since commit 874dcedee92a828b03c8d3146dccfaa8b709618b:
> 
>   Merge branch '2021-03-20-mediatek-updates' into next (2021-03-20
> 19:27:22 -0400)
> 
> are available in the Git repository at:
> 
>   git://git.denx.de/u-boot-dm.git tags/dm-pull-26mar21-take2
> 
> for you to fetch changes up to fcae6682a7929abf88d9f0b756f9d5f9725e4d14:
> 
>   binman: Update various pieces of the documentation (2021-03-26 17:03:10 
> +1300)
> 

Applied to u-boot/next, thanks!

-- 
Tom


signature.asc
Description: PGP signature


Please pull u-boot-dm/next into -next

2021-03-25 Thread Simon Glass
Hi Tom,

Well here we are again...let's see how this one fares.

This is for the -next branch.


https://source.denx.de/u-boot/custodians/u-boot-dm/-/pipelines/6933


The following changes since commit 874dcedee92a828b03c8d3146dccfaa8b709618b:

  Merge branch '2021-03-20-mediatek-updates' into next (2021-03-20
19:27:22 -0400)

are available in the Git repository at:

  git://git.denx.de/u-boot-dm.git tags/dm-pull-26mar21-take2

for you to fetch changes up to fcae6682a7929abf88d9f0b756f9d5f9725e4d14:

  binman: Update various pieces of the documentation (2021-03-26 17:03:10 +1300)


dtoc support for of-platdata-inst
driver model support for of-platdata-inst
support of-platdata-inst on x86 / coral
binman support for exapanded entries
binman convert docs to reST
ti-sysc fix for duplicate uclass driver
patman minor improvements
pylibfdt build only if needed
correct obscure CI error with OF_PLATDATA_INST


Bin Meng (3):
  mmc: pci: Fix Kconfig dependency
  test: cmd: setexpr: Fix a typo
  test: print_ut: Fix potential build error

Dario Binacchi (1):
  bus: ti-sysc: change in a normal driver

Heinrich Schuchardt (4):
  sandbox: allow cross-compiling sandbox
  sandbox: enable cros-ec-keyb in test.dtb
  dm: error handling dev_get_dma_range()
  sandbox: add FAT to the list of usable env drivers

Nicolas Boichat (1):
  patman: Use less for help file, if available

Samuel Dionne-Riel (1):
  tools: fdtgrep: Use unsigned chars for arrays

Simon Glass (110):
  azure: Use --board flag with sandbox_spl
  patman: Update documentation to match new usage
  patman: Quieten down the alias checking
  dtoc: Scan drivers for available information
  dtoc: Save scan information across test runs
  dtoc: Ignore unwanted files when scanning for drivers
  dtoc: Collect priv/plat struct info from drivers
  dtoc: Support scanning of uclasses
  dtoc: Support scanning of structs in header files
  dtoc: Move test files into a test/ directory
  dtoc: Rename sandbox_i2c_test and sandbox_pmic_test
  dtoc: Add some extra properties to nodes
  dtoc: Make use of node properties
  dtoc: Process nodes to set up required properties
  dtoc: Track nodes which are actually used
  dtoc: Support tracking the phase of U-Boot
  Makefile: Pass the U-Boot phase to dtoc
  dtoc: Support headers needed for drivers
  dtoc: Process driver aliases along with drivers
  dtoc: Warn of duplicate drivers
  dtoc: Read aliases for uclasses
  dtoc: Detect drivers only at the start of start of line
  dtoc: Assign a sequence number to each node
  dtoc: Set up the uclasses that are used
  dtoc: Support processing the root node
  dtoc: Add an option for device instantiation
  dm: of-platadata: Add option for device instantiation
  dtoc: Add support for decl file
  dtoc: Don't generate platform data with instantiation
  sandbox: Make sandbox,emul more conventional
  sandbox: i2c: Rename driver names to work with of-platdata
  dtoc: Tidy up the list of supported phandle properties
  dtoc: Generate a summary in the dt-plat.c file
  dtoc: Generate uclass devices
  dtoc: Generate device instances
  dtoc: Drop use of DECL() macros
  sandbox: Drop debug message in os_spl_to_uboot()
  linker_lists: Allow use in data structures
  dm: core: Add macros to access the new linker lists
  dm: core: Allow dropping run-time binding of devices
  dm: core: Adjust uclass setup with of-platdata
  dm: core: Set up driver model for OF_PLATDATA_INST
  dm: core: Skip adding uclasses with OF_PLATDATA_INST
  dm: Add the new dtoc-generated files to the build
  libfdt: Tidy up pylibfdt build rule
  Makefile: Avoid running dtoc every time
  Makefile: Depend only on required of-platdata files
  dtoc: Only generate the required files
  Makefile: Use a variable for generated of-platdata headers
  Makefile: Remove old of-platdata files before regenerating
  dm: core: Include dt-decl.h automatically
  dm: test: Avoid destroying uclasses with of-platdata-inst
  clk: sandbox: Move priv/plat data to a header file
  clk: fixed-rate: Export driver parts for OF_PLATDATA_INST
  clk: sandbox: Create a special fixed-rate driver
  dm: core: Drop device_get_by_driver_info()
  dm: core: Drop uclass_find_device_by_phandle() with of-platdata
  sandbox: i2c: Move platdata structs to header files
  dm: Rename device_get_by_driver_info_idx()
  sandbox_spl: Increase SPL malloc() size
  sandbox: i2c: Support i2c emulation with of-platdata
  Revert "sandbox: Disable I2C emulators in SPL"
  sandbox: Create a new sandbox_noinst build
  test: Run sandbox_spl tests on sandbox_noinst
  azure/gitlab: Add tests for 

Re: Please pull u-boot-dm/next into -next

2021-03-20 Thread Tom Rini
On Sun, Mar 21, 2021 at 02:18:40PM +1300, Simon Glass wrote:
> Hi Bin,
> 
> On Sun, 21 Mar 2021 at 14:16, Bin Meng  wrote:
> >
> > Hi Simon,
> >
> > On Sun, Mar 21, 2021 at 8:21 AM Simon Glass  wrote:
> > >
> > > Hi Marek,
> > >
> > > On Sun, 21 Mar 2021 at 12:21, Marek Behún  wrote:
> > > >
> > > > Simon,
> > > >
> > > > you forgot to drop my regmap patch.
> > >
> > > Ah yes, I dropped it from dm/master, but left it in -next. I am hoping
> > > that git will figure it out as that is what it is supposed to be good
> > > at :-)
> >
> > The thing is that that patch you applied has some issues, and Marek
> > has sent an updated correct patch.
> 
> Oh dear...
> 
> Tom shall I redo the pull request?

Yes, thanks.

-- 
Tom


signature.asc
Description: PGP signature


Re: Please pull u-boot-dm/next into -next

2021-03-20 Thread Simon Glass
Hi Bin,

On Sun, 21 Mar 2021 at 14:16, Bin Meng  wrote:
>
> Hi Simon,
>
> On Sun, Mar 21, 2021 at 8:21 AM Simon Glass  wrote:
> >
> > Hi Marek,
> >
> > On Sun, 21 Mar 2021 at 12:21, Marek Behún  wrote:
> > >
> > > Simon,
> > >
> > > you forgot to drop my regmap patch.
> >
> > Ah yes, I dropped it from dm/master, but left it in -next. I am hoping
> > that git will figure it out as that is what it is supposed to be good
> > at :-)
>
> The thing is that that patch you applied has some issues, and Marek
> has sent an updated correct patch.

Oh dear...

Tom shall I redo the pull request?

Regards,
Simon


Re: Please pull u-boot-dm/next into -next

2021-03-20 Thread Bin Meng
Hi Simon,

On Sun, Mar 21, 2021 at 8:21 AM Simon Glass  wrote:
>
> Hi Marek,
>
> On Sun, 21 Mar 2021 at 12:21, Marek Behún  wrote:
> >
> > Simon,
> >
> > you forgot to drop my regmap patch.
>
> Ah yes, I dropped it from dm/master, but left it in -next. I am hoping
> that git will figure it out as that is what it is supposed to be good
> at :-)

The thing is that that patch you applied has some issues, and Marek
has sent an updated correct patch.

Regards,
Bin


Re: Please pull u-boot-dm/next into -next

2021-03-20 Thread Simon Glass
Hi Marek,

On Sun, 21 Mar 2021 at 12:21, Marek Behún  wrote:
>
> Simon,
>
> you forgot to drop my regmap patch.

Ah yes, I dropped it from dm/master, but left it in -next. I am hoping
that git will figure it out as that is what it is supposed to be good
at :-)

Regards,
Simon
>
>


Re: Please pull u-boot-dm/next into -next

2021-03-20 Thread Marek Behún
Simon,

you forgot to drop my regmap patch.

Marek


Please pull u-boot-dm/next into -next

2021-03-20 Thread Simon Glass
Hi Tom,

This is for the -next branch, mostly the of-platdata-inst implementation.

https://source.denx.de/u-boot/custodians/u-boot-dm/-/pipelines/6844


The following changes since commit f879f2621b42529cf5f88912a07d2866cfc8fd45:

  Merge branch 'next' of git://source.denx.de/u-boot-sh into next
(2021-03-19 08:20:34 -0400)

are available in the Git repository at:

  git://git.denx.de/u-boot-dm.git tags/dm-pull-21mar21

for you to fetch changes up to 4fd57aeeb4359268f0d70a04ad7769985789ab8c:

  binman: Update various pieces of the documentation (2021-03-20 12:55:54
+1300)


dtoc support for of-platdata-inst
driver model support for of-platdata-inst
support of-platdata-inst on x86 / coral
binman support for exapanded entries
binman convert docs to reST
ti-sysc fix for duplicate uclass driver
patman minor improvements


Bin Meng (3):
  mmc: pci: Fix Kconfig dependency
  test: cmd: setexpr: Fix a typo
  test: print_ut: Fix potential build error

Dario Binacchi (1):
  bus: ti-sysc: change in a normal driver

Heinrich Schuchardt (4):
  sandbox: allow cross-compiling sandbox
  sandbox: enable cros-ec-keyb in test.dtb
  dm: error handling dev_get_dma_range()
  sandbox: add FAT to the list of usable env drivers

Marek Behún (1):
  regmap: fix a serious pointer casting bug

Nicolas Boichat (1):
  patman: Use less for help file, if available

Samuel Dionne-Riel (1):
  tools: fdtgrep: Use unsigned chars for arrays

Simon Glass (103):
  patman: Update documentation to match new usage
  patman: Quieten down the alias checking
  dtoc: Scan drivers for available information
  dtoc: Save scan information across test runs
  dtoc: Ignore unwanted files when scanning for drivers
  dtoc: Collect priv/plat struct info from drivers
  dtoc: Support scanning of uclasses
  dtoc: Support scanning of structs in header files
  dtoc: Move test files into a test/ directory
  dtoc: Rename sandbox_i2c_test and sandbox_pmic_test
  dtoc: Add some extra properties to nodes
  dtoc: Make use of node properties
  dtoc: Process nodes to set up required properties
  dtoc: Track nodes which are actually used
  dtoc: Support tracking the phase of U-Boot
  Makefile: Pass the U-Boot phase to dtoc
  dtoc: Support headers needed for drivers
  dtoc: Process driver aliases along with drivers
  dtoc: Warn of duplicate drivers
  dtoc: Read aliases for uclasses
  dtoc: Detect drivers only at the start of start of line
  dtoc: Assign a sequence number to each node
  dtoc: Set up the uclasses that are used
  dtoc: Support processing the root node
  dtoc: Add an option for device instantiation
  dm: of-platadata: Add option for device instantiation
  dtoc: Add support for decl file
  dtoc: Don't generate platform data with instantiation
  sandbox: Make sandbox,emul more conventional
  sandbox: i2c: Rename driver names to work with of-platdata
  dtoc: Tidy up the list of supported phandle properties
  dtoc: Generate a summary in the dt-plat.c file
  dtoc: Generate uclass devices
  dtoc: Generate device instances
  dtoc: Drop use of DECL() macros
  sandbox: Drop debug message in os_spl_to_uboot()
  linker_lists: Allow use in data structures
  dm: core: Add macros to access the new linker lists
  dm: core: Allow dropping run-time binding of devices
  dm: core: Adjust uclass setup with of-platdata
  dm: core: Set up driver model for OF_PLATDATA_INST
  dm: core: Skip adding uclasses with OF_PLATDATA_INST
  dm: Add the new dtoc-generated files to the build
  dm: core: Include dt-decl.h automatically
  dm: test: Avoid destroying uclasses with of-platdata-inst
  clk: sandbox: Move priv/plat data to a header file
  clk: fixed-rate: Export driver parts for OF_PLATDATA_INST
  clk: sandbox: Create a special fixed-rate driver
  dm: core: Drop device_get_by_driver_info()
  dm: core: Drop uclass_find_device_by_phandle() with of-platdata
  sandbox: i2c: Move platdata structs to header files
  dm: Rename device_get_by_driver_info_idx()
  sandbox_spl: Increase SPL malloc() size
  sandbox: i2c: Support i2c emulation with of-platdata
  Revert "sandbox: Disable I2C emulators in SPL"
  sandbox: Create a new sandbox_noinst build
  test: Run sandbox_spl tests on sandbox_noinst
  azure/gitlab: Add tests for sandbox_noinst
  dm: core: Add an option to support SPL in read-only memory
  dm: core: Create a struct for device runtime info
  dm: core: Move flags to device-runtime info
  dm: core: Allow storing priv/plat data separately
  sandbox: Define a region for device priv/plat data
  dm: core: Use separate priv/plat data region
  dm: core: Add warnings to priva

Re: Please pull u-boot-dm/next into -next

2021-01-06 Thread Tom Rini
On Tue, Jan 05, 2021 at 07:53:35PM -0700, Simon Glass wrote:

> Hi Tom,
> 
> This is for u-boot/next
> 
> Build here:
> 
> https://gitlab.denx.de/u-boot/custodians/u-boot-dm/-/pipelines/5761
> 
> 
> The following changes since commit c86b18074c9d40bfa63cda1068b6dfb810d4377d:
> 
>   Merge tag 'efi-next' of
> https://gitlab.denx.de/u-boot/custodians/u-boot-efi into next
> (2020-12-31 22:28:09 -0500)
> 
> are available in the Git repository at:
> 
>   git://git.denx.de/u-boot-dm.git tags/dm-pull-5jan21
> 
> for you to fetch changes up to 970349a96dac3ad46c33851b1a773bfe3f1d4b33:
> 
>   dtoc: Tidy up src_scan tests (2021-01-05 12:26:35 -0700)
> 

Applied to u-boot/next, thanks!

-- 
Tom


signature.asc
Description: PGP signature


Please pull u-boot-dm/next into -next

2021-01-05 Thread Simon Glass
Hi Tom,

This is for u-boot/next

Build here:

https://gitlab.denx.de/u-boot/custodians/u-boot-dm/-/pipelines/5761


The following changes since commit c86b18074c9d40bfa63cda1068b6dfb810d4377d:

  Merge tag 'efi-next' of
https://gitlab.denx.de/u-boot/custodians/u-boot-efi into next
(2020-12-31 22:28:09 -0500)

are available in the Git repository at:

  git://git.denx.de/u-boot-dm.git tags/dm-pull-5jan21

for you to fetch changes up to 970349a96dac3ad46c33851b1a773bfe3f1d4b33:

  dtoc: Tidy up src_scan tests (2021-01-05 12:26:35 -0700)


Driver model: make some udevice fields private
Driver model: Rename U_BOOT_DEVICE et al.
dtoc: Tidy up and add more tests
ns16550 code clean-up
x86 and sandbox minor fixes for of-platdata
dtoc prepration for adding build-time instantiation


Patrick Delaunay (1):
  sandbox: remove ram buffer file when U-Boot is loaded by SPL

Simon Glass (84):
  Makefile: Build a separate .dtb for TPL
  Makefile: Build SPL dtbs in the spl/ directory
  Makefile: Tidy up SPL dtb production
  Makefile: Use common args for dtoc
  serial: Update NS16550_t and struct NS16550
  serial: Rename ns16550 functions to lower case
  sandbox: Drop unnecessary test node
  spl: Drop bd_info in the data section
  dm: core: Support dm_dump_all() in SPL
  dm: core: Use 'uclass_driver' for the uclass linker_list
  dm: core: Only include simple-bus devicetree id when needed
  x86: apl: Drop support for !OF_PLATDATA_PARENT
  dm: core: Add function to access uclass priv
  dm: core: Add functions to set priv/plat
  dm: Use access methods for dev/uclass private data
  dm: core: Use access methods for dev/uclass private data
  dm: core: Rename the priv/plat members
  pinctrl: Drop post_bind() method when not needed
  sysreset: Use a shorter error with SPL
  arc: m68k: nds32: nios2: sh: xtensa: Add empty spl.h header
  timer: Use a shorter error in TPL
  test: Use a simple variable to record removed device
  test: Move some test drivers into their own file
  dtoc: Fix a few pylint warnings in dtb_platdata
  dtoc: Make _output_list a top-level function
  dtoc: Output the device in a separate function
  dtoc: Output the struct values in a separate function
  dtoc: Convert _drivers to a dict
  x86: apl: Use const for driver operations
  x86: Move call64 into its own section
  x86: coral: Move fsp-m settings to a subnode
  x86: apl: Update hostbridge to remove unwanted TPL code
  x86: apl: Reduce size for TPL
  x86: pinctrl: Drop unlikely error messages from TPL
  x86: tpl: Remove unwanted devicetree string
  x86: Fix header guard in asm/pmu.h
  sandbox: serial: Move priv into a header file
  sandbox: i2c: Move priv into a header file
  sandbox: Add a compatible string for spltest
  sandbox: Update dts files to reduce SPL size
  x86: apl: Move priv/plat structs to headers
  x86: Move priv/plat structs for intel_common to headers
  x86: spl: Move priv/plat structs to headers
  spi: Tidy up get/set of device node
  spi: Tweak a few strange SPI NOR features for of-platdata
  x86: apl: Use struct spi_nor instead of struct spi_flash
  dm: core: Move priv/plat structs for simple_bus to headers
  x86: sysreset: Move priv/plat structs to headers
  x86: apl: Adjust how the UART gets its platform data
  x86: coral: Remove unwanted nodes from SPL/TPL
  x86: Drop rtc from SPL
  dm: core: Split out alloc code into a new function
  dm: core: Rename sqq to seq_
  dm: core: Access device flags through functions
  dm: core: Rename device flags to indicate it is private
  dm: core: Rename dev_has_of_node() to dev_has_ofnode()
  dm: core: Use dev_has_ofnode() instead of dev_of_valid()
  dm: core: Access device ofnode through functions
  dm: core: Rename device node to indicate it is private
  dm: core: Split out scanning code to dm_scan()
  dm: core: Allow the uclass list to move
  dm: core: Add logging when lists_bind_fdt() fails
  dtoc: Tidy up pylint warnings in test
  dtoc: Use None to mean stdout
  dtoc: Test the stdout output
  dtoc: Allow providing a directory to write files to
  dtoc: Allow outputing to multiple files
  dtoc: Add an 'all' command
  Makefile: Invoke dtoc only once
  dm: Rename U_BOOT_DEVICE() to U_BOOT_DRVINFO()
  dm: Rename DM_GET_DEVICE() to DM_DRVINFO_GET()
  dm: Rename DM_GET_DRIVER() to DM_DRIVER_GET()
  dm: Rename U_BOOT_DRIVER_ALIAS to DM_DRIVER_ALIAS
  concurrencytest: Fix Python3 warning
  dtoc: Run tests using test_util
  dtoc: Add a header comment to each generated file
  dtoc: Rename dt-platdata.c to dt-plat.c
  dtoc: Add the method for each command to OutputFile
  

Re: Please pull u-boot-dm/next into -next

2020-12-24 Thread Tom Rini
On Wed, Dec 23, 2020 at 12:04:08PM -0700, Simon Glass wrote:

> Hi Tom,
> 
> This is for the -next branch,
> 
> Build here:
> 
> https://gitlab.denx.de/u-boot/custodians/u-boot-dm/-/pipelines/5664
> 
> 
> The following changes since commit 8351a29d2df18c92d8e365cfa848218c3859f3d2:
> 
>   Merge tag 'dm-pull-14dec20' of git://git.denx.de/u-boot-dm into next
> (2020-12-14 18:57:57 -0500)
> 
> are available in the Git repository at:
> 
>   git://git.denx.de/u-boot-dm.git tags/dm-next-23dec20
> 
> for you to fetch changes up to ec1add1e51affd4aacc308dc37439ea13dc1b70e:
> 
>   dm: core: Inline a few ofnode functions in SPL (2020-12-22 20:39:26 -0700)
> 

Applied to u-boot/next, thanks!

-- 
Tom


signature.asc
Description: PGP signature


Please pull u-boot-dm/next into -next

2020-12-23 Thread Simon Glass
Hi Tom,

This is for the -next branch,

Build here:

https://gitlab.denx.de/u-boot/custodians/u-boot-dm/-/pipelines/5664


The following changes since commit 8351a29d2df18c92d8e365cfa848218c3859f3d2:

  Merge tag 'dm-pull-14dec20' of git://git.denx.de/u-boot-dm into next
(2020-12-14 18:57:57 -0500)

are available in the Git repository at:

  git://git.denx.de/u-boot-dm.git tags/dm-next-23dec20

for you to fetch changes up to ec1add1e51affd4aacc308dc37439ea13dc1b70e:

  dm: core: Inline a few ofnode functions in SPL (2020-12-22 20:39:26 -0700)


dm: New sequence number implementation
SPI handling of bus with different-speed devices
patman supression of sign-offs


Aswath Govindraju (1):
  fdt: Use phandle to distinguish DT nodes with same name

Heinrich Schuchardt (2):
  sandbox: implement runtime system reset
  sandbox: implement invalidate_icache_all()

Hongwei Zhang (1):
  Common:fdt: Check for error return value

Niel Fourie (1):
  dm: spi: Fix spi_free_slave() freed memory write

Ovidiu Panait (6):
  sandbox: spi: Drop unused sandbox_spi_parse_spec function
  sandbox: test: Add a second SPI slave on sandbox_spi bus
  spi: sandbox_spi: Implement speed/mode setup
  test: spi: Add sandbox_spi_get_{speed, mode} interface
  spi: spi-uclass: Fix spi_claim_bus() speed/mode setup logic
  test: dm: spi: Add testcase for spi_claim_bus()

Patrick Delaunay (1):
  configs: sandbox: activate DEBUG_UART

Philipp Tomsich (2):
  patman: Add --no-signoff to suppress adding signoffs
  patman: Add project-default for 'gcc'

Simon Glass (30):
  linker_lists: Fix alignment issue
  dm: Avoid accessing seq directly
  dm: core: Update uclass_find_next_free_req_seq() args
  dm: core: Add a new sequence number for devices
  dm: test: Check all devices have a sequence numbers
  dm: core: Switch binding to use new sequence numbers
  dm: Fix return value in dev_read_alias_seq()
  dm: test: Drop assumptions of no sequence numbers
  octeon: Don't attempt to set the sequence number
  i2c: Update for new sequence numbers
  net: Update to use new sequence numbers
  dm: core: Allow manual sequence numbering
  pci: Update to use new sequence numbers
  spi: Update for new sequence numbers
  usb: ehci-mx6: Drop assignment of sequence number
  usb: Update for new sequence numbers
  x86: Drop unnecessary mp_init logic
  x86: Simplify acpi_device_infer_name()
  gpio: Update for new sequence numbers
  pinctrl: Update for new sequence numbers
  dm: Switch over to use new sequence number for dev_seq()
  dm: test: Add a test for DM_UC_FLAG_NO_AUTO_SEQ
  dm: Drop uclass_resolve_seq()
  dm: Drop the unused arg in uclass_find_device_by_seq()
  dm: core: Update uclass_find_next_free_req_seq() for new scheme
  cmd: Drop use of old sequence numbers in commands
  dm: core: Drop seq and req_seq
  dm: Update documentation for new sequence numbers
  buildman: Remove output binaries before building
  dm: core: Inline a few ofnode functions in SPL

 arch/Kconfig |  11 +++
 arch/arm/include/asm/mach-imx/mxc_i2c.h  |   2 +-
 arch/arm/mach-k3/am6_init.c  |   2 +-
 arch/arm/mach-k3/j721e_init.c|   2 +-
 arch/arm/mach-k3/sysfw-loader.c  |   2 +-
 arch/sandbox/cpu/Makefile|   2 +-
 arch/sandbox/cpu/cache.c |  23 ++
 arch/sandbox/cpu/start.c |  10 +++
 arch/sandbox/dts/test.dts|  25 +-
 arch/sandbox/include/asm/spi.h   |  10 ---
 arch/sandbox/include/asm/test.h  |  16 
 arch/x86/cpu/apollolake/cpu.c|   2 +-
 arch/x86/cpu/broadwell/cpu_full.c|   2 +-
 arch/x86/cpu/ivybridge/model_206ax.c |   2 +-
 arch/x86/cpu/mp_init.c   |  23 ++
 arch/x86/include/asm/mp.h|   2 +-
 board/sandbox/sandbox.c  |   4 -
 board/xilinx/versal/board.c  |  12 +--
 board/xilinx/zynqmp/zynqmp.c |  12 +--
 cmd/axi.c|   6 +-
 cmd/cpu.c|   2 +-
 cmd/i2c.c|   6 +-
 cmd/misc.c   |   2 +-
 cmd/osd.c|   6 +-
 cmd/pci.c|   7 +-
 cmd/pmic.c   |   4 +-
 cmd/remoteproc.c |   2 +-
 cmd/w1.c |   4 +-
 common/image-fdt.c   |   3 +
 configs/sandbox64_defconfig  |   1 +
 configs/sandbox_flattree_defconfig   |   1 +
 configs/sandbox_spl_defconfig|   1 +
 doc/api/linker_lists.rst |  59 +++
 doc/driver-model/design.rst

Re: Please pull u-boot-dm/next into -next

2020-12-17 Thread Tom Rini
On Wed, Dec 16, 2020 at 07:10:58PM -0700, Simon Glass wrote:
> Hi Tom,
> 
> On Tue, 15 Dec 2020 at 09:28, Simon Glass  wrote:
> >
> > Hi Tom,
> >
> > On Tue, 15 Dec 2020 at 07:06, Tom Rini  wrote:
> > >
> > > On Mon, Dec 14, 2020 at 08:50:53AM -0700, Simon Glass wrote:
> > >
> > > > Hi Tom,
> > > >
> > > > https://gitlab.denx.de/u-boot/custodians/u-boot-dm/-/pipelines/5567
> > > >
> > > >
> > > > Note this is for the 'next' tree.
> > > >
> > > > It includes the rename series which would be good to get in early.
> > > >
> > > > Regards,
> > > > Simon
> > > >
> > > > The following changes since commit 
> > > > ddaa94978583d07ec515e7226e397221d8cc44c8:
> > > >
> > > >   Merge tag 'efi-next' of
> > > > https://gitlab.denx.de/u-boot/custodians/u-boot-efi into next
> > > > (2020-12-10 13:54:33 -0500)
> > > >
> > > > are available in the Git repository at:
> > > >
> > > >   git://git.denx.de/u-boot-dm.git tags/dm-pull-14dec20
> > > >
> > > > for you to fetch changes up to b7bbd553de0d9752f919dfc616f560f6f2504c14:
> > > >
> > > >   checkpatch: Add warnings for unexpected struct names (2020-12-13
> > > > 16:51:09 -0700)
> > > >
> > >
> > > In general, this is very good and we see small reductions almost
> > > everywhere.  In a few cases however we see:
> > > 22: dm: core: Combine the flattree and livetree binding code
> > >aarch64: (for 1/1 boards) all -212.0 spl/u-boot-spl:all +40.0 
> > > spl/u-boot-spl:text +40.0 text -212.0
> > > px30-core-ctouch2-px30: all -212 spl/u-boot-spl:all +40 
> > > spl/u-boot-spl:text +40 text -212
> > >u-boot: add: 1/-1, grow: 1/-3 bytes: 124/-336 (-212)
> > >  function   old new   
> > > delta
> > >  ofnode_is_enabled-  92   
> > >   +92
> > >  dm_scan_fdt_node   196 228   
> > >   +32
> > >  dm_scan_fdt 52  32   
> > >   -20
> > >  dm_scan_fdt_dev104  20   
> > >   -84
> > >  dm_extended_scan_fdt   236 132   
> > >  -104
> > >  static.dm_scan_fdt_live128   -   
> > >  -128
> > >spl-u-boot-spl: add: 3/0, grow: 0/-4 bytes: 116/-76 (40)
> > >  function   old new   
> > > delta
> > >  ofnode_next_subnode  -  40   
> > >   +40
> > >  ofnode_first_subnode -  40   
> > >   +40
> > >  ofnode_is_enabled-  36   
> > >   +36
> > >  dm_scan_fdt 20  16   
> > >-4
> > >  dm_scan_fdt_dev 36  20   
> > >   -16
> > >  dm_scan_fdt_node   168 148   
> > >   -20
> > >  dm_extended_scan_fdt   168 132   
> > >   -36
> > >
> > > Is there anything we can do about that?  That said:
> 
> The problem here is that we are now using ofnode versions of those
> three functions. The only thing I can do is inline them. It does make
> things a little more complicated, but I think it is worth it. I'll
> send a patch.

OK, thanks!

-- 
Tom


signature.asc
Description: PGP signature


Re: Please pull u-boot-dm/next into -next

2020-12-16 Thread Simon Glass
Hi Tom,

On Tue, 15 Dec 2020 at 09:28, Simon Glass  wrote:
>
> Hi Tom,
>
> On Tue, 15 Dec 2020 at 07:06, Tom Rini  wrote:
> >
> > On Mon, Dec 14, 2020 at 08:50:53AM -0700, Simon Glass wrote:
> >
> > > Hi Tom,
> > >
> > > https://gitlab.denx.de/u-boot/custodians/u-boot-dm/-/pipelines/5567
> > >
> > >
> > > Note this is for the 'next' tree.
> > >
> > > It includes the rename series which would be good to get in early.
> > >
> > > Regards,
> > > Simon
> > >
> > > The following changes since commit 
> > > ddaa94978583d07ec515e7226e397221d8cc44c8:
> > >
> > >   Merge tag 'efi-next' of
> > > https://gitlab.denx.de/u-boot/custodians/u-boot-efi into next
> > > (2020-12-10 13:54:33 -0500)
> > >
> > > are available in the Git repository at:
> > >
> > >   git://git.denx.de/u-boot-dm.git tags/dm-pull-14dec20
> > >
> > > for you to fetch changes up to b7bbd553de0d9752f919dfc616f560f6f2504c14:
> > >
> > >   checkpatch: Add warnings for unexpected struct names (2020-12-13
> > > 16:51:09 -0700)
> > >
> >
> > In general, this is very good and we see small reductions almost
> > everywhere.  In a few cases however we see:
> > 22: dm: core: Combine the flattree and livetree binding code
> >aarch64: (for 1/1 boards) all -212.0 spl/u-boot-spl:all +40.0 
> > spl/u-boot-spl:text +40.0 text -212.0
> > px30-core-ctouch2-px30: all -212 spl/u-boot-spl:all +40 
> > spl/u-boot-spl:text +40 text -212
> >u-boot: add: 1/-1, grow: 1/-3 bytes: 124/-336 (-212)
> >  function   old new   
> > delta
> >  ofnode_is_enabled-  92 
> > +92
> >  dm_scan_fdt_node   196 228 
> > +32
> >  dm_scan_fdt 52  32 
> > -20
> >  dm_scan_fdt_dev104  20 
> > -84
> >  dm_extended_scan_fdt   236 132
> > -104
> >  static.dm_scan_fdt_live128   -
> > -128
> >spl-u-boot-spl: add: 3/0, grow: 0/-4 bytes: 116/-76 (40)
> >  function   old new   
> > delta
> >  ofnode_next_subnode  -  40 
> > +40
> >  ofnode_first_subnode -  40 
> > +40
> >  ofnode_is_enabled-  36 
> > +36
> >  dm_scan_fdt 20  16 
> >  -4
> >  dm_scan_fdt_dev 36  20 
> > -16
> >  dm_scan_fdt_node   168 148 
> > -20
> >  dm_extended_scan_fdt   168 132 
> > -36
> >
> > Is there anything we can do about that?  That said:

The problem here is that we are now using ofnode versions of those
three functions. The only thing I can do is inline them. It does make
things a little more complicated, but I think it is worth it. I'll
send a patch.


> >
> > Applied to u-boot/next, thanks!
>
> I'll take a look. I may have missed a condition.
>
> BTW I am hoping to get a series out around EOM with the next evolution
> of of-platdata. It reduces the SPL code size by a decent amount.

Regards,
Simon


Re: Please pull u-boot-dm/next into -next

2020-12-15 Thread Simon Glass
Hi Tom,

On Tue, 15 Dec 2020 at 07:06, Tom Rini  wrote:
>
> On Mon, Dec 14, 2020 at 08:50:53AM -0700, Simon Glass wrote:
>
> > Hi Tom,
> >
> > https://gitlab.denx.de/u-boot/custodians/u-boot-dm/-/pipelines/5567
> >
> >
> > Note this is for the 'next' tree.
> >
> > It includes the rename series which would be good to get in early.
> >
> > Regards,
> > Simon
> >
> > The following changes since commit ddaa94978583d07ec515e7226e397221d8cc44c8:
> >
> >   Merge tag 'efi-next' of
> > https://gitlab.denx.de/u-boot/custodians/u-boot-efi into next
> > (2020-12-10 13:54:33 -0500)
> >
> > are available in the Git repository at:
> >
> >   git://git.denx.de/u-boot-dm.git tags/dm-pull-14dec20
> >
> > for you to fetch changes up to b7bbd553de0d9752f919dfc616f560f6f2504c14:
> >
> >   checkpatch: Add warnings for unexpected struct names (2020-12-13
> > 16:51:09 -0700)
> >
>
> In general, this is very good and we see small reductions almost
> everywhere.  In a few cases however we see:
> 22: dm: core: Combine the flattree and livetree binding code
>aarch64: (for 1/1 boards) all -212.0 spl/u-boot-spl:all +40.0 
> spl/u-boot-spl:text +40.0 text -212.0
> px30-core-ctouch2-px30: all -212 spl/u-boot-spl:all +40 
> spl/u-boot-spl:text +40 text -212
>u-boot: add: 1/-1, grow: 1/-3 bytes: 124/-336 (-212)
>  function   old new   
> delta
>  ofnode_is_enabled-  92 
> +92
>  dm_scan_fdt_node   196 228 
> +32
>  dm_scan_fdt 52  32 
> -20
>  dm_scan_fdt_dev104  20 
> -84
>  dm_extended_scan_fdt   236 132
> -104
>  static.dm_scan_fdt_live128   -
> -128
>spl-u-boot-spl: add: 3/0, grow: 0/-4 bytes: 116/-76 (40)
>  function   old new   
> delta
>  ofnode_next_subnode  -  40 
> +40
>  ofnode_first_subnode -  40 
> +40
>  ofnode_is_enabled-  36 
> +36
>  dm_scan_fdt 20  16  
> -4
>  dm_scan_fdt_dev 36  20 
> -16
>  dm_scan_fdt_node   168 148 
> -20
>  dm_extended_scan_fdt   168 132 
> -36
>
> Is there anything we can do about that?  That said:
>
> Applied to u-boot/next, thanks!

I'll take a look. I may have missed a condition.

BTW I am hoping to get a series out around EOM with the next evolution
of of-platdata. It reduces the SPL code size by a decent amount.

Regards,
Simon


Re: Please pull u-boot-dm/next into -next

2020-12-15 Thread Tom Rini
On Mon, Dec 14, 2020 at 08:50:53AM -0700, Simon Glass wrote:

> Hi Tom,
> 
> https://gitlab.denx.de/u-boot/custodians/u-boot-dm/-/pipelines/5567
> 
> 
> Note this is for the 'next' tree.
> 
> It includes the rename series which would be good to get in early.
> 
> Regards,
> Simon
> 
> The following changes since commit ddaa94978583d07ec515e7226e397221d8cc44c8:
> 
>   Merge tag 'efi-next' of
> https://gitlab.denx.de/u-boot/custodians/u-boot-efi into next
> (2020-12-10 13:54:33 -0500)
> 
> are available in the Git repository at:
> 
>   git://git.denx.de/u-boot-dm.git tags/dm-pull-14dec20
> 
> for you to fetch changes up to b7bbd553de0d9752f919dfc616f560f6f2504c14:
> 
>   checkpatch: Add warnings for unexpected struct names (2020-12-13
> 16:51:09 -0700)
> 

In general, this is very good and we see small reductions almost
everywhere.  In a few cases however we see:
22: dm: core: Combine the flattree and livetree binding code
   aarch64: (for 1/1 boards) all -212.0 spl/u-boot-spl:all +40.0 
spl/u-boot-spl:text +40.0 text -212.0
px30-core-ctouch2-px30: all -212 spl/u-boot-spl:all +40 
spl/u-boot-spl:text +40 text -212
   u-boot: add: 1/-1, grow: 1/-3 bytes: 124/-336 (-212)
 function   old new   delta
 ofnode_is_enabled-  92 +92
 dm_scan_fdt_node   196 228 +32
 dm_scan_fdt 52  32 -20
 dm_scan_fdt_dev104  20 -84
 dm_extended_scan_fdt   236 132-104
 static.dm_scan_fdt_live128   --128
   spl-u-boot-spl: add: 3/0, grow: 0/-4 bytes: 116/-76 (40)
 function   old new   delta
 ofnode_next_subnode  -  40 +40
 ofnode_first_subnode -  40 +40
 ofnode_is_enabled-  36 +36
 dm_scan_fdt 20  16  -4
 dm_scan_fdt_dev 36  20 -16
 dm_scan_fdt_node   168 148 -20
 dm_extended_scan_fdt   168 132 -36

Is there anything we can do about that?  That said:

Applied to u-boot/next, thanks!

-- 
Tom


signature.asc
Description: PGP signature


Please pull u-boot-dm/next into -next

2020-12-14 Thread Simon Glass
Hi Tom,

https://gitlab.denx.de/u-boot/custodians/u-boot-dm/-/pipelines/5567


Note this is for the 'next' tree.

It includes the rename series which would be good to get in early.

Regards,
Simon

The following changes since commit ddaa94978583d07ec515e7226e397221d8cc44c8:

  Merge tag 'efi-next' of
https://gitlab.denx.de/u-boot/custodians/u-boot-efi into next
(2020-12-10 13:54:33 -0500)

are available in the Git repository at:

  git://git.denx.de/u-boot-dm.git tags/dm-pull-14dec20

for you to fetch changes up to b7bbd553de0d9752f919dfc616f560f6f2504c14:

  checkpatch: Add warnings for unexpected struct names (2020-12-13
16:51:09 -0700)


Driver model tidy-up for livetree
Driver model big rename for consistency
Python 3 clean-ups for patman
Update sandbox serial driver to use membuff


Heinrich Schuchardt (4):
  sandbox: add handler for exceptions
  cmd: sandbox: implement exception command
  efi_selftest: implement exception test for sandbox
  test: unit test for exception command

Simon Glass (28):
  fdt: Use an Enum for the data type
  patman: Drop unicode helper functions
  patman: Drop tools.ToByte()
  patman: Drop tools.ToChar() and ToChars()
  dtoc: Tidy up Python style in dtb_platdata
  serial: sandbox: Drop unnecessary #ifdefs
  sandbox: serial: Convert to livetree
  sandbox: serial: Update to use membuff
  dm: core: Rename device_bind() to device_bind_offset()
  dm: core: Rename device_bind_ofnode() to device_bind()
  dm: core: Add a livetree function to check node status
  dm: Remove uses of device_bind_offset()
  dm: Drop uses of dev_set_of_offset()
  dm: core: Drop dev_set_of_offset()
  dm: core: Drop device_bind_offset()
  dm: core: Add an ofnode function to get the devicetree root
  dm: core: Combine the flattree and livetree binding code
  dm: core: Drop unused parameter from dm_scan_fdt()
  dm: core: Drop unused parameter from dm_extended_scan_fdt()
  dtoc: Tidy up more Python style in dtb_platdata
  dm: treewide: Rename auto_alloc_size members to be shorter
  dm: treewide: Rename 'platdata' variables to just 'plat'
  dm: Rename 'platdata_size' to 'plat_size'
  dm: treewide: Rename dev_get_platdata() to dev_get_plat()
  dm: treewide: Rename ofdata_to_platdata() to of_to_plat()
  dm: treewide: Update 'auto' declarations to be on one line
  dm: treewide: Rename ..._platdata variables to just ..._plat
  checkpatch: Add warnings for unexpected struct names

 arch/Kconfig  |   1 +
 arch/arm/include/asm/arch-hi6220/gpio.h   |   2 +-
 arch/arm/include/asm/arch-imx8/power-domain.h |   2 +-
 arch/arm/include/asm/arch-imx8m/power-domain.h|   2 +-
 arch/arm/include/asm/arch-vf610/gpio.h|   2 +-
 arch/arm/include/asm/omap_gpio.h  |   2 +-
 arch/arm/include/asm/omap_i2c.h   |   2 +-
 arch/arm/include/asm/omap_musb.h  |   2 +-
 arch/arm/mach-at91/arm926ejs/at91sam9260_devices.c|   2 +-
 arch/arm/mach-at91/arm926ejs/at91sam9m10g45_devices.c |   2 +-
 arch/arm/mach-at91/include/mach/atmel_serial.h|   2 +-
 arch/arm/mach-at91/include/mach/gpio.h|   2 +-
 arch/arm/mach-bcm283x/include/mach/gpio.h |   4 +-
 arch/arm/mach-imx/mx6/soc.c   |   2 +-
 arch/arm/mach-imx/mx7/soc.c   |   2 +-
 arch/arm/mach-ipq40xx/clock-ipq4019.c |   2 +-
 arch/arm/mach-ipq40xx/pinctrl-snapdragon.c|   2 +-
 arch/arm/mach-lpc32xx/devices.c   |   4 +-
 arch/arm/mach-nexell/include/mach/display.h   |   4 +-
 arch/arm/mach-omap2/am33xx/board.c|  12 +--
 arch/arm/mach-omap2/omap3/board.c |   2 +-
 arch/arm/mach-rockchip/px30/syscon_px30.c |   8 +-
 arch/arm/mach-rockchip/rk3188/syscon_rk3188.c |   8 +-
 arch/arm/mach-rockchip/rk3288/syscon_rk3288.c |  10 +--
 arch/arm/mach-rockchip/rk3368/syscon_rk3368.c |  10 +--
 arch/arm/mach-rockchip/rk3399/syscon_rk3399.c |  12 +--
 arch/arm/mach-rockchip/spl-boot-order.c   |   4 +-
 arch/arm/mach-snapdragon/clock-snapdragon.c   |   2 +-
 arch/arm/mach-snapdragon/pinctrl-snapdragon.c |   2 +-
 arch/arm/mach-stm32mp/bsec.c  |  36 
 arch/arm/mach-stm32mp/pwr_regulator.c |  18 ++--
 arch/arm/mach-tegra/board.c   |   2 +-
 arch/riscv/include/asm/arch-fu540/gpio.h  |   2 +-
 arch/riscv/include/asm/arch-generic/gpio.h|   2 +-
 arch/sandbox/Kconfig  |   9 ++
 arch/sandbox/cpu/os.c |  40 +
 arch/

Re: Please pull u-boot-dm/next into 'next'

2020-09-23 Thread Tom Rini
On Tue, Sep 22, 2020 at 02:58:48PM -0600, Simon Glass wrote:

> Hi Tom,
> 
> This is for upstream/next
> 
> Build here:
> 
> https://gitlab.denx.de/u-boot/custodians/u-boot-dm/-/pipelines/4750
> 
> 
> The following changes since commit 2512b3b88ba6b193c3cada7e29e386613e8f9a6b:
> 
>   Merge branch '2020-09-14-generic-phy-error-trace' into next (2020-09-21
> 16:44:16 -0400)
> 
> are available in the Git repository at:
> 
>   git://git.denx.de/u-boot-dm.git tags/dm-pull-22sep20
> 
> for you to fetch changes up to e5b35f706d13c8c0fffcf7b2af9c6df4f4190c5d:
> 
>   log: mute messages generated by log drivers (2020-09-22 12:54:13 -0600)
> 

Applied to u-boot/next, thanks!

-- 
Tom


signature.asc
Description: PGP signature


Please pull u-boot-dm/next into 'next'

2020-09-22 Thread Simon Glass
Hi Tom,

This is for upstream/next

Build here:

https://gitlab.denx.de/u-boot/custodians/u-boot-dm/-/pipelines/4750


The following changes since commit 2512b3b88ba6b193c3cada7e29e386613e8f9a6b:

  Merge branch '2020-09-14-generic-phy-error-trace' into next (2020-09-21
16:44:16 -0400)

are available in the Git repository at:

  git://git.denx.de/u-boot-dm.git tags/dm-pull-22sep20

for you to fetch changes up to e5b35f706d13c8c0fffcf7b2af9c6df4f4190c5d:

  log: mute messages generated by log drivers (2020-09-22 12:54:13 -0600)


binman enhancements for FIT
sunxi64 conversion to use binman
New 'no-map' property for reserved memory


Alper Nebi Yasak (8):
  binman: Ignore hash*, signature* nodes in sections
  binman: Respect pad-before property of section subentries
  binman: Build FIT image subentries with the section etype
  buildman: Use git worktrees instead of git clones when possible
  binman: Support cross-compiling test files to x86
  binman: Use target-specific tools when cross-compiling
  binman: Allow resolving host-specific tools from env vars
  binman: Document how CROSS_COMPILE, CC, HOSTCC etc. are used in README

Etienne Carriere (2):
  fdtdec: optionally add property no-map to created reserved memory node
  optee: add property no-map to secure reserved memory

Heinrich Schuchardt (2):
  dm: syscon: typo alerady
  log: mute messages generated by log drivers

Patrice Chotard (1):
  test: fdtdec: Add test for new no-map fdtdec_add_reserved_memory()
parameter

Patrick Delaunay (1):
  dm: add cells_count parameter in live DT APIs
of_parse_phandle_with_args

Simon Glass (14):
  binman: Use pkg_resources to find resources
  tools: Drop unnecessary use of __file__
  binman: Allow entry args to be required
  binman: Fix up a few missing comments
  libfdt: Detected out-of-space with fdt_finish()
  binman: Move 'external' support into base class
  binman: Add support for ATF BL31
  binman: Support generating FITs with multiple dtbs
  Makefile: Support missing external blobs always
  sunxi: Convert 64-bit boards to use binman
  sunxi: Drop the FIT-generator script
  binman: Allow selecting default FIT configuration
  binman: Support help messages for missing blobs
  binman: sunxi: Add help message for missing sunxi ATF BL31

Walter Lozano (1):
  core: improve of_match_ptr with OF_PLATDATA

 Kconfig |   3 +-
 Makefile|  23 +---
 arch/arm/dts/sunxi-u-boot.dtsi  |  62 -
 arch/riscv/lib/fdt_fixup.c  |   2 +-
 board/sunxi/mksunxi_fit_atf.sh  |  87 
 common/log.c|  13 +-
 common/log_syslog.c |   8 --
 drivers/core/of_access.c|   7 +-
 drivers/core/ofnode.c   |   3 +-
 drivers/core/syscon-uclass.c|  10 +-
 include/dm/device.h |   2 +-
 include/dm/of_access.h  |   4 +-
 include/fdtdec.h|   5 +-
 lib/fdtdec.c|  10 +-
 lib/optee/optee.c   |   2 +-
 scripts/dtc/pylibfdt/libfdt.i_shipped   |   3 +-
 test/dm/fdtdec.c|   9 +-
 tools/binman/README |  30 +
 tools/binman/README.entries |  73 ++-
 tools/binman/control.py |  80 +++-
 tools/binman/elf.py |   6 +-
 tools/binman/elf_test.py|   4 +-
 tools/binman/entry.py   |  25 +++-
 tools/binman/etype/atf_bl31.py  |  24 
 tools/binman/etype/blob.py  |   8 +-
 tools/binman/etype/blob_ext.py  |  11 --
 tools/binman/etype/blob_named_by_arg.py |  10 +-
 tools/binman/etype/cros_ec_rw.py|   3 +-
 tools/binman/etype/fit.py   | 176
+
 tools/binman/etype/section.py   |  18 +--
 tools/binman/ftest.py   | 247
+--
 tools/binman/missing-blob-help  |  15 +++
 tools/binman/test/165_section_ignore_hash_signature.dts |  40 ++
 tools/binman/test/166_pad_in_sections.dts   |  26 
 tools/binman/test/167_fit_image_subentry_alignment.dts  |  57 ++