Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp20784432rwd; Thu, 29 Jun 2023 07:04:29 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4IdxnnQOdt8bbG//vkzdqWlGTq2CuiVm+m+E8SNuCAjoRmTKqaKKeVkbaI/4f6+vd8ql18 X-Received: by 2002:a17:903:2281:b0:1b8:3590:358a with SMTP id b1-20020a170903228100b001b83590358amr5764735plh.19.1688047469019; Thu, 29 Jun 2023 07:04:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688047468; cv=none; d=google.com; s=arc-20160816; b=RGIx3IxFMX/+5Ob62j/l3az+HZ6I5KVk6OjNkBfSIEI7WBZBAVgdBZR8FQEHfEOONC HM22LkjYS1Fs/f1TeVjN2qKOol2l0BZq4JyXnOSPFCih9qLtIWDMwE/B94hHLwiwmlPd pA7QCKFjXD5jREQ4Xyf9zO3j3ltsi6Cg+gMazmHG6FkYRTNSXKaNJRZ06joAmD7XEugG BousKRP4TxDuiMKWJO8rHsqyYGzrcZ46N1pGYes51zNY2XCa3lO3DwodAt77EFyXINp9 eyOQESW6a3DutWCphcR3pcEeMIyd9k57ufmqk7iqQT9Ekt4K3Z2NHrtMiP6ta4+PI/BE NTFQ== 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=mRwhJbcypJGWdkrQyemMfvhuOL1PFCUxpQrwdJedum4=; fh=eQOBUQJthvR4+YHtyNtfCujSyPa21bqeqfa1ex0BHv0=; b=upJSAN04gcsLXKAJk2CMSsZuKgUq2waNR+Pp5g3vvbc/9hG3N1uAPJrpQkL2IxOIXy cNoPKPsZPr5wCzbzcAsdBwIPN/rlF/3PCfkQ+WzcVMRqBTgfv0pADbZDe1oxAXALAPuP E3ayHTIPOufb01j4OJvCmOGjobVpPSnqzgt+BpWtfWXGnW8u8l5jVFW8J0r4klK7IV/q KzfJcJjGmqwZrhbcFnkAC05yUHfRckYrkKij7dBhoSq8baiInMX82aMzeTXioKeu7JZl EgBoiTxeb9s2bTS+L1V+nV1tD+ombM8Y0crV/W4eBJWdUGzk2tyfjALfiL3gIttlWAEU 3zJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=dKfXCQCN; 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 e6-20020a170902cf4600b001b829a32f2dsi3729350plg.457.2023.06.29.07.04.13; Thu, 29 Jun 2023 07:04:28 -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=dKfXCQCN; 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 S232097AbjF2Nre (ORCPT + 99 others); Thu, 29 Jun 2023 09:47:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229794AbjF2Nrc (ORCPT ); Thu, 29 Jun 2023 09:47:32 -0400 Received: from smtp2.axis.com (smtp2.axis.com [195.60.68.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02AB5358A; Thu, 29 Jun 2023 06:47:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1688046452; x=1719582452; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=mRwhJbcypJGWdkrQyemMfvhuOL1PFCUxpQrwdJedum4=; b=dKfXCQCN2vA5NEY0E47gha8oEDzuiNiCFHsPSfN3jPSzYzSOfvULH5j+ idHpzxvVV4ZxWhzB98MDKPoZ6mZNAvcgZp6bqleGXFNQ19ZQ+45cfwq+3 oIanOoHxfW/sEmP4viFSyLRqUvDdfILDwXEyvFuhh7GK0fhZgNYi6WZUO 5pOjo1gLEAg/xzuE6em4X8yzV4IwuTUXOj6nlX6J5kv4btfC4LWsWdn1i CSZ/StfhRuDHZkKllnA6zqsNrIXIRFkyi4dBfRZjIcIXxP3vsO94A9dRW XHwUINOonQ1nvRAlGlswzILMAv+up10G6yUsjbgAEbwhjc29vzwNtaIqr Q==; From: Astrid Rost To: Dan Murphy , Andrew Davis , Andy Shevchenko , Krzysztof Kozlowski , Pavel Machek , Lee Jones , Rob Herring , Conor Dooley CC: , Astrid Rost , , , Subject: [PATCH v1 2/2] dt: bindings: lp50xx: Add max-brightness as in leds-pwm Date: Thu, 29 Jun 2023 15:47:22 +0200 Message-ID: <20230629134722.3908637-3-astrid.rost@axis.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230629134722.3908637-1-astrid.rost@axis.com> References: <20230629134722.3908637-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 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. Signed-off-by: Astrid Rost --- Documentation/devicetree/bindings/leds/leds-lp50xx.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/leds/leds-lp50xx.yaml b/Documentation/devicetree/bindings/leds/leds-lp50xx.yaml index 402c25424525..6a1425969cb4 100644 --- a/Documentation/devicetree/bindings/leds/leds-lp50xx.yaml +++ b/Documentation/devicetree/bindings/leds/leds-lp50xx.yaml @@ -73,6 +73,15 @@ patternProperties: '#size-cells': const: 0 + 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. + $ref: /schemas/types.yaml#definitions/uint32 + patternProperties: "^led@[0-9a-f]+$": type: object -- 2.30.2