Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1839950/?format=api
{ "id": 1839950, "url": "http://patchwork.ozlabs.org/api/patches/1839950/?format=api", "web_url": "http://patchwork.ozlabs.org/project/devicetree-bindings/patch/20230926-gpio-led-trigger-dt-v2-2-e06e458b788e@linaro.org/", "project": { "id": 37, "url": "http://patchwork.ozlabs.org/api/projects/37/?format=api", "name": "Devicetree Bindings", "link_name": "devicetree-bindings", "list_id": "devicetree.vger.kernel.org", "list_email": "devicetree@vger.kernel.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20230926-gpio-led-trigger-dt-v2-2-e06e458b788e@linaro.org>", "list_archive_url": null, "date": "2023-09-26T21:48:12", "name": "[v2,2/3] dt-bindings: leds: Mention GPIO triggers", "commit_ref": null, "pull_url": null, "state": "not-applicable", "archived": true, "hash": "a8399c79ed723bf03eb75720c1e6bbe626f6c66f", "submitter": { "id": 7055, "url": "http://patchwork.ozlabs.org/api/people/7055/?format=api", "name": "Linus Walleij", "email": "linus.walleij@linaro.org" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/devicetree-bindings/patch/20230926-gpio-led-trigger-dt-v2-2-e06e458b788e@linaro.org/mbox/", "series": [ { "id": 375005, "url": "http://patchwork.ozlabs.org/api/series/375005/?format=api", "web_url": "http://patchwork.ozlabs.org/project/devicetree-bindings/list/?series=375005", "date": "2023-09-26T21:48:10", "name": "Rewrite GPIO LED trigger to use trigger-sources", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/375005/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/1839950/comments/", "check": "warning", "checks": "http://patchwork.ozlabs.org/api/patches/1839950/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <devicetree+bounces-3588-incoming-dt=patchwork.ozlabs.org@vger.kernel.org>", "X-Original-To": [ "incoming-dt@patchwork.ozlabs.org", "devicetree@vger.kernel.org" ], "Delivered-To": "patchwork-incoming-dt@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256\n header.s=google header.b=hpdLunO6;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=permerror (SPF Permanent Error: More than 10 MX records returned)\n smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:45e3:2400::1;\n helo=sv.mirrors.kernel.org;\n envelope-from=devicetree+bounces-3588-incoming-dt=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)" ], "Received": [ "from sv.mirrors.kernel.org (sv.mirrors.kernel.org\n [IPv6:2604:1380:45e3:2400::1])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4RwCzc1fDWz1ypS\n\tfor <incoming-dt@patchwork.ozlabs.org>;\n Wed, 27 Sep 2023 07:48:27 +1000 (AEST)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sv.mirrors.kernel.org (Postfix) with ESMTP id 7C7662829CF\n\tfor <incoming-dt@patchwork.ozlabs.org>; Tue, 26 Sep 2023 21:48:24 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 4E4D94A55C;\n\tTue, 26 Sep 2023 21:48:22 +0000 (UTC)", "from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net\n [23.128.96.19])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id C27834A527\n\tfor <devicetree@vger.kernel.org>; Tue, 26 Sep 2023 21:48:20 +0000 (UTC)", "from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com\n [IPv6:2a00:1450:4864:20::12d])\n\tby lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7240718563\n\tfor <devicetree@vger.kernel.org>; Tue, 26 Sep 2023 14:48:18 -0700 (PDT)", "by mail-lf1-x12d.google.com with SMTP id\n 2adb3069b0e04-50305abe5f0so15502301e87.2\n for <devicetree@vger.kernel.org>;\n Tue, 26 Sep 2023 14:48:18 -0700 (PDT)", "from [127.0.1.1] ([85.235.12.238])\n by smtp.gmail.com with ESMTPSA id\n f10-20020a19ae0a000000b0050334e5f5a8sm2299982lfc.271.2023.09.26.14.48.15\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 26 Sep 2023 14:48:16 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1695764896; x=1696369696;\n darn=vger.kernel.org;\n h=cc:to:in-reply-to:references:message-id:content-transfer-encoding\n :mime-version:subject:date:from:from:to:cc:subject:date:message-id\n :reply-to;\n bh=kgLC0yegwN9YtWotfp/L618EWCW38wnqoTZssZI78wo=;\n b=hpdLunO6fT4qa5/0wHi90PLH70CTyjaZMgu2KDeHYt9goNOHmyTiL7N1eg2XQuwyi+\n x8kFeOKBSsYLeKaBEEBpwFgwt3p6i6t1xy7ogHv1GL39GThvb5IW+UeJxylD8NcQdiJr\n ZBwZ4cnqk34uPKDR43BzxC64SNufEGzlu5fO+UX9ZR4q1GtMZwYQutwxQWvxjeAbkmJ6\n LtDb28izmhHrooNTNnyYyGxfFY1JsPK+rizHKOT5pYXwxZqoCd4rk7BPWfxZn6K6M8Xs\n Qc19TFFfQDf6neLf/VAAKvozFpRtczgxyGeMhf8Z+kcbYrNs5tqaDQHyyXLdNasK5ZUO\n MfRw==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1695764896; x=1696369696;\n h=cc:to:in-reply-to:references:message-id:content-transfer-encoding\n :mime-version:subject:date:from:x-gm-message-state:from:to:cc\n :subject:date:message-id:reply-to;\n bh=kgLC0yegwN9YtWotfp/L618EWCW38wnqoTZssZI78wo=;\n b=BjL3of/u/xErZ3RwrmjMpWPTFcPP4MsM+jWfzK2XlsBkXsheKzcf1HsIJiwj9qOEuc\n nbIAnvo+KGcgDTnxyjfASRNUg8lqLksRL7IY0XYszLuE612qMHqmcUkbt0HVEgxukWgg\n 6JOve4rRfZvljT42eH3HMM74Z4VURW3Hp+m9vuwmJATU8ouZKZSXveOrk+pW+BFOVitG\n eneeEsTLjsRjpm/Dnts3/W9zxkEKsxVnHr8d9xmuuJIxhHAUl4uIWp6HkeiTO91MopR/\n GKFhYpPlx/ZGowRcDJuVeZDNVJrodIWSFQqc+GeHkmEoXrph8gmcBHKqEuosDfDOgUkT\n MGIg==", "X-Gm-Message-State": "AOJu0YydfsCqZoMbKoyZQo8M8YoR9cs1a4Tgsew5ITnP8uzzxMrEsl9l\n\t4kh5/SRK+hWrv566FlgRcfKj+A==", "X-Google-Smtp-Source": "\n AGHT+IH5jMp1la/wAsctQFsK6FsN53AbjwItO8UhW5YsVBunUbQGovUk+oVdorH/Gl1+UnnAluZfoQ==", "X-Received": "by 2002:a05:6512:3e10:b0:503:446:b468 with SMTP id\n i16-20020a0565123e1000b005030446b468mr16652lfv.67.1695764896685;\n Tue, 26 Sep 2023 14:48:16 -0700 (PDT)", "From": "Linus Walleij <linus.walleij@linaro.org>", "Date": "Tue, 26 Sep 2023 23:48:12 +0200", "Subject": "[PATCH v2 2/3] dt-bindings: leds: Mention GPIO triggers", "Precedence": "bulk", "X-Mailing-List": "devicetree@vger.kernel.org", "List-Id": "<devicetree.vger.kernel.org>", "List-Subscribe": "<mailto:devicetree+subscribe@vger.kernel.org>", "List-Unsubscribe": "<mailto:devicetree+unsubscribe@vger.kernel.org>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "7bit", "Message-Id": "<20230926-gpio-led-trigger-dt-v2-2-e06e458b788e@linaro.org>", "References": "<20230926-gpio-led-trigger-dt-v2-0-e06e458b788e@linaro.org>", "In-Reply-To": "<20230926-gpio-led-trigger-dt-v2-0-e06e458b788e@linaro.org>", "To": "=?utf-8?q?Jan_Kundr=C3=A1t?= <jan.kundrat@cesnet.cz>,\n Pavel Machek <pavel@ucw.cz>, Lee Jones <lee@kernel.org>,\n Rob Herring <robh+dt@kernel.org>,\n Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,\n Conor Dooley <conor+dt@kernel.org>,\n Jacek Anaszewski <jacek.anaszewski@gmail.com>", "Cc": "linux-leds@vger.kernel.org, linux-gpio@vger.kernel.org,\n devicetree@vger.kernel.org, Linus Walleij <linus.walleij@linaro.org>,\n Conor Dooley <conor.dooley@microchip.com>", "X-Mailer": "b4 0.12.3", "X-Spam-Status": "No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n\tDKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED,\n\tSPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6", "X-Spam-Checker-Version": "SpamAssassin 3.4.6 (2021-04-09) on\n\tlindbergh.monkeyblade.net" }, "content": "We reuse the trigger-sources phandle to just point to\nGPIOs we may want to use as LED triggers.\n\nExample:\n\ngpio: gpio@0 {\n compatible \"my-gpio\";\n gpio-controller;\n #gpio-cells = <2>;\n interrupt-controller;\n #interrupt-cells = <2>;\n #trigger-source-cells = <2>;\n};\n\nleds {\n compatible = \"gpio-leds\";\n led-my-gpio {\n label = \"device:blue:myled\";\n gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;\n default-state = \"off\";\n linux,default-trigger = \"gpio\";\n trigger-sources = <&gpio 1 GPIO_ACTIVE_HIGH>;\n };\n};\n\nAcked-by: Conor Dooley <conor.dooley@microchip.com>\nSigned-off-by: Linus Walleij <linus.walleij@linaro.org>\n---\n Documentation/devicetree/bindings/leds/common.yaml | 2 ++\n 1 file changed, 2 insertions(+)", "diff": "diff --git a/Documentation/devicetree/bindings/leds/common.yaml b/Documentation/devicetree/bindings/leds/common.yaml\nindex 5fb7007f3618..b42950643b9d 100644\n--- a/Documentation/devicetree/bindings/leds/common.yaml\n+++ b/Documentation/devicetree/bindings/leds/common.yaml\n@@ -191,6 +191,8 @@ properties:\n each of them having its own LED assigned (assuming they are not\n hardwired). In such cases this property should contain phandle(s) of\n related source device(s).\n+ Another example is a GPIO line that will be monitored and mirror the\n+ state of the line (with or without inversion flags) to the LED.\n In many cases LED can be related to more than one device (e.g. one USB LED\n vs. multiple USB ports). Each source should be represented by a node in\n the device tree and be referenced by a phandle and a set of phandle\n", "prefixes": [ "v2", "2/3" ] }