Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp709391rdb; Fri, 26 Jan 2024 08:20:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IF6ubbr8mL8XKtKxx6yedWvNEyrWy/YmtynkI8vH+8LeRTolecR+AfTPVSjqmQvfe1/KUiV X-Received: by 2002:a05:6214:c44:b0:686:ab99:f0c with SMTP id r4-20020a0562140c4400b00686ab990f0cmr103851qvj.52.1706286037425; Fri, 26 Jan 2024 08:20:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706286037; cv=pass; d=google.com; s=arc-20160816; b=I23xoSaHsH2FG7xF6Eyqgqws/7ZkwY9nWiM9EryKSwh+R2nNU52CZzjEP3m4CR29yC /kYJieOvWb2VC5X1100w7djDFpajsJH/luM4up4u0FPwUCp+OxjX/JA2qSLJz6nOsiTR kJcoTB5k6BH2sovLX80RLOF914nYZieSzuNFEpEWinXAm8+kOGTu/2jz/0UmFMXNu1lm OdQLibWcIW6Lr53PqjXeHE/eWlGgRJ/K89/w3Gv7Z4IImHBQAMb5j3GYP9pGMHHVV+kU 6+8zWewc5ifEMuu3zx7J5+MgPDldkLDacSWaCRYhAjkpSCmNn1bYrMDFKDL5Al39mBKP rHxg== 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=uCxeyBwifiLSFra4s83ugojxM45AywQDwHWqVRcZQ3k=; fh=xO97+ieCX2xv+/FT/Jjbns/Tbwg3panflb5aku1nGgQ=; b=og8CvknGQF3mwwP7Jo5A8chJHFHR+Cj3kWmm2IpXkJRPygipuxby6OpVRHAxaNBa5j BhGPHkpht4wK5LU1x1OJmGr5IUBCNp/c/9irwvkntCRk4427lkQOFvRtH8Fhto3jK+Ty vgOxy20FMhT9+gpJeuD6aW7ore8QyYo5TNc1SPJiuRDSQtehDVtp7Y6wO62HZ5WXUz20 4eQ7+kLQNInAmM82y2FJGfvnS49ie52zV13b9ltJQMWuoNpYr6BbUOPsmHVOfxcXwv/U nF3sCaNm8zO0zCikAjIzWyZXeq+D1V0HqAM+iF7rSV1zNAgpleWnsdbZ8uqQCArybzFa bInw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kzCEpfep; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-40323-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40323-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 r8-20020a056214212800b0068193b87ffasi1757954qvc.281.2024.01.26.08.20.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 08:20:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-40323-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=@kernel.org header.s=k20201202 header.b=kzCEpfep; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-40323-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40323-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 39F171C229E0 for ; Fri, 26 Jan 2024 16:20:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7A4D61DA2E; Fri, 26 Jan 2024 16:20:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="kzCEpfep" 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 A13061CD3F; Fri, 26 Jan 2024 16:20:22 +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=1706286022; cv=none; b=eTiIh4wrGkpX2rUpRk5uHpX5zzel72spq5TuyokKhXReNjZ0usl7bun+G+muna4Nvvge2j1FbgSHSsaQHR9o6cqroTsNJxw0x7N9RDnQH1eKV730YCiJfTXA/KWWgH88Nom7KWMpB/xEHryvigIraQ0a/polVTpUYqSWtw8wzWQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706286022; c=relaxed/simple; bh=Bg4FEqSmu/zlJ81s2vYzsOyYu9m8XO/urPWpfBFydT0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=iUEZH7Cd7GWaAI5LDshobv62bDEdAdLC8bPvbkDIgiyHoj2pz08VgHsxWe8GVGgsjN9AsgRd/O2czdgRth3pbrwtZ/LGsc6fYtzYshVIh1pHPAm300Y98Vy3jib1KN0KyAoGUZmFpYiQDYNfy++YCpvXcRE9Yovwew9S4x9INo8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kzCEpfep; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 41235C433F1; Fri, 26 Jan 2024 16:20:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706286022; bh=Bg4FEqSmu/zlJ81s2vYzsOyYu9m8XO/urPWpfBFydT0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kzCEpfep/SR6iB7ACMgLPn0tku02mUlmxJyoz56wZ0Y+xhSjGKHZkFKpCqh72K3wB g4UOsmdt9Hkscql0kYrcSM9e3YLr8xWCivpLCT+5ILfS7fsJwAkluJSCceLFlnCfO1 cBpCODNhi0d9I0CjqHc2IaubUIA7qiZjs4nr/ZQfHahrO3LeKcaIjT+uzR81jYzjw3 K2gpat3abPj2AH8x41kr5yha2+xzMgQuXfRShyAQ0CrNBEU86ub8X3yLtmm2ab1vau ME8ZUYuryfj1Zm3Y6cFhPa7XsjSNA/VUE8Bm54ErHvmYOz7315gb5xKx3Hrmj1F3m+ QIybEEtcKCRWQ== Date: Fri, 26 Jan 2024 16:20:18 +0000 From: Conor Dooley To: Naresh Solanki Cc: Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Patrick Rudolph , mazziesaccount@gmail.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dt-bindings: mfd: Add regulator-compatible property Message-ID: <20240126-deflate-ashy-158a91efb25a@spud> References: <20240126114614.1424592-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="lQRYenakLFWQ8EtE" Content-Disposition: inline In-Reply-To: <20240126114614.1424592-1-naresh.solanki@9elements.com> --lQRYenakLFWQ8EtE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jan 26, 2024 at 05:16:14PM +0530, Naresh Solanki wrote: > Add regulator-compatible property. Why? I can see that this is what you did, but there's no justification for it. grepping for this property, the first thing I see is: rg "regulator-compatible" drivers/regulator/of_regulator.c 389: * based on either the deprecated property regulator-compatible if pres= ent, 428: "regulator-compatible", NULL); 486: name =3D of_get_property(child, "regulator-compatible", NULL); The property is deprecated, so you'll need twice as good a justification for adding it! > Also update example. >=20 > TEST=3DRun below command & make sure there is no error > make DT_CHECKER_FLAGS=3D-m dt_binding_check Same comment here as my other mail. Thanks, Conor. >=20 > Signed-off-by: Naresh Solanki > --- > Documentation/devicetree/bindings/mfd/maxim,max5970.yaml | 9 +++++++++ > 1 file changed, 9 insertions(+) >=20 > diff --git a/Documentation/devicetree/bindings/mfd/maxim,max5970.yaml b/D= ocumentation/devicetree/bindings/mfd/maxim,max5970.yaml > index 0da5cae3852e..75175098cbc2 100644 > --- a/Documentation/devicetree/bindings/mfd/maxim,max5970.yaml > +++ b/Documentation/devicetree/bindings/mfd/maxim,max5970.yaml > @@ -74,6 +74,9 @@ properties: > description: | > The value of current sense resistor in microohms. > =20 > + regulator-compatible: > + pattern: "^SW[0-1]$" > + > required: > - shunt-resistor-micro-ohms > =20 > @@ -111,6 +114,8 @@ examples: > =20 > regulators { > sw0_ref_0: sw0 { > + regulator-compatible =3D "SW0"; > + regulator-name =3D "p5v"; > shunt-resistor-micro-ohms =3D <12000>; > }; > }; > @@ -145,9 +150,13 @@ examples: > =20 > regulators { > sw0_ref_1: sw0 { > + regulator-compatible =3D "SW0"; > + regulator-name =3D "p5v_aux"; > shunt-resistor-micro-ohms =3D <12000>; > }; > sw1_ref_1: sw1 { > + regulator-compatible =3D "SW1"; > + regulator-name =3D "p3v3_aux"; > shunt-resistor-micro-ohms =3D <10000>; > }; > }; >=20 > base-commit: ecb1b8288dc7ccbdcb3b9df005fa1c0e0c0388a7 > --=20 > 2.42.0 >=20 --lQRYenakLFWQ8EtE Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZbPbwQAKCRB4tDGHoIJi 0mphAP9mNAqgCfGnG2oZT03eR5lo8zVtxGVA3e31U4pT35l3oAEAmSR0t82lnGuR Ko9mPTkVro5PyNGNvBvn9QwRTqP8qAc= =FJF6 -----END PGP SIGNATURE----- --lQRYenakLFWQ8EtE--