From patchwork Mon Feb 13 07:08:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 56058 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2212602wrn; Sun, 12 Feb 2023 23:15:41 -0800 (PST) X-Google-Smtp-Source: AK7set92vB6rKJR2JtFiLf+DhKon8T1JtZLe+nG4e5LuWnq1OSwQskrH8Ihw+LlwJhmJMIIioUDp X-Received: by 2002:a05:6a21:3292:b0:be:b04d:1c29 with SMTP id yt18-20020a056a21329200b000beb04d1c29mr31439885pzb.5.1676272540865; Sun, 12 Feb 2023 23:15:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676272540; cv=none; d=google.com; s=arc-20160816; b=bjEeAQXGtBTGgL+IXEqmN34KlBUoKlzptqS15PMlKa5Qu2+zNBCY/0tIRWmzquGNDc MMDMCUy3d6OR3XjSgTa4cdVi64NnnRJbBo40h4XF4+D1CVR9hCaMDnN7Vqbu4Zo0h8rj Kkgka8+lo1dBwGxpS/JihkcKu1f0V0lpwvFny8a8vjVTWkny2r0AT8fjS2Ife7UVyrOD VGtd3XDgHbsu2UYj6T8NecuU+OXWU8V0W9KECJpjSMsmohrscI1/MvgrAA9uZ5A2hW13 Sss5ZDg4XQt75R0Fu1CshZr3KX73/38DD3HsgjFhBxYXu2UzuAVX2mgch2bIIz4LUYqB At/w== 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=rWV82DuffbkA0r5SzgnRHGJAxs9Uwsl2YwXW0fT+d6A=; b=b5lZ7/cwYWKIX9GKRt5d+anHSUyxznwkZRmZQhQ+I+n/y0Xs0AwZU0uJgTyfRvSLMR t1SWaHc/R31dGlAUGc6b/DwkVISw7sGwtdHlzsm3sQqO32kBYDWKgv9Jdjl8jQGlYcDA LHnP7A7cNApGE6NMq/vHYQUV2Si1wlxEuoSX8IxQm4k3rnDREXtVYbjOAidBpv1R9zaU 8lFZ7koXgovxVfD4TtiDgbyrQ1QuoiZkjU46W/Cp6C9s7yayaphWOkEFdtwZbQQCpI3w Pd2vhj4PjlkYZjl0Zim5/xblyAOgj0IqM0bko7+KtfNLLgM7rXSYOx6rg22HdqrVyFCT 2x7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lc0mtwkt; 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 k64-20020a633d43000000b004fb8e0c1129si929452pga.315.2023.02.12.23.15.28; Sun, 12 Feb 2023 23:15:40 -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=lc0mtwkt; 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 S229663AbjBMHIn (ORCPT + 99 others); Mon, 13 Feb 2023 02:08:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229598AbjBMHIm (ORCPT ); Mon, 13 Feb 2023 02:08:42 -0500 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D90C5EC7B for ; Sun, 12 Feb 2023 23:08:40 -0800 (PST) Received: by mail-pl1-x62d.google.com with SMTP id o8so10192800pls.11 for ; Sun, 12 Feb 2023 23:08:40 -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=rWV82DuffbkA0r5SzgnRHGJAxs9Uwsl2YwXW0fT+d6A=; b=lc0mtwktj97AGn6slIN6qa4ekwhfOSJOQz1xrvCLNdqmifyDg6ccIbdrSRMHZJ2N4y GgNyvvpP/MLpR9aHTuWsM5kVFRQ41KVWZDIrB+T7N4lNAX0q2tZC+3WIcopUPmnbKNQS //5zkBpFNA8sBxa9f2MbH1vHtqMiqhl+LJXvwwFqdzAV2HwX4paawmnw9iFCAofl+A2C zzR1G3NyCojdvCIPGnRaIX1MnI/rRza6a0GU5wvVDYm5PMuefjD6ykp2/MsDq/yp7KkI E/OpjFkTTi7miqWnDbV132A7mzZ/iQNgp3pOBXKDTIuXNOtSdDqg+7uykmJUqPNg3E7z El/A== 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=rWV82DuffbkA0r5SzgnRHGJAxs9Uwsl2YwXW0fT+d6A=; b=a8xd0u+KNujG8WmU4USQg3vKnTM+vtdMB+GZgNZgIWajEmi/zwG/IbHeGRvrqzk879 sKg1ILAwZHSC9KjYycaDjc5HxFCrRQPU8bZ4a/BoDCIlGzlCGm5uqV50hLd6QXP46b5d WGLLf3WS5Nr+5jn+r+I+MLJgpCR0CxdXRvjPtf4cPTVxer4ushERF9FVy18QClCBN6UF SrdbLbp5MgqwZVo445S8Cat723euCyz9nN6KULsvUTowzYBSrDwF5FUd7WgT94uluDmY PMPy0grBWnvtriZ2WVLnsvyC30QLCuexFcB+Q+pTw4veApIfQRivaH8LAF6bI4JBqduP Y0qg== X-Gm-Message-State: AO0yUKVzluyTehQL/gahhel9ZUJGpnK6ImSjm6FC5emNAnLPlUXT4kzR DPWquedinsDr+DI3RKrYJQYrhoKw7vmJF9c= X-Received: by 2002:a17:90b:4c4d:b0:22c:9217:68b6 with SMTP id np13-20020a17090b4c4d00b0022c921768b6mr25368845pjb.14.1676272120356; Sun, 12 Feb 2023 23:08:40 -0800 (PST) Received: from localhost.localdomain ([117.217.182.252]) by smtp.gmail.com with ESMTPSA id w63-20020a17090a6bc500b00230e41e98desm2956183pjj.32.2023.02.12.23.08.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Feb 2023 23:08:39 -0800 (PST) From: Manivannan Sadhasivam To: 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, lee@kernel.org, Manivannan Sadhasivam Subject: [PATCH v5] dt-bindings: leds: Document commonly used LED triggers Date: Mon, 13 Feb 2023 12:38:27 +0530 Message-Id: <20230213070827.5085-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=unavailable 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?1757699155747456881?= X-GMAIL-MSGID: =?utf-8?q?1757699155747456881?= 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 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 | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/Documentation/devicetree/bindings/leds/common.yaml b/Documentation/devicetree/bindings/leds/common.yaml index f5c57a580078..d01a52e9e982 100644 --- a/Documentation/devicetree/bindings/leds/common.yaml +++ b/Documentation/devicetree/bindings/leds/common.yaml @@ -98,9 +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 SD/MMC activity - pattern: "^mmc[0-9]+$" + # LED is triggered by CPU activity - pattern: "^cpu[0-9]*$" + # 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)$" led-pattern: description: |