Message ID | 20230922083801.3056724-1-quic_fenglinw@quicinc.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp5632858vqi; Fri, 22 Sep 2023 07:44:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF5PtLaO38unKuN1zH25wNup2LDFToslRwkQyYLjvHyftmKg1ZiVUbBma6DvddIZxEAuDq4 X-Received: by 2002:a17:90b:3706:b0:267:909f:3719 with SMTP id mg6-20020a17090b370600b00267909f3719mr8436521pjb.19.1695393871324; Fri, 22 Sep 2023 07:44:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695393871; cv=none; d=google.com; s=arc-20160816; b=tUEGsk9w0rcVianZnul283HCBEi4j9aD8tda4q1vJbuck1eN4CdgcQCH9vLstVE66A gXAjObpvpTkm342LuIHFxUx+PmmGylOrzDbJxGHgPZoZP5JKXmyPpFvCYUSjpZQ/iyKf FpZVM30ARrWP+/9fs3PogTpCWkr58reROst3hxmBK7x4izgrpQnXl57WLXY6xWWJ1Ela 9zarQDbnxYkgNUzEG20YRq8bI6+8IDnYtASuBaGqNwc8e+HsATQjaW9gE2XuZPrurNqM 48mKzlQM1IAwqs4F8Zhc7OhLDRYJPXs0Pg/XteuXEzJNzYZNZ+/EEUiD2s49Yq9fGZsg yGwQ== 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=sDumSUEEqZ5zLBEK3Ni6BUoqqetakJvnpH6yY0Eb1xY=; fh=DoHMVaa5lFeEM5gQ+x8H1/RIwsXc5LYOxTYCtYZ5ygU=; b=yhiHyV61YFHNtb0GuFqn4vOxsZcWNxobrlX8SgHyKmDjeLnXkJyhjEzS2ANoZEWPQL ae9OZKRCSJVTouKQ0lp5jEQmhQ14lxcN5O7parM5j8oG6b8jy7s8A3l8UrVhh470nsD6 FkyQvqS7apuPLHwbmaES+zZUu/L3wcY65+v0Q8DgDQq6MBgKRoKN0+hz7sj0NegsyqD9 2jWYUHn3j4bNzvMwsPLmnoAmGE2iZ7pbPNRN8DT/eGkbnQxXORce54lJhLESGm3/E9WA 4ysZESXTWzLG6/xNn3f+9LBhAqG0cRjhxinmGCdFXhhX8N0opXd0KVvAtTGVr0u7RXcT GgVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=XwexhuuR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id hk13-20020a17090b224d00b002768052ba42si4389539pjb.12.2023.09.22.07.44.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 07:44:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=XwexhuuR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 9EDBF83B69BF; Fri, 22 Sep 2023 01:38:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232611AbjIVIif (ORCPT <rfc822;chrisfriedt@gmail.com> + 30 others); Fri, 22 Sep 2023 04:38:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232481AbjIVIie (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 22 Sep 2023 04:38:34 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72C7F83; Fri, 22 Sep 2023 01:38:28 -0700 (PDT) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38M8I3Kl020459; Fri, 22 Sep 2023 08:38:22 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=sDumSUEEqZ5zLBEK3Ni6BUoqqetakJvnpH6yY0Eb1xY=; b=XwexhuuR6xkCgswYYVbbwuOuzPUkS+qAlmed8sfaQw/Rzw4gGNN9KFtQrFB8d96d4pho Q1I1IgbZdIfEskvDE/q9fjjY9d+n0LfJ59H8fWCFHFOdRMVPOPXLRtgZKJGKlrEeJAez tdjf80KgUukrKqD6LRLf52ESSGeM8ddUw31fsDSWbYII2zZ84aen3rEJ/se7drhk+owS DBxHnDJ9JqRETEhvUCFH+JdJRduFIvB8mi3EbNsJbfkXgsBJYrSZCwd/vmbupiRZXdAw q1Tyx6oW78yv8GJamN7BmBO/G84s8pOYlaeqKLxARBqWqIYa7S0MR/a0NqiWoeq9jBvB Gw== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3t8u5n1dqe-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 22 Sep 2023 08:38:22 +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 38M8cLSO000956 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 22 Sep 2023 08:38:21 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.1118.30; Fri, 22 Sep 2023 01:38:18 -0700 From: Fenglin Wu <quic_fenglinw@quicinc.com> To: <linux-arm-msm@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <krzysztof.kozlowski+dt@linaro.org>, <robh+dt@kernel.org>, <agross@kernel.org>, <andersson@kernel.org>, <dmitry.baryshkov@linaro.org> CC: <quic_collinsd@quicinc.com>, <quic_subbaram@quicinc.com>, <quic_fenglinw@quicinc.com>, <quic_kamalw@quicinc.com>, <jestar@qti.qualcomm.com> Subject: [RESEND PATCH v6 0/3] Add support for vibrator in multiple PMICs Date: Fri, 22 Sep 2023 16:37:58 +0800 Message-ID: <20230922083801.3056724-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: 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-ORIG-GUID: 9TE_45gWbUrJavbC9-wWfrExi1drr75Z X-Proofpoint-GUID: 9TE_45gWbUrJavbC9-wWfrExi1drr75Z X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-09-22_07,2023-09-21_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=919 priorityscore=1501 malwarescore=0 spamscore=0 bulkscore=0 impostorscore=0 lowpriorityscore=0 mlxscore=0 clxscore=1011 adultscore=0 phishscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2309220071 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 22 Sep 2023 01:38:46 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777749323807728925 X-GMAIL-MSGID: 1777749323807728925 |
Series |
Add support for vibrator in multiple PMICs
|
|
Message
Fenglin Wu
Sept. 22, 2023, 8:37 a.m. UTC
Add SW support for the vibrator module inside PMI632, PM7250B, PM7325B, PM7550BA. It is very similar to the vibrator module inside PM8916 which is supported in pm8xxx-vib driver but just the drive amplitude is controlled with 2 registers, and the register base offset in each PMIC is different. Changes in v6: 1. Add "qcom,pmi632-vib" as a standalone compatible string. Changes in v5: 1. Drop "qcom,spmi-vib-gen2" generic compatible string as requested and use device specific compatible strings only. Changes in v4: 1. Update to use the combination of the HW type and register offset as the constant match data, the register base address defined in 'reg' property will be added when accessing SPMI registers using regmap APIs. 2. Remove 'qcom,spmi-vib-gen1' generic compatible string. Changes in v3: 1. Refactor the driver to support different type of the vibrators with better flexibility by introducing the HW type with corresponding register fields definitions. 2. Add 'qcom,spmi-vib-gen1' and 'qcom,spmi-vib-gen2' compatible strings, and add PMI632, PM7250B, PM7325B, PM7550BA as compatbile as spmi-vib-gen2. Changes in v2: Remove the "pm7550ba-vib" compatible string as it's compatible with pm7325b. Fenglin Wu (3): input: pm8xxx-vib: refactor to easily support new SPMI vibrator dt-bindings: input: qcom,pm8xxx-vib: add new SPMI vibrator module input: pm8xxx-vibrator: add new SPMI vibrator support .../bindings/input/qcom,pm8xxx-vib.yaml | 16 +- drivers/input/misc/pm8xxx-vibrator.c | 171 ++++++++++++------ 2 files changed, 132 insertions(+), 55 deletions(-)