Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4270499pxu; Wed, 9 Dec 2020 12:38:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJyTWPzVebH9yx2OOqu7H7IFVm1Kdi/Vd6A535loUolQXw8qq5kJmJzc6j8VUKDsMmTVLzGV X-Received: by 2002:aa7:dacf:: with SMTP id x15mr3675280eds.134.1607546326512; Wed, 09 Dec 2020 12:38:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607546326; cv=none; d=google.com; s=arc-20160816; b=ojzXQ97BWtNjna8c7GtG1ebyiv67qcDwK6JiIay/LBh16O04Hau8r/+JW1cAYZ6uEc AgdSVshuRMWlcrylsIki8iCY/gVjj2KQL+draJulpNa+JNZ4qz22ILInXAsDRQliLWVD pgrn67t1Zmhv2UdqoObQLgSUpYOpZZ8cGDAxnEPj//tjgyzRSOsg1Oqcq0S7VWox4n9S 4gV+n6jNhII4p1pf6iTnKsm2X58XevCrLNlPRG7UpNAZDtojhQga8KJ1Su2zmNOlw+B/ UpVoPG4CxnvwKi7V29lZKnhQ5b/UNR6qQON3zly8uWtbAFS2p7/7Hcf5XGPc7vUq5WJ9 966A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=bWf259ujDoB2ZIyMFOsodZPaeqbO0l1sTiL/ZFlI8PI=; b=lvB2h/qPz85hqNYp2op5fEBS6L3qC+XKDFmfYXcExGq/3cNWDgukmRuqlJ89ooTrIf qAFxRQ1ou5GsJ9klL3TbotKfWG0T1g4DQzepGXlMzMeqhzx/bLNOR6JvO023YIrj8Leu 55c9p/w09OKhkEbuSBFu1Gz8Fmg0qonj6UKehlOQBhQ7K2cyYB2eeZmPDkv7hQv+9jMr ZMk3QDDOrW7BJQH8guJj7EIoYCNLZRcfk2AXPmcZXebqukmQB66Q+o66B1hgshxgE9bj 3xZ6y6S1l/YIlqUR3zfJjjq1d1DqSs3igtYfMfKsR6nI9YbaqvNtiYNTafTiMmLhzmX4 PO1Q== ARC-Authentication-Results: i=1; mx.google.com; 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 z6si1276783ejw.244.2020.12.09.12.38.23; Wed, 09 Dec 2020 12:38:46 -0800 (PST) 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; 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 S1729911AbgLITyU (ORCPT + 99 others); Wed, 9 Dec 2020 14:54:20 -0500 Received: from mail-oi1-f194.google.com ([209.85.167.194]:42756 "EHLO mail-oi1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726501AbgLITyU (ORCPT ); Wed, 9 Dec 2020 14:54:20 -0500 Received: by mail-oi1-f194.google.com with SMTP id l200so3016935oig.9; Wed, 09 Dec 2020 11:54:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=bWf259ujDoB2ZIyMFOsodZPaeqbO0l1sTiL/ZFlI8PI=; b=WZ5aur4ekNLLrkhPqB5BIQRhXnA8l31A7T1sZJKkvT3JVZuIQ1Xmc6339MJFULLmuQ LpIhDCI7c/tAyJZTEmXA/LwUmGQbQhWmqyw8EqYxW4KYcuKckM6jyTWDjVfZJuaobUE8 0u2M3uET3fgXPNWCE6xx1TrEJ54sdeQLv8Dpt8C29ZL9+vgDVZ53/ZKJ5jkHZghl47HE ElHdnBgpR8saJWeqRhq7qyp8ttLvKS+BJjSW7pyAPelYDDtMaY7izKm6LqWGByiCd6Eb BU4Ip9Mc6DCj5QRXiGZbeYI5HwRLNDg5cMgyy3YqDIb4PnfspzjVd4gqvmzivdJa5HB7 0BSg== X-Gm-Message-State: AOAM5303ODFpuNdbsydjW6d9hkWet42/LT2nyIL42xOspK834lmNRWey QIg61k1OpUw6801FMa20jA== X-Received: by 2002:aca:5cc1:: with SMTP id q184mr3042479oib.46.1607543619166; Wed, 09 Dec 2020 11:53:39 -0800 (PST) Received: from xps15 (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id u15sm493924oiv.28.2020.12.09.11.53.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Dec 2020 11:53:38 -0800 (PST) Received: (nullmailer pid 837413 invoked by uid 1000); Wed, 09 Dec 2020 19:53:36 -0000 Date: Wed, 9 Dec 2020 13:53:36 -0600 From: Rob Herring To: Jacek Anaszewski Cc: Pavel Machek , Gene Chen , Matthias Brugger , Dan Murphy , Linux LED Subsystem , devicetree , linux-arm Mailing List , "moderated list:ARM/Mediatek SoC support" , Linux Kernel Mailing List , Gene Chen , Wilma.Wu@mediatek.com, shufan_lee@richtek.com, cy_huang@richtek.com, benjamin.chao@mediatek.com Subject: Re: [PATCH v11 3/5] dt-bindings: leds: Add LED_FUNCTION_MOONLIGHT definitions Message-ID: <20201209195336.GB826766@robh.at.kernel.org> References: <1606906011-25633-1-git-send-email-gene.chen.richtek@gmail.com> <1606906011-25633-4-git-send-email-gene.chen.richtek@gmail.com> <20201202122329.GA30929@duo.ucw.cz> <20201203114044.GA9061@duo.ucw.cz> <87a4f0b9-1450-cd9f-70ea-dd5b408893f3@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87a4f0b9-1450-cd9f-70ea-dd5b408893f3@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 03, 2020 at 09:06:42PM +0100, Jacek Anaszewski wrote: > Hi Pavel, > > On 12/3/20 12:40 PM, Pavel Machek wrote: > > Hi! > > > > > > > +++ b/include/dt-bindings/leds/common.h > > > > > @@ -78,6 +78,7 @@ > > > > > #define LED_FUNCTION_INDICATOR "indicator" > > > > > #define LED_FUNCTION_LAN "lan" > > > > > #define LED_FUNCTION_MAIL "mail" > > > > > +#define LED_FUNCTION_MOONLIGHT "moonlight" > > > > > > > > There's "torch" function that should be used for this. I guess comment > > > > should be added with explanation what exactly that is and how should > > > > the LED be named. > > > > > > > > > > According to mail, 11/25 "Re: [PATCH v7 2/5] dt-bindings: leds: Add > > > LED_COLOR_ID_MOONLIGHT definitions", > > > The Moonlight LED is LED which maximum current more than torch, but > > > less than flash. Such as front camera fill light. > > > I think our channel is moonlight, not torch. > > > I will add this description to comment. > > > We can't exactly define moonlight current level, because every vendor > > > has their own specification. > > > > So... what is the timelimit on moonlight? > > > > But if it is used for camera illumination, I believe it should be > > simply called flash. > > Let's keep FLASH reserved for LED flash class devices. > This device has already two other flash iouts. > > Also iouts amperage gives clue that they have three different > functions. Perhaps there should just be a table of currents and max times rather than trying to continually expand this while tied to function. One could simply want an LED brighter when blinking than steady state would allow for. Rob