From patchwork Fri Feb 3 03:56:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fenglin Wu X-Patchwork-Id: 4913 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp627495wrn; Thu, 2 Feb 2023 19:57:40 -0800 (PST) X-Google-Smtp-Source: AK7set80VNEjQKkmmiD+9vQ+CxyjtIvLuV5fEk5O43tYpcDN6Nk6wrl0rZ1G0qW3XV2S9il+Ih9v X-Received: by 2002:a17:90b:1c83:b0:22c:7639:a910 with SMTP id oo3-20020a17090b1c8300b0022c7639a910mr9383875pjb.25.1675396660322; Thu, 02 Feb 2023 19:57:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675396660; cv=none; d=google.com; s=arc-20160816; b=zNE6YkARv7m4HNKkrBYi1b2WpBxfMLprgL4NiBMSVOkEA2ygrNee5BAIIzttFtCQJE IMScB1sMraPY62jbsp4UsUodyhdu/C3Qn5CCrbTAjGBJC2qbVjHMfbSwwCcBVlpo8Nwu dc87kATYXKr5McAOnFVP4k25quoPcGVL2BqDzt5eXt8Cddbnf1SU2/0Hvx5r+IU5I196 YQcuQf8xkmJe2R9B/CLp+FrdTNNYIp/6R2syEwUU0EPElzGARtXHMoxLicwsJg5h9TsW qVQgvFlIcROBImJ+euPSgo21qfQLB89r3zASSRg1BGbweGSI4NClkMaapqp91xavVUGM Ut8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=vzgYVV7GRzc2mmMtmxmIFFcdNmbAomDTNjEc/iAMnTQ=; b=FoiF3WxGVn7DAac4tCCokEeOWDwaasSPYWMX39ykG5tDnlAZdgRtabcqQ3/Q4j1RWd 31+YEN2bYNbhTiExHMD3+Fgtd+zl144YpMjJ/gSE/Odk3IRaF6eFCA2sZh+RXhnaLAQ3 iMBwHafdeUkww3Xdo4SAlnc002dTALd0Cql0zj+SP0w1EAb/1V7J9ENX7xelGdjhoWr/ MKMkO4/VHvICZ36w2WC/cs4ERJ+taXENwo0Qi/YFvvqVq7NMnu4Y6tWaGqRqDXNMNH2o BJL6XvcK0mL+CAPyk0VkacqZeR1TdB92L0D8d2WK5RseXG76J+KoxiW5t2Xhjy0RH6Ux anhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=hIgfUGNq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b16-20020a17090a551000b0022bb81526a9si1546144pji.8.2023.02.02.19.57.28; Thu, 02 Feb 2023 19:57:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=hIgfUGNq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232171AbjBCD5J (ORCPT + 99 others); Thu, 2 Feb 2023 22:57:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232168AbjBCD5I (ORCPT ); Thu, 2 Feb 2023 22:57:08 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04AEF2C643; Thu, 2 Feb 2023 19:57:06 -0800 (PST) Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3133hTAB016276; Fri, 3 Feb 2023 03:57:00 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=vzgYVV7GRzc2mmMtmxmIFFcdNmbAomDTNjEc/iAMnTQ=; b=hIgfUGNq5l40awAmsZIjzdtkIfz31ZV81qDPsiwH4B94wjO68v5poAnhASKu3ohUDEtD QBmXbLbITWWIMfm/vMBaw4HfrD6Fh1oANfj9hv3/J0ViRCGyxcKtBf9yN9ICxKPpPoIh 11/EvSVyqKuEV1uqnSdyzXKnnwsZqVZX6taTe1Dvku+x+vE1M6CMA8oyTwReqEpzRNVJ ZQ8aaWoOefWB3+gvuuB+v1tkYbgIAflisTxoBAMLRToOh4GTnAO0JUSuLR0L0byL4xxm vUazKfB5/Qvfa4RxWDSdv8daxu9JlFvtHiGgvs650uj0CluGDbSZjUQkmvplHGuB4ftm bw== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3ngns2gh11-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 03 Feb 2023 03:57:00 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3133uxMH005237 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 3 Feb 2023 03:56:59 GMT Received: from fenglinw2-gv.qualcomm.com (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Thu, 2 Feb 2023 19:56:57 -0800 From: Fenglin Wu To: , , , , CC: , , Subject: [PATCH v7 0/2] Add LED driver for flash module in QCOM PMICs Date: Fri, 3 Feb 2023 11:56:42 +0800 Message-ID: <20230203035644.474208-1-quic_fenglinw@quicinc.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: bdAe6c7-B0sRnNRIfxeWcxHPD01dA4jv X-Proofpoint-ORIG-GUID: bdAe6c7-B0sRnNRIfxeWcxHPD01dA4jv X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-02-03_01,2023-02-02_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 clxscore=1015 spamscore=0 malwarescore=0 priorityscore=1501 suspectscore=0 mlxscore=0 adultscore=0 mlxlogscore=665 impostorscore=0 phishscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302030035 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756780728598982751?= X-GMAIL-MSGID: =?utf-8?q?1756780728598982751?= Initial driver and binding document changes for supporting flash LED module in Qualcomm Technologies, Inc. PMICs. Changes in V7: 1. Fix compilation issue reported by kernel test robot Changes in V6: 1. Update the driver to address review comments from Jones,Lee. Changes in V5: 1. Add MODULE_DEVICE_TABLE for auto-loading. Changes in V4: 1. Added Tested-By tag. 2. Addressed review comments in the binding change and added Reviewed-by tag. Changes in V3: 1. Updated the driver to use regmap_field for register access. 2. Adressed the review comments in binding document change. Changes in V2: 1. Addressed review comments in binding change, thanks Krzysztof! 2. Updated driver to address the compilation issue reported by kernel test robot. Fenglin Wu (2): leds: flash: add driver to support flash LED module in QCOM PMICs dt-bindings: leds: add QCOM flash LED controller Fenglin Wu (2): leds: flash: add driver to support flash LED module in QCOM PMICs dt-bindings: leds: add QCOM flash LED controller .../bindings/leds/qcom,spmi-flash-led.yaml | 116 +++ drivers/leds/flash/Kconfig | 15 + drivers/leds/flash/Makefile | 1 + drivers/leds/flash/leds-qcom-flash.c | 769 ++++++++++++++++++ 4 files changed, 901 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/qcom,spmi-flash-led.yaml create mode 100644 drivers/leds/flash/leds-qcom-flash.c