Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp3062722rdb; Wed, 15 Nov 2023 21:23:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IE2BdxUZiOMarfFLfZ2yK38dxp6UYULZg+iasUyq5LEwOFzuCIn9cmSX9qo6UdLfy6Z4STz X-Received: by 2002:a05:6358:94a6:b0:16b:c648:ff7a with SMTP id i38-20020a05635894a600b0016bc648ff7amr9179442rwb.16.1700112195635; Wed, 15 Nov 2023 21:23:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700112195; cv=none; d=google.com; s=arc-20160816; b=QCvJ828WfuRkh+F+S1I0aDiXhKIfwotVDbpB2XfjGLK/2D+6YyfRIfk74XIGMfWePC AozJe9ipBsUk0QxmJnw2gq85LBxhjlmyDo+3vLsrZSc1lezWowHfVs5l7b2rjvU9WfwA VjjeZ9C+W/9rl78Zgv6fgk+EkwFw6oigjufu9OrQyVTrjpvO9SP0iBw6ZIOlwn5va7h5 WbG9YvmP/tgYDbNKnHRQ5vGlodH3OsDAmlpuu01bnPz0bw6QWC2tQl7JwOgU3wMCLYcS 2jUpgG8FYXZmPYAeFH61PezobXa6476vPrJ+Lc/x6qN8l0ot5+199T1GNqQs5/BmDMuv xqXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=LGsBAN5f4HBD1+0b849nw4eGgZQCAWEgA8RzzOxSqRw=; fh=iQukh1gt9/LXSVhaWiPjayslQjonU2Sr/u9drMiCXII=; b=tBDDz4lna0QyKesndfDJjUp2QZ/wXjuM2BQ4V9l30BwY85xyzb6yP6j67ymnOnOsHI FBubsB+x066MbeAcgVDNUcahUSAyO4R32MzvF3EFiAQZmCTxJ/mQcTm4dRoExGJESgvl kZVH8DXmIccHRFMZHeicTcAUEiFSSa4ty6BptJAmePcEp0zjAtqws3AkNWvt2b5MocJl RHeTigAezRMt80MCyxOFEkBovtMlgb7EmrLldHZAeu44lwgjSRn1yDEmwUKDLtsHi4Xu jEuzC5ahghEGcDRilFi0P+gb+raG+ixHQeAxf+12h4rABhUvV6PiJ2XlaWoX92MCm/6k da1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JhIwLMaw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id v185-20020a6389c2000000b005c1cd597808si3036071pgd.692.2023.11.15.21.23.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 21:23:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JhIwLMaw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id B57B0801CCED; Wed, 15 Nov 2023 21:23:12 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230273AbjKPFW6 (ORCPT + 99 others); Thu, 16 Nov 2023 00:22:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229786AbjKPFW4 (ORCPT ); Thu, 16 Nov 2023 00:22:56 -0500 Received: from mail-yw1-x112e.google.com (mail-yw1-x112e.google.com [IPv6:2607:f8b0:4864:20::112e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4712CD49 for ; Wed, 15 Nov 2023 21:22:50 -0800 (PST) Received: by mail-yw1-x112e.google.com with SMTP id 00721157ae682-5a7af20c488so4513667b3.1 for ; Wed, 15 Nov 2023 21:22:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700112169; x=1700716969; 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=LGsBAN5f4HBD1+0b849nw4eGgZQCAWEgA8RzzOxSqRw=; b=JhIwLMaw0M1imVxrf1UhxrMGCD5PbCZi6hZ6sP88QYhpJCSAXkJhn1ekLlj/AWm91L 5j78EPXcc3dmOu5DZFEqocpLkMITSwC0yPF20AgfWStkPAZcmpgNSZuveWYewufHm2jv YFOTbbbzvgC9GXhsUocrlX3zuFRZGrLVOS6FFKa+B/ni0HqR4koRgF9x98KECcuwBxHr G54yJ30FSdlTzhrusFB7OhvDvwT82mHYIEvmg83iAMS97tbQyibOlF27PG2eFoH9WN9N dZ4Wx3N2HkdEL+i9sqDhcK6ZrXURoOTONpITr5hM7RTptCghCAQGUf/ceTpCRiEEbnU8 ry0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700112169; x=1700716969; 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=LGsBAN5f4HBD1+0b849nw4eGgZQCAWEgA8RzzOxSqRw=; b=r4a35y+DaCGTeQByqzm8ZkAiCkhGkTT9gNgVmOxel77A6YvEB4jJL+/bghfuy8ynOA lXu/Rz19r5a4/BPkPobL3gToupaJQ0yq629//DrXbfKMEcPKiNK6I/fuJEJH5Jt8HfwB yod5jUMILQTYlx1GfW48a/p8IRyN1O8mtvXgN4+fkynHS+I+xWv9iPiULshR5J4EcKxe C7j8hcbx9W6tELFGiE8qTYR3mBeGtvIImgCF+0o1L2lm0LzsRpmUlKBBFGIAbuCuYlxG fj3m5lKl0NvFMjwOwyYx1VlL6Nyq219tbrEHcmTg3CwmHBSf2brxSF6P79Kqh04eu93k 5i/A== X-Gm-Message-State: AOJu0YxfuTWQT3eQFZMYQdsslsfeVIQ69JLQhlabLRlUhDwJCQtk8QXh J6gt9tI39pV+tVBZSYmYqirsp6uzPSpG0TaW+vP5bA== X-Received: by 2002:a0d:d502:0:b0:5b3:f5f8:c5c7 with SMTP id x2-20020a0dd502000000b005b3f5f8c5c7mr16117676ywd.18.1700112169345; Wed, 15 Nov 2023 21:22:49 -0800 (PST) MIME-Version: 1.0 References: <20231116032530.753192-1-quic_jprakash@quicinc.com> In-Reply-To: <20231116032530.753192-1-quic_jprakash@quicinc.com> From: Dmitry Baryshkov Date: Thu, 16 Nov 2023 07:22:38 +0200 Message-ID: Subject: Re: [PATCH V2 0/3] iio: adc: Add support for QCOM SPMI PMIC5 Gen3 ADC To: Jishnu Prakash Cc: jic23@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, daniel.lezcano@linaro.org, linus.walleij@linaro.org, linux-arm-msm@vger.kernel.org, andriy.shevchenko@linux.intel.com, quic_subbaram@quicinc.com, quic_collinsd@quicinc.com, quic_amelende@quicinc.com, quic_kamalw@quicinc.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, marijn.suijten@somainline.org, lars@metafoo.de, luca@z3ntu.xyz, linux-iio@vger.kernel.org, lee@kernel.org, rafael@kernel.org, rui.zhang@intel.com, lukasz.luba@arm.com, cros-qcom-dts-watchers@chromium.org, sboyd@kernel.org, linux-pm@vger.kernel.org, linux-arm-msm-owner@vger.kernel.org, kernel@quicinc.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 15 Nov 2023 21:23:12 -0800 (PST) On Thu, 16 Nov 2023 at 05:26, Jishnu Prakash wrote: > > PMIC5 Gen3 has a similar ADC architecture to that on PMIC5 Gen2, > with all SW communication to ADC going through PMK8550 which > communicates with other PMICs through PBS. The major difference is > that the register interface used here is that of an SDAM present on > PMK8550, rather than a dedicated ADC peripheral. There may be more than one > SDAM used for ADC5 Gen3. Each ADC SDAM has eight channels, each of which may > be used for either immediate reads (same functionality as previous PMIC5 and > PMIC5 Gen2 ADC peripherals) or recurring measurements (same as PMIC5 and PMIC5 > Gen2 ADC_TM functionality). In this case, we have VADC and ADC_TM functionality > combined into the same driver. > > Patches 1 adds bindings for ADC5 Gen3 peripheral. > > Patches 2 adds driver support for ADC5 Gen3. For some reason I don't see this patch in my inbox. Maybe it will arrive later. Immediate response: please add devm_thermal_add_hwmon_sysfs(). > > Patch 3 is a cleanup, to move the QCOM ADC dt-bindings files from > dt-bindings/iio to dt-bindings/iio/adc folder, as they are > specifically for ADC devices. It also fixes all compilation errors > with this change in driver and devicetree files and similar errors > in documentation for dtbinding check. NAK. The kernel is expected to build and work after each commit. Otherwise git-bisecting the kernel becomes impossible. So, please rework your series in a way that there are no compilation errors after any of the patches. The easiest way would be to rearrange your patches in 3-1-2 order. > > Changes since v1: > - Dropped patches 1-5 for changing 'ADC7' peripheral name to 'ADC5 Gen2'. > - Addressed reviewer comments for binding and driver patches for ADC5 Gen3. > - Combined patches 8-11 into a single patch as requested by reviewers to make > the change clearer and made all fixes required in same patch. > > Jishnu Prakash (3): > dt-bindings: iio: adc: Add QCOM PMIC5 Gen3 ADC bindings > iio: adc: Add support for QCOM PMIC5 Gen3 ADC > dt-bindings: iio/adc: Move QCOM ADC bindings to iio/adc folder > > .../bindings/iio/adc/qcom,spmi-vadc.yaml | 185 ++- > .../bindings/mfd/qcom,spmi-pmic.yaml | 2 +- > .../bindings/thermal/qcom-spmi-adc-tm-hc.yaml | 2 +- > .../bindings/thermal/qcom-spmi-adc-tm5.yaml | 6 +- > arch/arm64/boot/dts/qcom/pm2250.dtsi | 2 +- > arch/arm64/boot/dts/qcom/pm6125.dtsi | 2 +- > arch/arm64/boot/dts/qcom/pm6150.dtsi | 2 +- > arch/arm64/boot/dts/qcom/pm6150l.dtsi | 2 +- > arch/arm64/boot/dts/qcom/pm660.dtsi | 2 +- > arch/arm64/boot/dts/qcom/pm660l.dtsi | 2 +- > arch/arm64/boot/dts/qcom/pm7250b.dtsi | 2 +- > arch/arm64/boot/dts/qcom/pm8150.dtsi | 2 +- > arch/arm64/boot/dts/qcom/pm8150b.dtsi | 2 +- > arch/arm64/boot/dts/qcom/pm8150l.dtsi | 2 +- > arch/arm64/boot/dts/qcom/pm8916.dtsi | 2 +- > arch/arm64/boot/dts/qcom/pm8950.dtsi | 2 +- > arch/arm64/boot/dts/qcom/pm8953.dtsi | 2 +- > arch/arm64/boot/dts/qcom/pm8994.dtsi | 2 +- > arch/arm64/boot/dts/qcom/pm8998.dtsi | 2 +- > arch/arm64/boot/dts/qcom/pmi632.dtsi | 2 +- > arch/arm64/boot/dts/qcom/pmi8950.dtsi | 2 +- > arch/arm64/boot/dts/qcom/pmm8155au_1.dtsi | 2 +- > arch/arm64/boot/dts/qcom/pmp8074.dtsi | 2 +- > arch/arm64/boot/dts/qcom/pms405.dtsi | 2 +- > arch/arm64/boot/dts/qcom/sc7280-idp.dts | 2 +- > arch/arm64/boot/dts/qcom/sc7280-idp.dtsi | 2 +- > arch/arm64/boot/dts/qcom/sc7280-qcard.dtsi | 4 +- > arch/arm64/boot/dts/qcom/sc8180x-pmics.dtsi | 2 +- > .../qcom/sc8280xp-lenovo-thinkpad-x13s.dts | 6 +- > .../boot/dts/qcom/sm7225-fairphone-fp4.dts | 2 +- > arch/arm64/boot/dts/qcom/sm8450-hdk.dts | 8 +- > drivers/iio/adc/Kconfig | 25 + > drivers/iio/adc/Makefile | 1 + > drivers/iio/adc/qcom-spmi-adc5-gen3.c | 1189 +++++++++++++++++ > drivers/iio/adc/qcom-spmi-adc5.c | 2 +- > drivers/iio/adc/qcom-spmi-vadc.c | 2 +- > .../iio/adc/qcom,spmi-adc5-gen3-pm8550.h | 50 + > .../iio/adc/qcom,spmi-adc5-gen3-pm8550b.h | 89 ++ > .../iio/adc/qcom,spmi-adc5-gen3-pm8550vx.h | 22 + > .../iio/adc/qcom,spmi-adc5-gen3-pmk8550.h | 56 + > .../iio/{ => adc}/qcom,spmi-adc7-pm8350.h | 2 +- > .../iio/{ => adc}/qcom,spmi-adc7-pm8350b.h | 2 +- > .../iio/{ => adc}/qcom,spmi-adc7-pmk8350.h | 2 +- > .../iio/{ => adc}/qcom,spmi-adc7-pmr735a.h | 2 +- > .../iio/{ => adc}/qcom,spmi-adc7-pmr735b.h | 0 > .../iio/{ => adc}/qcom,spmi-vadc.h | 81 ++ > 46 files changed, 1725 insertions(+), 61 deletions(-) > create mode 100644 drivers/iio/adc/qcom-spmi-adc5-gen3.c > create mode 100644 include/dt-bindings/iio/adc/qcom,spmi-adc5-gen3-pm8550.h > create mode 100644 include/dt-bindings/iio/adc/qcom,spmi-adc5-gen3-pm8550b.h > create mode 100644 include/dt-bindings/iio/adc/qcom,spmi-adc5-gen3-pm8550vx.h > create mode 100644 include/dt-bindings/iio/adc/qcom,spmi-adc5-gen3-pmk8550.h > rename include/dt-bindings/iio/{ => adc}/qcom,spmi-adc7-pm8350.h (98%) > rename include/dt-bindings/iio/{ => adc}/qcom,spmi-adc7-pm8350b.h (99%) > rename include/dt-bindings/iio/{ => adc}/qcom,spmi-adc7-pmk8350.h (97%) > rename include/dt-bindings/iio/{ => adc}/qcom,spmi-adc7-pmr735a.h (95%) > rename include/dt-bindings/iio/{ => adc}/qcom,spmi-adc7-pmr735b.h (100%) > rename include/dt-bindings/iio/{ => adc}/qcom,spmi-vadc.h (77%) > > -- > 2.25.1 > -- With best wishes Dmitry