Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2924450lqo; Tue, 21 May 2024 01:02:29 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUNhu0wU6brFoZf2jggeuSAsBYSE06q6n1bSlFhHaM7dxRe1ssvVYilafsGBNmtHFX1YfovcT+gCEc68jIrwYmkCtHhFviJlQvEsKJa/Q== X-Google-Smtp-Source: AGHT+IEOMRRNgLdUNR5mBtsVqkNLA6W5WCdqHBFKgRLzU88U4nIpVFZLxHqGpyL1ziPxknomWCwc X-Received: by 2002:ac8:7fd3:0:b0:43a:f9c5:5a8b with SMTP id d75a77b69052e-43dfdb81cc6mr329986471cf.41.1716278549377; Tue, 21 May 2024 01:02:29 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43df56bfe70si22630221cf.613.2024.05.21.01.02.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 01:02:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-184607-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=neutral (body hash did not verify) header.i=@kernel.org header.s=k20201202 header.b=NBd534qG; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-184607-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184607-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 E42291C2128C for ; Tue, 21 May 2024 08:02:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 910F853E02; Tue, 21 May 2024 08:02:21 +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="NBd534qG" 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 A74D054762; Tue, 21 May 2024 08:02:20 +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=1716278540; cv=none; b=eI9Ki5BONgxTB79JOwBpvtghxAoS/ybGnB+DIzrnrXIMXBQltXnu3lqOxckDrqgCYVCyVntFQ3QTzYfmlIXJhGnSVFSwLrpwwowEC+GHD1tOz2pQu5VSKPzmClQ6IPtEJitILqfixstOqlb8IFY4sJ7iQ80rgiRlEnUsPLHhwGA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716278540; c=relaxed/simple; bh=KSahs3ldXZzAAoo4YJC7zEMWf0t3JgGj4P52e6oIDEk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=JwoiTSp/2zIYJfMUo1T596iHkc9BrQuZ4vDg/wAaS4ZT83RsG1NOBMy29glorE5IfeSqzRlvEPQFhSC5+ptWi5Yd4mvHZprTGLTdFD40Tr6Dy47osJzYIeiBde+lAE0F2d1RPDhLSSLrokAgheIxVx2iABz+plt+EtJ9HyX8zRo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=NBd534qG; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 74339C4AF07; Tue, 21 May 2024 08:02:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716278540; bh=KSahs3ldXZzAAoo4YJC7zEMWf0t3JgGj4P52e6oIDEk=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=NBd534qGql8kDsW+LAoUj/V4vtcYdQ8tRwXftoOb+LKJEt0bS/FnpITbWETFFeGm9 LsQQFm8jzTyTrs9RoiHFASxhIf9hbD7l1oJUvi4DW56ZjtDEQzF2gVeKuLe7Olc60v 9n/efYPhhw3pLi5UqKZGUCdl1Cw5759w5snO171KVJ/zvFqSQGfZkExH8IL/Yfyp8d zkczv/I3x99efihSJkM+Ddffy0Eo9m1MkuMSwr6S98LTUHxJdfKh4dpW58Kost1trk s+1BZ/KI3QO8CjkCpqxDrXEA5nCrQfYIA8zQRy/m+iOFKVVXHy9NPFkn9cBrsHJRvN G5uJ4kqrQq4IA== Message-ID: <20ab0093-5ae1-461b-962d-ada2e6ba52b9@kernel.org> Date: Tue, 21 May 2024 10:02:13 +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 6/8] dt-bindings: mfd: syscon: Split and enforce documenting MFD children To: Rob Herring , Krzysztof Kozlowski Cc: Lee Jones , Krzysztof Kozlowski , Conor Dooley , Lars Povlsen , Steen Hegelund , Daniel Machon , UNGLinuxDriver@microchip.com, Nishanth Menon , Matthias Brugger , AngeloGioacchino Del Regno , Jiaxun Yang , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org References: <20240519-dt-bindings-mfd-syscon-split-v1-0-aaf996e2313a@linaro.org> <20240519-dt-bindings-mfd-syscon-split-v1-6-aaf996e2313a@linaro.org> <20240520212025.GA1531862-robh@kernel.org>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8U+7Yyl6gU BLHFTg2hYnLFJI4Xjg+AX1hHFVKmvl3VBHIsBv0oDcsQWXqY+NaFahT0lRPjYtrTa1v3tem/ JoFzZ4B0p27K+qQCF2R96hVvuEyjzBmdq2esyE6zIqftdo4MOJho8uctOiWbwNNq2U9pPWmu 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: <20240520212025.GA1531862-robh@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 20/05/2024 23:20, Rob Herring wrote: > On Sun, May 19, 2024 at 08:42:21PM +0200, Krzysztof Kozlowski wrote: >> Simple syscon nodes can be documented in common syscon.yaml, however >> devices with simple-mfd compatible, thus with some children, should have >> their own schema listing these children. Such listing makes the binding >> specific, allows better validation (so the incorrect child would not >> appear in the simple-mfd node) and actually enforces repeated rule for >> simple-mfd devices: >> >> "simple-mfd" is only for simple devices, where the children do not >> depend on the parent. >> >> Currently the syscon+simple-mfd binding is quite broad and allows >> any child or property, thus above rule cannot be enforced. >> >> Split the syscon.yaml binding into: >> 1. Common syscon properties, used potentially by many bindings. >> 2. Simple syscon devices (NO simple-mfd!). >> >> Signed-off-by: Krzysztof Kozlowski .. >> >> description: | >> System controller node represents a register region containing a set >> @@ -19,122 +19,99 @@ description: | >> maintainers: >> - Lee Jones >> >> -select: >> - properties: >> - compatible: >> - contains: >> - enum: >> - - syscon >> - >> - required: >> - - compatible >> - > > Removing this is only going to work with v2024.04. The only way it > works for older versions is listing all the compatibles here. That's a > bit new for us to require it. I'll keep it, in such case. Anyway its removal is not really related to main concept of this patch. Best regards, Krzysztof