Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1164738lqa; Sun, 28 Apr 2024 23:07:17 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUKLmDQdk02e8y/xnf4ehvSLnRM8afICvw6uliLfjww0P7MTpj5mjbqx/ku0xI2hRTYndW6atTXnl12RCcVwHYkI1ALvXQk8DvzSADKUQ== X-Google-Smtp-Source: AGHT+IGbkZnxwbZTeVAEgE6DDsVayOWFUCnaY2iVAlQsn9HiubTt+tNpFFAal4EHHxlpfzC9wgMJ X-Received: by 2002:a05:6512:baa:b0:51d:d630:365c with SMTP id b42-20020a0565120baa00b0051dd630365cmr938504lfv.4.1714370837475; Sun, 28 Apr 2024 23:07:17 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id k2-20020a170906128200b00a4e2a10b9d9si13430643ejb.91.2024.04.28.23.07.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Apr 2024 23:07:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-161768-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=k20201202 header.b=t0ggKTKy; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-161768-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161768-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 0FDF21F22127 for ; Mon, 29 Apr 2024 06:07:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4412C10788; Mon, 29 Apr 2024 06:07:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="t0ggKTKy" 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 52155F516; Mon, 29 Apr 2024 06:07:04 +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=1714370825; cv=none; b=CPDdl1lMt6KgROqM6mJW7L6qb2jj09Cn8viCSMRT2fCFwMAwExXSLgQ5tvPsN1iehb/IL0xqWNjUFQ0TUIpb96Taf8js96MOoala4a8tLBsAr8w0G52TsAuKebRobFp1EaVfW/MHLGokCkx+EOpgBUdb+5sqUtlrwCcx0Ykw3Ig= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714370825; c=relaxed/simple; bh=jBCpCNdD8WhN5nL16G66F9uSW0Nz/YUWHg32z316dVA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=fcspZmjaNEPUIeREDiHmlZi5pAPHb2dKraybuxr0DvWqARK56g44reNCGOPgmVx1/VT9YEXmTYZJMSTuSW/7+7gzpveWvm3Ca/WM4AYLSv1XHNM2TPgVPZggPOPQUN3vhVeVkKVK0KGxfeh00Rm/ilvS2rv6uEFYUhlAcnzRXWs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=t0ggKTKy; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 52638C113CD; Mon, 29 Apr 2024 06:07:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714370824; bh=jBCpCNdD8WhN5nL16G66F9uSW0Nz/YUWHg32z316dVA=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=t0ggKTKy1to7LqkKvwf++mJSfbzNpp/G28x2eRRc02UkUZ+M9G6Z1lGtjifjZdoKU CWyJfHaCXut7khDkZtxv94q+WOsfen1BBqQ8l9dQfWSzIfASs+/5+QYf33Xa3aw5yF MTsuRiS/HCwygTIaKXdR19uqsjflESEZ1n+g56amN+4HJGYtGfbk99AGlM5icHfqGO Jc6ixAQ9lGjUpKmyneGG83zD0wC4LNLNFMGGfW4pd9FisqJub7+Ve1QdON+wzO+BED J8s3iBEN7K7JSaTWhlwkGy0ub5mRd+7Ow+ag7KI5V7u7+fVglr8sdTF46Aq774b8lH /Vtb1Nd55l2VA== Message-ID: <2023dd55-33d8-4904-8724-97d89c130010@kernel.org> Date: Mon, 29 Apr 2024 08:06:58 +0200 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: [PATCH 1/2] dt-bindings: Convert lp873x.txt to json-schema To: Nathan Morrisson , lee@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, nm@ti.com, vigneshr@ti.com, kristo@kernel.org, j-keerthy@ti.com Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, upstream@lists.phytec.de, w.egorov@phytec.de References: <20240426172155.10860-1-nmorrisson@phytec.com> From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzk@kernel.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV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jzBmdq2esyE6zIqftdo4MOJho8uctOiWbwNNq2U9pPWmu 4vXVFBYIGmpyNPYzRm0QPwARAQABwsF8BBgBCgAmAhsMFiEEm9B+DgxR+NWWd7dUG5NDfTtB YpsFAmA872oFCRRflLYACgkQG5NDfTtBYpvScw/9GrqBrVLuJoJ52qBBKUBDo4E+5fU1bjt0 Gv0nh/hNJuecuRY6aemU6HOPNc2t8QHMSvwbSF+Vp9ZkOvrM36yUOufctoqON+wXrliEY0J4 ksR89ZILRRAold9Mh0YDqEJc1HmuxYLJ7lnbLYH1oui8bLbMBM8S2Uo9RKqV2GROLi44enVt vdrDvo+CxKj2K+d4cleCNiz5qbTxPUW/cgkwG0lJc4I4sso7l4XMDKn95c7JtNsuzqKvhEVS oic5by3fbUnuI0cemeizF4QdtX2uQxrP7RwHFBd+YUia7zCcz0//rv6FZmAxWZGy5arNl6Vm lQqNo7/Poh8WWfRS+xegBxc6hBXahpyUKphAKYkah+m+I0QToCfnGKnPqyYIMDEHCS/RfqA5 t8F+O56+oyLBAeWX7XcmyM6TGeVfb+OZVMJnZzK0s2VYAuI0Rl87FBFYgULdgqKV7R7WHzwD uZwJCLykjad45hsWcOGk3OcaAGQS6NDlfhM6O9aYNwGL6tGt/6BkRikNOs7VDEa4/HlbaSJo 7FgndGw1kWmkeL6oQh7wBvYll2buKod4qYntmNKEicoHGU+x91Gcan8mCoqhJkbqrL7+nXG2 5Q/GS5M9RFWS+nYyJh+c3OcfKqVcZQNANItt7+ULzdNJuhvTRRdC3g9hmCEuNSr+CLMdnRBY fv0= In-Reply-To: <20240426172155.10860-1-nmorrisson@phytec.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 26/04/2024 19:21, Nathan Morrisson wrote: > Convert the lp873x binding to DT schema format. Converted with > minimal corrections. > > Signed-off-by: Nathan Morrisson Please use subject prefixes matching the subsystem. You can get them for example with `git log --oneline -- DIRECTORY_OR_FILE` on the directory your patch is touching. .. > -}; > diff --git a/Documentation/devicetree/bindings/mfd/lp873x.yaml b/Documentation/devicetree/bindings/mfd/lp873x.yaml > new file mode 100644 > index 000000000000..87fefdc3126b > --- /dev/null > +++ b/Documentation/devicetree/bindings/mfd/lp873x.yaml Missing vendor prefix. Name it after compatible, so ti,lp8732.yaml > @@ -0,0 +1,114 @@ > +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/mfd/lp873x.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: TI LP873X PMIC MFD drivers MFD is Linuxism, 'drivers' is not a hardware usually. Please provide title matching hardware. > + > +maintainers: > + - J Keerthy > + > +description: | Do not need '|' unless you need to preserve formatting. > + PMIC with two high-current buck converters and two linear regulators. > + > +properties: > + compatible: > + enum: > + - ti,lp8732 > + - ti,lp8733 > + > + reg: > + maxItems: 1 > + > + gpio-controller: true > + > + '#gpio-cells': > + const: 2 > + > + regulators: > + description: > + List of child nodes that specify the regulator initialization data. > + type: object > + patternProperties: > + "^buck[01]|ldo[01]$": > + type: object > + $ref: /schemas/regulator/regulator.yaml# > + unevaluatedProperties: false > + additionalProperties: false > + > +patternProperties: > + '^(buck[01]|ldo[01])-in-supply$': > + description: Phandle to parent supply of each regulator populated under regulators node. > + > +required: > + - compatible > + - reg > + - regulators Several other properties are required and you did not mention changes in the conversion. > + > +additionalProperties: false > + > +examples: > + - | > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + i2c@0 { > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <0>; > + > + pmic: lp8733@60 { Node names should be generic. See also an explanation and list of examples (not exhaustive) in DT specification: https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation That's usually pmic Best regards, Krzysztof