Skip to content

dm: Preparation for enhanced of-platdata (part B)

Simon Glass u-boot 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest posting 2/221 patches 0 repliesNew
  2. v2 posting 1/218 patches 0 repliesSuperseded
  3. v126 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Rename DriverInfo to Driver
- Add a test for the new code and a comment for Driver

Patches in v2 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/21pinctrl: Drop post_bind() method when not neededdrivers/pinctrl/pinctrl-uclass.c+3 -10 replies
1/21pinctrl: Drop post_bind() method when not needed+0 -00 replies
2/21sysreset: Use a shorter error with SPLdrivers/sysreset/sysreset-uclass.c+8 -40 replies
2/21sysreset: Use a shorter error with SPL+0 -00 replies
3/21arc: m68k: nds32: nios2: sh: xtensa: Add empty spl.h headerarch/arc/include/asm/spl.h arch/m68k/include/asm/spl.h arch/nds32/include/asm/spl.h +3 more+0 -00 replies
4/21timer: Use a shorter error in TPLlib/time.c+8 -20 replies
4/21timer: Use a shorter error in TPL+0 -00 replies
5/21test: Use a simple variable to record removed deviceinclude/dm/test.h test/dm/bus.c+6 -100 replies
5/21test: Use a simple variable to record removed device+0 -00 replies
6/21test: Move some test drivers into their own filedrivers/misc/Kconfig drivers/misc/Makefile drivers/misc/test_drv.c +4 more+271 -2210 replies
6/21test: Move some test drivers into their own file+0 -00 replies
7/21dtoc: Fix a few pylint warnings in dtb_platdatatools/dtoc/dtb_platdata.py+16 -150 replies
7/21dtoc: Fix a few pylint warnings in dtb_platdata+0 -00 replies
8/21dtoc: Make _output_list a top-level functiontools/dtoc/dtb_platdata.py+40 -400 replies
8/21dtoc: Make _output_list a top-level function+0 -00 replies
9/21dtoc: Output the device in a separate functiontools/dtoc/dtb_platdata.py+22 -110 replies
9/21dtoc: Output the device in a separate function+0 -00 replies
10/21dtoc: Output the struct values in a separate functiontools/dtoc/dtb_platdata.py+34 -160 replies
10/21dtoc: Output the struct values in a separate function+0 -00 replies
11/21dtoc: Convert _drivers to a dicttools/dtoc/dtb_platdata.py tools/dtoc/test_dtoc.py+32 -40 replies
11/21dtoc: Convert _drivers to a dict+0 -00 replies
12/21dtoc: Scan drivers for available informationtools/dtoc/dtb_platdata.py tools/dtoc/test_dtoc.py+258 -140 replies
13/21dtoc: Allow use of the of_match_ptr() macrotools/dtoc/dtb_platdata.py tools/dtoc/test_dtoc.py+23 -20 replies
14/21x86: apl: Use const for driver operationsarch/x86/cpu/apollolake/pmc.c arch/x86/cpu/intel_common/p2sb.c+2 -20 replies
14/21x86: apl: Use const for driver operations+0 -00 replies
15/21x86: Move call64 into its own sectionarch/x86/cpu/i386/call64.S+1 -00 replies
15/21x86: Move call64 into its own section+0 -00 replies
16/21x86: coral: Move fsp-m settings to a subnodearch/x86/cpu/apollolake/fsp_m.c arch/x86/dts/chromebook_coral.dts+9 -10 replies
16/21x86: coral: Move fsp-m settings to a subnode+0 -00 replies
17/21x86: apl: Update hostbridge to remove unwanted TPL codearch/x86/cpu/apollolake/hostbridge.c+9 -50 replies
17/21x86: apl: Update hostbridge to remove unwanted TPL code+0 -00 replies
18/21x86: apl: Reduce size for TPLarch/x86/cpu/apollolake/lpc.c arch/x86/cpu/apollolake/pch.c arch/x86/cpu/apollolake/pmc.c +10 more+44 -160 replies
18/21x86: apl: Reduce size for TPL+0 -00 replies
19/21x86: pinctrl: Drop unlikely error messages from TPLdrivers/pinctrl/intel/pinctrl.c+8 -30 replies
19/21x86: pinctrl: Drop unlikely error messages from TPL+0 -00 replies
20/21x86: tpl: Remove unwanted devicetree stringarch/x86/lib/tpl.c+3 -10 replies
20/21x86: tpl: Remove unwanted devicetree string+0 -00 replies
21/21x86: Fix header guard in asm/pmu.harch/x86/include/asm/pmu.h+3 -30 replies
21/21x86: Fix header guard in asm/pmu.h+0 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 00/21] dm: Preparation for enhanced of-platdata (part B)

