get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 807285,
    "url": "http://patchwork.ozlabs.org/api/patches/807285/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-imx/patch/20170829202652.5476-2-stefan.bruens@rwth-aachen.de/",
    "project": {
        "id": 19,
        "url": "http://patchwork.ozlabs.org/api/projects/19/?format=api",
        "name": "Linux IMX development",
        "link_name": "linux-imx",
        "list_id": "linux-imx-kernel.lists.patchwork.ozlabs.org",
        "list_email": "linux-imx-kernel@lists.patchwork.ozlabs.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20170829202652.5476-2-stefan.bruens@rwth-aachen.de>",
    "list_archive_url": null,
    "date": "2017-08-29T20:26:51",
    "name": "[RESEND,1/2] arm64: allwinner: a64: add SPI nodes",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "61a0784a899994a980b8888dd1494c9c96d6125b",
    "submitter": {
        "id": 67055,
        "url": "http://patchwork.ozlabs.org/api/people/67055/?format=api",
        "name": "Stefan Brüns",
        "email": "stefan.bruens@rwth-aachen.de"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-imx/patch/20170829202652.5476-2-stefan.bruens@rwth-aachen.de/mbox/",
    "series": [
        {
            "id": 465,
            "url": "http://patchwork.ozlabs.org/api/series/465/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-imx/list/?series=465",
            "date": "2017-08-29T20:26:50",
            "name": "Enable SPI on A64/Pine64",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/465/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/807285/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/807285/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>",
        "X-Original-To": "incoming-imx@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming-imx@bilbo.ozlabs.org",
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org\n\theader.b=\"GqVLJCtB\"; dkim-atps=neutral"
        ],
        "Received": [
            "from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xhgFw4CJyz9sQl\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tWed, 30 Aug 2017 06:28:52 +1000 (AEST)",
            "from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dmn7x-0006cj-A0; Tue, 29 Aug 2017 20:28:49 +0000",
            "from mail-out-2.itc.rwth-aachen.de ([134.130.5.47])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dmn6d-0005n5-P4 for linux-arm-kernel@lists.infradead.org;\n\tTue, 29 Aug 2017 20:27:29 +0000",
            "from rwthex-w2-b.rwth-ad.de ([134.130.26.159])\n\tby mail-in-2.itc.rwth-aachen.de with ESMTP; 29 Aug 2017 22:26:59 +0200",
            "from pebbles.fritz.box (92.224.122.214) by rwthex-w2-b.rwth-ad.de\n\t(2002:8682:1a9f::8682:1a9f) with Microsoft SMTP Server (TLS) id\n\t15.0.1320.4; Tue, 29 Aug 2017 22:26:59 +0200"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:\n\tMessage-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=dc/+624Z/9pq/J3Wp9C3taCIsgZTttZclbwTnU9w1JY=;\n\tb=GqVLJCtBLqaL73\n\tH/dMJirwnuPGnEi16/z60kbn1eDakrBaTC5TNM/C2SXdJ7qlFC4EV7+mkwY3Pj9lENQqnYu5O05TD\n\t0C6s9NTDaJ5iswj3+vfUOGVNfjsBgShZSLw7cxE8WGzB51M9SAr6x3XFnQmGQFW74TXmi7TIk94NE\n\tYeK+5k9WLnDFBI8IfqPRN/pxUVIfsVrVpSIzsns7sfmkUANdvic/uQzA2TBtpbmjP8BWMmiwnNeAk\n\tBo1th+GF6Cz8yFegxXXgpi6OCTzTd4K1/B8WeN1b+czCJ1MYk2wfnB/MBm5Q/VbPVvuf6iG1d+6jH\n\tWacZxGtr0fCDemJ4WlpA==;",
        "X-IronPort-AV": "E=Sophos;i=\"5.41,445,1498514400\"; d=\"scan'208\";a=\"10845607\"",
        "From": "=?utf-8?q?Stefan_Br=C3=BCns?= <stefan.bruens@rwth-aachen.de>",
        "To": "<linux-sunxi@googlegroups.com>",
        "Subject": "[RESEND PATCH 1/2] arm64: allwinner: a64: add SPI nodes",
        "Date": "Tue, 29 Aug 2017 22:26:51 +0200",
        "Message-ID": "<20170829202652.5476-2-stefan.bruens@rwth-aachen.de>",
        "X-Mailer": "git-send-email 2.14.1",
        "In-Reply-To": "<20170829202652.5476-1-stefan.bruens@rwth-aachen.de>",
        "References": "<20170829202652.5476-1-stefan.bruens@rwth-aachen.de>",
        "MIME-Version": "1.0",
        "X-Originating-IP": "[92.224.122.214]",
        "X-ClientProxiedBy": "rwthex-s2-b.rwth-ad.de (2002:8682:1a9b::8682:1a9b) To\n\trwthex-w2-b.rwth-ad.de (2002:8682:1a9f::8682:1a9f)",
        "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ",
        "X-CRM114-CacheID": "sfid-20170829_132728_186307_CAF91BB6 ",
        "X-CRM114-Status": "UNSURE (   5.87  )",
        "X-CRM114-Notice": "Please train this message.",
        "X-Spam-Score": "-4.2 (----)",
        "X-Spam-Report": "SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-4.2 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/,\n\tmedium trust [134.130.5.47 listed in list.dnswl.org]\n\t-0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay\n\tdomain\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]",
        "X-BeenThere": "linux-arm-kernel@lists.infradead.org",
        "X-Mailman-Version": "2.1.21",
        "Precedence": "list",
        "List-Unsubscribe": "<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.infradead.org/pipermail/linux-arm-kernel/>",
        "List-Post": "<mailto:linux-arm-kernel@lists.infradead.org>",
        "List-Help": "<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>",
        "List-Subscribe": "<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>",
        "Cc": "Rob Herring <robh+dt@kernel.org>,\n\tMaxime Ripard <maxime.ripard@free-electrons.com>,\n\tChen-Yu Tsai <wens@csie.org>, \n\tlinux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "base64",
        "Sender": "\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>",
        "Errors-To": "linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org",
        "List-Id": "linux-imx-kernel.lists.patchwork.ozlabs.org"
    },
    "content": "The A64 SPI controllers are register compatible to the h3/h5 SPI\ncontrollers.\n\nThe A64 has two SPI controllers, each with a single chip select.\nThe handles for the DMA channels (23/24 for SPI0/SPI1) are omitted,\nas the A64 DMA controller node is currently missing.\n\nSigned-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>\n---\n arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 40 +++++++++++++++++++++++++++\n 1 file changed, 40 insertions(+)",
    "diff": "diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi\nindex bd0f33b77f57..373cd14f0206 100644\n--- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi\n+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi\n@@ -325,6 +325,16 @@\n \t\t\t\tdrive-strength = <40>;\n \t\t\t};\n \n+\t\t\tspi0_pins: spi0 {\n+\t\t\t\tpins = \"PC0\", \"PC1\", \"PC2\", \"PC3\";\n+\t\t\t\tfunction = \"spi0\";\n+\t\t\t};\n+\n+\t\t\tspi1_pins: spi1 {\n+\t\t\t\tpins = \"PD0\", \"PD1\", \"PD2\", \"PD3\";\n+\t\t\t\tfunction = \"spi1\";\n+\t\t\t};\n+\n \t\t\tuart0_pins_a: uart0@0 {\n \t\t\t\tpins = \"PB8\", \"PB9\";\n \t\t\t\tfunction = \"uart0\";\n@@ -527,5 +537,35 @@\n \t\t\t#address-cells = <1>;\n \t\t\t#size-cells = <0>;\n \t\t};\n+\n+\t\tspi0: spi@01c68000 {\n+\t\t\tcompatible = \"allwinner,sun8i-h3-spi\";\n+\t\t\treg = <0x01c68000 0x1000>;\n+\t\t\tinterrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;\n+\t\t\tclocks = <&ccu CLK_BUS_SPI0>, <&ccu CLK_SPI0>;\n+\t\t\tclock-names = \"ahb\", \"mod\";\n+\t\t\tpinctrl-names = \"default\";\n+\t\t\tpinctrl-0 = <&spi0_pins>;\n+\t\t\tresets = <&ccu RST_BUS_SPI0>;\n+\t\t\tstatus = \"disabled\";\n+\t\t\tnum-cs = <1>;\n+\t\t\t#address-cells = <1>;\n+\t\t\t#size-cells = <0>;\n+\t\t};\n+\n+\t\tspi1: spi@01c69000 {\n+\t\t\tcompatible = \"allwinner,sun8i-h3-spi\";\n+\t\t\treg = <0x01c69000 0x1000>;\n+\t\t\tinterrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;\n+\t\t\tclocks = <&ccu CLK_BUS_SPI1>, <&ccu CLK_SPI1>;\n+\t\t\tclock-names = \"ahb\", \"mod\";\n+\t\t\tpinctrl-names = \"default\";\n+\t\t\tpinctrl-0 = <&spi1_pins>;\n+\t\t\tresets = <&ccu RST_BUS_SPI1>;\n+\t\t\tstatus = \"disabled\";\n+\t\t\tnum-cs = <1>;\n+\t\t\t#address-cells = <1>;\n+\t\t\t#size-cells = <0>;\n+\t\t};\n \t};\n };\n",
    "prefixes": [
        "RESEND",
        "1/2"
    ]
}