Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7601310rdb; Thu, 4 Jan 2024 01:25:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IHgxP5o1er+ZDFnf4YP6ZOvkKd+AeAadrQUKiHi5vEpl+x+n/39q0IIt3RYlTV/E0pBEb9e X-Received: by 2002:a05:620a:25cc:b0:781:d3b6:3710 with SMTP id y12-20020a05620a25cc00b00781d3b63710mr220790qko.71.1704360330418; Thu, 04 Jan 2024 01:25:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704360330; cv=none; d=google.com; s=arc-20160816; b=Ihlf999IaYnPz2YrESGe8h84uGamNgSAky/uW7IUn00eTjqTKCp52i2hOylyUcEpgE ChPgwAKYJaCZQlmvQKhAh/EG2fqtjlUc4TavVY7zmTRTV3Lnx2fQ0d6bF7XemkpbiVhX sygKQV0usk94HX6IFpcBHmUk3ESwd4U19VJptsG84wnt8y5XORhClbCfz7aaG8Q28qdS qF3t/WqEmD49bmfHDnAWTCzHdJFbapkFiiPYa9sSDHMPcsj5mJKHgQ/6f0iSe46uMEay mmNyUc5Ox4F09Y/CR6vMC/K9mypVLai061M17gK2zQhVFs45EV9Na606chAHITV1TyiR T6kA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=f5UeSk+rYU6U1fSddtaMrbcYWqgT9+CuQL8j56T6xbs=; fh=ATE1DeuNw/rIGMmzTyAiwuJpZH95oqZbZqtnqAh/9V8=; b=UUzYR1Ld8L5Ang1FX9oqUg1X6W5LiChWgMRr0FwWvwDl7lkZduCF0HvHFjfSux2dAt xLnX4wEOKN8gBq01KgApa6lCOJvFdUWErMXaC7dq+x8bQIcJDrNtFlqfSWeguUJv4ZIP YWlAzK1qpx8mwgG+GbdZSuL8l2DpdjnIm4T/sVb34azqZQh5dO6mX3xF0CCFeUOT2GQb 2ZeWE0RoKX5+a3tMDJg3K//X1V/wnpXKwJ+dfC01Bo7uxP2LRUYW7ljo8ghq+JFLaTEP HGfenjqfl9KO60oURNfj2HQYDcMsSYLkCugDu2z1ef575634hafUg9FnRDm5SCrWHZz8 gD6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DEZWq1mA; spf=pass (google.com: domain of linux-kernel+bounces-16435-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16435-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id u4-20020a05620a084400b00781660d23edsi16497828qku.213.2024.01.04.01.25.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 01:25:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-16435-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DEZWq1mA; spf=pass (google.com: domain of linux-kernel+bounces-16435-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16435-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 228551C21678 for ; Thu, 4 Jan 2024 09:25:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1AF1C208BB; Thu, 4 Jan 2024 09:25:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="DEZWq1mA" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 76CA8208BE for ; Thu, 4 Jan 2024 09:25:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-50eac018059so372513e87.0 for ; Thu, 04 Jan 2024 01:25:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704360311; x=1704965111; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=f5UeSk+rYU6U1fSddtaMrbcYWqgT9+CuQL8j56T6xbs=; b=DEZWq1mAWQTUG/j0wxNDzgmhiovZ0ujUiXUAP1ExYZkr+xzIjiNAGGJMOl0ORhpEUk 0Pn952519NBn3iG9yT3nv640wmjcg1N96JdRkF5rDsHjoHlNVpbTRp7SxoyerVpuwTVU jC+JZ8AZSrjrvGrDk+Onu8qE5UEUMkfAAT3KEVmVAaeFFYkxgeN5hV/bkFdH+QD+VOBo dV/FDEOOyIL3buNlxEFLe+Vt3jsZ7dLIOHO2VgBCSlqUy8B+8rYqFY+x7qw1Gmi7q9v8 njHuTmZ99fSQcBRscg1tS3/Na+bo/XetEQffkwDB7QLj72Iv/MtPHCvnSiWWO5yaLOpL zXGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704360311; x=1704965111; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=f5UeSk+rYU6U1fSddtaMrbcYWqgT9+CuQL8j56T6xbs=; b=Z5VkVc71qvGM5aL+SlnoNiAW/JWQx5hxmc4GYSH0LFJdt9AuKsJGuh03aeNOBq8Qer BOc/uZzk/L5acxyKWF60kbCwNbkdmZjuUCfGcDVhXcKgDOkQ6KhJs5Elk5uT9Yu8cfj6 pkn4hYb2ZSnyxdDN2qsDKx7aFgZkl5GoYqLvzv11T4gbMsVOar8MUkirhxCFO7tLyj3S aN2CIfyI+sj/86eS6eJyTzQNk0mSXkaxGOrv65GNpSDJgHipH53U8C6zDR3xG4a81FAT md51JBPETMcYUFZz+n1h1yBA1az3s70QC62jD470d92mOS68b3FjblkuXC8GmmK61Zv0 47TQ== X-Gm-Message-State: AOJu0YwmVDxxPTnWTFB5SOt6GYg+Anqk4LvsdE/wH0ZGQO+RvONdYvMh 3oIxkwYvG9w2gyZybOaOtTbvicxsbKz2JA== X-Received: by 2002:a05:6512:2026:b0:50e:a6f8:aace with SMTP id s6-20020a056512202600b0050ea6f8aacemr173198lfs.35.1704360311316; Thu, 04 Jan 2024 01:25:11 -0800 (PST) Received: from [192.168.1.20] ([178.197.218.27]) by smtp.gmail.com with ESMTPSA id i3-20020a1709061cc300b00a26a9593a68sm12981693ejh.76.2024.01.04.01.25.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 04 Jan 2024 01:25:10 -0800 (PST) Message-ID: <9cecc4bd-34ec-4b34-b0c8-de02473f038a@linaro.org> Date: Thu, 4 Jan 2024 10:25:08 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH 3/5] dt-bindings: regulator: add documentation entry for 88pm88x-regulator Content-Language: en-US To: Karel Balej , Karel Balej , Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liam Girdwood , Mark Brown , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: =?UTF-8?Q?Duje_Mihanovi=C4=87?= , ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org References: <20231228100208.2932-1-karelb@gimli.ms.mff.cuni.cz> <20231228100208.2932-4-karelb@gimli.ms.mff.cuni.cz> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X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IvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20231228100208.2932-4-karelb@gimli.ms.mff.cuni.cz> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 28/12/2023 10:39, Karel Balej wrote: > From: Karel Balej > A nit, subject: drop second/last, redundant "documentation entry". The "dt-bindings" prefix is already stating that these are bindings. > The Marvell 88PM88X PMICs provide regulators among other things. > Document how to use them. You did not document them in the bindings. You just added example to make it complete. Where is the binding change? What's more, I have doubts that you tested it. > > Signed-off-by: Karel Balej > --- > .../bindings/mfd/marvell,88pm88x.yaml | 17 +++++++++++ > .../regulator/marvell,88pm88x-regulator.yaml | 28 +++++++++++++++++++ > 2 files changed, 45 insertions(+) > create mode 100644 Documentation/devicetree/bindings/regulator/marvell,88pm88x-regulator.yaml > > diff --git a/Documentation/devicetree/bindings/mfd/marvell,88pm88x.yaml b/Documentation/devicetree/bindings/mfd/marvell,88pm88x.yaml > index 115b41c9f22c..e6944369fc5c 100644 > --- a/Documentation/devicetree/bindings/mfd/marvell,88pm88x.yaml > +++ b/Documentation/devicetree/bindings/mfd/marvell,88pm88x.yaml > @@ -54,6 +54,23 @@ examples: > onkey { > compatible = "marvell,88pm88x-onkey"; > }; > + > + regulators { > + ldo2: ldo2 { > + regulator-min-microvolt = <3100000>; > + regulator-max-microvolt = <3300000>; > + }; > + > + ldo15: ldo15 { > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + }; > + > + buck2: buck2 { > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + }; > + }; > }; > }; > ... > diff --git a/Documentation/devicetree/bindings/regulator/marvell,88pm88x-regulator.yaml b/Documentation/devicetree/bindings/regulator/marvell,88pm88x-regulator.yaml > new file mode 100644 > index 000000000000..c6ac17b113e7 > --- /dev/null > +++ b/Documentation/devicetree/bindings/regulator/marvell,88pm88x-regulator.yaml > @@ -0,0 +1,28 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/regulator/marvell,88pm88x-regulator.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Marvell 88PM88X PMICs regulators > + > +maintainers: > + - Karel Balej > + > +description: | > + This module is part of the Marvell 88PM88X MFD device. For more details > + see Documentation/devicetree/bindings/mfd/marvell,88pm88x.yaml. > + > + The regulator controller is represented as a sub-node of the PMIC node > + in the device tree. > + > + The valid names for 88PM886 regulator nodes are ldo[1-9], ldo1[0-6], buck[1-5]. Don't repeat constraints in free form text. > + > +patternProperties: > + "^(ldo|buck)[0-9]+$": You need to fix the pattern to be narrow. buck0 and buck6 are not correct. > + type: object > + description: > + Properties for single regulator. > + $ref: regulator.yaml# Not many benefits of this being in its own schema. > + > +additionalProperties: false Best regards, Krzysztof