Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2610478ybz; Mon, 27 Apr 2020 00:33:25 -0700 (PDT) X-Google-Smtp-Source: APiQypKKMbKzF0iFqKL9BczRG4fVBRhg/v1X3Cw1aeIC8Cjw/cUpwn0VeyGZLpVz7msln/CgVjDT X-Received: by 2002:a05:6402:1d93:: with SMTP id dk19mr16723324edb.170.1587972804896; Mon, 27 Apr 2020 00:33:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587972804; cv=none; d=google.com; s=arc-20160816; b=Pk0AkvTblk3HCE3A6mVycIKqpXm2ANnf/DMFA4XV6IU9MUijopqJ1CY0kDvfq7eD6L ku0R5gc8WHJIMfdGV4aIGJvGlJHqW1Wz6IK9cvK8BlgiyeyZGdLZKlcboUTVDfY/XNO3 K/y95ngZN3dbRKmelpbfCP9JKUwIvg6aIj4Ds335yfGj5cTQtK9eWfpaf17gqY/MRpmL GWkpxaWsIuExwPazPQ6LuajM8zuFUrg1U+UmyZXKvz14aX51JxWC+Oo3qXeoMv+UtC4K PfzjzbiuFiae+6TscWjMXYrVJ5ASuDFojDvsj5onOaX917mSCgsiiB5hW2BhKX3ZVHXF JPJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=T583chmbVsI1ydCvUh4m1TrjL3KUfS7OqL3Y+BYM/Jk=; b=N97CxZ8hfKv/4jQNCxwHKJ1n/GjRFrSopnUNojIjIeUIzrMwPznK0ULtZk9No4dxRK kOQIY5mFpr60LyaWjioQ7Mq55Ctl4o3OYRwk6J+vkUMoPQaqH/15bBImZRmJf88N/85p H/NCwewdotNqSW4892IamOuAjMRVn7KpOvNM6I71w+HVuqlBZvApZITx5GHcmzXPMAVm IGMTezZh0VoiiLntaQiOVnKKLoZ+FRMStu68780PeS4XuRzL6XfZswGKaYyMiPlUI8JP WVu+PMXx/BsD/8z0YkwJrHYoZnNWQhqeI+a/lsN1SKcRLZq/v8kq5CjY5mA+bRmHtrO+ Ba6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2nvhZUVC; 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 w8si7471092eju.477.2020.04.27.00.33.02; Mon, 27 Apr 2020 00:33:24 -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=2nvhZUVC; 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 S1726651AbgD0Hbp (ORCPT + 99 others); Mon, 27 Apr 2020 03:31:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:35470 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726504AbgD0Hbp (ORCPT ); Mon, 27 Apr 2020 03:31:45 -0400 Received: from wens.tw (mirror2.csie.ntu.edu.tw [140.112.30.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9AE3220728; Mon, 27 Apr 2020 07:31:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587972704; bh=W3coOJ/9IbQlK6OGsMXbje2kmeFvSqao3U4W5PN7U+0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2nvhZUVCE5MBhKyCf/PDJo9ooUIzM6DS9en+pF9MuQi3vO4D2cqssJiJzPGZw5al1 3SuUIyTgfFyOYEHBHIbjliqJKPcCV1drJWkvtSbw/EM+aXoIU/zXKiVoRwqboKPC8m +uQ90S8bQyV6GACWIOQEwlt05WMT9rQ2dZULr4i8= Received: by wens.tw (Postfix, from userid 1000) id 682645F81B; Mon, 27 Apr 2020 15:31:42 +0800 (CST) From: Chen-Yu Tsai To: Heiko Stuebner , Rob Herring , Jacek Anaszewski , Pavel Machek , Dan Murphy Cc: Chen-Yu Tsai , linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/3] dt-bindings: leds: common: Drop enumeration for linux,default-triggers Date: Mon, 27 Apr 2020 15:31:30 +0800 Message-Id: <20200427073132.29997-2-wens@kernel.org> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200427073132.29997-1-wens@kernel.org> References: <20200427073132.29997-1-wens@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 led-pattern: description: | -- 2.26.0