Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2678695ybz; Mon, 27 Apr 2020 02:23:44 -0700 (PDT) X-Google-Smtp-Source: APiQypJ87s4HALL58QioBbKlUqcS36H7E+B1RGt3eHravWjXu5kMU5agvdga6k+j/lE7r9bOys1b X-Received: by 2002:a17:906:ef2:: with SMTP id x18mr1137566eji.234.1587979424571; Mon, 27 Apr 2020 02:23:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587979424; cv=none; d=google.com; s=arc-20160816; b=haD3tFaFz6MKW7bclj01/gV6lBUI9OZIwBR0v1UB8j/g6VDIqWcimX2L0/Q9JGuqz5 IuPz0z3YVQX2PMCuhbREEKBDJwM8adpzvpVdWyN+gj3iTtAQSTW2PaxFl/pRCUvmfF63 /O4NfPhiJL8oGVb1wPvPsDVW6goizMaJrZtS1I9Z0K+41/36tT+eVhhA1Z+QP8KXi5Ut rgktnwJqXBFZFICOhMaAZGrK1T6Sktph60PhuXyHHVFA7C1MkacWSqdeKs0xeJBXGBwT leL4qI+sTrAqIuQDH2UCfswuVvwQqzLE+Wjcs4+wLEjs+7tv3zra1DTjWbN2/EUS/wdQ 5aSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=w1nFAdbawudfcQk2BiRbl+sk468M7SBEQ1tX82x0Vnc=; b=XPxgpwe5VKYgZ0kqdePms/UPYqmOaoRn9de6mOV9HRN+QgeR1shqhM/NLIpA8PiFOo lzdzcOVxxs2EfJECZpduciyh5QWVCFhpr8uxoFyAVFuhmZZ+axbib2mRSOIV0/aa12GN Deh4AjGwgo8+yuAqt4b+LJDdGWA/Q+DUqhShCDESE3pHWK9cohM69cbVaqYX3vJ9shFY 18YiVTfKTEDXgIfrARXWa9Kz10ZluxC4r6Tdac3xTRajGJ/MxhPz2/Uecj7rdwp92v7l q4PATywq8/ewYNGcyq0HSToet8dzUL7BQLvcWZ3SVzO1lURYEnrzjzXNEgLgJosOmI7r Tnaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qvjI3693; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k6si7866672ejv.507.2020.04.27.02.23.20; Mon, 27 Apr 2020 02:23:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@kernel.org header.s=default header.b=qvjI3693; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726786AbgD0JVy (ORCPT + 99 others); Mon, 27 Apr 2020 05:21:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:57282 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726507AbgD0JVy (ORCPT ); Mon, 27 Apr 2020 05:21:54 -0400 Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com [209.85.208.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D23A82075E; Mon, 27 Apr 2020 09:21:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587979313; bh=jKyA/Qjkmcdo4y/kF2F0R19weTj2X0wKUsAjpoDrwrA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=qvjI3693uqXiyrz1pqnm09s+lMplQHHaPmABgh2Z4nWsmJgEbhO3H/67Qgj4bOGFV foiwHBi8Rpl68csholnG9+7Q0X70q3relP8nRyYR44jzf5AndCgj2LMH/b4Qe2pEmU Pus41UVX3ahsNGo3RFtIXM5j0qTTHA7TGjGkMzXw= Received: by mail-lj1-f174.google.com with SMTP id g4so16810859ljl.2; Mon, 27 Apr 2020 02:21:52 -0700 (PDT) X-Gm-Message-State: AGi0PuYwDXmRPnwPBbwyvCZPsxvh+dmnHytO1yBA3myEFmbj/1IdqQsF XVMpLtPpXMmtADEP8vt+gn51SDyv3IMn8zbLOEI= X-Received: by 2002:a2e:910e:: with SMTP id m14mr12450836ljg.141.1587979310912; Mon, 27 Apr 2020 02:21:50 -0700 (PDT) MIME-Version: 1.0 References: <20200427073132.29997-2-wens@kernel.org> <4044214d-5385-94b6-d985-e1f824a60c5e@gmail.com> In-Reply-To: <4044214d-5385-94b6-d985-e1f824a60c5e@gmail.com> From: Chen-Yu Tsai Date: Mon, 27 Apr 2020 17:21:39 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 1/3] dt-bindings: leds: common: Drop enumeration for linux,default-triggers To: Johan Jonker Cc: Chen-Yu Tsai , devicetree , dmurphy@ti.com, =?UTF-8?Q?Heiko_St=C3=BCbner?= , jacek.anaszewski@gmail.com, linux-arm-kernel , linux-kernel , linux-leds@vger.kernel.org, "open list:ARM/Rockchip SoC..." , Pavel Machek , Rob Herring Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 27, 2020 at 4:33 PM Johan Jonker wrote: > > Hi Chen-Yu, > > > From: Chen-Yu Tsai > > > > The bindings currently list a very small subset of valid triggers for > > LEDs. Since many drivers or subsystems in Linux register custom > > triggers, the list would become very hard to maintain. > > > > Instead, just drop the list and allow free form strings. > > > > Signed-off-by: Chen-Yu Tsai > > --- > > .../devicetree/bindings/leds/common.yaml | 21 +------------------ > > 1 file changed, 1 insertion(+), 20 deletions(-) > > > > diff --git a/Documentation/devicetree/bindings/leds/common.yaml b/Documentation/devicetree/bindings/leds/common.yaml > > index 4c270fde4567..3b3cdab3fc15 100644 > > --- a/Documentation/devicetree/bindings/leds/common.yaml > > +++ b/Documentation/devicetree/bindings/leds/common.yaml > > @@ -79,26 +79,7 @@ properties: > > description: > > This parameter, if present, is a string defining the trigger assigned to > > the LED. > > - allOf: > > - - $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 > > + $ref: /schemas/types.yaml#definitions/string > > This makes it free form, but deletes the documentation of options that > are standard available for people without custom driver. > Where should that info go? As far as I know, there is no canonical list of standard triggers. In addition, what triggers are available also depend on the kernel configuration, so there really is no "standard". Since this is also configurable via sysfs, maybe it should be part of the sysfs ABI document? Either way I believe this will be up to the LED subsystem maintainers. ChenYu > > > > led-pattern: > > description: | > > -- > > 2.26.0 >