{"id":806329,"url":"http://patchwork.ozlabs.org/api/1.0/patches/806329/?format=json","project":{"id":56,"url":"http://patchwork.ozlabs.org/api/1.0/projects/56/?format=json","name":"OpenBMC development","link_name":"openbmc","list_id":"openbmc.lists.ozlabs.org","list_email":"openbmc@lists.ozlabs.org","web_url":"http://github.com/openbmc/","scm_url":"","webscm_url":""},"msgid":"<20170828001711.19662-2-andrew@aj.id.au>","date":"2017-08-28T00:17:10","name":"[v2,1/2] dt-bindings: leds: gpio: Add optional retain-state-shutdown property","commit_ref":null,"pull_url":null,"state":"not-applicable","archived":true,"hash":"1798225d1607a2a0c0d8ab545aea3f39502446d9","submitter":{"id":68332,"url":"http://patchwork.ozlabs.org/api/1.0/people/68332/?format=json","name":"Andrew Jeffery","email":"andrew@aj.id.au"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/openbmc/patch/20170828001711.19662-2-andrew@aj.id.au/mbox/","series":[{"id":53,"url":"http://patchwork.ozlabs.org/api/1.0/series/53/?format=json","date":"2017-08-28T00:17:09","name":"leds: gpio: Allow retaining state on shutdown","version":2,"mbox":"http://patchwork.ozlabs.org/series/53/mbox/"}],"check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/806329/checks/","tags":{},"headers":{"Return-Path":"<openbmc-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org>","X-Original-To":["incoming@patchwork.ozlabs.org","openbmc@lists.ozlabs.org"],"Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","openbmc@lists.ozlabs.org"],"Received":["from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\t(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xgXS45L6Fz9s7v\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 28 Aug 2017 10:18:44 +1000 (AEST)","from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xgXS445BkzDqh0\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 28 Aug 2017 10:18:44 +1000 (AEST)","from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com\n\t[66.111.4.26])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 3xgXRP0WMyzDqYx\n\tfor <openbmc@lists.ozlabs.org>; Mon, 28 Aug 2017 10:18:08 +1000 (AEST)","from compute4.internal (compute4.nyi.internal [10.202.2.44])\n\tby mailout.nyi.internal (Postfix) with ESMTP id 7D10620A59;\n\tSun, 27 Aug 2017 20:18:06 -0400 (EDT)","from frontend2 ([10.202.2.161])\n\tby compute4.internal (MEProxy); Sun, 27 Aug 2017 20:18:06 -0400","from keelia.aj.id.au\n\t(ppp118-210-176-216.bras2.adl6.internode.on.net [118.210.176.216])\n\tby mail.messagingengine.com (Postfix) with ESMTPA id 4C02C24A82;\n\tSun, 27 Aug 2017 20:18:01 -0400 (EDT)"],"Authentication-Results":["ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=aj.id.au header.i=@aj.id.au header.b=\"hvaMUUt6\";\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=messagingengine.com\n\theader.i=@messagingengine.com header.b=\"Dl9h4bKa\"; \n\tdkim-atps=neutral","lists.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=aj.id.au header.i=@aj.id.au header.b=\"hvaMUUt6\";\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=messagingengine.com\n\theader.i=@messagingengine.com header.b=\"Dl9h4bKa\"; \n\tdkim-atps=neutral","lists.ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=aj.id.au header.i=@aj.id.au header.b=\"hvaMUUt6\";\n\tdkim=pass (2048-bit key;\n\tunprotected) header.d=messagingengine.com\n\theader.i=@messagingengine.com\n\theader.b=\"Dl9h4bKa\"; dkim-atps=neutral"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/relaxed; d=aj.id.au; h=cc\n\t:date:from:in-reply-to:message-id:references:subject:to\n\t:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=f2BkUl\n\tDyMX57IrbII8xjZq11RcSmikYwYAsMWtUcSYI=; b=hvaMUUt6H2ZxR59fNyXEZ6\n\t0ZXI2LZnlcXaVzqUHmNSbZS9udAvb7bwV5GeioeXE8/lJuOgmnhfxHAUHSX4PIgn\n\tu4ui41i8QHnTrx3QkrFBLTIpl7G+2zHyp1x4XJxbZ5jwGLFt/CZLq9CLrrnumhO2\n\tG34yrPjGky/keTLjbcpMZUD4M4kA+Tor1ug3+yKHBBqiNexjp3OBF2WBB+Zhwciu\n\tkqSjkQX1e2amIqUmZSvQwJ4Gdd71cCWjILhIHDoGU23otbO9WwrRZoND3WyXC0pC\n\t2XzpJEOuRr9Xs4r4UO5+D74wB3NIcdqKFUvGrPQBS9MsuVfzGT0QuYRGnx7kT4yw\n\t==","v=1; a=rsa-sha256; c=relaxed/relaxed; d=\n\tmessagingengine.com; h=cc:date:from:in-reply-to:message-id\n\t:references:subject:to:x-me-sender:x-me-sender:x-sasl-enc\n\t:x-sasl-enc; s=fm1; bh=f2BkUlDyMX57IrbII8xjZq11RcSmikYwYAsMWtUcS\n\tYI=; b=Dl9h4bKa3HQsw9+q0mbrDsqM9WV7riZHouAcOOEihQuIkw6ISJ/Zc0O6N\n\twnQL7p4ahI6U231raQUpHN7m5kCJa+SeFlBfcM/0kpj5DtzEX+0gt1jQqXU+2jp7\n\t1VWUEVGeBPn7HAuGTBeme+yEeltGGYYTwhJg3c1zowzl/IKTyaUEbO3Fdvq6mNSH\n\t3t36OUrXs41TzW8GlgeIHQMq576dLUj5rSfUu7utr+gYmgiTuMjfYexcxlKUL4zJ\n\tQH1GuUfm2lzKcl1wVWXr+fbz9eJz3u5V2xe0jbbN72FLfhjOl2fUVTfF5AsToFCh\n\tlXYGMFdAot52b4KyZ+kVITuNw/KMA=="],"X-ME-Sender":"<xms:PmGjWfi8VpS3geOXYqGjWRvvAuM4MG5uUjR2b2iRuMUbrfssT5dZrw>","X-Sasl-enc":"+GjhHp1iqk2VRWlwOmqnqqRtqZgPH4lkj1s8xIGc7TtB 1503879485","From":"Andrew Jeffery <andrew@aj.id.au>","To":"linux-leds@vger.kernel.org","Subject":"[PATCH v2 1/2] dt-bindings: leds: gpio: Add optional\n\tretain-state-shutdown property","Date":"Mon, 28 Aug 2017 09:47:10 +0930","Message-Id":"<20170828001711.19662-2-andrew@aj.id.au>","X-Mailer":"git-send-email 2.11.0","In-Reply-To":"<20170828001711.19662-1-andrew@aj.id.au>","References":"<20170828001711.19662-1-andrew@aj.id.au>","X-BeenThere":"openbmc@lists.ozlabs.org","X-Mailman-Version":"2.1.23","Precedence":"list","List-Id":"Development list for OpenBMC <openbmc.lists.ozlabs.org>","List-Unsubscribe":"<https://lists.ozlabs.org/options/openbmc>,\n\t<mailto:openbmc-request@lists.ozlabs.org?subject=unsubscribe>","List-Archive":"<http://lists.ozlabs.org/pipermail/openbmc/>","List-Post":"<mailto:openbmc@lists.ozlabs.org>","List-Help":"<mailto:openbmc-request@lists.ozlabs.org?subject=help>","List-Subscribe":"<https://lists.ozlabs.org/listinfo/openbmc>,\n\t<mailto:openbmc-request@lists.ozlabs.org?subject=subscribe>","Cc":"mark.rutland@arm.com, devicetree@vger.kernel.org,\n\tAndrew Jeffery <andrew@aj.id.au>, openbmc@lists.ozlabs.org,\n\tlinux-kernel@vger.kernel.org, robh+dt@kernel.org, rpurdie@rpsys.net, \n\tjacek.anaszewski@gmail.com, pavel@ucw.cz","Errors-To":"openbmc-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org","Sender":"\"openbmc\"\n\t<openbmc-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org>"},"content":"On Baseboard Management Controller (BMC) systems it's sometimes\nnecessary for a LED to retain its state across a BMC reset (which is\nindependent of the host system state). Add a devicetree property to\ndescribe this behaviour. The property would typically be used in\nconjunction with 'default-state = \"keep\"'.\n\nSigned-off-by: Andrew Jeffery <andrew@aj.id.au>\n---\n Documentation/devicetree/bindings/leds/leds-gpio.txt | 3 +++\n 1 file changed, 3 insertions(+)","diff":"diff --git a/Documentation/devicetree/bindings/leds/leds-gpio.txt b/Documentation/devicetree/bindings/leds/leds-gpio.txt\nindex 76535ca37120..a48dda268f81 100644\n--- a/Documentation/devicetree/bindings/leds/leds-gpio.txt\n+++ b/Documentation/devicetree/bindings/leds/leds-gpio.txt\n@@ -18,6 +18,9 @@ LED sub-node properties:\n   see Documentation/devicetree/bindings/leds/common.txt\n - retain-state-suspended: (optional) The suspend state can be retained.Such\n   as charge-led gpio.\n+- retain-state-shutdown: (optional) Retain the state of the LED on shutdown.\n+  Useful in BMC systems, for example when the BMC is rebooted while the host\n+  remains up.\n - panic-indicator : (optional)\n   see Documentation/devicetree/bindings/leds/common.txt\n \n","prefixes":["v2","1/2"]}