Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp736703ybb; Wed, 25 Mar 2020 08:38:32 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuWXs1V2f9YnfaNqVdb6AhSx0/kvewskhaAij5vKZrc2FoyWzNCf1XJWysgyqlMlGVGA3of X-Received: by 2002:aca:a883:: with SMTP id r125mr2818031oie.10.1585150712002; Wed, 25 Mar 2020 08:38:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585150711; cv=none; d=google.com; s=arc-20160816; b=abd9fXH0v/2ajH7myBsdGQ6cSXyIf6sG6CIBc/KhynhUiLqrnyc6u67AH6I26RQ1/9 tb4dI7e0gF/uoPCpTeMJdbNBEd6fxLBezRTGWUR3Ev/QiPaUdAOYgHPsmRrd9J1DLjdo qjiH4Do8FWkDaD1ziv6hVVYcQlD7tPsK3D3PPz9XyrwIW0dOR+OVKYifMLyX5iUNcoS8 yWSPrNQz5v5wibRnXtyacdK2YuaH31ywHz8xH8GGMtc6qH5KED+9VXTQezdeS+hcjeHd xbbNtRVRT1s2E2SdoMVw/EPymDA9UVasmgxn0g/J1aRMgTVRhdPoG5p5bUmWv0kTfxIp T53Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=rhpfx4/m5UT7Xzs51ZxQ03MQcWW4S3aHcV6k0fxCgW8=; b=MRGM7lKGdgehpTSO/6fSH+k8rfWqG0Us+8EMRO26A4HJ+hkC8gNHWTbLHw6jSm8ZYA cTGZHcr7Br/91UqU42q/ADWeVSxIkKWia/G0bZUtiTJz1O8sS4s6eaW0B85KPtM2WDCd TojvwHpYFJq7KZm1QRc4xtblCKoY5qasSLffZPL/sFNGdg5LEGR1M619Xdkkz/s8YJgk JzOgXvNK7p++/o1wZ6fv0f09NQb7X6xm1rDCaJy/nCa+nLaS4S/xbgJPzp4sL8NJzh8u JTmcvX4ZLDw+MaADMEd6dHkMPb16RPlyjIaXimxMJf4wMo456TVV+fngOE3ITaTTG1UY pO9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=J5cfQtP2; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e11si11148100oib.152.2020.03.25.08.38.17; Wed, 25 Mar 2020 08:38:31 -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=@linaro.org header.s=google header.b=J5cfQtP2; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727798AbgCYPhU (ORCPT + 99 others); Wed, 25 Mar 2020 11:37:20 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:34566 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727466AbgCYPhU (ORCPT ); Wed, 25 Mar 2020 11:37:20 -0400 Received: by mail-wr1-f67.google.com with SMTP id 65so3745049wrl.1 for ; Wed, 25 Mar 2020 08:37:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=rhpfx4/m5UT7Xzs51ZxQ03MQcWW4S3aHcV6k0fxCgW8=; b=J5cfQtP2IIFUEbxhdInPj+h0Pr08nmDXVvEoAiHkRcUhApMPv+9kGmE22t5XJkLIlo J3ntJB0cVM00iT4bGkgdPULTN0af8r1F2/kGRjEDLDhCvj71lEDk82Op1oz+UTjbwAe6 ebkQ9qfIZsgmNDJtLgMlWLsVq1dC8EonjZAIKhhkf3WMkPDnUyjXzwCYqqseOJa0eTY0 Nm/K2QPOZ0T7SnJn3RtErSbh+SoUGHtZQDR426H2zGajpzuzmKTebQSnp3AFnJ2KySyC MRg/T+kx9XuF791FNcTFtVP+eeKs8t8XoocVmLSMlSuiL0XaNvgiia1HOi10aGrXvTEz 9VoQ== 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=rhpfx4/m5UT7Xzs51ZxQ03MQcWW4S3aHcV6k0fxCgW8=; b=HqskaqkMzzL59bGLxIIyXYCZQt0MrlxIydv6SozsO3Mt2Zx44qW6b8G1yS7x9vBGuH AUGi/sJ4qW7ZgDwEkw+WS+g8/QS6x0yg7HupyE90Hp3knnzARl1UbDpUAGH6m6xreHFn wnLTtiKamTsVw6EDY2QFQPMC4dTnsY60Pc0ZTLPs2eIon4ZJ6dlxjq8w6nbZih12t4Iz z+X8O8Wx+zhHu151YNoqmtLLIYw90mALGP+LFTttUCqWPFSLJPnnyGWzHuM/Jv3LUf3C WiN4gcY6R2dfJU78m1fGbTojGCTJOlnJgww4yg0xv1zVULVS4Pec9FVATl6+xiwhczNB MLGw== X-Gm-Message-State: ANhLgQ3Qsdhx/LMCeyk3qo5twQjBBjIiTymA0iBjHRHRUNuacHpKaTq0 TGyBhrgyEEtHJYHRjLNTfFg2EA== X-Received: by 2002:adf:a343:: with SMTP id d3mr3855930wrb.50.1585150638866; Wed, 25 Mar 2020 08:37:18 -0700 (PDT) Received: from holly.lan (cpc141214-aztw34-2-0-cust773.18-1.cable.virginm.net. [86.9.19.6]) by smtp.gmail.com with ESMTPSA id n2sm36691078wro.25.2020.03.25.08.37.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Mar 2020 08:37:18 -0700 (PDT) Date: Wed, 25 Mar 2020 15:37:16 +0000 From: Daniel Thompson To: Kiran Gunda 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 Message-ID: <20200325153716.tcx3t4bd6p3gr2x6@holly.lan> References: <1584985618-25689-1-git-send-email-kgunda@codeaurora.org> <1584985618-25689-4-git-send-email-kgunda@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1584985618-25689-4-git-send-email-kgunda@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? > 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. > 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