From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796364052; b=lHCctpY1YrXaFNOFfrsmNNXnXHiq2uJZqC7Z9vjFzeiMrwhATpAaiymlFPF18NFmokhG C9/LPtSB/AgcG6wIIhDpN4agEg/JXDxWNqU++ggw8xCw1+ECATBHnCcxonOsc5UdAQ6dA n0nN4u6fkjRbh/3mRe49IAogZG5O9QTGjOLvhvtlHFPAyKasoNoBN6+h/jEh8zSf2wpqW hiEpV2rJF9Eygpvp4ZKb5OO1bhDVgbWEKx1lkSPoRGjtRALMenQusAOeqTdqs79qvw3u5 xTCq+kKSpzFJFHReTTEsGgI4k9n/5Em2NK5Jf1sD24KXQXITt8veWbuVw1jRThLB+fQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796364052; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=oJcc7XCIiINLXt60Cgx/Y9ImZfkhs4cT4UkiAKlNiRQ=; b=LqoPIZArwux9wLoRwFAByv/sHyz2uxSC1xGltt8SuYmJ0h/hdDrHcrJy99IvqYMQIpMv k23590KJv4Mj8FwyLTtztEadYtRcYTp+ceOdA/WfcfRSGVTHRuOL6cSrIQGb9GUunWzm7 35b7f/MfWhNNJry6fQ7NwSA6xwR2xdGuj39KgKszgHsZYNG8+tx8Mgrf2bmMwDcjkL4O8 VM4lgGR/BOMdXI2NhseNXB6iTicd3r0yKp7EINwb2HpTJSrJegYna6o3fr6k7F6nJ23XW OmVxwomnm2GQIH/O8HHwO0o3RBCURcaZwFGd1ObTz8NtKFJoWTIEuSOlMeB67pSjJHw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=nvRqIhcQ; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9B511606A322; Fri, 4 Dec 2026 06:00:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=nvRqIhcQ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 446091F000C2; Fri, 4 Dec 2026 06:00:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796364052; bh=oJcc7XCIiINLXt60Cgx/Y9ImZfkhs4cT4UkiAKlNiRQ=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=nvRqIhcQ9AijZdPzHebjqqh1WPt/V8ZCLHQoSLjdCoi0tfZNVkEQOF2ixDUq1bH5F raT1e3OWxO2Iro4B/gConv2ZRRbSHQSVcMEM6uLTKFCgl9usrPwEt6NWOsxxlCJqtU aPCylHBi1ChKrNhymwiomBXpuvSmfhDI9GDM4FLDRZsTfK3LrGqI5QJSfGrt4Ioi66 zMaJAgKb16JeapW2+001aYL49nm1lc5lgIqwLbVUjim6OD6JtF3czjYTHR/Q1BaSKz FsnXoYmJiF4sDXrrjRIwJQ8jPRnms56kUoxBsViQ9tK6JjudQdI3c74C+Dufwz2Kbo Q8SnRxyGbaHxw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v6 3/8] dt-bindings: mfd: pm8008: Add mode constants for PM8010 regulators Reply-To: sashiko-reviews@lists.linux.dev To: "Jishnu Prakash" Cc: mfd@lists.linux.dev, devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org, lee@kernel.org In-Reply-To: <20261204-pm8010_i2c_support-v6-3-55c4146e1bd4@oss.qualcomm.com> References: <20261204-pm8010_i2c_support-v6-0-55c4146e1bd4@oss.qualcomm.com> <20261204-pm8010_i2c_support-v6-3-55c4146e1bd4@oss.qualcomm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 06:00:51 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] dt-bindings: mfd: pm8008: undocumented PM8010 mode values and header scope -- commit d1161f38707ebd4b5977a3b2b2e9d724a8277a5c Author: Jishnu Prakash dt-bindings: mfd: pm8008: Add mode constants for PM8010 regulators This commit adds regulator mode macros for PM8010 in a new header and constrains regulator-allowed-modes and regulator-initial-mode to LDO1 and LDO2 in the qcom,pm8008 binding. > diff --git a/Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml b/Doc= umentation/devicetree/bindings/mfd/qcom,pm8008.yaml > index 2701aa755f310..64d4e26d16fa7 100644 > --- a/Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml > +++ b/Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml > @@ -82,11 +82,42 @@ properties: > type: object > additionalProperties: false > patternProperties: > - "^ldo[1-7]$": > + "^ldo[1-2]$": > type: object > $ref: /schemas/regulator/regulator.yaml# > + > + properties: > + regulator-allowed-modes: > + items: > + enum: [ 0, 1 ] > + regulator-initial-mode: > + enum: [ 0, 1 ] > + unevaluatedProperties: false [ ... ] > diff --git a/include/dt-bindings/regulator/qcom,pm8008-regulator.h b/incl= ude/dt-bindings/regulator/qcom,pm8008-regulator.h > new file mode 100644 > index 0000000000000..26d5d5c427c96 > --- /dev/null > +++ b/include/dt-bindings/regulator/qcom,pm8008-regulator.h > @@ -0,0 +1,19 @@ > +/* SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause */ > +/* Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. */ > + > +#ifndef __QCOM_PM8008_REGULATOR_H > +#define __QCOM_PM8008_REGULATOR_H > + > +/* > + * These constants may be used to specify modes for PM8010 regulator dev= ice > + * tree properties. > + * > + * PM8010_REGULATOR_MODE_LPM: Low power mode in which a small load curre= nt > + * is allowed. > + * PM8010_REGULATOR_MODE_NPM: Normal power mode in which the full rated > + * current of the LDO is allowed. > + */ > +#define PM8010_REGULATOR_MODE_LPM 0 > +#define PM8010_REGULATOR_MODE_NPM 1 [Severity: Low] Should regulator-allowed-modes and regulator-initial-mode in qcom,pm8008.yaml document what values 0 and 1 represent and reference include/dt-bindings/regulator/qcom,pm8008-regulator.h? regulator.yaml expects each device binding to explain its supported mode values, and without a description or header reference a reader of qcom,pm8008.yaml cannot tell what 0 and 1 mean or locate the new header. Also, could the comment in qcom,pm8008-regulator.h clarify that these constants apply only to I2C-connected PM8010 (qcom,pm8010-i2c)? RPMh-managed PM8010 (qcom,pm8010-rpmh-regulators) uses qcom,rpmh-regulator.h with different values (RPMH_REGULATOR_MODE_RET is 0 and RPMH_REGULATOR_MODE_LPM is 1), so the unscoped PM8010 comment can easily be misread. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204-pm8010_i2c= _support-v6-0-55c4146e1bd4@oss.qualcomm.com?part=3D3