Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1623596/?format=api
{ "id": 1623596, "url": "http://patchwork.ozlabs.org/api/patches/1623596/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20220428112653.9413-1-pali@kernel.org/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api", "name": "U-Boot", "link_name": "uboot", "list_id": "u-boot.lists.denx.de", "list_email": "u-boot@lists.denx.de", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20220428112653.9413-1-pali@kernel.org>", "list_archive_url": null, "date": "2022-04-28T11:26:53", "name": "dt-bindings: leds: import common led bindings from linux 5.17", "commit_ref": "53ee48b67302e188dc2805cef393707975b305c8", "pull_url": null, "state": "accepted", "archived": false, "hash": "0d7fef25153d9db59e327e61902ac142c556c1b3", "submitter": { "id": 78810, "url": "http://patchwork.ozlabs.org/api/people/78810/?format=api", "name": "Pali Rohár", "email": "pali@kernel.org" }, "delegate": { "id": 3651, "url": "http://patchwork.ozlabs.org/api/users/3651/?format=api", "username": "trini", "first_name": "Tom", "last_name": "Rini", "email": "trini@ti.com" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20220428112653.9413-1-pali@kernel.org/mbox/", "series": [ { "id": 297357, "url": "http://patchwork.ozlabs.org/api/series/297357/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=297357", "date": "2022-04-28T11:26:53", "name": "dt-bindings: leds: import common led bindings from linux 5.17", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/297357/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/1623596/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/1623596/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<u-boot-bounces@lists.denx.de>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org", "Authentication-Results": [ "bilbo.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=I9TWQBX9;\n\tdkim-atps=neutral", "ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>)", "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=kernel.org", "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de", "phobos.denx.de;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.b=\"I9TWQBX9\";\n\tdkim-atps=neutral", "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=kernel.org", "phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org" ], "Received": [ "from phobos.denx.de (phobos.denx.de\n [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby bilbo.ozlabs.org (Postfix) with ESMTPS id 4KptdC5HQhz9s0r\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 28 Apr 2022 21:27:27 +1000 (AEST)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id A300080FD8;\n\tThu, 28 Apr 2022 13:27:15 +0200 (CEST)", "by phobos.denx.de (Postfix, from userid 109)\n id 7474480FD8; Thu, 28 Apr 2022 13:27:13 +0200 (CEST)", "from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217])\n (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n bits)) (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 8097B83565\n for <u-boot@lists.denx.de>; Thu, 28 Apr 2022 13:27:06 +0200 (CEST)", "from smtp.kernel.org (relay.kernel.org [52.25.139.140])\n (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n (No client certificate requested)\n by dfw.source.kernel.org (Postfix) with ESMTPS id 9C58561F3E\n for <u-boot@lists.denx.de>; Thu, 28 Apr 2022 11:27:04 +0000 (UTC)", "by smtp.kernel.org (Postfix) with ESMTPSA id B4A0DC385AE\n for <u-boot@lists.denx.de>; Thu, 28 Apr 2022 11:27:03 +0000 (UTC)", "by pali.im (Postfix)\n id 1D00F8A0; Thu, 28 Apr 2022 13:27:01 +0200 (CEST)" ], "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de", "X-Spam-Level": "", "X-Spam-Status": "No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,\n DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,\n SPF_PASS autolearn=ham autolearn_force=no version=3.4.2", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n s=k20201202; t=1651145224;\n bh=qOnN9jOipyueF2KiD58tnyzeGo8Qcvn+2J4fGZmFSI8=;\n h=From:To:Subject:Date:From;\n b=I9TWQBX9YvV7jPTK/sj0X5DC4lAi7TvilMOSObX/NCK2ogCiv4L+v7J/6YiF+IXub\n UfZTlAHzA1JUw4RfK2AmUDq4pFpVh0dvMzRRrrGqWAGtV2jBnY66pzaEcu3u4fkFgH\n krlVEabrpeSM9JOBS8qxfaxnXaOt9jhcWLk5kJM34KQuv2NYCMTitfZ600RjjkMbH/\n JqFGC0WI4Reu7XVTprV5xv+xkNv4dHsT1+hIuZ0NlwDKZhfzhRykOK27WIxv1DG5oR\n B48l8hle18Go62vTsovAUQ5GY6s/+DcKFF4iqFzA6J1648TPs/Voo520qiSOuuWdZt\n /KCc4VGop43zg==", "From": "=?utf-8?q?Pali_Roh=C3=A1r?= <pali@kernel.org>", "To": "u-boot@lists.denx.de", "Subject": "[PATCH] dt-bindings: leds: import common led bindings from linux 5.17", "Date": "Thu, 28 Apr 2022 13:26:53 +0200", "Message-Id": "<20220428112653.9413-1-pali@kernel.org>", "X-Mailer": "git-send-email 2.20.1", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "X-BeenThere": "u-boot@lists.denx.de", "X-Mailman-Version": "2.1.39", "Precedence": "list", "List-Id": "U-Boot discussion <u-boot.lists.denx.de>", "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>", "List-Archive": "<https://lists.denx.de/pipermail/u-boot/>", "List-Post": "<mailto:u-boot@lists.denx.de>", "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>", "List-Subscribe": "<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>", "Errors-To": "u-boot-bounces@lists.denx.de", "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>", "X-Virus-Scanned": "clamav-milter 0.103.5 at phobos.denx.de", "X-Virus-Status": "Clean" }, "content": "This allows usage of LED_COLOR_ID_RGB macro in DTS files.\n\nSigned-off-by: Pali Rohár <pali@kernel.org>\n---\n include/dt-bindings/leds/common.h | 48 ++++++++++++++++++++++++-------\n 1 file changed, 37 insertions(+), 11 deletions(-)", "diff": "diff --git a/include/dt-bindings/leds/common.h b/include/dt-bindings/leds/common.h\nindex 9e1256a7c1bf..3be89a7c20a9 100644\n--- a/include/dt-bindings/leds/common.h\n+++ b/include/dt-bindings/leds/common.h\n@@ -6,6 +6,7 @@\n * Author: Jacek Anaszewski <j.anaszewski@samsung.com>\n *\n * Copyright (C) 2019 Jacek Anaszewski <jacek.anaszewski@gmail.com>\n+ * Copyright (C) 2020 Pavel Machek <pavel@ucw.cz>\n */\n \n #ifndef __DT_BINDINGS_LEDS_H\n@@ -29,19 +30,51 @@\n #define LED_COLOR_ID_VIOLET\t5\n #define LED_COLOR_ID_YELLOW\t6\n #define LED_COLOR_ID_IR\t\t7\n-#define LED_COLOR_ID_MAX\t8\n+#define LED_COLOR_ID_MULTI\t8\t/* For multicolor LEDs */\n+#define LED_COLOR_ID_RGB\t9\t/* For multicolor LEDs that can do arbitrary color,\n+\t\t\t\t\t so this would include RGBW and similar */\n+#define LED_COLOR_ID_MAX\t10\n \n /* Standard LED functions */\n+/* Keyboard LEDs, usually it would be input4::capslock etc. */\n+/* Obsolete equivalent: \"shift-key-light\" */\n+#define LED_FUNCTION_CAPSLOCK \"capslock\"\n+#define LED_FUNCTION_SCROLLLOCK \"scrolllock\"\n+#define LED_FUNCTION_NUMLOCK \"numlock\"\n+/* Obsolete equivalents: \"tpacpi::thinklight\" (IBM/Lenovo Thinkpads),\n+ \"lp5523:kb{1,2,3,4,5,6}\" (Nokia N900) */\n+#define LED_FUNCTION_KBD_BACKLIGHT \"kbd_backlight\"\n+\n+/* System LEDs, usually found on system body.\n+ platform::mute (etc) is sometimes seen, :mute would be better */\n+#define LED_FUNCTION_POWER \"power\"\n+#define LED_FUNCTION_DISK \"disk\"\n+\n+/* Obsolete: \"platform:*:charging\" (allwinner sun50i) */\n+#define LED_FUNCTION_CHARGING \"charging\"\n+/* Used RGB notification LEDs common on phones.\n+ Obsolete equivalents: \"status-led:{red,green,blue}\" (Motorola Droid 4),\n+ \"lp5523:{r,g,b}\" (Nokia N900) */\n+#define LED_FUNCTION_STATUS \"status\"\n+\n+#define LED_FUNCTION_MICMUTE \"micmute\"\n+#define LED_FUNCTION_MUTE \"mute\"\n+\n+/* Used for player LEDs as found on game controllers from e.g. Nintendo, Sony. */\n+#define LED_FUNCTION_PLAYER1 \"player-1\"\n+#define LED_FUNCTION_PLAYER2 \"player-2\"\n+#define LED_FUNCTION_PLAYER3 \"player-3\"\n+#define LED_FUNCTION_PLAYER4 \"player-4\"\n+#define LED_FUNCTION_PLAYER5 \"player-5\"\n+\n+/* Miscelleaus functions. Use functions above if you can. */\n #define LED_FUNCTION_ACTIVITY \"activity\"\n #define LED_FUNCTION_ALARM \"alarm\"\n #define LED_FUNCTION_BACKLIGHT \"backlight\"\n #define LED_FUNCTION_BLUETOOTH \"bluetooth\"\n #define LED_FUNCTION_BOOT \"boot\"\n #define LED_FUNCTION_CPU \"cpu\"\n-#define LED_FUNCTION_CAPSLOCK \"capslock\"\n-#define LED_FUNCTION_CHARGING \"charging\"\n #define LED_FUNCTION_DEBUG \"debug\"\n-#define LED_FUNCTION_DISK \"disk\"\n #define LED_FUNCTION_DISK_ACTIVITY \"disk-activity\"\n #define LED_FUNCTION_DISK_ERR \"disk-err\"\n #define LED_FUNCTION_DISK_READ \"disk-read\"\n@@ -50,21 +83,14 @@\n #define LED_FUNCTION_FLASH \"flash\"\n #define LED_FUNCTION_HEARTBEAT \"heartbeat\"\n #define LED_FUNCTION_INDICATOR \"indicator\"\n-#define LED_FUNCTION_KBD_BACKLIGHT \"kbd_backlight\"\n #define LED_FUNCTION_LAN \"lan\"\n #define LED_FUNCTION_MAIL \"mail\"\n #define LED_FUNCTION_MTD \"mtd\"\n-#define LED_FUNCTION_MICMUTE \"micmute\"\n-#define LED_FUNCTION_MUTE \"mute\"\n-#define LED_FUNCTION_NUMLOCK \"numlock\"\n #define LED_FUNCTION_PANIC \"panic\"\n #define LED_FUNCTION_PROGRAMMING \"programming\"\n-#define LED_FUNCTION_POWER \"power\"\n #define LED_FUNCTION_RX \"rx\"\n #define LED_FUNCTION_SD \"sd\"\n-#define LED_FUNCTION_SCROLLLOCK \"scrolllock\"\n #define LED_FUNCTION_STANDBY \"standby\"\n-#define LED_FUNCTION_STATUS \"status\"\n #define LED_FUNCTION_TORCH \"torch\"\n #define LED_FUNCTION_TX \"tx\"\n #define LED_FUNCTION_USB \"usb\"\n", "prefixes": [] }