Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4446284imm; Fri, 18 May 2018 05:22:12 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoMrwfHPkoQdrFkeEUX9imBkJwSUXVrZb+0H2f2R0S0ia8QhSpoXD+qCvAAEttPmyh5oHLs X-Received: by 2002:a62:6c3:: with SMTP id 186-v6mr9122129pfg.151.1526646132510; Fri, 18 May 2018 05:22:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526646132; cv=none; d=google.com; s=arc-20160816; b=vLm+jz8EseajezlLeOm0ZNH9dY7pX070FpGL7PwB+sCWjaVwXdD0/XTFeTGPfoFzL7 hxqgN9oms3Xv2qyQNM1KWoCSgBqrEsaB27He1I222GkX1OX+Ljzp8twmAC3wUdt3DiGP 9y7NGU1M5b2k+ECPP7ulqp65KTe+IQhYHBzhbY/zcl6fHeFJ/w3GdXhFjrKm4jVJjMiI bmSCs1klzzNZISmd5Ac6vFuauTHrHi8o/pOU3ytvUmk8iR0h0FgVSD9IMTC5oKHiGyd4 XuynQtW8vywYqISXUUIKk7WfyVuG2j3bt1zd05qdmKzOy50LjiFWNMc2Dnw8ya7gvxrX dJAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=u4Sudq4Zklw7ymv+NMJL/XQMmj6j9FgjTrzv0UdPZYY=; b=bccvSSs8fsmbn1siIErB/dRB+FKQJC+zIkDyYlA0DWRWr2sUp3lkXKt3vznfFlLpxH VMhoWW1jQIRR5loF/FALREjl0+jLmV8zuItSq2PUWobhhQtvxPJOQDIUNtDA8FduWTVJ 3VS0g826kDxg6raHuUNID75wKV0faSv8C2wp/db7MEhfqqX/41hNwgQKrOAqPk3i3c6H 3htDgo6cLyIddNd2DGHBRTBcthAB6dzhFWWEY86HAtidr3hnOFxtDa6brZ620WgyMO4T GBg47ou7rct/Qo9mTL12ow+/rsE0sQ2vQGY3umZcLZXJ3UaUln2mzNFK1YJVAWzJogBS ia9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PX72RTOK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id s3-v6si7312807plb.394.2018.05.18.05.21.58; Fri, 18 May 2018 05:22:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PX72RTOK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1751531AbeERMVK (ORCPT + 99 others); Fri, 18 May 2018 08:21:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:36386 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751105AbeERMVH (ORCPT ); Fri, 18 May 2018 08:21:07 -0400 Received: from mail-qt0-f169.google.com (mail-qt0-f169.google.com [209.85.216.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E981E20858; Fri, 18 May 2018 12:21:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1526646066; bh=9GyQ5+T7DDj0Vq2Mq5276/hd2xMe7WhG87tefvqZPGE=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=PX72RTOKVCsFYtwPRJG3qqM9XzAeesfhu+KA2mVQFBfvPxeBkLLPByCFS6CU2g7jp Bk8qQ9wDwfKS1v3e4X1cnu0/JMUIZa1tKI8g/25eroL2lG+CRsBe5tej9XNEUn+NP/ NjqNEvFToP0JRgnXG4mKu8rj2cgHb/vCHwe005MU= Received: by mail-qt0-f169.google.com with SMTP id f13-v6so9926455qtp.10; Fri, 18 May 2018 05:21:05 -0700 (PDT) X-Gm-Message-State: ALKqPwfTH/pD/YbnKKZfXl1P+VYc1VuL8v/g0whDd+TmggyGfCs/B7sK sICXD0xE4a1udNDvuAvELTxuLehw61Cuw4uiGg== X-Received: by 2002:ac8:266f:: with SMTP id v44-v6mr9379915qtv.354.1526646065161; Fri, 18 May 2018 05:21:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.155.2 with HTTP; Fri, 18 May 2018 05:20:44 -0700 (PDT) In-Reply-To: <7143faaec2d0b7b0fd7e0f3b512839d8@codeaurora.org> References: <1525341432-15818-1-git-send-email-kgunda@codeaurora.org> <1525341432-15818-3-git-send-email-kgunda@codeaurora.org> <20180507162004.GB2259@tuxbook-pro> <82fa847760309cb3382bf0a8da50162c@codeaurora.org> <7143faaec2d0b7b0fd7e0f3b512839d8@codeaurora.org> From: Rob Herring Date: Fri, 18 May 2018 07:20:44 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH V1 2/5] backlight: qcom-wled: Add support for WLED4 peripheral To: Kiran Gunda Cc: Bjorn Andersson , Lee Jones , Daniel Thompson , Jingoo Han , Jacek Anaszewski , Pavel Machek , Mark Rutland , Bartlomiej Zolnierkiewicz , Linux LED Subsystem , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , dri-devel , linux-fbdev@vger.kernel.org, linux-arm-msm , linux-arm-msm-owner@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 17, 2018 at 10:10 AM, wrote: > On 2018-05-17 18:01, Rob Herring wrote: >> >> On Thu, May 17, 2018 at 4:47 AM, wrote: >>> >>> On 2018-05-08 15:55, kgunda@codeaurora.org wrote: >>>> >>>> >>>> On 2018-05-07 21:50, Bjorn Andersson wrote: >>>>> >>>>> >>>>> On Thu 03 May 02:57 PDT 2018, Kiran Gunda wrote: >>>>> >>>>>> WLED4 peripheral is present on some PMICs like pmi8998 >>>>>> and pm660l. It has a different register map and also >>>>>> configurations are different. Add support for it. [...] >>>>>> + value: >>>>>> + For pm8941: from 0 to 25000 with 5000 ua step >>>>>> + Default 20000 uA >>>>>> + For pmi8998: from 0 to 30000 with 5000 ua step >>>>>> + Default 25000 uA. >>>>> >>>>> >>>>> >>>>> These values could be described just as well in mA, so keep the >>>>> original >>>>> unit - in particular since the boot-limit is in mA... >>>>> >>>> Ok. Will keep the original as is in the next series. >>> >>> >>> Here, I may have to go with the approach as in "qcom,ovp". Because for >>> pm8941 >>> the current step is 1 mA (I have wrongly mentioned as 5000uA here) and >>> for >>> PMI8998 >>> the current step is 2.5 mA. Hence, I will add another variable >>> "qcom,current-limit-ua" >>> just like "qcom,ovp-mv". >> >> >> Use unit suffixes defined in bindings/property-units.txt. > > Thanks for pointing it ! hope I can use "qcom,current-limit-microamp" and > "qcom,ovp-millivolt". I am asking this because i found only "-microvolt". > "-millivolt" is not present in the bindings you pointed. That's by design so everyone doesn't just pick whatever random units they like. Does microvolts not give you enough range? Rob