This series includes some refactoring of the dtoc tool and some changes to a few drivers (particularly on x86) to reduce TPL size.

It is available at u-boot-dm/prep-working

Changes in v2:
- Rename DriverInfo to Driver
- Add a test for the new code and a comment for Driver

Simon Glass (21):
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
dtoc: Scan drivers for available information
dtoc: Allow use of the of_match_ptr() macro
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

 arch/arc/include/asm/spl.h               |   0
 arch/m68k/include/asm/spl.h              |   0
 arch/nds32/include/asm/spl.h             |   0
 arch/nios2/include/asm/spl.h             |   0
 arch/sh/include/asm/spl.h                |   0
 arch/x86/cpu/apollolake/fsp_m.c          |   5 +-
 arch/x86/cpu/apollolake/hostbridge.c     |  14 +-
 arch/x86/cpu/apollolake/lpc.c            |  13 +-
 arch/x86/cpu/apollolake/pch.c            |   4 +-
 arch/x86/cpu/apollolake/pmc.c            |   6 +-
 arch/x86/cpu/apollolake/uart.c           |   4 +-
 arch/x86/cpu/i386/call64.S               |   1 +
 arch/x86/cpu/intel_common/Makefile       |   2 +-
 arch/x86/cpu/intel_common/itss.c         |   4 +-
 arch/x86/cpu/intel_common/p2sb.c         |   6 +-
 arch/x86/cpu/turbo.c                     |   5 +
 arch/x86/dts/chromebook_coral.dts        |   5 +
 arch/x86/include/asm/pmu.h               |   6 +-
 arch/x86/lib/tpl.c                       |   4 +-
 arch/xtensa/include/asm/spl.h            |   0
 board/google/chromebook_coral/coral.c    |   4 +-
 drivers/gpio/intel_gpio.c                |   4 +-
 drivers/misc/Kconfig                     |   9 +
 drivers/misc/Makefile                    |   1 +
 drivers/misc/test_drv.c                  | 230 ++++++++++++++
 drivers/pinctrl/intel/pinctrl.c          |  11 +-
 drivers/pinctrl/intel/pinctrl_apl.c      |   4 +-
 drivers/pinctrl/pinctrl-uclass.c         |   4 +-
 drivers/power/acpi_pmc/acpi-pmc-uclass.c |   4 +-
 drivers/sysreset/sysreset-uclass.c       |  12 +-
 drivers/timer/tsc_timer.c                |   4 +-
 include/dm/test.h                        |  20 +-
 include/test/test.h                      |   9 +
 lib/time.c                               |  10 +-
 test/dm/bus.c                            | 107 +------
 test/dm/test-fdt.c                       | 120 --------
 tools/dtoc/dtb_platdata.py               | 370 +++++++++++++++++------
 tools/dtoc/test_dtoc.py                  | 123 ++++++++
 38 files changed, 777 insertions(+), 348 deletions(-)
 create mode 100644 arch/arc/include/asm/spl.h
 create mode 100644 arch/m68k/include/asm/spl.h
 create mode 100644 arch/nds32/include/asm/spl.h
 create mode 100644 arch/nios2/include/asm/spl.h
 create mode 100644 arch/sh/include/asm/spl.h
 create mode 100644 arch/xtensa/include/asm/spl.h
 create mode 100644 drivers/misc/test_drv.c
Signature · 1 line
2.29.2.729.g45daf8777d-goog