Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4508427ybb; Tue, 7 Apr 2020 08:49:41 -0700 (PDT) X-Google-Smtp-Source: APiQypIkbs+gmmUwe1bI/VX9R4edpajFPkLT5KVm40DQlvIbuU2tSS6nNaO4HH1ajCZv51btDrCY X-Received: by 2002:aca:a883:: with SMTP id r125mr2186519oie.10.1586274581244; Tue, 07 Apr 2020 08:49:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586274581; cv=none; d=google.com; s=arc-20160816; b=gGmgbn5kd+dpWMKDYqMn54iJL2folaNxIwOltlYzYkGRDqrCrPQEXu0bVZxoSAL4L0 7lQjAYHj+XtkHrMYyFSnoWtgHmD0/CZVnR76GlUtH+1kKVJZcX54PIkH8/iVEH441Q8a B6XNVHMpR9rLURl22Ajd7iwSe8zfq5ntAisK1UdBTbNBSE7JwZVRtZIoU6e5unYsEXG6 cPVqhhwKy2rYrFmbBmIN5KAyC16opoRHlmIBc7nIJ6l8H/zjtJX/oZq4vBhHn9Lk1RWl ollFShd6opbu43uVe66OYt/5NTVXdVMk+GmmEu18/qj8yS33duUERzRsOdWncK2r4kTG rn2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dmarc-filter:dkim-signature; bh=9T9i2bhqi3VLaEw0ff7UrAhvelqlEdAg6Xi/18D6Cic=; b=IYUw8BktvpaVTEh4GXcrbptWRWsuD9Qn6CPE+teo2vdvnyLf7BVMFtIkHoHGIuzv2L Ccd14NEW1Hi4PiQpUABIbWS+wz597Ik/iFZ8nUyyDox2wiHntnGe06ynrqHs9Sm9AnK0 Xm0KmayOoLE0+/4GZN5J7S0zIBtYMA/qBFgiFxcJ/DjDxK1VMx6T7KR4lzaW+fgnmvOI 8dQcVmHMoOrE6kvtAPnbmctHpPkBrOFbRWvcHTlPCz3dAc1vRJS4RF+97iFi0LxguNQd C1BPfxVfypm7jbE8lX4Sdla5mqQ/cbQMIEgULDRtjdV4UsgPqm6SxqPB6dcwLLQoiEmW J+4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=qLfgk9Rc; 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 l15si1337076otl.297.2020.04.07.08.49.29; Tue, 07 Apr 2020 08:49:41 -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=qLfgk9Rc; 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 S1727254AbgDGPrm (ORCPT + 99 others); Tue, 7 Apr 2020 11:47:42 -0400 Received: from mail26.static.mailgun.info ([104.130.122.26]:16053 "EHLO mail26.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727002AbgDGPrl (ORCPT ); Tue, 7 Apr 2020 11:47:41 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1586274461; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=9T9i2bhqi3VLaEw0ff7UrAhvelqlEdAg6Xi/18D6Cic=; b=qLfgk9RcwFz2kRIn5bHqsgNj1bBlyMLFhNTGOYGWXy7ZwtzvCHvhNZXnvjcQJr3CCTsxsLTR lgyX1f6lV3+Qk61HFjKfNqpOld8DAoxFCS9SSvtn1RKmp1TJaPu65SKyXPOmiB9UPVpWe/uo YBvTxqiMaVNGYRvSJs6NWJMhNNs= X-Mailgun-Sending-Ip: 104.130.122.26 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 5e8ca095.7f2f4870f848-smtp-out-n02; Tue, 07 Apr 2020 15:47:33 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 0686EC4478F; Tue, 7 Apr 2020 15:47:32 +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,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from kgunda-linux.qualcomm.com (blr-c-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: kgunda) by smtp.codeaurora.org (Postfix) with ESMTPSA id C1695C433F2; Tue, 7 Apr 2020 15:47:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org C1695C433F2 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=kgunda@codeaurora.org From: Kiran Gunda To: bjorn.andersson@linaro.org, jingoohan1@gmail.com, lee.jones@linaro.org, b.zolnierkie@samsung.com, dri-devel@lists.freedesktop.org, daniel.thompson@linaro.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 Cc: linux-arm-msm@vger.kernel.org, Kiran Gunda Subject: [PATCH V5 0/4] Add support for WLED5 Date: Tue, 7 Apr 2020 21:17:06 +0530 Message-Id: <1586274430-28402-1-git-send-email-kgunda@codeaurora.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently, WLED driver supports only WLED4 peripherals that is present on pmi8998 and pm660L. This patch series converts the existing WLED4 bindings from .txt to .yaml format and adds the support for WLED5 peripheral that is present on PM8150L. PM8150L WLED supports the following. - Two modulators and each sink can use any of the modulator - Multiple CABC selection options - Multiple brightness width selection (12 bits to 15 bits) Changes from V1: - Rebased on top of the below commit. backlight: qcom-wled: Fix unsigned comparison to zero Changes from V2: - Addressed Bjorn's comments by splitting the WLED4 changes in a seperate patch. - Added WLED5 auto calibration support Changes from V3: - Addressed comments from Daniel Thompson and Rob Herring - Seperated the WLED5 bindings from the driver changes - Squashed wled5 auto string detection and wled5 basic changes to avoid the NULL callback function pointer issue. Changes from V4: - Addressed the yaml formatting comments from Rob Herring. - Addressed the comments from Daniel Thompson on the below patch "backlight: qcom-wled: Add callback functions" Kiran Gunda (3): backlight: qcom-wled: convert the wled bindings to .yaml format backlight: qcom-wled: Add callback functions backlight: qcom-wled: Add WLED5 bindings Subbaraman Narayanamurthy (1): backlight: qcom-wled: Add support for WLED5 peripheral that is present on PM8150L PMICs .../bindings/leds/backlight/qcom-wled.txt | 154 ----- .../bindings/leds/backlight/qcom-wled.yaml | 255 ++++++++ drivers/video/backlight/qcom-wled.c | 659 ++++++++++++++++++--- 3 files changed, 841 insertions(+), 227 deletions(-) delete mode 100644 Documentation/devicetree/bindings/leds/backlight/qcom-wled.txt create mode 100644 Documentation/devicetree/bindings/leds/backlight/qcom-wled.yaml -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project