Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp739428rdh; Wed, 14 Feb 2024 09:52:34 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW3Lbm52bKqds4Vtx2nhmJ1h4uCETUmuP+nLxFXvPMiK8v/DLxidAsmZdtpGaXvRtKCImCkrNONFheIQMghfXhCHIwa9pZgj6WOG0yltg== X-Google-Smtp-Source: AGHT+IEPVdb8tQ96OZ7q3w1p1qYfOqEKAgaMtIt5A4LSX+iUn7u3udG31Sl7SC89LgMLYSysM2c0 X-Received: by 2002:a05:6512:10cb:b0:511:9949:25a3 with SMTP id k11-20020a05651210cb00b00511994925a3mr2914685lfg.7.1707933153910; Wed, 14 Feb 2024 09:52:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707933153; cv=pass; d=google.com; s=arc-20160816; b=Od4V0zAIPJvXASrbevxbuFs+Ip28gAoELIrZixS4UrEQiWcPM2H6MoY8LnKh+xJcZ1 Ybq+Vt/J+Ynd3xP7+KuUA1w7Z2AHsY5ZqZOJTtJ/0gANioe0Feh90YKx2H1cKUD/pSNy ZQ+dJgRX5lIubJErBIMisvG1I6y+MUxIqAgDrqZbqWVkNsFl9Y1qs2RUYRQuSd+X7895 bXTBAKSzrxvECd9dEoKRiDrkccCffK8ZM/KQwOFSOWJglHEjOVPwP4Vwcm+Kg1Py8eY3 x+NBPTmchdtCBSUL7dJPObG+EI6BDZojAgWlUifu+j3u+pe/87nPOBLRSpZugp3d+TpP nWbA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=T/LRbhPr4CfBgAmSFP04AZf9EwGMCN+e6NsoYhQbiTw=; fh=58G6SeHQsEQWCShdbuA19OMJ7Y2eHr3sLWnlOtZt+Ek=; b=Ujqf2Dee5a6702V4Lonv+o5Rij9CxzTHDE36wfGlefZwvKUan2t1PbSpqXfq4hz3Wj kJNupy7Jo01fKjD32dd9ThaNl2GHziIjcpwxF7uGse4FceqkLQ29zAKF6dhewGNabnRq PN4yc8fCDVBJ3/SqR+/PU2XC3CSTFNm7H/IaFU1oz9cw6q7vXH7JILsO91cOYyglNEI3 pe5by6SQVsg3usnHyNNno/SBdfN7IXG0aLnsiZDBMljhVt+gDS1u9MzZyWdqaI5tZQyq CM36mQzVETdiX4JpdzqDvqYjE/w/WyskpF9mU3efe0KvLtGWOToMu3KppZbXPnzSgWE7 nSZg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ahkMHS9i; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-65723-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65723-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCWJMPmOUnl1hMmXyUfr3JMmW4D4fXeSrb3Qdt1eX5qgyev5EopnDQweGGjyoc5ggKU9S9Vy6ckSkck/nbkelibGg31Bd1vtr8z78gA1vw== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id m23-20020a170906235700b00a3d1d2885bfsi1430088eja.1038.2024.02.14.09.52.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 09:52:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65723-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ahkMHS9i; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-65723-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65723-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 796461F21592 for ; Wed, 14 Feb 2024 17:52:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D07391272D3; Wed, 14 Feb 2024 17:51:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ahkMHS9i" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E735C86644; Wed, 14 Feb 2024 17:51:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707933108; cv=none; b=L8fWs24f6vvQGOP5+/mFIZVvFnnq1wdsCS7HGkU2O+t/kShpndJJv9PUdbN/mRcJ6IkAVfKkf4LNclfT0sneU2GCieYaAnxqDtpN2CTMPWOnAh3bS73dL7+EAX9tt+3V2kPm3D1G40KoO5OdrSAIm/wHldyAPXgG+Ti/hi0tGXo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707933108; c=relaxed/simple; bh=D7ZXt13m5wJPpJvRrcstm/rrc9ZCgmeDjwqMNKdG5Fo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=dSWxIsrRwgKb7/P7BvXZBTMsc5Wp6hCsdelfx4FQ9y+N6QFhsa30aJqRw4JFabBE+fSQzAAco8SYZN6Lyb7w9XGSRIAvr2AWNLsUG/ww59c8Li0NVZ9VdxHUaYqGoDaU3HYs3nq4QZurLsocd6F5xiRc/MbkXMmK0ecRltPUDd8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ahkMHS9i; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 40CC2C433C7; Wed, 14 Feb 2024 17:51:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707933107; bh=D7ZXt13m5wJPpJvRrcstm/rrc9ZCgmeDjwqMNKdG5Fo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ahkMHS9ijn3AOUwmUoMW3wlEWdyMxVbH9TLN+XkqI5eeIyTjFSfBImfBE2bTu0tpb cK5eaPRpNrlMfTkBGwElJ4NTH/RNgRb1Esv+Q7W/UCpP4tg+3ThrEUcrOziDh4vZ0L nGTG5OTAkjUD1lzDSikFwETwDskjISvEpAvzZXzil+smSPJfbQzOP61NTGFn/sOT3w 6OrDGL0/5j9XaKnk1iiA2KRvYnOZKMjbq8DveY+cfcQwNWvFWPP6oa0sXkZ1E622Lv 9gn20wp84DndxoCcaC6i0hvrGui9Pia81RNqOURAB+iVDdEX/LJV39geTzZXvyekQf kNjMWxjBfHkbg== Date: Wed, 14 Feb 2024 17:51:42 +0000 From: Conor Dooley To: Naresh Solanki Cc: Jean Delvare , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , mazziesaccount@gmail.com, linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] dt-bindings: hwmon: tda38640: Add interrupt & regulator properties Message-ID: <20240214-trinity-delouse-6dcd0b046895@spud> References: <20240214092504.1237402-1-naresh.solanki@9elements.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="nhWZ/akHVA7OeoZg" Content-Disposition: inline In-Reply-To: <20240214092504.1237402-1-naresh.solanki@9elements.com> --nhWZ/akHVA7OeoZg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 14, 2024 at 02:55:03PM +0530, Naresh Solanki wrote: > Add properties for interrupt & regulator. > Also update example. I feel like a broken record. Your patches need to explain _why_ you're doing what you're doing. I can read the diff and see this, but I do not know what the justification for it is. /30 seconds later I really am a broken record, to quote from v1: | Feeling like a broken record, given I am leaving the same comments on | multiple patches. The commit message needs to explain why you're doing | something. I can read the diff and see what you did! https://lore.kernel.org/all/20240126-fleshed-subdued-36bae813e2ba@spud/ The patch itself does look better than the v1, with one minor comment below. Thanks, Conor. > Signed-off-by: Naresh Solanki >=20 > --- > Changes in v2: > 1. Remove TEST=3D.. > 2. Update regulator subnode property as vout0 > 3. Restore commented line in example > 4. blank line after interrupts property in example. > --- > .../hwmon/pmbus/infineon,tda38640.yaml | 28 +++++++++++++++++++ > 1 file changed, 28 insertions(+) >=20 > diff --git a/Documentation/devicetree/bindings/hwmon/pmbus/infineon,tda38= 640.yaml b/Documentation/devicetree/bindings/hwmon/pmbus/infineon,tda38640.= yaml > index ded1c115764b..a93b3f86ee87 100644 > --- a/Documentation/devicetree/bindings/hwmon/pmbus/infineon,tda38640.yaml > +++ b/Documentation/devicetree/bindings/hwmon/pmbus/infineon,tda38640.yaml > @@ -30,6 +30,23 @@ properties: > unconnected(has internal pull-down). > type: boolean > =20 > + interrupts: > + maxItems: 1 > + > + regulators: > + type: object > + description: > + list of regulators provided by this controller. > + > + properties: > + vout0: Why "vout0" if there's only one output? Is it called that in the documentation? I had a quick check but only saw it called "vout". Are there other related devices that would have multiple regulators that might end up sharing the binding? Thanks, Conor. > + $ref: /schemas/regulator/regulator.yaml# > + type: object > + > + unevaluatedProperties: false > + > + additionalProperties: false > + > required: > - compatible > - reg > @@ -38,6 +55,7 @@ additionalProperties: false > =20 > examples: > - | > + #include > i2c { > #address-cells =3D <1>; > #size-cells =3D <0>; > @@ -45,5 +63,15 @@ examples: > tda38640@40 { > compatible =3D "infineon,tda38640"; > reg =3D <0x40>; > + > + interrupt-parent =3D <&smb_pex_cpu0_event>; > + interrupts =3D <10 IRQ_TYPE_LEVEL_LOW>; > + > + regulators { > + pvnn_main_cpu0: vout0 { > + regulator-name =3D "pvnn_main_cpu0"; > + regulator-enable-ramp-delay =3D <200>; > + }; > + }; > }; > }; >=20 > base-commit: 7e90b5c295ec1e47c8ad865429f046970c549a66 > --=20 > 2.42.0 >=20 --nhWZ/akHVA7OeoZg Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZcz9rgAKCRB4tDGHoIJi 0gTzAQDjf5WWpV+Bz95OQla4FHrvbaTxNWagjMktSpIKUlPZwQD9HWA+ph4V+CXu mI9iji9Fzt36AlQa4omQh4iJlu5A7A0= =t3wm -----END PGP SIGNATURE----- --nhWZ/akHVA7OeoZg--