[U-Boot] [PATCH v2 0/4] Add Linux-compatible syscon_to_regmap API

Masahiro Yamada yamada.masahiro at socionext.com
Thu Apr 19 03:14:00 UTC 2018


The current syscon in U-Boot works differently from Linux.
Therefore, DT files imported from Linux do not work for U-Boot.

The current usage of syscon in U-Boot should be discouraged because
using different DT-binding across projects is a significant problem.


Masahiro Yamada (4):
  regmap: clean up regmap allocation
  dm: ofnode: add ofnode_device_is_compatible() helper
  regmap: change regmap_init_mem() to take ofnode instead udevice
  syscon: add Linux-compatible syscon API

 arch/arm/mach-aspeed/ast2500/sdram_ast2500.c |  2 +-
 drivers/core/device.c                        |  8 +---
 drivers/core/ofnode.c                        | 11 +++++
 drivers/core/regmap.c                        | 42 ++++++------------
 drivers/core/syscon-uclass.c                 | 66 +++++++++++++++++++++++++++-
 drivers/phy/meson-gxl-usb2.c                 |  2 +-
 drivers/phy/meson-gxl-usb3.c                 |  2 +-
 drivers/phy/sti_usb_phy.c                    |  4 +-
 drivers/pinctrl/pinctrl-sti.c                |  4 +-
 drivers/ram/rockchip/dmc-rk3368.c            |  2 +-
 drivers/ram/rockchip/sdram_rk3188.c          |  2 +-
 drivers/ram/rockchip/sdram_rk322x.c          |  2 +-
 drivers/ram/rockchip/sdram_rk3288.c          |  2 +-
 drivers/ram/rockchip/sdram_rk3399.c          |  2 +-
 drivers/ram/stm32mp1/stm32mp1_ram.c          |  2 +-
 drivers/reset/reset-meson.c                  |  2 +-
 drivers/reset/sti-reset.c                    |  2 +-
 drivers/sysreset/sysreset_sti.c              |  2 +-
 drivers/usb/host/dwc3-sti-glue.c             |  2 +-
 include/dm/ofnode.h                          | 11 +++++
 include/regmap.h                             | 11 ++---
 include/syscon.h                             |  8 ++++
 test/dm/regmap.c                             | 13 +++---
 23 files changed, 136 insertions(+), 68 deletions(-)

-- 
2.7.4



More information about the U-Boot mailing list