From patchwork Mon Feb 13 07:21:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 56060 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2219847wrn; Sun, 12 Feb 2023 23:44:47 -0800 (PST) X-Google-Smtp-Source: AK7set+vk7HYEMeDodGr5rf0Ei8fvjDBEtRTipkV/KO3yFUiwuzj71hXNhPdzTvmuFzGmNGS9H9A X-Received: by 2002:a50:ab01:0:b0:4a2:5f73:d3d2 with SMTP id s1-20020a50ab01000000b004a25f73d3d2mr23359192edc.41.1676274287104; Sun, 12 Feb 2023 23:44:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676274287; cv=none; d=google.com; s=arc-20160816; b=Ht3KIc6399TaeNmDyMnmHiVWd1iDFO4k90WzP5p0J9tjjkov2pd/9RYRkM6QTyenOm mQdu0PBS1ZlLj+JKCHzJWPpT+Z7jpw5uUKsCvgn1ev8pLtgpD0TgCriZ2zUwti7q6+2n 0HiZn92g8MbqVoTqr1yB4md58FbhwW27kZA44VZFjDQFPjGbOhG5235ujQXb+6RbZPgU 1zlVqGRmgNDqkEBvjw7zKRlWuxVafLuerQ3mcRMISQD6qJrlMJGccesxH6a9JSHWNH1r ghqdqOn7XxNCRxaXzB5XALsU2wQSBVZh1uNbZ337QuFmcg1w36A6w0nit4O1urveg2GM ZYVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=HT8zpDqYQcjOZkqrBpMihAQffHhfUXaPhjYeHne2afs=; b=dGXoRb9jjYRp/lZsjd6H9ovDUpHKZjFpKO731wGC8op+9ZH48XFtMDYR6Nrqac5bHX hC7w9cEegz2lm53hWy8EQuHOmckLs6vfYiHPeixf/g8cAdEP9f2BhLHs3ZdhMApnp6Ii /ZbkEBhGYI7GrTML5y3MfOAQah8r6Udsi53xbDB7R/W4iQDtaMe76ULf8ON6DeKZ9EXf cWhkJuGw4UjfUO2XDmA1qwSbldrFuzA4OIpVAcixbKPtjBcDi7ot1fTwtMAI9ex3rFnt PIeY5p5dweYDv7s6XmsNRkNWIABm5QzlKxwW0b93XZdPKFVwH3SMg7BAt3CtTfBPqxd1 ItJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=c46py5DN; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d20-20020a05640208d400b004acc9d32198si1854968edz.582.2023.02.12.23.44.24; Sun, 12 Feb 2023 23:44:47 -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=@linaro.org header.s=google header.b=c46py5DN; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229687AbjBMHVt (ORCPT + 99 others); Mon, 13 Feb 2023 02:21:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbjBMHVr (ORCPT ); Mon, 13 Feb 2023 02:21:47 -0500 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F87F10A8E for ; Sun, 12 Feb 2023 23:21:44 -0800 (PST) Received: by mail-pj1-x102b.google.com with SMTP id bg2so1755761pjb.4 for ; Sun, 12 Feb 2023 23:21:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=HT8zpDqYQcjOZkqrBpMihAQffHhfUXaPhjYeHne2afs=; b=c46py5DNV36Z2OLMFEBvIUKOTgtKE8Z/Kckhfx3/kzihc8ohYCpAwXfEzFAi2ANvfA r0lAAJtDkjT4vZ0CGN6RP26Wzed91gJ1s5H7jzcm1gQwZgJonZMlKtA0C5xmCqhA/Wec XlXBi9e1RgtZIathAxMUZWC4MPVo8guwgD5VEKv3MlDkjurDLAwstCdaSTJ/8WDQ1RRK c8k/b4KXxZ6oGBOCle83gfgF9OYP76Y5tab0YM+WtXFjDlreS3dBsVPXBPNeZZjsj9Gv lOCKjttEAAssqVyGnr7jwEF9x3AAn+bNiPK12hJ3mxfrdWiqX0zpdbP3wslzp/RsA5Q0 Mzyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=HT8zpDqYQcjOZkqrBpMihAQffHhfUXaPhjYeHne2afs=; b=Q33oRPwDakGL6jCa9nV44CbjYwR5eyMEIgZyWLLET+8aMrUyfMHqtkhKCa4HWRdL8p 8iY4zXKtLY+ecNzMzCTGbGBOVzGrVQGG+DA5/3GMUOF9BUXpsENh8x4KZv+CBMuRbzad Pv0kFU14vw1L/xhTK1inDOrXOyspae5rBbKaqE5akO3jf5rvoSn95WLTaqMrFExLiKOj nIgMpo7zYHLiM7rSSohG/aJWJJWOZ1YJJ6WaT8+YR4hmG7bz9DIoOTyujFl5qPeCSDto 2nhDLDyT2Jr2a3MQWfEUnZ4m4PkFAkI75LuZnusFozByVOm02bg5rdOWq3O0dK2UZgcU y3ng== X-Gm-Message-State: AO0yUKVwxMc9dh/miAkDGzD+A9KMiJdC35kgKZyDrVQA6pjSCW2OvxTg wJmv2qEinSUawbdq1JsD77z1 X-Received: by 2002:a17:902:d4ca:b0:19a:7f25:4d90 with SMTP id o10-20020a170902d4ca00b0019a7f254d90mr9383889plg.33.1676272903787; Sun, 12 Feb 2023 23:21:43 -0800 (PST) Received: from localhost.localdomain ([117.217.182.252]) by smtp.gmail.com with ESMTPSA id r10-20020a170902be0a00b00199524dc67bsm7460930pls.163.2023.02.12.23.21.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Feb 2023 23:21:43 -0800 (PST) From: Manivannan Sadhasivam To: lee@kernel.org, jacek.anaszewski@gmail.com, pavel@ucw.cz, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, thunder.leizhen@huawei.com, festevam@gmail.com, Manivannan Sadhasivam Subject: [PATCH v6] dt-bindings: leds: Document commonly used LED triggers Date: Mon, 13 Feb 2023 12:51:33 +0530 Message-Id: <20230213072133.5977-1-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750854008378069864?= X-GMAIL-MSGID: =?utf-8?q?1757700986844560635?= 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. While at it, also place the comment above the triggers (hci, mmc, wlan) to match the rest of the binding. Signed-off-by: Manivannan Sadhasivam Reviewed-by: Rob Herring --- Changes in v6: * Rebased on top of lee/for-leds-next branch * Fixed the comment location for few triggers Changes in v5: * Rebased on top of v6.2-rc1 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 | 37 +++++++++++++++++-- 1 file changed, 34 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/leds/common.yaml b/Documentation/devicetree/bindings/leds/common.yaml index d34bb58c0037..9814371eaa4c 100644 --- a/Documentation/devicetree/bindings/leds/common.yaml +++ b/Documentation/devicetree/bindings/leds/common.yaml @@ -98,13 +98,44 @@ properties: # LED alters the brightness for the specified duration with one software # timer (requires "led-pattern" property) - pattern + # 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 is triggered by CPU activity - pattern: "^cpu[0-9]*$" - - pattern: "^hci[0-9]+-power$" # LED is triggered by Bluetooth activity - - pattern: "^mmc[0-9]+$" + - pattern: "^hci[0-9]+-power$" # LED is triggered by SD/MMC activity - - pattern: "^phy[0-9]+tx$" + - pattern: "^mmc[0-9]+$" # LED is triggered by WLAN activity + - pattern: "^phy[0-9]+tx$" led-pattern: description: |