Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp334372imm; Tue, 19 Jun 2018 22:26:29 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJJAbONPQopo/lpxUUEYkX6BnNLTiknhsSLb5BoxXukcUl9xIGeSyLSbLQz3dmItLQkocwa X-Received: by 2002:a62:a38d:: with SMTP id q13-v6mr21231595pfl.49.1529472389052; Tue, 19 Jun 2018 22:26:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529472389; cv=none; d=google.com; s=arc-20160816; b=tpU94aNY7rW7RdcG3Bm3LM28eMzVjkpzpP1LBjJKNkEGK5O5vm9dCKzAmAKs42PXVB o6RMNfFca0lEij0go51HEGoGD7/4rgdYBF997eshqQ3K48FBXC1WO9vut5paBSvm8yHW xqXRrt4HgW8uHC8I4BYdsYY5o0k70rj+bcN2ZyM8R6G47sLRxj3ZJo118ck87ugd+iLe 1Kou+9P5xFgnfumGFWsUu4RXeN2thks5pcj4Jo7S5mhcRIcm2qBj3nJRoCT/jK3Hsqj/ wlHrF5f1iKQh4X3/Ka6k0YqKVn//N8weAaS31d5ntQD7CZpTMGj9dr+DvlQl/iObJkD9 cy5w== 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:dkim-signature :arc-authentication-results; bh=rK91R2gg0gHQLbg3LCY6zmKndteCTUSkXsDwZEk9WTI=; b=W5LpX7zbO4FwYH3Y1bsHmkn6uWshfibIWHwUDf7seoPO2XywnTTq4yGV8wYpr4Dtmd cv9oZYDeg7eJzpbkCqokgOBhZJmBYZDtA4aE5DMPZ9U3ib/ZlCkJvH/fBlq6jzqKWkzn +A/7zWhFZmf/nU5DbEExr3SMOBLMfcSoWRABUaN7wfotJBTlcOlWXhdpEtGZfl+rQau0 IkyLS8jycvFriMC/IoTOQQExreIFMyBY5QcrAEcqJQL4FXjl+5+mjE4ytOEjEusgNL+g OyuS/XK27GTrDoDMOZpj02Z5ol87MM/OoNJzzcPYtdXCFDQ2b+kC+le7Kn0u0+i0p6sB HEjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=RqyqfC57; dkim=pass header.i=@codeaurora.org header.s=default header.b=ANiayX3a; 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 u21-v6si1534219pfd.78.2018.06.19.22.26.15; Tue, 19 Jun 2018 22:26:29 -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=@codeaurora.org header.s=default header.b=RqyqfC57; dkim=pass header.i=@codeaurora.org header.s=default header.b=ANiayX3a; 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 S1753276AbeFTFZ3 (ORCPT + 99 others); Wed, 20 Jun 2018 01:25:29 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:35002 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750812AbeFTFZ1 (ORCPT ); Wed, 20 Jun 2018 01:25:27 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 1799160B14; Wed, 20 Jun 2018 05:25:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1529472327; bh=W8jAeDKbneaxNX34v8+FHgiFVvnRbVHyA7on74tDO5g=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=RqyqfC57PszRQcPlnRiWGdFIKYLW4WDCCAVWKq77E8xq9xanE0JZJaSrezpTREqsW +vq3Dk+Usj5aJPIwSWIq4cWxVplR2bBOfHGY3WXT3wTSMjXnamPXnU0pnbyCegvQj3 D/jJyc/n0wUjZNsnyvAUyvfAjJJdtNXRlyn8iBn8= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id 1AA7260714; Wed, 20 Jun 2018 05:25:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1529472326; bh=W8jAeDKbneaxNX34v8+FHgiFVvnRbVHyA7on74tDO5g=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ANiayX3aQqS+CRNUObQoxhZ/ZP2Ik6s59zQZCCi6TBCdqTxeMyUAC0xA+Xm+ZVqxX Bj/YjKfGCZsSAx+6g6N/CuNxCUVsYgA3TrNeWLlTAFZ+JIhbG47CRU0a0BfiNkp/rR 8YqTbfIl+ldNopEj7Q14NYTMzft3Os60DjzhG+D4= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 20 Jun 2018 10:55:26 +0530 From: kgunda@codeaurora.org To: Bjorn Andersson Cc: jingoohan1@gmail.com, lee.jones@linaro.org, b.zolnierkie@samsung.com, dri-devel@lists.freedesktop.org, Daniel Thompson , Jacek Anaszewski , Pavel Machek , Rob Herring , Mark Rutland , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH V3 3/7] backlight: qcom-wled: Add new properties for PMI8998 In-Reply-To: <20180619230351.GG15126@tuxbook-pro> References: <1529406822-15379-1-git-send-email-kgunda@codeaurora.org> <1529406822-15379-4-git-send-email-kgunda@codeaurora.org> <20180619230351.GG15126@tuxbook-pro> Message-ID: <588c8b50ea33d55a179b1d81a9973ff3@codeaurora.org> X-Sender: kgunda@codeaurora.org User-Agent: Roundcube Webmail/1.2.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-06-20 04:33, Bjorn Andersson wrote: > On Tue 19 Jun 04:13 PDT 2018, Kiran Gunda wrote: >> diff --git >> a/Documentation/devicetree/bindings/leds/backlight/qcom-wled.txt >> b/Documentation/devicetree/bindings/leds/backlight/qcom-wled.txt > [..] >> - qcom,num-strings >> Usage: optional >> Value type: >> Definition: #; number of led strings attached; >> - value from 1 to 3. default: 2 >> - This property is supported only for PM8941. >> + value: For PM8941 from 1 to 3. default: 2 >> + For PMI8998 from 1 to 4. default: 4 > [..] >> +- qcom,enabled-strings >> + Usage: optional >> + Value tyoe: >> + Definition: Array of the WLED strings numbered from 0 to 3. Each >> + string of leds are operated individually. Specify the >> + list of strings used by the device. Any combination of >> + led strings can be used. >> + for pm8941: Default values are [00 01]. >> + for pmi8998: Default values are [00 01 02 03]. > > I would suggest omitting the defaults, as we can see in several places > in this document we end up having to update the document with new > defaults for each platform. > > Also, per the defaults of the optional qcom,num-strings these are > already the defaults... > Sure. I will remove the defaults in the next series. > [..] >> +pmi8998-wled@d800 { >> + compatible = "qcom,pmi8998-wled"; >> + reg = <0xd800 0xd900>; >> + label = "backlight"; >> + >> + interrupts = <3 0xd8 2 IRQ_TYPE_EDGE_RISING>, >> + <3 0xd8 1 IRQ_TYPE_EDGE_RISING>; >> + interrupt-names = "short", "ovp"; >> + qcom,current-limit-microamp = <25000>; >> + qcom,current-boost-limit = <805>; >> + qcom,switching-freq = <1600>; >> + qcom,ovp-millivolt = <29600>; >> + qcom,num-strings = <4>; >> + qcom,enabled-strings = <0x00 0x01 0x02 0x03>; > > Please omit the pmi8998 example as well, there's no real benefit of > adding similar examples for each platform. > Sure. I will remove it. > Regards, > Bjorn