get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/2225539/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2225539,
    "url": "http://patchwork.ozlabs.org/api/patches/2225539/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260421065226.3907745-5-gaurav.sharma_7@nxp.com/",
    "project": {
        "id": 14,
        "url": "http://patchwork.ozlabs.org/api/projects/14/?format=api",
        "name": "QEMU Development",
        "link_name": "qemu-devel",
        "list_id": "qemu-devel.nongnu.org",
        "list_email": "qemu-devel@nongnu.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260421065226.3907745-5-gaurav.sharma_7@nxp.com>",
    "list_archive_url": null,
    "date": "2026-04-21T06:52:15",
    "name": "[PATCHv7,04/15] hw/arm/fsl-imx8mm: Add Clock Control Module IP to iMX8MM",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "cadbf6e0ae993693a554b122330a1682ede23a01",
    "submitter": {
        "id": 92057,
        "url": "http://patchwork.ozlabs.org/api/people/92057/?format=api",
        "name": "Gaurav Sharma",
        "email": "gaurav.sharma_7@nxp.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260421065226.3907745-5-gaurav.sharma_7@nxp.com/mbox/",
    "series": [
        {
            "id": 500745,
            "url": "http://patchwork.ozlabs.org/api/series/500745/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=500745",
            "date": "2026-04-21T06:52:17",
            "name": "Adding comprehensive support for i.MX8MM EVK board",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/500745/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2225539/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2225539/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists1p.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)",
        "Received": [
            "from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g0Ck44T6Vz1yGs\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 21 Apr 2026 16:53:32 +1000 (AEST)",
            "from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists1p.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1wF4yO-0003kS-C9; Tue, 21 Apr 2026 02:52:40 -0400",
            "from eggs.gnu.org ([2001:470:142:3::10])\n by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <gaurav.sharma_7@nxp.com>)\n id 1wF4yM-0003jd-QO\n for qemu-devel@nongnu.org; Tue, 21 Apr 2026 02:52:38 -0400",
            "from inva020.nxp.com ([92.121.34.13])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <gaurav.sharma_7@nxp.com>)\n id 1wF4yI-00006r-FZ\n for qemu-devel@nongnu.org; Tue, 21 Apr 2026 02:52:38 -0400",
            "from inva020.nxp.com (localhost [127.0.0.1])\n by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 666361A1C6B;\n Tue, 21 Apr 2026 08:52:32 +0200 (CEST)",
            "from aprdc01srsp001v.ap-rdc01.nxp.com\n (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16])\n by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 316281A1C8E;\n Tue, 21 Apr 2026 08:52:32 +0200 (CEST)",
            "from lsv031015.swis.in-blr01.nxp.com\n (lsv031015.swis.in-blr01.nxp.com [10.12.177.77])\n by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 907FB18000BD;\n Tue, 21 Apr 2026 14:52:31 +0800 (+08)"
        ],
        "From": "Gaurav Sharma <gaurav.sharma_7@nxp.com>",
        "To": "qemu-devel@nongnu.org",
        "Cc": "pbonzini@redhat.com, peter.maydell@linaro.org,\n Gaurav Sharma <gaurav.sharma_7@nxp.com>,\n Bernhard Beschow <shentey@gmail.com>",
        "Subject": "[PATCHv7 04/15] hw/arm/fsl-imx8mm: Add Clock Control Module IP to\n iMX8MM",
        "Date": "Tue, 21 Apr 2026 12:22:15 +0530",
        "Message-Id": "<20260421065226.3907745-5-gaurav.sharma_7@nxp.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "In-Reply-To": "<20260421065226.3907745-1-gaurav.sharma_7@nxp.com>",
        "References": "<20260421065226.3907745-1-gaurav.sharma_7@nxp.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-Virus-Scanned": "ClamAV using ClamSMTP",
        "Received-SPF": "pass client-ip=92.121.34.13;\n envelope-from=gaurav.sharma_7@nxp.com; helo=inva020.nxp.com",
        "X-Spam_score_int": "-41",
        "X-Spam_score": "-4.2",
        "X-Spam_bar": "----",
        "X-Spam_report": "(-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3,\n SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no",
        "X-Spam_action": "no action",
        "X-BeenThere": "qemu-devel@nongnu.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "qemu development <qemu-devel.nongnu.org>",
        "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>",
        "List-Archive": "<https://lists.nongnu.org/archive/html/qemu-devel>",
        "List-Post": "<mailto:qemu-devel@nongnu.org>",
        "List-Help": "<mailto:qemu-devel-request@nongnu.org?subject=help>",
        "List-Subscribe": "<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>",
        "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org",
        "Sender": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org"
    },
    "content": "Add the Clock Control Module (CCM) device to i.MX8MM SoC.\nThe CCM implementation is shared with i.MX8MP as the register\nlayout is identical between the two variants.Hence iMX8MM will\nbe using the source of iMX8MP CCM.\n\nReviewed-by: Bernhard Beschow <shentey@gmail.com>\nSigned-off-by: Gaurav Sharma <gaurav.sharma_7@nxp.com>\n---\n hw/arm/Kconfig              |  1 +\n hw/arm/fsl-imx8mm.c         | 10 ++++++++++\n include/hw/arm/fsl-imx8mm.h |  2 ++\n 3 files changed, 13 insertions(+)",
    "diff": "diff --git a/hw/arm/Kconfig b/hw/arm/Kconfig\nindex 1a9193fe1a..c785f3f3a3 100644\n--- a/hw/arm/Kconfig\n+++ b/hw/arm/Kconfig\n@@ -622,6 +622,7 @@ config FSL_IMX8MM\n     bool\n     select ARM_GIC\n     select FSL_IMX8MP_ANALOG\n+    select FSL_IMX8MP_CCM\n     select IMX\n \n config FSL_IMX8MM_EVK\ndiff --git a/hw/arm/fsl-imx8mm.c b/hw/arm/fsl-imx8mm.c\nindex 8218448074..053434412c 100644\n--- a/hw/arm/fsl-imx8mm.c\n+++ b/hw/arm/fsl-imx8mm.c\n@@ -169,6 +169,8 @@ static void fsl_imx8mm_init(Object *obj)\n \n     object_initialize_child(obj, \"gic\", &s->gic, gicv3_class_name());\n \n+    object_initialize_child(obj, \"ccm\", &s->ccm, TYPE_IMX8MP_CCM);\n+\n     object_initialize_child(obj, \"analog\", &s->analog, TYPE_IMX8MP_ANALOG);\n \n     for (i = 0; i < FSL_IMX8MM_NUM_UARTS; i++) {\n@@ -305,6 +307,13 @@ static void fsl_imx8mm_realize(DeviceState *dev, Error **errp)\n         }\n     }\n \n+    /* CCM */\n+    if (!sysbus_realize(SYS_BUS_DEVICE(&s->ccm), errp)) {\n+        return;\n+    }\n+    sysbus_mmio_map(SYS_BUS_DEVICE(&s->ccm), 0,\n+                    fsl_imx8mm_memmap[FSL_IMX8MM_CCM].addr);\n+\n     /* Analog */\n     object_property_set_uint(OBJECT(&s->analog), \"arm-pll-fdiv-ctl0-reset\",\n                             0x000fa030, &error_abort);\n@@ -350,6 +359,7 @@ static void fsl_imx8mm_realize(DeviceState *dev, Error **errp)\n     for (i = 0; i < ARRAY_SIZE(fsl_imx8mm_memmap); i++) {\n         switch (i) {\n         case FSL_IMX8MM_ANA_PLL:\n+        case FSL_IMX8MM_CCM:\n         case FSL_IMX8MM_GIC_DIST:\n         case FSL_IMX8MM_GIC_REDIST:\n         case FSL_IMX8MM_RAM:\ndiff --git a/include/hw/arm/fsl-imx8mm.h b/include/hw/arm/fsl-imx8mm.h\nindex 0a020c32a1..df35f0f5ac 100644\n--- a/include/hw/arm/fsl-imx8mm.h\n+++ b/include/hw/arm/fsl-imx8mm.h\n@@ -14,6 +14,7 @@\n #include \"hw/char/imx_serial.h\"\n #include \"hw/intc/arm_gicv3_common.h\"\n #include \"hw/misc/imx8mp_analog.h\"\n+#include \"hw/misc/imx8mp_ccm.h\"\n #include \"qom/object.h\"\n #include \"qemu/units.h\"\n \n@@ -34,6 +35,7 @@ struct FslImx8mmState {\n \n     ARMCPU             cpu[FSL_IMX8MM_NUM_CPUS];\n     GICv3State         gic;\n+    IMX8MPCCMState     ccm;\n     IMX8MPAnalogState  analog;\n     IMXSerialState     uart[FSL_IMX8MM_NUM_UARTS];\n     MemoryRegion ocram;\n",
    "prefixes": [
        "PATCHv7",
        "04/15"
    ]
}