Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp937680rdb; Fri, 2 Feb 2024 08:24:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IHm6Ehd5lYi/XmW5gudW/lkj1fEfZvzgVFtjpxLG5NvwkmnyAKNytqgP206BoiMu/5Jx4gy X-Received: by 2002:a17:906:539a:b0:a35:b59c:fc04 with SMTP id g26-20020a170906539a00b00a35b59cfc04mr1909574ejo.25.1706891066921; Fri, 02 Feb 2024 08:24:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706891066; cv=pass; d=google.com; s=arc-20160816; b=FFx56xs/vYJ+QejHkWT8FP0YNtAs/tlQ/0W8OiAOXzZ0pzW9nxM4nEcVFPfVt2c+jR U8pTy7ubGBSyC26AHUJH9Ozwa0Ib63O/XC4mxGU+NnC7+DnN9qMvLUStcNKKsuUyXzHR XUMdEw7YmBS72+P+0iY1SIG5QFtvFi7VML8pSCFTEoHEQRrpiWjPOi6YI3EU1czvZ6JL 8MNTEiliBquq8uWrqr2LZi9rsevuRhK7+BjWZqD1AP6rFBRe4fzRSXRN/CjzgeEYAFf1 UYRCvaxxD3P481fU/qnxUSCh+hG7k4w8LCVyIGZ7wIFuLP5nSMtBdFB7SUH9F+51D7+3 rmrA== 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=Pvi41Qht9L0a0pq0D9YP5BTeEg7r6cHJAKd+MnrJLG4=; fh=2c8Wm5S1aIjgnz7+tvPy7TERLqlX2LV/meJBRV6YZ6s=; b=pP7vgT8HiFHxH3ZsXpWp0SLTIu7OLMfltFyZYCwhT8xOJxghPUIc2/Dyua3ovwOVl3 KbNkNdx0XD27+QFHJWe7hE4c5vEsVwFY5Bwgs7yWU7srb9arfkRcXhmD5TzfiNhGk3HY pWOQaiaH4XDKTIFTNWR5n/L6Yp49IiZWoqLApkqTIWYxKlE0OC1E9ji9dK2qc5qVnoDg pB/4wXoW7WNTEwh5sw28yKAxMc5DJJj9Sp0KmVpKqqnNTFnOuJqx5STi+PI/cFTsCz72 XYqR/j/aHya0HR3vZcjXxybAtjnO5dpt1qQWHHzjJJYYPlAIjAJ8lgDlomaK5rZYXkiJ WsCg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Rr4y2Q11; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-50129-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50129-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCW1bBL3Y5OiyhAO5IT1Qp+SvGDmdWLlDX9G/q9vpM6gcrqydWMESCijQwhXHvf2qYSiRRVY8O+gHxvG9BrPwL52lkVGdcw2BA8f6fbduA== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a10-20020a170906244a00b00a318f0a6a33si958458ejb.372.2024.02.02.08.24.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 08:24:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-50129-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=Rr4y2Q11; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-50129-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50129-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 AAF961F2131A for ; Fri, 2 Feb 2024 16:24:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0E7471474D0; Fri, 2 Feb 2024 16:24:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Rr4y2Q11" 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 33C6F145356; Fri, 2 Feb 2024 16:24:17 +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=1706891058; cv=none; b=t4CURAYt52/VVN/27H5czvJbI12gvlAMeOVk6LJtfyKCDP++l15iHo9tDNjJWKijPI8HZq3rnwDbVO0RihHneqymsxh3iyL/hxvKB85wKoEWgfQEi2QI52s4X5eCNw36OyE+N+g72iu0zL9/9CoVy9k4yY+iEj86vHDqvKqw2v4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706891058; c=relaxed/simple; bh=nf1dgIwaXauoxmAsRA//GzUzQl0CfZAGGsi0S4FzkvM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=NN4QTq+OFxeCGh/zOxuwcsJtVLJ8UdQKxoWbjK9lEVnXL3xuCWyO3VlGAuag5ARvwXAjOzrPdrR9RQjAdk0UdQftdPPkpWQgj4HaZlS5MGuD9BmCTec/iC4eS720UMnIRUs5uNcbxREcR7HLCS3VgblBuDSnnEVS/yf8ugu0VAs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Rr4y2Q11; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B5DD8C433C7; Fri, 2 Feb 2024 16:24:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706891057; bh=nf1dgIwaXauoxmAsRA//GzUzQl0CfZAGGsi0S4FzkvM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Rr4y2Q11L9RwT8FjB0w/nagDTfTZiK483vQYqXr5WwkPDH7uNTlsMxQqlXnfTVEgz DpcAkkSbr7J4tKmqqs78L6n4aceggFNGh991i60akq32dkGZigDafAjqDMGQGXkd+n fDSk1KPWGJfl4m/5cowpIl8vStyrvN3W/DsVPYFhxLFOebVgo+VKf07ZBCzIqoZlqt y7ECYFpSnvIu6OlqjJP/8wif5xMzWhsTKcv0fo/wPAHSxu92XPYIJHDsstFQm+KMrp DQmC7Ovzp1F/qZIi0DPJBYgd25qzcDIsbH888juk5W0TvfXfAzOXjWsWFejocBCt1F +IhuRox8t6Bhg== Date: Fri, 2 Feb 2024 16:24:13 +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: <20240202-carbon-jumbo-0a577c19b62f@spud> References: <20240126114614.1424592-1-naresh.solanki@9elements.com> <20240126-deflate-ashy-158a91efb25a@spud> 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="OGS3hiZ1Wh3iWLl3" Content-Disposition: inline In-Reply-To: --OGS3hiZ1Wh3iWLl3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 02, 2024 at 05:27:10PM +0530, Naresh Solanki wrote: > Hi Conor, >=20 >=20 > On Fri, 26 Jan 2024 at 21:50, Conor Dooley wrote: > > > > 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 = present, > > 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! > Yes this is deprecated property. I missed noticing that earlier. > Will remove this dependency. Thanks for pointing that out. What do you mean "remove this dependency"? If you remove this there is nothing useful left in the patch. Confused, Conor. >=20 > Regards, > Naresh > > > > > Also update example. > > > > > > 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. > > > > > > > > Signed-off-by: Naresh Solanki > > > --- > > > Documentation/devicetree/bindings/mfd/maxim,max5970.yaml | 9 +++++++= ++ > > > 1 file changed, 9 insertions(+) > > > > > > diff --git a/Documentation/devicetree/bindings/mfd/maxim,max5970.yaml= b/Documentation/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. > > > > > > + regulator-compatible: > > > + pattern: "^SW[0-1]$" > > > + > > > required: > > > - shunt-resistor-micro-ohms > > > > > > @@ -111,6 +114,8 @@ examples: > > > > > > regulators { > > > sw0_ref_0: sw0 { > > > + regulator-compatible =3D "SW0"; > > > + regulator-name =3D "p5v"; > > > shunt-resistor-micro-ohms =3D <12000>; > > > }; > > > }; > > > @@ -145,9 +150,13 @@ examples: > > > > > > 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>; > > > }; > > > }; > > > > > > base-commit: ecb1b8288dc7ccbdcb3b9df005fa1c0e0c0388a7 > > > -- > > > 2.42.0 > > > --OGS3hiZ1Wh3iWLl3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZb0XLQAKCRB4tDGHoIJi 0t4fAP4p2F8BI/5T3p/OhE42EZgDqs1Mj5cPA7gfcqNWa2dYHgD9HIwbLyGmWwQi EhgTB422mCYY4MX1rS8e9zsaXD2lPg0= =DZBo -----END PGP SIGNATURE----- --OGS3hiZ1Wh3iWLl3--