Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp227436rwb; Wed, 9 Nov 2022 23:18:31 -0800 (PST) X-Google-Smtp-Source: AMsMyM4H2PhIt7i2D1KchH+9f0SfFPhqdCrQZ0DTkPtLBf40RTO37035k5JrPsY8WNUFLCDNbHiX X-Received: by 2002:a63:188:0:b0:43c:22e9:2d10 with SMTP id 130-20020a630188000000b0043c22e92d10mr54531352pgb.12.1668064710545; Wed, 09 Nov 2022 23:18:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668064710; cv=none; d=google.com; s=arc-20160816; b=C3NfLsz7xUCoAlZnbdCAtDOYK+/C8kO7hp8LYDC7elpjBM1LimGAWpldBGTp6qNl7J 54+T+G6W6x/XQQApk4JhVOWAvPshinhcm8wdO2DXyDeAH3BphjG7n6TdY3Hnf8rio6tJ zSw65ysrEyJkYuUdvxCugosBLBDM7us+EdUXHbnPLV3IF99N705q1/pMX0XREhIqLboU MSmfTzRXHJrKHUuTOGtu/M00jdKH8BALUlAbgV3OgbK0rHCCWGXEx+QU//vwwxlFigBm TFgi9hWCGJdsDf4ZnniuJ2THtC8+sDs+Z6EuG9TcHfLys6zS/e2YivaOejLJCK4H3DU2 XYgQ== 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=YI+R819YnxEud+3xTnvF0p4rDaD/UT4kpxLWoEubjjk=; b=ds2vfIw42GgZRXIkwTRaAb787Rg/zKWJFo3G+vKbeY3FF9IwNPkWBm7MLR4nf5HvgH JdhqnKBNOT2T1//DbuGCLoN1fbN9CNYFvm66Oi6PBmCNEgDM6R0bEbbnjdQ2DxwIfY8S isUCcYW8ijAHio/q25uKsA7HRq058O0GfaweuMHSlBLi32/7HMAbEwPqRGm1bgPl8Dm6 CZqGixbElESJqiPeo5Z8gLQ4bFWByicY8Gh1ffnQ7pWe21wGDcncMRwOdHxvAQ69PSYy XlD7Ju+2YZY/AyqSal854DXLvHSYnSoLveT3xEriK+TgfrT4Tatiph1F1mOYlT47onUz uuig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=kBBURv9u; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z22-20020aa78896000000b0053652e1c0b6si22017797pfe.12.2022.11.09.23.18.17; Wed, 09 Nov 2022 23:18:30 -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=kBBURv9u; 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 S232215AbiKJGzf (ORCPT + 92 others); Thu, 10 Nov 2022 01:55:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229514AbiKJGzd (ORCPT ); Thu, 10 Nov 2022 01:55:33 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A6EF2CDC3; Wed, 9 Nov 2022 22:55:30 -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 2AA6hpUk018212; Thu, 10 Nov 2022 06:55:12 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=YI+R819YnxEud+3xTnvF0p4rDaD/UT4kpxLWoEubjjk=; b=kBBURv9usbbV0imhc8SJq5+FNxE/YA+Sg8ntzaXVhNVC/qZ6124OdkmB2osAnLz2+5cg yuKexS/3As79WbxgQviNsRz/ENhWfXs4cvEo3blBg0Y9Zc9RlIPQ95zoiUhs8mMgQ0A2 1ZgwWy6PreShlHPoEAy4DL4qbR2eljWLcWjHA4t+jnVAWfop/0wCKWKoI1nLwxXetbkM 5bOd6D+gfhRjOwow4MqKdVBvfJjtehinA+vZrd5sYNe41GyHFUYOVLPW8lXqkG0u26ON hqWhbO0wmQtvX5AFELwsCEbRUF0JtEqM2cpOfj3qjStzcZLP5bU2Z1iYfOwwev6jD0YO qg== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3krv9980u5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 10 Nov 2022 06:55:12 +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 2AA6tB20021025 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 10 Nov 2022 06:55:11 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; Wed, 9 Nov 2022 22:55:09 -0800 From: Fenglin Wu To: , , CC: , , Subject: [PATCH v5 0/2] Add LED driver for flash module in QCOM PMICs Date: Thu, 10 Nov 2022 14:54:17 +0800 Message-ID: <20221110065420.2451436-1-quic_fenglinw@quicinc.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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: PEoVTPbVvhZG16m8EdFXFnqAQPnkiG_6 X-Proofpoint-ORIG-GUID: PEoVTPbVvhZG16m8EdFXFnqAQPnkiG_6 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-09_06,2022-11-09_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 impostorscore=0 bulkscore=0 lowpriorityscore=0 suspectscore=0 clxscore=1015 priorityscore=1501 mlxscore=0 malwarescore=0 spamscore=0 adultscore=0 mlxlogscore=676 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211100051 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 Initial driver and binding document changes for supporting flash LED module in Qualcomm Technologies, Inc. PMICs. 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 .../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 | 701 ++++++++++++++++++ 4 files changed, 833 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/qcom,spmi-flash-led.yaml create mode 100644 drivers/leds/flash/leds-qcom-flash.c -- 2.25.1