Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp28631536rwd; Tue, 4 Jul 2023 23:50:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4JERiwiYKVQhwn2npZSP2OdFaMZxEBjTVgKwMCF91agExmZgNXVlnhUODkcllZbaG0hfps X-Received: by 2002:a05:6a20:488:b0:126:3c08:77fa with SMTP id 8-20020a056a20048800b001263c0877famr14213803pzc.48.1688539807652; Tue, 04 Jul 2023 23:50:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688539807; cv=none; d=google.com; s=arc-20160816; b=MteM9NHUxO6Ln4Ls46YL1560a/EGC3os2YymjSJMgYnCjEc0PpzqcCPLGJeVdwgTxS FCDElN5J+Uzs6H4DQM4MnV+XHfn9RyvbrTCjZKsdR+JfezpTnRSpuR6cLYo+UbN1b8er UndKfC6WsPYT7iKL5RThE7rO15agkUtVCHoKYeMB7xqlMOJ03tRPC0RAWFGt2wMl2yFz 8DvlNiYhyUh7uMPKmpiq4ypIynuehiY562ZZ1V3cKDce8rlJ8kd7CMH5wzSFt4Kvfntk ZNthQ8Xne4GM0+G/MOaq3yGrpyNZU14k6I9JyhkbJEFOf9m3QVwNseBII+DnY1Wbp10+ eaEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=4lCoKmln4WuI/lt9cbFISAsB5RRGuEG6xwKWMEIrA/0=; fh=y/EYCQpwhzpqJlv0Pe44V2Qe79DoWq39ZuKDuWU28NE=; b=YYPbmyCFa1TiaaokLI5VF75WYrJbR9nzvV4gi6G3feJ9/LOX2Pz4jvhtrpl8ZGkgbi P3INisa3kgj0hr/fLoIUmanfR7X+UpPhEAPGraxXQ6Gxxp8iT08clixFbUoembNRwul3 Ec+6KnfFp2VmPAnYqeg59rY5gckIT3AW7emmzQ0x9lWPOWu9QdBtpDqwhzCi4XO2knFT FlaZB2i9zR25tUHR6orFWk+GRDa1Spc6VngnfLmi5Pm0reb8c7wyaMTEksMN8a49oghr YAk3ydP96WaSjvVfx8Xy22+bV+oYnn9jpeCUkvZ/57SmTYu10O/Wy69Lv7ZVQsn68Mny SBSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GSTPFRMI; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t13-20020a1709027fcd00b001b8946f3f95si6478517plb.312.2023.07.04.23.49.54; Tue, 04 Jul 2023 23:50:07 -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 header.i=@linaro.org header.s=google header.b=GSTPFRMI; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231315AbjGEGdH (ORCPT + 99 others); Wed, 5 Jul 2023 02:33:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231270AbjGEGdF (ORCPT ); Wed, 5 Jul 2023 02:33:05 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5964710CF for ; Tue, 4 Jul 2023 23:33:02 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-992ca792065so665549966b.2 for ; Tue, 04 Jul 2023 23:33:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688538781; x=1691130781; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=4lCoKmln4WuI/lt9cbFISAsB5RRGuEG6xwKWMEIrA/0=; b=GSTPFRMIiregd8994uXCU/ps7YmgrfBQlkeGkTe5dmR/tL0uslA5HRNx5u0en7yNtx 7EBjtv04Yucp+bEQoICW/zO6J7JuBuU0mrAo3SCgWkX9SMoQ7cUPREaHTRsPPLhXASsK ue2U54t5spFp8lQ7ODW5K9dPXIF2/2i31ZkEvLtOso2fpm/C99SuC4DrS2eDn0SfB4Tl nJVUqhJ9MocMsdvsqHINLqARTKkfJ8LuHY0Zn+KnjmJtIh591UAxeRrGj/3cvVM3vK2Y mpatdrd6/51+X74OwKYSKuj60qduSpeMuhu+2zWVpqYZdcE+M/0uqcbgSwcgS/H+KB1o cJpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688538781; x=1691130781; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=4lCoKmln4WuI/lt9cbFISAsB5RRGuEG6xwKWMEIrA/0=; b=Tz0JQtR+TiR+24KSZTR3oXzu41BSDl8vvrWU7CtvtzCAFNEcP4RyAotEPqEYeZ3BrE e5VNa3AgRJ24lV1yhVikB6FCz2qqh+C21YoJekx1nAd1/ZuvWNsslAvacmP/E5Rjfh+d IleAgZFTDNH91AarL/j3wVicpoHkSox9ss7K2XiLhcmAiDNiqSKkUZcYkMIUvs6qR+bD I6ryEBhCaE2WgUPwhdahG9I1pu+NoKPoVPw+bs6TZ7tyDVmvTYJHsKtYlatTTl4ti8FL TXtvSLhSIeXUWQfPpV8Xstj9GTcmUwIODAC1M93gM609q4ZzHMypqeXEHvBSDLi67gJc TiwA== X-Gm-Message-State: ABy/qLZTUbBzXqRvB8SU7C7qY8ABGoskcvO/0bcXUROUUulXLTWpx2Yi 7ph7ercC1/oZMVYsYl0TUKzohg== X-Received: by 2002:a17:906:b7c7:b0:98c:df38:517b with SMTP id fy7-20020a170906b7c700b0098cdf38517bmr11027580ejb.33.1688538780832; Tue, 04 Jul 2023 23:33:00 -0700 (PDT) Received: from [192.168.1.20] ([178.197.219.26]) by smtp.gmail.com with ESMTPSA id l16-20020a1709065a9000b0098884f86e41sm14056844ejq.123.2023.07.04.23.32.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 Jul 2023 23:33:00 -0700 (PDT) Message-ID: <4adb975e-bbd0-9a53-372a-404ec857a632@linaro.org> Date: Wed, 5 Jul 2023 08:32:58 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH v3 1/2] dt-bindings: leds: Read max-brightness from devicetree Content-Language: en-US To: Astrid Rost , Andy Shevchenko , Krzysztof Kozlowski , Rob Herring , Jacek Anaszewski , Pavel Machek , Lee Jones , Rob Herring , Conor Dooley Cc: kernel@axis.com, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230703130313.548519-1-astrid.rost@axis.com> <20230703130313.548519-2-astrid.rost@axis.com> From: Krzysztof Kozlowski In-Reply-To: <20230703130313.548519-2-astrid.rost@axis.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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 On 03/07/2023 15:03, Astrid Rost wrote: > 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 this flag is mainly used for PWM-LEDs, where it is not possible > to map brightness to current. Drivers for other controllers should use > led-max-microamp. > > Signed-off-by: Astrid Rost Reviewed-by: Krzysztof Kozlowski Best regards, Krzysztof