Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp2027908lqp; Tue, 16 Apr 2024 05:36:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVmbP2KAb/KdLkCuuIEz8fIreM0ArShODunLOx8C5RwyUnfviduG12dW0lvBtvFe94BTTqbWoS/21ufW3bXQNYds3jjZkPFpBjQf8O0Xg== X-Google-Smtp-Source: AGHT+IGYCI7D1bz8dLfwbAO/dJryyP4jRxLmFjfjIpeXeGVTRJZnW6hAkb4S3sEFKZFiRPR/PNEO X-Received: by 2002:ad4:4bcb:0:b0:69b:55a4:cdff with SMTP id l11-20020ad44bcb000000b0069b55a4cdffmr11735438qvw.23.1713270965812; Tue, 16 Apr 2024 05:36:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713270965; cv=pass; d=google.com; s=arc-20160816; b=0gZzCFUT/PM1o7R+Xll65qeh9YO4c74GjQIWoI4s0Q60yvtKxxNZXv5lGUpBBuc+hi cO94lSDF9Us9O66Lbxzfj4aEo+w0ZjQJlsvOu5F6ZqwMJ8Vg2pwSnZ4RbWcDleOkdKc/ LkguOu+z+sxCaruuiV8h/NPLjSrojM5+EVHZRYuwN8zOuRKK8CQpHWzz4iJFp2eiXi/q DNBAbJWChqKYy66c1eeoK3768YXTN85zuv/ty3RYhM+54sw08xZOQyJZdS/To/GvfJb2 GdVH8MW5d5sGzMwmDOnXn3A36WPvPAijKl/vmSSFfE5i7jutDNiV8O2u9/IStP9nDowe ZL4Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=IkMDaeedkgoUcBilEAgXcFfPeKOpGphnMuHKiydeGW0=; fh=k6T46+N3XExEPfyrlnbX5UnSfP43bCJatb8yT3ima90=; b=fMA82ILZyUkHPPM0rdmlul7pJfMNN3dfcw2HGFrnTJMgxH2AXJcv/vn12S6aMtjaTN cigWGYj1jUt/y8dFKcO9qN2pkQfcqNUW2bIgdu4amf6KRcsI7NRIOZb8D7OxmORV9CMG XDvfloeBMKVmsoGgcwmuR8qY0J1T0+1+O8Z8PK58fqnOhk0Zf8+ffKEB4udP4+iyb3Gs j29r85yk4yLrgYD3Wr58yjcBD7kS8YMdTAEyfnV1w1kdTsB+zgH0aNhOK9ybfHsX3AYL p/ZOZvGvTPupDjwn+dn10k2WJ4sfT1b2eYOHajMMM/eg9TBSpalea4P5LnT2XMyhH5rv lltg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dLxNzFBu; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-146797-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146797-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id f5-20020a0cc305000000b0069b3cbef728si11905217qvi.320.2024.04.16.05.36.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 05:36:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146797-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dLxNzFBu; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-146797-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146797-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 7B9CC1C21689 for ; Tue, 16 Apr 2024 12:36:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 67AA112AAF4; Tue, 16 Apr 2024 12:35:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="dLxNzFBu" Received: from mail-yb1-f181.google.com (mail-yb1-f181.google.com [209.85.219.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ABEC412B169 for ; Tue, 16 Apr 2024 12:35:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713270938; cv=none; b=N5KMemcWx/rDVjTlh/CUfJERYOIhWDtAx931RbYIE+rqo+7RJ319Gkh/21HBEMhQFgQhtfNKuMaz65sIbgkaRa8rRzi3+ZChtTdVhy2OSdoagZjkwrsRbAoOSA+B9fMvUzJ/Q0rBCC+BtsXagnQxqrqKXsg/wMqraXMH0LeDDkw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713270938; c=relaxed/simple; bh=mypo0opZBER9wWQOgAavLRwTy7MsH9uMUcwwuLVRtko=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=uVeCsLUMWXCxQzp3mvS8E0NhOkIt2Z1ws+BZicW3KIlz+p43HVg+rx11HqJp9vl6pGrwuuqrOfgJ5e73OB1D0RWvWy7QpsJ74IeEPbf5FFBLlbuP6zkKJ9xAwV5PsRNViKczsjfWId4DoGLillrkRfFnc2vc83SQYrhRuKbP6bQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=dLxNzFBu; arc=none smtp.client-ip=209.85.219.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yb1-f181.google.com with SMTP id 3f1490d57ef6-dcc80d6006aso4213769276.0 for ; Tue, 16 Apr 2024 05:35:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713270935; x=1713875735; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=IkMDaeedkgoUcBilEAgXcFfPeKOpGphnMuHKiydeGW0=; b=dLxNzFBuRGlXZPZ36evQBi6jZU8oOOdJSrU8dQyGuMRLlhHhFnbADxQWlVuXvrOidR WOWaP7xUivqBdGkrQF9ELgvNHhfnEsdWWViQWtwGYAvDT4A1k5HEzBPjfpNjc7M9kmB8 AbU05tg7KMAENEohKWPyiK88k4X/S2RalyRNh0v8de8zKgbsaIpT9amaVIGyZ9f5PwYG UaOCw+1tGl6wr/W5uBC08GJw1lj+aZdV2LNjlwYQNSveyTg8VjNHxgwmq+QfKX3k9qKp w++BiaF3Fc8QrHj22mY53zVPEF3S1+M4T0eIioEEbtcjwgpmIo3OCMwrNunxx4BSPxsp epgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713270935; x=1713875735; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=IkMDaeedkgoUcBilEAgXcFfPeKOpGphnMuHKiydeGW0=; b=Ys5HYUoIitTCXrfNrauUCGQ7FrIajIwK/iPvVl877EvyRTMTHDWVY+EoLtO1mSrgqI zQuGRR+vs+b8E5oIP5yAUhFtkleggGqr++eCy0B7fcgxylcryO8kBTJDnMDbrDU1mhai aBRPIrtVS5Ll+r9ncWK+eLNaM+U99cfi4A1pmt4GTtDhvFLJ5/cuEUa5HRtfxvsI+8aa SjlFWajkRkf2y2hD9BDZ/R07d/5YIbuzvjciGYPHczs/raiTyHVeEm2nMqT7DjaSYvvZ HtSt6yD5pGVofQdnrOD8ZXulYwOgbtm9domj0PFHZ2MlLr2QF7BV1xOK+hwiFjc8zu01 Zgrg== X-Forwarded-Encrypted: i=1; AJvYcCVm3fVAS18QG+BtbrObvAkIHZoPvkwoYCRnVLat2OKG9s8fXhlczV9QcA1OmRMFageYgspz3jmnz3KwmTGE8IX0UAJMoJBdwuqD7HP1 X-Gm-Message-State: AOJu0YwQEdPAtPCzIN50huZPCpdeHl21a4FrK0zgSczi3yVpU3X27/DD N1nxFSdJYYlGYbbJwZCdl0tZ5icl+kbjgyqrz6EkGwcd712JfkDUsj4dUCPVWOxD5v41+/aBd2S fDopo71tui24vbgYys+PDUoF5+3SYQLNI4rsr6Q== X-Received: by 2002:a25:be84:0:b0:dcc:58ed:6ecc with SMTP id i4-20020a25be84000000b00dcc58ed6eccmr11179227ybk.41.1713270935631; Tue, 16 Apr 2024 05:35:35 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240416-pm8xxx-vibrator-new-design-v11-0-7b1c951e1515@quicinc.com> In-Reply-To: <20240416-pm8xxx-vibrator-new-design-v11-0-7b1c951e1515@quicinc.com> From: Dmitry Baryshkov Date: Tue, 16 Apr 2024 15:35:24 +0300 Message-ID: Subject: Re: [PATCH v11 0/3] Add support for vibrator in multiple PMICs To: quic_fenglinw@quicinc.com Cc: kernel@quicinc.com, Andy Gross , Bjorn Andersson , Konrad Dybcio , Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Krzysztof Kozlowski Content-Type: text/plain; charset="UTF-8" On Tue, 16 Apr 2024 at 05:44, Fenglin Wu via B4 Relay wrote: > > 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 v11: > 1. Drop the 1st patch since it has been applied > 2. Update to address review comments Please abstain from such changelog entries. Which comments were addressed? How were they addressed? > Link to v10: https://lore.kernel.org/r/20240412-pm8xxx-vibrator-new-design-v10-0-0ec0ad133866@quicinc.com > > Changes in v10: > 1. Add Fixes tag > 2. Update SSBI vibrator to use DT 'reg' value > 3. Add drv_in_step flag for programming vibrator level in steps > Link to v9: https://lore.kernel.org/r/20240411-pm8xxx-vibrator-new-design-v9-0-7bf56cb92b28@quicinc.com > > Changes in v9: > 1. Add a preceding change to correct VIB_MAX_LEVELS calculation > 2. Address review comments from Konrad > Link to v8: https://lore.kernel.org/r/20240401-pm8xxx-vibrator-new-design-v8-0-6f2b8b03b4c7@quicinc.com > > Changes in v8: > 1. Remove hw_type, and still keep the register info in match data > 2. Update to use register offset in pm8xxx_regs, and the base address > defined in DT for SPMI vibrator will be added in register access > 3. Update voltage output range for SPMI vibrator which has 2 bytes drive > registers > > Changes in v7: > 1. Fix a typo: SSBL_VIB_DRV_REG --> SSBI_VIB_DRV_REG > 2. Move the hw_type switch case in pm8xxx_vib_set() to the refactoring > change. > > 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. > > Signed-off-by: Fenglin Wu > --- > Fenglin Wu (3): > input: pm8xxx-vibrator: refactor to support new SPMI vibrator > dt-bindings: input: qcom,pm8xxx-vib: add new SPMI vibrator module > input: pm8xxx-vibrator: add new SPMI vibrator support > > .../devicetree/bindings/input/qcom,pm8xxx-vib.yaml | 16 +++- > drivers/input/misc/pm8xxx-vibrator.c | 93 ++++++++++++++++------ > 2 files changed, 80 insertions(+), 29 deletions(-) > --- > base-commit: 48c0687a322d54ac7e7a685c0b6db78d78f593af > change-id: 20240328-pm8xxx-vibrator-new-design-e5811ad59e8a > > Best regards, > -- > Fenglin Wu > > -- With best wishes Dmitry