Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2518950ybb; Mon, 30 Mar 2020 07:43:22 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvZ3QP4KGccFhJTcJ/3TbicxdszapF/gLdVuxiei78viLUSDCYQxaGO8QxO1k6+ZBPe0msp X-Received: by 2002:a4a:d1a5:: with SMTP id z5mr9860166oor.63.1585579402425; Mon, 30 Mar 2020 07:43:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585579402; cv=none; d=google.com; s=arc-20160816; b=xMy9MBPs4c5BBc1PlhVa/cChxgccoFrxPaNjielafdLvAQVvy3wozeHdRo5ftNV/Ev MwGOEBm56+MaqMeL1QYNJ5VT32ynxj0dkFWXakcACUTz+tQHaYJj/irPU51ilyaENL+o e1/Vjutoty3lri1R/i0mVcBcN/hKAEJ+o9WcNNw1xYt7DhSyUhDBthozDQXv/JGfH+Tm /nBUtiU1jqCyDp3nlshiBadZvrRqsa2bzOTZWSuhVGyfH3T0geaLFs1IrLkdM8fU19sk aV8DdHv5NPtlH7uKQeNnejka6+O/rvmLMHAQ+RjmCB5ZjVJ2lzOgLYjcClNXMNcDBRO1 sEVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=Z6pGLvcJiDN7TQIxiTcGrUrMaVtIipeZQGdjkSCnW+Y=; b=qtCKJzrFlZDNq7olaeSiTdU8wq6R37QC6Yildl/H+8va/LIOWdYkQeCzoPz+RvSUUz /eJvxrfRPwn1ZYPGVLuwjq/Sl2HX8jqdlu40XR1aHUxgn+buYerGwxOkC4SR7s2RMR4N rX7/8eZ0O7LDrsq0k03sEI3AuHS/nXOW4Hk8S3EtJXgCLPesfyU99ONzPloqNbhO9hO8 A3MAK3FMigsmG1BiZKUwQbaV50EMFyRAoiZTxoDKbRHxytztcH11bwuCovIdQOvos5E4 GD4ZbdDXb+FcJxTQEZV7XmfF8a//r7xvvBStg7m2sR3echGwcUA4vxN95muHgXpX8FW0 bjQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=p7M1o9pG; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k27si5870162otf.40.2020.03.30.07.43.09; Mon, 30 Mar 2020 07:43:22 -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=fail header.i=@mg.codeaurora.org header.s=smtp header.b=p7M1o9pG; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727981AbgC3O2t (ORCPT + 99 others); Mon, 30 Mar 2020 10:28:49 -0400 Received: from mail27.static.mailgun.info ([104.130.122.27]:48340 "EHLO mail27.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727191AbgC3O2s (ORCPT ); Mon, 30 Mar 2020 10:28:48 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1585578528; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=Z6pGLvcJiDN7TQIxiTcGrUrMaVtIipeZQGdjkSCnW+Y=; b=p7M1o9pGtr/hpYqFexmQKNz/6NAnWJpbuRjWLAxK1NDHmvC+QzEWOMt7VPMx5mMD3uBjbArv aKqjCFqszF/8QL2jtgLiaJzg6uSeZjj/HdyHrpb4hkWdBxICK/0ib2ZTUoa4WSnuabiOw2L9 qX3VmH9XacOXtHu6jtzj9+0IADA= X-Mailgun-Sending-Ip: 104.130.122.27 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5e820212.7f0c896f1bc8-smtp-out-n02; Mon, 30 Mar 2020 14:28:34 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 2C790C433BA; Mon, 30 Mar 2020 14:28:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: kgunda) by smtp.codeaurora.org (Postfix) with ESMTPSA id 146FAC43636; Mon, 30 Mar 2020 14:28:33 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 30 Mar 2020 19:58:33 +0530 From: kgunda@codeaurora.org To: Daniel Thompson Cc: bjorn.andersson@linaro.org, jingoohan1@gmail.com, lee.jones@linaro.org, b.zolnierkie@samsung.com, dri-devel@lists.freedesktop.org, jacek.anaszewski@gmail.com, pavel@ucw.cz, robh+dt@kernel.org, mark.rutland@arm.com, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Dan Murphy , linux-arm-msm@vger.kernel.org, Subbaraman Narayanamurthy Subject: Re: [PATCH V4 3/4] backlight: qcom-wled: Add WLED5 bindings In-Reply-To: <20200325153716.tcx3t4bd6p3gr2x6@holly.lan> References: <1584985618-25689-1-git-send-email-kgunda@codeaurora.org> <1584985618-25689-4-git-send-email-kgunda@codeaurora.org> <20200325153716.tcx3t4bd6p3gr2x6@holly.lan> Message-ID: <469430df70c9e3e12bfce7b654d7ce0e@codeaurora.org> X-Sender: kgunda@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-03-25 21:07, Daniel Thompson wrote: > On Mon, Mar 23, 2020 at 11:16:57PM +0530, Kiran Gunda wrote: >> Add WLED5 specific bindings. >> >> Signed-off-by: Kiran Gunda >> Signed-off-by: Subbaraman Narayanamurthy >> --- >> .../bindings/leds/backlight/qcom-wled.yaml | 39 >> ++++++++++++++++++++++ >> 1 file changed, 39 insertions(+) >> >> diff --git >> a/Documentation/devicetree/bindings/leds/backlight/qcom-wled.yaml >> b/Documentation/devicetree/bindings/leds/backlight/qcom-wled.yaml >> index 8a388bf..159115f 100644 >> --- a/Documentation/devicetree/bindings/leds/backlight/qcom-wled.yaml >> +++ b/Documentation/devicetree/bindings/leds/backlight/qcom-wled.yaml >> @@ -20,6 +20,7 @@ properties: >> - qcom,pm8941-wled >> - qcom,pmi8998-wled >> - qcom,pm660l-wled >> + - qcom,pm8150l-wled >> >> reg: >> maxItems: 1 >> @@ -28,10 +29,23 @@ properties: >> maxItems: 1 >> description: >> brightness value on boot, value from 0-4095. >> + For pm8150l this value vary from 0-4095 or 0-32767 >> + depending on the brightness control mode. If CABC is >> + enabled 0-4095 range is used. > > I rather dislike some of the property descriptions using PMIC version > numbers to distinguish between peripheral versions and others using > WLEDx version numbers. > > Could the property description be rephrased to use WLED3/4/5 > terminology > instead? > Sure. I will modify in the next post. > >> allOf: >> - $ref: /schemas/types.yaml#/definitions/uint32 >> default: 2048 >> >> + max-brightness: >> + maxItems: 1 >> + description: >> + Maximum brightness level. Allowed values are, >> + for pmi8998 it is 0-4095. >> + For pm8150l, this can be either 4095 or 32767. >> + If CABC is enabled, this is capped to 4095. >> + allOf: >> + - $ref: /schemas/types.yaml#/definitions/uint32 >> + > > Similar thing here, is PMI8998 simply a synonym for WLED4 or there > something special about the PMIC versioning that requires it to be > used? > > > Daniel. > Sure. It is synonym for WLED4. I will modify in the next post. > >> label: >> maxItems: 1 >> description: >> @@ -124,6 +138,31 @@ properties: >> value for PM8941 from 1 to 3. Default 2 >> For PMI8998 from 1 to 4. >> >> + qcom,modulator-sel: >> + maxItems: 1 >> + allOf: >> + - $ref: /schemas/types.yaml#/definitions/uint32 >> + description: >> + Selects the modulator used for brightness modulation. >> + Allowed values are, >> + 0 - Modulator A >> + 1 - Modulator B >> + If not specified, then modulator A will be used by default. >> + This property is applicable only to WLED5 peripheral. >> + >> + qcom,cabc-sel: >> + maxItems: 1 >> + allOf: >> + - $ref: /schemas/types.yaml#/definitions/uint32 >> + description: >> + Selects the CABC pin signal used for brightness modulation. >> + Allowed values are, >> + 0 - CABC disabled >> + 1 - CABC 1 >> + 2 - CABC 2 >> + 3 - External signal (e.g. LPG) is used for dimming >> + This property is applicable only to WLED5 peripheral. >> + >> interrupts: >> maxItems: 2 >> description: >> -- >> The Qualcomm Innovation Center, Inc. is a member of the Code Aurora >> Forum, >> a Linux Foundation Collaborative Project