From patchwork Thu Dec 10 06:14:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 340971 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp5254881jai; Wed, 9 Dec 2020 22:17:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJzshK3ICY+0OX8UA30W1gbFDlJShvyZuzNV5Ni8iGVI6IfS8/hkPNVzgZpDTPENPZB6rmsT X-Received: by 2002:a17:907:3312:: with SMTP id ym18mr5136501ejb.437.1607581050973; Wed, 09 Dec 2020 22:17:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607581050; cv=none; d=google.com; s=arc-20160816; b=TJ6ncKQiAZANgTNh8WJpYSwJEjdm1ZPb/FDgewpHtne5ekMaRLgVgrIhRguJXqTJ1c KXMMHXpcgKcK/ysYGeVS3fK8R2dNT+3icjpnjccJEvD+SRHYsBGCpAntW0shEUndbwc6 1P5HmumbKgbHDLmbwiy1mzykwOErureW2IlTIcDRK/87MTL20QzyoPR/rB5jHMMSAtf0 jG6HIbJrHLBT+1ZdpIOatMe1XvQjyjD2bjN1k+25uLaGfzBM5Hu4dkajVSZILirehXub PzXZ3Ad89DHXGc7yFPyiMuLzNLym+wj8QNxRr76mKJRUtajTw5MouAHGQQUNcex07/PK T7MA== 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=MqeM3I8rabKhAIEdk1wwGjmL1P9GZYH14bcbbNjM89o=; b=QZUcjhW8rq36qfvsfq0Rst7TA+xj/+83fM+0petmPJSzS9cOFOt3dQd0vzB/uQyGnO 5EsSZeyoshRfjea99cOP4Wpg0VdSnXM0TD22Nfkn+o98kk3QiUkeRztVATZI0kg68dxA QkVw8Yb03F1glXIX+ajooE1+Eti24UjAK607SC3F3t/DdGuwmjgIksaU1E8+bgD4QHpR s/jACuSOF+XbenEBCetFxMNgEXQf89j+TSguUCB5uAfgaLWNLArVQLU3CCWKj8juNpjT cbz3oH34N7DMYziVzbrIRftu7dbEhaMvMQ5+uhrp5tkvJomOPH8Zsh79eDjROAxxmS/m nzMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Sm+XVhMi; spf=pass (google.com: domain of linux-leds-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y12si2145505edp.127.2020.12.09.22.17.30 for ; Wed, 09 Dec 2020 22:17:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-leds-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Sm+XVhMi; spf=pass (google.com: domain of linux-leds-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-leds-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 S1733157AbgLJGPh (ORCPT ); Thu, 10 Dec 2020 01:15:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729637AbgLJGPZ (ORCPT ); Thu, 10 Dec 2020 01:15:25 -0500 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9317AC061793 for ; Wed, 9 Dec 2020 22:14:45 -0800 (PST) Received: by mail-pf1-x442.google.com with SMTP id p4so3073306pfg.0 for ; Wed, 09 Dec 2020 22:14:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=MqeM3I8rabKhAIEdk1wwGjmL1P9GZYH14bcbbNjM89o=; b=Sm+XVhMiBcu2Y0owzP9+IkqVAcH3SQUqbeMaKb6I84kiDIZ9R3OpBHfVnJ6hR6IbMv Mjbs0UyL4MZ8UUo7b1HcbmQXbcWg8dbSFESMae/pKh/9gF8DDqWCoDkHvrEfwQ3ScwR0 aI/YLTvUxu2gLWW1hOuI0XmWieZQiBD+Ybs9B62upawpUmtgxDGG9JGXCCHI9p6gV4Jl qbPQSK9gMvtGnRD0j/+o/7b8GhHG+dlsak2IMQbCoYXgumDdv+hXt9VYhKwOdqtYAyRk VTra7XtDnXbai55arYFn1qlzFHFZWQoj/VuVuRmq+SkY5LZHL82jzgFMjqTY4H47d09t 5Xkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=MqeM3I8rabKhAIEdk1wwGjmL1P9GZYH14bcbbNjM89o=; b=f3+TdrgQNNDX4J11o5nTrgYb1TlP5ZWVloKaUBT0L7OTiD22zrY2aNxoNRQ5k2Oa7K aWIplcXoYWCRhRB3zfkEpRly8Fy/QgagROeGoTAm5kZxeVzvqRcCcCSl6dfmh0cDU/pb YmQ8q0dFr2xadqlkI1qxgzp1TBdzar/indGcrH56jGg2Dfxs4clrAPD+djdYIsqEDniF Sc+Ua/prDFDTNz3iuwVdKYfaRJ925zDSvfvqiJzZWg4bcy9SR7SYH/l0N42Mkm0uWsYs hjPKQlnaekZds/NiIlg5M1DOTCusDjNYJ2JboRZ2Pp3gJlWbbHNN+h/hOfe55sE0RACd IfkA== X-Gm-Message-State: AOAM5330SY5jk7qTf8QW+uZOHgZin5HaciwIO0q6uXL87tcG2xvqdo9d qrz60fEbQME62lgrZSiBxNgz X-Received: by 2002:a62:de01:0:b029:19e:a3f6:8eef with SMTP id h1-20020a62de010000b029019ea3f68eefmr3919519pfg.48.1607580884833; Wed, 09 Dec 2020 22:14:44 -0800 (PST) Received: from localhost.localdomain ([103.59.133.81]) by smtp.gmail.com with ESMTPSA id e2sm4492694pjv.10.2020.12.09.22.14.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Dec 2020 22:14:44 -0800 (PST) From: Manivannan Sadhasivam To: jacek.anaszewski@gmail.com, pavel@ucw.cz, dmurphy@ti.com, robh+dt@kernel.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, thunder.leizhen@huawei.com, Manivannan Sadhasivam Subject: [PATCH] dt-bindings: leds: Document commonly used LED triggers Date: Thu, 10 Dec 2020 11:44:31 +0530 Message-Id: <20201210061431.23144-1-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org This commit documents the LED triggers used commonly in 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 --- .../devicetree/bindings/leds/common.yaml | 72 ++++++++++++++----- 1 file changed, 54 insertions(+), 18 deletions(-) -- 2.25.1 diff --git a/Documentation/devicetree/bindings/leds/common.yaml b/Documentation/devicetree/bindings/leds/common.yaml index f1211e7045f1..eee4eb7a4535 100644 --- a/Documentation/devicetree/bindings/leds/common.yaml +++ b/Documentation/devicetree/bindings/leds/common.yaml @@ -79,24 +79,60 @@ properties: the LED. $ref: /schemas/types.yaml#definitions/string - enum: - # LED will act as a back-light, controlled by the framebuffer system - - backlight - # LED will turn on (but for leds-gpio see "default-state" property in - # Documentation/devicetree/bindings/leds/leds-gpio.yaml) - - default-on - # LED "double" flashes at a load average based rate - - heartbeat - # LED indicates disk activity - - disk-activity - # LED indicates IDE disk activity (deprecated), in new implementations - # use "disk-activity" - - ide-disk - # LED flashes at a fixed, configurable rate - - timer - # LED alters the brightness for the specified duration with one software - # timer (requires "led-pattern" property) - - pattern + oneOf: + - items: + - enum: + # LED will act as a back-light, controlled by the framebuffer system + - backlight + # LED will turn on (but for leds-gpio see "default-state" property in + # Documentation/devicetree/bindings/leds/leds-gpio.yaml) + - default-on + # LED "double" flashes at a load average based rate + - heartbeat + # LED indicates disk activity + - disk-activity + # LED indicates IDE disk activity (deprecated), in new implementations + # use "disk-activity" + - ide-disk + # LED flashes at a fixed, configurable rate + - timer + # LED alters the brightness for the specified duration with one software + # timer (requires "led-pattern" property) + - pattern + # LED indicates camera flash state + - flash + # LED indicates camera torch state + - torch + # LED indicates audio mute state + - audio-mute + # LED indicates mic mute state + - audio-micmute + # LED indicates bluetooth power state + - bluetooth-power + # LED indicates USB gadget activity + - usb-gadget + # LED indicates USB host activity + - usb-host + # LED indicates MTD memory activity + - mtd + # LED indicates NAND memory activity (deprecated), + # in new implementations use "mtd" + - nand-disk + # LED indicates disk read activity + - disk-read + # LED indicates disk write activity + - disk-write + # No trigger assigned to the LED. This is the default mode + # if trigger is absent + - none + # LED indicates activity of all CPUs + - cpu + - items: + # LED indicates activity of [N]th CPU + - pattern: "^cpu[0-9][0-9]$" + - items: + # LED indicates [N]th MMC storage activity + - pattern: '^mmc[0-9][0-9]$' led-pattern: description: |