[v2,4/5] dt-bindings: regulator: adi,max77541-regulator.yaml Add MAX77541 Regulator bindings
Message ID | 20221226223839.103460-5-okan.sahin@analog.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp1117567wrt; Mon, 26 Dec 2022 14:42:51 -0800 (PST) X-Google-Smtp-Source: AMrXdXvlYX5g9Ah6IKcHogiFdWkiMh7TWxNNBdHHBRUn07hnfNKZ+0jRne8eBGt/Nf5OYTPcFqd7 X-Received: by 2002:a05:6a20:3b11:b0:ac:16ae:6204 with SMTP id c17-20020a056a203b1100b000ac16ae6204mr23119680pzh.41.1672094571494; Mon, 26 Dec 2022 14:42:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672094571; cv=none; d=google.com; s=arc-20160816; b=qae0auEGxoMkoJRLNrLUpvNcH5sOjUT8knTEYHGkpEQEfp3PxTQ4bUtm9gA6AIwVHq feOoum02CJQwrV15eob+uG9XRO+fsldmBYobLAPexsxNx/GSiFDqooeRSOZjw9F3KsOn jtNytKv7lA4vUEFxkrbyM/SKgC/++dQBmB8GUNJnbX4ZAwqXhfh2s+b6A7dayw91+Qjz nnWzMV3MjaoJRQuzaOQxSM6sdU3AIlEAjmBeYXiuFhLteD92cSpCUQ07l1hEOHcAh92B hxu6PMFU7/KyUyGpLaya250m93ML+7S1E6s4pG3pGukvXXD+6xJTVhNHGXfBAzOZMSWp lDPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=ESNrmguN/Js+32cpw+F2307FDXD3e8hImT0zKuV72Bg=; b=aTbChYMtZYO0dQ4IvqP9rBMogPtHWFamABWO077GonRBE9W+kIQQtv9xb3IZGThL4y iOyxaewjCFLLWSe9sCDL/yALBWU8nbpVyIn/Knu4c/VFf6ymLjB8JOMiJhmz2XiezY6X 88twMqPE7XhjZJ7qjy332kRlJVxSeVo2dPfX78PyTF7/ZoiNFfv9OQS9kvRtUkCx3Ab/ 5G/UzMq6E8hS25zhgNR8CirLsMHGd9MDj9aQBN6ZyqWfy8OWiHik0pkmzdPdsBBhMjdG cCx0cePH5LLJh6q8A5KiRiJtdhi1ck3rjyYb8i4DM62Fs8IfD9Kw/Givwnk4aXYu4NDd Rusg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s37-20020a634525000000b00478d8bd0906si12875179pga.737.2022.12.26.14.42.37; Mon, 26 Dec 2022 14:42:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232471AbiLZWlj (ORCPT <rfc822;eddaouddi.ayoub@gmail.com> + 99 others); Mon, 26 Dec 2022 17:41:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232401AbiLZWkg (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 26 Dec 2022 17:40:36 -0500 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 771905FD6; Mon, 26 Dec 2022 14:39:32 -0800 (PST) Received: from pps.filterd (m0167089.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2BQIkpgi020208; Mon, 26 Dec 2022 17:39:29 -0500 Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3mny7a203j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 26 Dec 2022 17:39:29 -0500 Received: from ASHBMBX9.ad.analog.com (ASHBMBX9.ad.analog.com [10.64.17.10]) by nwd2mta4.analog.com (8.14.7/8.14.7) with ESMTP id 2BQMdRHW000565 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 26 Dec 2022 17:39:27 -0500 Received: from ASHBMBX8.ad.analog.com (10.64.17.5) by ASHBMBX9.ad.analog.com (10.64.17.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Mon, 26 Dec 2022 17:39:26 -0500 Received: from zeus.spd.analog.com (10.66.68.11) by ashbmbx8.ad.analog.com (10.64.17.5) with Microsoft SMTP Server id 15.2.986.14 via Frontend Transport; Mon, 26 Dec 2022 17:39:26 -0500 Received: from okan.localdomain ([10.158.19.61]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 2BQMcuAd032340; Mon, 26 Dec 2022 17:39:21 -0500 From: Okan Sahin <okan.sahin@analog.com> To: <okan.sahin@analog.com> CC: Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, "open list:VOLTAGE AND CURRENT REGULATOR FRAMEWORK" <linux-kernel@vger.kernel.org>, "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" <devicetree@vger.kernel.org> Subject: [PATCH v2 4/5] dt-bindings: regulator: adi,max77541-regulator.yaml Add MAX77541 Regulator bindings Date: Tue, 27 Dec 2022 01:38:38 +0300 Message-ID: <20221226223839.103460-5-okan.sahin@analog.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221226223839.103460-1-okan.sahin@analog.com> References: <20221226223839.103460-1-okan.sahin@analog.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-ORIG-GUID: yPLnufxl-Q9_RSL2W3xGIGK7DJH9nWYl X-Proofpoint-GUID: yPLnufxl-Q9_RSL2W3xGIGK7DJH9nWYl X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-12-26_18,2022-12-23_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 mlxscore=0 phishscore=0 lowpriorityscore=0 impostorscore=0 suspectscore=0 priorityscore=1501 clxscore=1015 spamscore=0 bulkscore=0 malwarescore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2212260192 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1753318237062986228?= X-GMAIL-MSGID: =?utf-8?q?1753318237062986228?= |
Series |
[v2,1/5] drivers: mfd: Add MAX77541/MAX77540 PMIC Support
|
|
Commit Message
Sahin, Okan
Dec. 26, 2022, 10:38 p.m. UTC
The bindings for MAX77541 and MAX77540
regulator drivers.
Signed-off-by: Okan Sahin <okan.sahin@analog.com>
---
.../regulator/adi,max77541-regulator.yaml | 44 +++++++++++++++++++
MAINTAINERS | 1 +
2 files changed, 45 insertions(+)
create mode 100644 Documentation/devicetree/bindings/regulator/adi,max77541-regulator.yaml
Comments
On 26/12/2022 23:38, Okan Sahin wrote: > The bindings for MAX77541 and MAX77540 > regulator drivers. 1. Again: https://elixir.bootlin.com/linux/v5.17.1/source/Documentation/process/submitting-patches.rst#L95 2. Please wrap commit message according to Linux coding style / submission process (neither too early nor over the limit): https://elixir.bootlin.com/linux/v5.18-rc4/source/Documentation/process/submitting-patches.rst#L586 3. Subject: drop second, redundant "bindings". > > Signed-off-by: Okan Sahin <okan.sahin@analog.com> > --- > .../regulator/adi,max77541-regulator.yaml | 44 +++++++++++++++++++ > MAINTAINERS | 1 + > 2 files changed, 45 insertions(+) > create mode 100644 Documentation/devicetree/bindings/regulator/adi,max77541-regulator.yaml > > diff --git a/Documentation/devicetree/bindings/regulator/adi,max77541-regulator.yaml b/Documentation/devicetree/bindings/regulator/adi,max77541-regulator.yaml > new file mode 100644 > index 000000000000..67d48bfcb627 > --- /dev/null > +++ b/Documentation/devicetree/bindings/regulator/adi,max77541-regulator.yaml > @@ -0,0 +1,44 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/regulator/adi,max77541-regulator.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Buck Converter for MAX77540/MAX77541 > + > +maintainers: > + - Okan Sahin <okan.sahin@analog.com> > + > +description: | > + This is a part of device tree bindings for ADI MAX77540/MAX77541 > + > + The buck converter is represented as a sub-node of the PMIC node on the device tree. > + > + The device has two buck regulators. > + See also Documentation/devicetree/bindings/mfd/adi,max77541.yaml for > + additional information and example. > + > +properties: > + compatible: > + enum: > + - adi,max77540-regulator > + - adi,max77541-regulator > + > +patternProperties: > + "^BUCK[12]$": Old DT example was correct - lowercase node names. Best regards, Krzysztof
Hi Okan,
I love your patch! Perhaps something to improve:
[auto build test WARNING on lee-mfd/for-mfd-next]
[cannot apply to broonie-regulator/for-next jic23-iio/togreg linus/master lee-mfd/for-mfd-fixes v6.2-rc1 next-20221226]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Okan-Sahin/dt-bindings-mfd-adi-max77541-yaml-Add-MAX77541-bindings/20221227-073859
base: https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git for-mfd-next
patch link: https://lore.kernel.org/r/20221226223839.103460-5-okan.sahin%40analog.com
patch subject: [PATCH v2 4/5] dt-bindings: regulator: adi,max77541-regulator.yaml Add MAX77541 Regulator bindings
reproduce:
# https://github.com/intel-lab-lkp/linux/commit/c0440d7413fa9e08ba585982ccd2f5da1d029c13
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Okan-Sahin/dt-bindings-mfd-adi-max77541-yaml-Add-MAX77541-bindings/20221227-073859
git checkout c0440d7413fa9e08ba585982ccd2f5da1d029c13
make menuconfig
# enable CONFIG_COMPILE_TEST, CONFIG_WARN_MISSING_DOCUMENTS, CONFIG_WARN_ABI_ERRORS
make htmldocs
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> Warning: MAINTAINERS references a file that doesn't exist: Documentation/devicetree/bindings/regulator/adi,max77541.yaml
Hi Krzysztof, Thank you for your feedback and efforts. I also have a few question below. On Tue, 27 Dec 2022 10:57 AM Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> wrote: > On 26/12/2022 23:38, Okan Sahin wrote: > > The bindings for MAX77541 and MAX77540 regulator drivers. > > 1. Again: > https://urldefense.com/v3/__https://elixir.bootlin.com/linux/v5.17.1/source/D > ocumentation/process/submitting- > patches.rst*L95__;Iw!!A3Ni8CS0y2Y!7nAM0w0tZiMzaqSFijTSs6_FiIcbPVz- > n0BajxVC1WDh0GfsgL7XoVFoFToHza-Cy2_p8o0UEEc82BOnwgesjPcas_9m$ > > 2. Please wrap commit message according to Linux coding style / submission > process (neither too early nor over the limit): > https://urldefense.com/v3/__https://elixir.bootlin.com/linux/v5.18- > rc4/source/Documentation/process/submitting- > patches.rst*L586__;Iw!!A3Ni8CS0y2Y!7nAM0w0tZiMzaqSFijTSs6_FiIcbPVz- > n0BajxVC1WDh0GfsgL7XoVFoFToHza-Cy2_p8o0UEEc82BOnwgesjE6sDUk6$ > > 3. Subject: drop second, redundant "bindings". > > I will update like you suggest. Is there any command that you can advise to check format of commit is suitable or not by using check_patch? I just added checkpatch into .git/hooks/post-commit file. > > > > Signed-off-by: Okan Sahin <okan.sahin@analog.com> > > --- > > .../regulator/adi,max77541-regulator.yaml | 44 +++++++++++++++++++ > > MAINTAINERS | 1 + > > 2 files changed, 45 insertions(+) > > create mode 100644 > > Documentation/devicetree/bindings/regulator/adi,max77541-regulator.yam > > l > > > > diff --git > > a/Documentation/devicetree/bindings/regulator/adi,max77541-regulator.y > > aml > > b/Documentation/devicetree/bindings/regulator/adi,max77541-regulator.y > > aml > > new file mode 100644 > > index 000000000000..67d48bfcb627 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/regulator/adi,max77541-regulat > > +++ or.yaml > > @@ -0,0 +1,44 @@ > > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause %YAML 1.2 > > +--- > > +$id: > > +https://urldefense.com/v3/__http://devicetree.org/schemas/regulator/a > > +di,max77541- > regulator.yaml*__;Iw!!A3Ni8CS0y2Y!7nAM0w0tZiMzaqSFijTSs6_ > > +FiIcbPVz-n0BajxVC1WDh0GfsgL7XoVFoFToHza- > Cy2_p8o0UEEc82BOnwgesjKsOQbIb > > +$ > > +$schema: > > +https://urldefense.com/v3/__http://devicetree.org/meta-schemas/core.y > > +aml*__;Iw!!A3Ni8CS0y2Y!7nAM0w0tZiMzaqSFijTSs6_FiIcbPVz- > n0BajxVC1WDh0G > > +fsgL7XoVFoFToHza-Cy2_p8o0UEEc82BOnwgesjEgbPQFe$ > > + > > +title: Buck Converter for MAX77540/MAX77541 > > + > > +maintainers: > > + - Okan Sahin <okan.sahin@analog.com> > > + > > +description: | > > + This is a part of device tree bindings for ADI MAX77540/MAX77541 > > + > > + The buck converter is represented as a sub-node of the PMIC node on the > device tree. > > + > > + The device has two buck regulators. > > + See also Documentation/devicetree/bindings/mfd/adi,max77541.yaml > > + for additional information and example. > > + > > +properties: > > + compatible: > > + enum: > > + - adi,max77540-regulator > > + - adi,max77541-regulator > > + > > +patternProperties: > > + "^BUCK[12]$": > > Old DT example was correct - lowercase node names. Actually, I did not change this part of the patch. I checked other examples, and it looks like using upper case under regulators node seems correct to me. Additionally, there is no warning or error after "make dt_binding_check". > > Best regards, > Krzysztof Best regards, Okan
On 15/01/2023 18:41, Sahin, Okan wrote: >>> +patternProperties: >>> + "^BUCK[12]$": >> >> Old DT example was correct - lowercase node names. > Actually, I did not change this part of the patch. I checked other examples, and it looks like using upper case under regulators node seems correct to me. Additionally, there is no warning or error after "make dt_binding_check". What do you mean "correct"? The convention is simple - all node names are lowercase. Why this is an exception? Best regards, Krzysztof
diff --git a/Documentation/devicetree/bindings/regulator/adi,max77541-regulator.yaml b/Documentation/devicetree/bindings/regulator/adi,max77541-regulator.yaml new file mode 100644 index 000000000000..67d48bfcb627 --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/adi,max77541-regulator.yaml @@ -0,0 +1,44 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/adi,max77541-regulator.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Buck Converter for MAX77540/MAX77541 + +maintainers: + - Okan Sahin <okan.sahin@analog.com> + +description: | + This is a part of device tree bindings for ADI MAX77540/MAX77541 + + The buck converter is represented as a sub-node of the PMIC node on the device tree. + + The device has two buck regulators. + See also Documentation/devicetree/bindings/mfd/adi,max77541.yaml for + additional information and example. + +properties: + compatible: + enum: + - adi,max77540-regulator + - adi,max77541-regulator + +patternProperties: + "^BUCK[12]$": + type: object + $ref: regulator.yaml# + additionalProperties: false + description: | + Buck regulator. + + properties: + regulator-name: true + regulator-always-on: true + regulator-boot-on: true + regulator-min-microvolt: + minimum: 300000 + regulator-max-microvolt: + maximum: 5200000 + +additionalProperties: false diff --git a/MAINTAINERS b/MAINTAINERS index 5704ed5afce3..8e5572b28a8c 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12502,6 +12502,7 @@ M: Okan Sahin <okan.sahin@analog.com> L: linux-kernel@vger.kernel.org S: Maintained F: Documentation/devicetree/bindings/mfd/adi,max77541.yaml +F: Documentation/devicetree/bindings/regulator/adi,max77541.yaml F: drivers/mfd/max77541.c F: drivers/regulator/max77541-regulator.c F: include/linux/mfd/max77541.h