From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 953F2EB64DD for ; Wed, 5 Jul 2023 06:33:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229635AbjGEGdG (ORCPT ); Wed, 5 Jul 2023 02:33:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231267AbjGEGdF (ORCPT ); Wed, 5 Jul 2023 02:33:05 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B22A10F2 for ; Tue, 4 Jul 2023 23:33:02 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-991da766865so748314066b.0 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=GYWITJf67PnPgG5NHqvibB15Fr0/lbMFajWu0rR63L0Y25p34moQiip4Apf76GYuce RhsewxHJnsXkrHVBFcaOAKxZc1dtGU0fgmnzEqF4GCbc8U3Od0prEjAWm9B57O6aKWiw xxJ0GUVmOpLC9LO4NjssLpY8C70XeW51+oV1FbZoJtk8jjRoDBEIkGzEs62HY5CUyKdR EOgRMSYiXistOMkSZG7dXzFGOZszoNw67HCE8VRNHc7IKkF2pFg5F54g+x/rGiTjRUPc kJ9Rl6FzEm9ig4us0fxwVNqyMxuLVLWgZrN5ROWfeNZpGDPpmVJkvWg5hShhvLbaP7xp /SiA== X-Gm-Message-State: ABy/qLaGLFcOjaVdJJ21CSdxYUv9JurZwiErtEx8EPxIukc8WiA9HpxC XssSZP3n3soUIoVyedtqjjgu2Q== X-Google-Smtp-Source: APBJJlGsadBiPVigTMaE5rljF1uJJTj29+Kym1A+vLFCCYI2BUjNKUKvCrCTBWCD+rZ+TVw+Lxn7WQ== 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 Precedence: bulk List-ID: X-Mailing-List: linux-leds@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