Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1934188ybz; Thu, 23 Apr 2020 08:36:27 -0700 (PDT) X-Google-Smtp-Source: APiQypIqE5bmAQC6u00zRGLerPPuEAqLo8S9BdlSK9cPInnvwnpjf/sAgsY0e8L8iiDBI1kzuGeX X-Received: by 2002:a17:906:1804:: with SMTP id v4mr3258767eje.104.1587656187532; Thu, 23 Apr 2020 08:36:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587656187; cv=none; d=google.com; s=arc-20160816; b=QGosHCPSc9pegg8TpnXGDQjzrYIfxgL9XZOqdmthPrj5BLCgvhDEhtbNCxoU9H/shW LuZuomtw3qp1soBt6YRzg7kw7p7W5Dgk0akJmqT+6z21MMIMK+rkik5gnygRfFpuflYu ry51ecpID0+rngssddlAu5d4mnDOjTKWIKBX43dvyf2zHPN/R/YGuhmkwWgp4j3ypMKx ZVbDf2SSjjFRBdho+Dg9JOwmVVHyq8JmGk+pWAcTSLy1s16xqi+hHAST1e/Jk+/+XBMb MczL+u4jWKgEENGw1ZFXfXo9bxEGDlycb6rmG/vwolPWbuTdbQBEyW+hJhSSI1Su/aeC QZRw== 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=2Kjf6YLoA4OkpyBb4xKWnTXI0yhSWwCZFp3OhQ7ATXg=; b=GxM7B18X7aXCpYI8ysXIXmEohIfRT9BFbngVZ+mqGX4Xk2v+or0rNDuVmxK7+iGzq9 ngFs+JxIxzRJSQBYUildwSfdqqOKXQ7v8c9jiV/KMRQ9GBos3lnLBg6mAaqbXfKd3+aD zxdSKMVv+5gedCy3n6OvagX5WCxaHcLa42KdNtS6GxUKWYxGTIjhPNLloXsEDzUw1JGb /7Kt9v77GxK9G03xhJNGpjVcy09kaooFkQznmzE5P3O1Xb4zuTAr1xgrpoehySbB9nKI SMTyszspxJ+I+ognJkS/F+o75vAxVVf3Yb4onhchDkCe1lkqa6OjkkM0fU14zzahjsox /CZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b="U/GkECoA"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r10si1375771edo.480.2020.04.23.08.35.56; Thu, 23 Apr 2020 08:36:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b="U/GkECoA"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729267AbgDWPe1 (ORCPT + 99 others); Thu, 23 Apr 2020 11:34:27 -0400 Received: from mail27.static.mailgun.info ([104.130.122.27]:42104 "EHLO mail27.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729020AbgDWPe0 (ORCPT ); Thu, 23 Apr 2020 11:34:26 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1587656065; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=2Kjf6YLoA4OkpyBb4xKWnTXI0yhSWwCZFp3OhQ7ATXg=; b=U/GkECoAw27a4lJgd7NSq+j8MGUmn5B7GRx2N1OJg0gl+q8EXL7KVQNIjOx2KtqvhBNyo+1Q YuAB/xU+suEqkQlmMJ5UbU9HhVeebHgJxWSr9tYpfxRxYOkoR5b704uK1/cJSzswa8OB/HNc /+7MojWSMDIjonbC0ZunAhvGBL8= 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 5ea1b575.7fa7ffca55e0-smtp-out-n03; Thu, 23 Apr 2020 15:34:13 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 18E02C44788; Thu, 23 Apr 2020 15:34:12 +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 9A899C433D2; Thu, 23 Apr 2020 15:34:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 9A899C433D2 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, robh@kernel.org, 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 V6 0/4] Add support for WLED5 Date: Thu, 23 Apr 2020 21:03:33 +0530 Message-Id: <1587656017-27911-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" Changes from V5: - This series depends on the below patch. https://lore.kernel.org/patchwork/patch/1226258/ - Addressed yaml formatting comments from Rob Herring. - Removed the "wled_ovp_fault_status" callback as per Daniel Thomson suggestion from patch #2. - Addressed comments from Daniel Thomson on patch #4. 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 | 261 +++++++++ drivers/video/backlight/qcom-wled.c | 589 ++++++++++++++++++--- 3 files changed, 777 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