From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 28F89C2BD09 for ; Mon, 24 Jun 2024 20:28:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=yBd7ofEnRHUsBAQyAE0mG8eQuTNaQZxeYg9B1t2vuq4=; b=E5Anx60bZez0OTVKIimg6TDOkJ ghYRzswkDPaznsRppuAv5gSdjdueNnoG2G8U6b4b/pHR9D+D23nPu8qVHOYAvvTx8b8zz1BFoxTRR 7BS3ql257xrj/Q0FklFopv1vp9kKbD+dk3GJxiaV5fQdnQohDQxl2wNJC5qxIsQocUDiT6tc5Mfnj q44sb5zNL5hf6ycFBAQ3JRbJB2EkpPikhLeV6xBvwtYRmADGZAOllF8QaLNYhU4VZEaYxZLP2qu3l bZrW+Z0GlrAITGT6T+4lKOAuhl2PZtU3NQhxaFm8HzUsK3xxJyC1hbOh3Yz2MKbygLTCXxhWTn2A3 v37JNimA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLqIn-00000000Zl7-3COC; Mon, 24 Jun 2024 20:28:37 +0000 Received: from sin.source.kernel.org ([2604:1380:40e1:4800::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLqIh-00000000Zj6-2zAj; Mon, 24 Jun 2024 20:28:33 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id CA180CE13CF; Mon, 24 Jun 2024 20:28:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EA6A5C2BBFC; Mon, 24 Jun 2024 20:28:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1719260907; bh=HL7UJ/iRbKbk7kdt37fx7w1eCbakq9KlVaHHm4Ee8YU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZkXsulp9syLWY+sZw//zcuqYiWdoQaPOADpd4MwIteCIaoOP0sY9A33y6x3hqYO+K t2kdQ42rzbZdSAypc21O/Afbgu69nRYjwyiGxJ0d9T4MnWiGVpYu3RPulzFnJVjHaF X0xoGKs3Quz3DD2cOKmLYGaCnDd0oYBALak/NfDTDoP4myaqSSFlNl3zYRZyN8F+4q /JdEhATIuiYjypfPK/10zC4yVUg6C0qpN6Ez7QN70UDxCX4UXbqgs/0isgm9V0KZbF zQCp8Ik8aRov4QvKl4pArXh01s/iSpwE4/nneuZNEzms17LnuAw4VMNwcSMnai4acN SdVJnkIRuD7ig== Date: Mon, 24 Jun 2024 14:28:25 -0600 From: "Rob Herring (Arm)" To: Krzysztof Kozlowski Cc: linux-mediatek@lists.infradead.org, Conor Dooley , linux-kernel@vger.kernel.org, AngeloGioacchino Del Regno , Shan-Chun Hung , Orson Zhai , Vadivel Murugan , Krzysztof Kozlowski , UNGLinuxDriver@microchip.com, Steen Hegelund , Baolin Wang , Chunyan Zhang , Khuong Dinh , linux-arm-kernel@lists.infradead.org, Lars Povlsen , Jiaxun Yang , Lee Jones , Daniel Machon , Nishanth Menon , Jacky Huang , devicetree@vger.kernel.org, Matthias Brugger Subject: Re: [PATCH v2 6/7] dt-bindings: mfd: syscon: Split and enforce documenting MFD children Message-ID: <171926090377.354722.8861218849398833034.robh@kernel.org> References: <20240616-dt-bindings-mfd-syscon-split-v2-0-571b5850174a@linaro.org> <20240616-dt-bindings-mfd-syscon-split-v2-6-571b5850174a@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240616-dt-bindings-mfd-syscon-split-v2-6-571b5850174a@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240624_132831_955919_4EB2502E X-CRM114-Status: GOOD ( 12.41 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sun, 16 Jun 2024 15:19:26 +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 > > --- > > Depends on: > 1. Patch in MFD: https://lore.kernel.org/all/171828959006.2643902.8308227314531523435.b4-ty@kernel.org/ > 2. Previous patches in the series. > --- > .../devicetree/bindings/mfd/syscon-common.yaml | 72 +++++ > Documentation/devicetree/bindings/mfd/syscon.yaml | 294 +++++++++++++-------- > 2 files changed, 251 insertions(+), 115 deletions(-) > Reviewed-by: Rob Herring (Arm)