mbox series

[v2,0/3] Add Renesas SoC identification driver support

Message ID 20201102150959.4793-1-biju.das.jz@bp.renesas.com
Headers show
Series Add Renesas SoC identification driver support | expand

Message

Biju Das Nov. 2, 2020, 3:09 p.m. UTC
This patch series aims to support Renesas SoC identification driver.

Added a helper function of_match_node to find the matching of_match
structure. This helper function can be used to replace the following
code in u-boot [1] and [2]
[1] https://elixir.bootlin.com/u-boot/latest/source/drivers/serial/serial_uniphier.c#L129
[2] https://elixir.bootlin.com/u-boot/latest/source/drivers/usb/phy/rockchip_usb2_phy.c#L77

Also added soc_id attribute support in UCLASS_SOC which is required for Renesas SoC
identification driver similar to mainline linux.

Biju Das (3):
  dm: core: Add of_match_node helper function
  dm: soc: Add SoC id for attribute matching
  dm: soc: SoC identification driver for Renesas SoC's

 drivers/core/device.c     |  21 ++++
 drivers/soc/Kconfig       |   7 ++
 drivers/soc/Makefile      |   1 +
 drivers/soc/soc-uclass.c  |  19 ++-
 drivers/soc/soc_renesas.c | 239 ++++++++++++++++++++++++++++++++++++++
 drivers/soc/soc_sandbox.c |   8 ++
 include/dm/device.h       |  13 +++
 include/soc.h             |  39 ++++++-
 test/dm/soc.c             |   8 ++
 9 files changed, 348 insertions(+), 7 deletions(-)
 create mode 100644 drivers/soc/soc_renesas.c