Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1655409rwb; Tue, 29 Nov 2022 17:14:11 -0800 (PST) X-Google-Smtp-Source: AA0mqf4EnnNwpskhPEVgAD4UENLTbvUyk0jgfh+/7f+4hDX0h34knNXIw5Az/bk6kjWmQz9qwY4m X-Received: by 2002:a17:902:f112:b0:189:a5b9:4837 with SMTP id e18-20020a170902f11200b00189a5b94837mr1999930plb.104.1669770851217; Tue, 29 Nov 2022 17:14:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669770851; cv=none; d=google.com; s=arc-20160816; b=Eckg9hnpr38rRmx3fkYSNYl/mlTIog0fF+ZSHqYsqNAxWUYBHSY5dPjbqkVxiXldd/ QVvMCEwiMpqUg3877rKBCz8DI//SBIOiU+cmTA7b2dW/NhubWKE+Zmz4ehikZFl1VjHO VGa9fc0mNXHpNSDuYVc7zmm6/CZeDqW7f/sT4kYuPYGcafSAue0jdLhocgdD0eObtHUw rGPkSFwRRpSLj0UJ2iDGISaXsKyZXkWmGRFQK9oHxWS6wP3F4OXMgnMikH6eekMY+DYa cSYhjsIIWbCRsRUVplgYrfprfdzfZkvCa1ER+ago8yerjFQ/WqWh6ZDqTYof+U7OsPCn MEvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=sh14Y8J1dBAlY/S9v/WE+LcDeKUdSMrM9FHP9ovC0xE=; b=Bk/OfP3Rv9oZabOjM15OnKkSUBCWd7AJIfIMUT4+Y2HznZjmkOQ6uSqtrOXhxc6dAM jbd4EBYBHnWYkWf2uBlXUsvUpmSL9g1vFZpQ4a04RH03XWZv8KIcANyHmA6SgiH5KpCU j2mCYCVdzbCN8W6fXcG4xZE+VaBKZQQKj0KMFRXuvW0x3vo1Op+fua7TnqaOkwOFYdWU C/sZJgrQARZuBBlCelwMZT/bmxesEwt3UMPzRLSv5UGnAqzxe9h9akailnhXfgGNyLvh 3QtU0u+SEfasKXVDgGdlWmQatJ0F6OWPns49/pS25ye354z9nRGyWnx8SH7ohZdyluWh 8dZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=diqPyKUC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l14-20020a056a00140e00b00571d3860297si303506pfu.80.2022.11.29.17.14.00; Tue, 29 Nov 2022 17:14:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=diqPyKUC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231195AbiK3Afp (ORCPT + 85 others); Tue, 29 Nov 2022 19:35:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230273AbiK3Afn (ORCPT ); Tue, 29 Nov 2022 19:35:43 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE0F427925; Tue, 29 Nov 2022 16:35:42 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 889026198C; Wed, 30 Nov 2022 00:35:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DA6F8C433C1; Wed, 30 Nov 2022 00:35:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669768541; bh=1y4VZS9W80vlMy1UNi9moghtDPF4ssMv9lqkGlxsRbA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=diqPyKUCpxdUaaFaQXU7fsMHHpcJXS0BxI+zk9Umkm0qUqAuVnjasDHasbCynDQLq mqpzLAMJU2LZ6fdlxtCQ7+SHAN5pvLu2b/At7zlyeMDmMeGSYKeVhQiB0ow108Zuyp BGCL/ikf0GrBZnNtlEiS/moWAgkcMf4pI2j8q+g07bYpal1pSAuCSUirAMEi9vlaw3 w2knzOu79Pp45a1Kp9GpXBZ1impyThd1q0zb4kwCpc3FlGrQTS5E/8ycQUMdAXFpqa F4GlD+vJrq9xRYKrQEJ9NqDJ35X2aJXz6xGCS8YYX8HdgnUWcP0h6Ki/fkG+P8BC2L NtDfCmPGuaDzQ== Received: by mail-vs1-f48.google.com with SMTP id 128so15734286vsz.12; Tue, 29 Nov 2022 16:35:41 -0800 (PST) X-Gm-Message-State: ANoB5pnOwUYyam63dXEbDai/4v1HrshMyk1W8AjhyEfO2CDhADOD9o5t Klzjo7zv/etGHG9X1ugCm+KIAius1sNezu303Q== X-Received: by 2002:a05:6102:3003:b0:3aa:2ac7:5956 with SMTP id s3-20020a056102300300b003aa2ac75956mr25754133vsa.6.1669768540824; Tue, 29 Nov 2022 16:35:40 -0800 (PST) MIME-Version: 1.0 References: <20221129174906.97749-1-manivannan.sadhasivam@linaro.org> In-Reply-To: <20221129174906.97749-1-manivannan.sadhasivam@linaro.org> From: Rob Herring Date: Tue, 29 Nov 2022 18:35:29 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4] dt-bindings: leds: Document commonly used LED triggers To: Manivannan Sadhasivam , pavel@ucw.cz, Geert Uytterhoeven Cc: jacek.anaszewski@gmail.com, krzysztof.kozlowski+dt@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, thunder.leizhen@huawei.com, festevam@gmail.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 29, 2022 at 11:49 AM Manivannan Sadhasivam wrote: > > Document the commonly used LED triggers by the SoCs. Not all triggers > are documented as some of them are very application specific. Most of the > triggers documented here are currently used in devicetrees of many SoCs. > > Signed-off-by: Manivannan Sadhasivam > --- > > Changes in v4: > > * Removed the sorting of triggers > * Removed the "items" as they were not needed > * Reworded the description > * Dropped Zhen Lei's tested-by tag as the patch has changed > * Added kbd-capslock trigger > > Changes in v3: > > * Rebased on top of v6.1-rc1 > * Added WLAN Rx trigger > * Added tested tag from Zhen Lei > > Changes in v2: > > * Added more triggers, fixed the regex > * Sorted triggers in ascending order > > .../devicetree/bindings/leds/common.yaml | 40 ++++++++++++++++++- > 1 file changed, 38 insertions(+), 2 deletions(-) > > diff --git a/Documentation/devicetree/bindings/leds/common.yaml b/Documentation/devicetree/bindings/leds/common.yaml > index 3c14a98430e1..68da651f29a8 100644 > --- a/Documentation/devicetree/bindings/leds/common.yaml > +++ b/Documentation/devicetree/bindings/leds/common.yaml > @@ -98,8 +98,44 @@ properties: > # LED alters the brightness for the specified duration with one software > # timer (requires "led-pattern" property) > - pattern > - # LED is triggered by SD/MMC activity > - - pattern: "^mmc[0-9]+$" > + # LED indicates mic mute state > + - audio-micmute > + # LED indicates audio mute state > + - audio-mute > + # LED indicates bluetooth power state > + - bluetooth-power > + # LED indicates activity of all CPUs > + - cpu > + # LED indicates disk read activity > + - disk-read > + # LED indicates disk write activity > + - disk-write > + # LED indicates camera flash state > + - flash > + # LED indicated keyboard capslock > + - kbd-capslock > + # LED indicates MTD memory activity > + - mtd > + # LED indicates NAND memory activity (deprecated), > + # in new implementations use "mtd" > + - nand-disk > + # No trigger assigned to the LED. This is the default mode > + # if trigger is absent > + - none > + # LED indicates camera torch state > + - torch > + # LED indicates USB gadget activity > + - usb-gadget > + # LED indicates USB host activity > + - usb-host > + # LED indicates [N]th MMC storage activity > + - pattern: "^mmc[0-9]{1,2}$" > + # LED indicates activity of [N]th CPU > + - pattern: "^cpu[0-9]{1,2}$" This will conflict with Pawel's tree because I already added this. Mine covers 'cpu' and my 100 core system with 100 cpu leds. ;) > + # LED indicates power status of [N]th Bluetooth HCI device > + - pattern: "^hci[0-9]{1,2}-power$" > + # LED indicates [N]th WLAN Tx/Rx activity > + - pattern: "^phy[0-9]{1,2}(tx|rx)$" And these are pending from Geert[1]. Rob [1] https://lore.kernel.org/all/a85c256af01f64389a078c2b37c3b72a27d97536.1668005062.git.geert+renesas@glider.be/