From patchwork Tue Oct 18 01:40:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fenglin Wu X-Patchwork-Id: 247 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1729949wrs; Mon, 17 Oct 2022 18:47:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7vn5zwCWXTTKfgtmd0Hj06KqXwiM6DSc64mfnR8JlrWFwLGNr7JU6WTcbN7Ubv71uF8V3b X-Received: by 2002:a17:902:6a86:b0:176:a6bc:54c0 with SMTP id n6-20020a1709026a8600b00176a6bc54c0mr532209plk.87.1666057638937; Mon, 17 Oct 2022 18:47:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666057638; cv=none; d=google.com; s=arc-20160816; b=lplyG+YPqeRn0RbVLhp2q+oM/Zr/UymlN7CKXf0VrWxm/ajRVAdrF2TuVi+d6V7hMT 8CTjRXVTMzU2CeyQNIxfq91wqoZNxo2+Ev/0sAQguaAzT6F8OX7ZvqcNxjs/ErB/f0Kf ZFcT3OM68YSBSdpym5COmHQ/1BdY+IKOOZ7mxjcDFpWj1EFstGBJQLG0mlXphp8+m77E OJkuzOdWfxZiVIJoUKogJJ5bACq7tThSgNt/AStTO5++VVzeOfjen4fTQKVhtP/4wu2j plsGsIN3SbPaOWkrDnCWA2WXBaso3XIdDd1LpUsP8hXLi1NiyK9NX8+TDz3KFaF/Qo73 cIYQ== 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=SKLSM59/eOS6EjNhUYkLkSLyFACNjSC2GV9fFZqV7IY=; b=uAJeWC0mzKnSnB6G2zWdRuON11bc4dD9aMFZAsK5ko8EC8Clagkm1lE6QIIYf9d4tB Q9fkfFJwc73IUtpTEFNhBP2eA5QMJH125zILou4/eQNTER9SvOOsyfUjBg8j713TPh75 sj+hKw9e2vsOtU/STIDHMlaAzCbECOwnUepF5fBBgf/X/IJ/Flpj/dlvg1/gkzJegM+R mJ595o28ny15WlSj4KE2vVOmb8bChCkfJrrlUeOks+STn94hHCjUo/036utq2D1DGG9p tv4lEh8uY+Ydge+dbBOxunL4fF4xz06U1jngQWepPSmSuSkaXhd7Ecpxw8d3ayiVam0u DXrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=n7i2ViJP; 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 r38-20020a635d26000000b004607f8ab960si13675476pgb.356.2022.10.17.18.47.06; Mon, 17 Oct 2022 18:47:18 -0700 (PDT) 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=n7i2ViJP; 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 S229982AbiJRBlR (ORCPT + 99 others); Mon, 17 Oct 2022 21:41:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230078AbiJRBlA (ORCPT ); Mon, 17 Oct 2022 21:41:00 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 227821094; Mon, 17 Oct 2022 18:40:57 -0700 (PDT) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29I1BYkr017364; Tue, 18 Oct 2022 01:40:56 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=SKLSM59/eOS6EjNhUYkLkSLyFACNjSC2GV9fFZqV7IY=; b=n7i2ViJP1SHCtUWyRxy2mwDRyl24m8ZjJ17XnYKgky/K5Mw9qorhmxNBctwroAbJw8ZY CsihiITlsoHRjod2oXdDBP7EHA/MnVVKz3q8nuc2pynPHrOTYG1Id0mMPW74I4qLtUk2 KAJxKK0rNdjRDwruuokqaVhdWS06qBIumW9XMdOEB5J0XtLkPrMJu5EfLP/+0u0tDWhE PyowcT/qt4xzlWwOk6omj63JamE41uswF6VYw+9WD/SgnsM4dnKw/VFjgGVOV/2mdrKP YZwDhaMSSNcrP9NJoTvJNa6169jl6DFwWrBcZb12nlR06F6PSLpPY0sRE1ACDz6HaNQN bw== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3k9gwe886e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 18 Oct 2022 01:40:55 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 29I1et16019270 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 18 Oct 2022 01:40:55 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.29; Mon, 17 Oct 2022 18:40:53 -0700 From: Fenglin Wu To: , , CC: , , Subject: [PATCH v3 0/2] Add LED driver for flash module in QCOM PMICs Date: Tue, 18 Oct 2022 09:40:22 +0800 Message-ID: <20221018014024.948731-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: d_WHMbT5qb3ClNkCUVD7B-O3ri4UUFiE X-Proofpoint-ORIG-GUID: d_WHMbT5qb3ClNkCUVD7B-O3ri4UUFiE X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-10-17_13,2022-10-17_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 phishscore=0 spamscore=0 impostorscore=0 adultscore=0 mlxscore=0 priorityscore=1501 mlxlogscore=663 lowpriorityscore=0 suspectscore=0 bulkscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2210180007 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?1746988054681232801?= X-GMAIL-MSGID: =?utf-8?q?1746988054681232801?= Initial driver and binding document changes for supporting flash LED module in Qualcomm Technologies, Inc. PMICs. 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: add bindings for QCOM flash LED .../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 | 700 ++++++++++++++++++ 4 files changed, 832 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/qcom,spmi-flash-led.yaml create mode 100644 drivers/leds/flash/leds-qcom-flash.c Tested-by: Luca Weiss # sm7225-fairphone-fp4 + pm6150l