Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp21998286rwd; Fri, 30 Jun 2023 02:29:02 -0700 (PDT) X-Google-Smtp-Source: APBJJlHgJfnRfkOJGhs4FOtOsuA5zi910SPBozUvyIvTadPcuVj53ia+qcVU4B2D7AIVOLPW13tm X-Received: by 2002:a17:902:e9d1:b0:1b5:361:cefe with SMTP id 17-20020a170902e9d100b001b50361cefemr1568837plk.52.1688117342576; Fri, 30 Jun 2023 02:29:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688117342; cv=none; d=google.com; s=arc-20160816; b=zPFXZJzPW1Vr36sNx4TcbVe8iE6pNKh72pZFaVY38s0j5SDvQSl9iVmfrNNLJREnGL EMgYIXmrMeCWHLRevpyKd2ccJMgsk+p+C8HzzX57V3zmw3hD9nfX8gRpVvVyqltAeOXK q7+u1H7w3D44KXZwu/0uYfwPzSPy7f5CDt9OXULnOv4zlvwQboOQO6mgZMsk76YlpplF KSRwn2KPEqQpy4F/3c0zwYoFVP5JoRGECyW93I22x6SYWZ+lNRjdjguhQgMPMbpBPRSP 6KXBLHJwQO+chOPiWdFiL0CW8VWekHcrJ5zg+5pzq5eE++NOPdhc53mQXO6ANZNZ7dSW E8kw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Jp23SoY0A89Wy3Z2zA4/6qa4NlchrQutGkx1p0uuPYk=; fh=EjrugK7tKu/PvtzoXbWhMVqmDv02azh6FSSiLn65dPA=; b=xWlvI2fzwq8WWw52gmw4VIn/UFkxwzJXWMC76dJYhzqHUQNY3YsTuIgb+Kheng1ddv rrV+Uju3O66AJ6SK4oPuP/FtmMz7gApSZ6le/DiG/w+CByluv54AigMAxyezR1p6KNh0 SJcrUHmGN38janxgcMJAVp+7/SAlrZzk6hgchZqqJc27Hm8CeV976bQDfIFCUIAjOfGH 3nTGyBJ2SavkoaYWjSftxeHxHA0LDHL7lfoBNE4WDzinNDqHMp3Ov9Ct2iHutaA3Ce2w LleQpIF1gEhLXI1dkaAm3SpA9CFApsPygoxhTggocM7urCEs7/MPUA9oaxd3FgljGtUv khRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=qLirsg7u; 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=axis.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i7-20020a17090332c700b001b802129b3dsi3105895plr.34.2023.06.30.02.28.48; Fri, 30 Jun 2023 02:29:02 -0700 (PDT) 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 (test mode) header.i=@axis.com header.s=axis-central1 header.b=qLirsg7u; 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=axis.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232563AbjF3JX3 (ORCPT + 99 others); Fri, 30 Jun 2023 05:23:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231140AbjF3JWz (ORCPT ); Fri, 30 Jun 2023 05:22:55 -0400 Received: from smtp2.axis.com (smtp2.axis.com [195.60.68.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F97535AF; Fri, 30 Jun 2023 02:22:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1688116975; x=1719652975; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Jp23SoY0A89Wy3Z2zA4/6qa4NlchrQutGkx1p0uuPYk=; b=qLirsg7ufImVJ9OJleQz85WTnEKRlIG5N/akCRiU2OnciJB7vsPPRFfT tFrx2djsweiz+M5+dP5iZakxZpARNU9XyvKT9JdBaSiPNorkT+BR2NeFK 5ZFBR7wFoHWRSPhg8ukemSoO1/oA4Xq0efgKR+GtEVURpcv6rHTVYSC13 uwlX4HvGFIgTy+MP/ZlllUlgymZcd8X3Ac8BjCyVtxf09hUANUMq1iYQM g9O7TX3kF3UDiflzOUnnGUaciTadi7JV1ltcDpnwjdh3/NeGxl5bh54gd uLFG3KZ0AeFrJQNEh+MfkJMz2A5ELm/GDPhZqQLu44HQfL2RMwqAhYeQi w==; From: Astrid Rost To: Andy Shevchenko , Krzysztof Kozlowski , Rob Herring , "Jacek Anaszewski" , Pavel Machek , "Lee Jones" , Rob Herring , Conor Dooley CC: , Astrid Rost , , , Subject: [PATCH v2 2/2] dt-bindings: leds: Read max-brightness from devicetree Date: Fri, 30 Jun 2023 11:22:47 +0200 Message-ID: <20230630092248.4146169-3-astrid.rost@axis.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230630092248.4146169-1-astrid.rost@axis.com> References: <20230630092248.4146169-1-astrid.rost@axis.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 Add max-brightness in order to reduce the current on the connected LEDs. Normally, the maximum brightness is determined by the hardware, and this property is not required. This property is used to set a software limit. It could happen that an LED is made so bright that it gets damaged or causes damage due to restrictions in a specific system, such as mounting conditions. Note that led-max-microamp should be preferably used, if it is supported by the controller. Signed-off-by: Astrid Rost --- Documentation/devicetree/bindings/leds/common.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Documentation/devicetree/bindings/leds/common.yaml b/Documentation/devicetree/bindings/leds/common.yaml index 11aedf1650a1..603a5630fc3d 100644 --- a/Documentation/devicetree/bindings/leds/common.yaml +++ b/Documentation/devicetree/bindings/leds/common.yaml @@ -160,6 +160,16 @@ properties: For flash LED controllers with configurable current this property is mandatory for the LEDs in the non-flash modes (e.g. torch or indicator). + max-brightness: + description: + Normally, the maximum brightness is determined by the hardware, and + this property is not required. This property is used to set a software + limit. It could happen that an LED is made so bright that it gets damaged + or causes damage due to restrictions in a specific system, such as + mounting conditions. Note that led-max-microamp should be preferably used, + if it is supported by the controller. + $ref: /schemas/types.yaml#definitions/uint32 + panic-indicator: description: This property specifies that the LED should be used, if at all possible, -- 2.30.2