From nobody Fri Sep 12 06:31:18 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E0DBEC7EE2D for ; Wed, 17 May 2023 06:24:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232758AbjEQGYu (ORCPT ); Wed, 17 May 2023 02:24:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232677AbjEQGYj (ORCPT ); Wed, 17 May 2023 02:24:39 -0400 Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F16A30DC for ; Tue, 16 May 2023 23:24:37 -0700 (PDT) Received: by mail-pg1-x52d.google.com with SMTP id 41be03b00d2f7-51b33c72686so225144a12.1 for ; Tue, 16 May 2023 23:24:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684304676; x=1686896676; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=K67aK8Ab6zSc42er2APhm2wp24bW0xcr3MHHlTQF0Aw=; b=PLmqcsERKtayg5W2hORcES8w46jOP+ssRMKTy4UsUZDidL5h58nTE6sAn+ExLP0YPa SVdWkOD6bCZAX0svoUFO6oePSa30dR1SbrsfhR3JfnVP/Fi+ulVFd5IKUcn1BlxPxXEL tqER/wGSPHh1ICMlQnejuqtiU/KzORgJYmk6WpHvcT8bHLI4NLJya1KzICz+g8urDMkb knoVJWyABCX1gVzwwxh9aka6gJguMQKeg+vsRO0cTAebbNn/vD16kIttMGz+EeO843oJ KPWJgWrS4nupHN8mxOLTRu6s8bsB6fN6eE/KU7X8WJmqM8ONhDTjtHbXQ3cRqnqDzYm+ 79bQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684304676; x=1686896676; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=K67aK8Ab6zSc42er2APhm2wp24bW0xcr3MHHlTQF0Aw=; b=TaYQijBHJXUlSBY/eHghcslIKN1zhwr1O05t0zVY6bT9tc7QOHU9RxQwIJsVe6ai/f dPzu7lkqgJguhkxB/y6kCbMUumYDeSBAoEjNyCCGCjoN8ehvQ/l3PhzYCI1B514Dfh6b 1gxD64muJQZas6gwtIY3MukoJ4GogP/cox6+bDThRFVbwSZUnDn61Qtzy1LYxrFiYwl0 gw6AcS+6uQsHGTztpsN3cem/C679yc3+Pbo8ULCh+TVluFVs/nP3En50Jifwkdq4/veE BPc/VBDaYBhmlppXGU0lUnS955lsOyIfLCt8lA2ef3drz+RSSPidzmrMJE8recIj12ZX AqvA== X-Gm-Message-State: AC+VfDzxx3zouO7JgDNPC3ikEbrXG5kxsy8QHI9sEQwZrUVJ/v8vSjMQ QXQ7b7WjiXuIqvG018yZqdNn X-Google-Smtp-Source: ACHHUZ5zgJp/SqjIxAupLZpWqTbjlKLwG/oRYoxz+bVGVLkCqIjkI+7ngWv32jtJ86utkoQrCjNvzA== X-Received: by 2002:a17:903:185:b0:1aa:db0f:1aba with SMTP id z5-20020a170903018500b001aadb0f1abamr48265536plg.47.1684304676540; Tue, 16 May 2023 23:24:36 -0700 (PDT) Received: from localhost.localdomain ([59.92.102.59]) by smtp.gmail.com with ESMTPSA id z22-20020a17090acb1600b002508f0ac3edsm693282pjt.53.2023.05.16.23.24.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 May 2023 23:24:36 -0700 (PDT) From: Manivannan Sadhasivam To: andersson@kernel.org, bp@alien8.de, mchehab@kernel.org Cc: james.morse@arm.com, rric@kernel.org, linux-arm-msm@vger.kernel.org, linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, dmitry.baryshkov@linaro.org, Manivannan Sadhasivam , Rob Herring Subject: [PATCH v7] dt-bindings: leds: Document commonly used LED triggers Date: Wed, 17 May 2023 11:54:20 +0530 Message-Id: <20230517062421.56970-3-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230517062421.56970-1-manivannan.sadhasivam@linaro.org> References: <20230517062421.56970-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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, add missing comments and 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 Signed-off-by: Manivannan Sadhasivam --- Changes in v7: * Rebased on top of next/master 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 | 33 +++++++++++++++++-- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/leds/common.yaml b/Documenta= tion/devicetree/bindings/leds/common.yaml index 15e3f6645682..61e63ed81ced 100644 --- a/Documentation/devicetree/bindings/leds/common.yaml +++ b/Documentation/devicetree/bindings/leds/common.yaml @@ -90,22 +90,49 @@ properties: - heartbeat # LED indicates disk activity - disk-activity + # LED indicates disk read activity - disk-read + # LED indicates disk write activity - disk-write # LED flashes at a fixed, configurable rate - timer # LED alters the brightness for the specified duration with on= e 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 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$" =20 led-pattern: description: | --=20 2.25.1