)]}'
{
  "commit": "b6a3d598f3f7e2bf9dba7290a5f07f44a22bc4cf",
  "tree": "934a0d2d8094f4749eaf178d8b43c20c7f27c3b0",
  "parents": [
    "9a4c3f1afa92452cc09e9b10696634357f4aba84"
  ],
  "author": {
    "name": "Carlo Caione",
    "email": "ccaione@baylibre.com",
    "time": "Fri Jun 10 12:06:46 2022 +0200"
  },
  "committer": {
    "name": "Carles Cufí",
    "email": "carles.cufi@nordicsemi.no",
    "time": "Thu Jun 16 11:26:10 2022 +0200"
  },
  "message": "device_mmio: Introduce DEVICE_MMIO_NAMED_ROM_INIT_BY_NAME\n\nCurrently the device MMIO APIs is only able to map single DT-defined\nregions and also the _NAMED variant is assuming that each DT-defined\ndevice has only one single region to map.\n\nThis is a limitation and a problem when in the DT are defined devices\nwith multiple regions that need to be mapped.\n\nThis patch is trying to overcome this limitation by introducing the\nDEVICE_MMIO_NAMED_ROM_INIT_BY_NAME macro that leveraged the \u0027reg-names\u0027\nDT property to map multiple regions defined by a single device.\n\nSo for example in the DT we can have a device like:\n\n  driver@c4000000 {\n    reg \u003d \u003c0xc4000000 0x1000\u003e, \u003c0xc4001000 0x1000\u003e;\n    reg-names \u003d \"region0\", \"region1\";\n  };\n\nand then we can use DEVICE_MMIO_NAMED_ROM_INIT_BY_NAME doing:\n\n  struct driver_config config \u003d {\n    DEVICE_MMIO_NAMED_ROM_INIT_BY_NAME(region0, DT_DRV_INST(0)),\n    DEVICE_MMIO_NAMED_ROM_INIT_BY_NAME(region1, DT_DRV_INST(0)),\n  };\n\nSigned-off-by: Carlo Caione \u003cccaione@baylibre.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "1424372bd2a5d22a522d5bb13937340352b07682",
      "old_mode": 33188,
      "old_path": "doc/kernel/drivers/index.rst",
      "new_id": "977328e78f19790bfbecedb3148ce827d9e6eab5",
      "new_mode": 33188,
      "new_path": "doc/kernel/drivers/index.rst"
    },
    {
      "type": "modify",
      "old_id": "5052611e256b246db4c2da750aae4a60d22df8ea",
      "old_mode": 33188,
      "old_path": "include/zephyr/sys/device_mmio.h",
      "new_id": "1849f4a6fe0a9c5b0c7d417062ea945363468b80",
      "new_mode": 33188,
      "new_path": "include/zephyr/sys/device_mmio.h"
    },
    {
      "type": "modify",
      "old_id": "5fb05cee28d541b45786207e0006b4a541cb3cc5",
      "old_mode": 33188,
      "old_path": "tests/kernel/device/app.overlay",
      "new_id": "aae8873f6b8da08167c4c4287ae14dae48e9fb06",
      "new_mode": 33188,
      "new_path": "tests/kernel/device/app.overlay"
    },
    {
      "type": "modify",
      "old_id": "d487ea5e64b9980b4633f2d4e0b6e95f16214c04",
      "old_mode": 33188,
      "old_path": "tests/kernel/device/src/main.c",
      "new_id": "0b17ad982ec75b4596e5032a22bbfb66056c0f48",
      "new_mode": 33188,
      "new_path": "tests/kernel/device/src/main.c"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "c54a1a4a740f6f0f9c96b2cd09e0a25eee0e35b3",
      "new_mode": 33188,
      "new_path": "tests/kernel/device/src/mmio_multireg.c"
    }
  ]
}
