Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2752278rdb; Wed, 4 Oct 2023 10:17:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE8675/YahBbWIiWI42Qlzssgtpu+MLKMVhjnJpd2e+uGjK1jODFDLwh9JWuLwz2YnX9G9B X-Received: by 2002:a9d:6a4b:0:b0:6bc:f999:a544 with SMTP id h11-20020a9d6a4b000000b006bcf999a544mr2791767otn.15.1696439848169; Wed, 04 Oct 2023 10:17:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696439848; cv=none; d=google.com; s=arc-20160816; b=KJNB2N7fg9onzryBuINJphdcpMpsnGxMentK3kl3/Fujce+j5lnSgi6zf5rhc/cvOb haOGG2CU4RIwFQSVC23YGwP4WJMyPN3VytMViGAuS2C5t3qzAO4eN293OFaIaZzUERaF N+3IwVBQohDJKMNZFm2++dhwoVmKY5ra023ToSUdq9pieaFfXdhguBo5RP+HYTh+Lkmq zhzr6Ea26NiBoqos7id/MNfFJHeGorGL2P6tGVU4Ml6pXnOA3TibMwxHcHh5i8OyLude OpXNaHTNrCUGmPIIFQewEKgbKQEzWZqk6Dr5PiNpJCriMLs+Rv2VTHqSeLLJbNTOgGJp QsXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:references :in-reply-to:subject:cc:to:from:date:mime-version:dkim-signature; bh=FF0yrEaU98S2wRI9AydDjUBQL0AJJ6vYswb/AT0JVXI=; fh=MIrssD8jS1pE2mhYjdPf8t4cXprX6mpXu+KwD+BqtZE=; b=VIyzz+kQE3EQnJRCwm5AK6jeSUNKCfsYDv0zin8rj+NasOoSwgdU/HJwep8LVqexWZ 4t2go8C+u0SjcvYs2fjYETHO/pQvt6/Cf+ks2xyX09uEkcydZCBMzCjQ6ChD+lHP8vlX HyxFspgAVSQPp4FqiWremqR1xaq19qOK70kGGJxvnVnmLD66rewe7YtwAS9CNyiOUXqn ynB19ayWwDLNEdBy6baSdbRT5um38z5ZHh4RZnNqdLOfQCoyKoz87I1Oy8DIBkRSL+MT MeDQW+YVl4bLRT2O6s1MvDFe3/yDG6iBW0ZEi7GpgbV5E5XY1UQ7ukxevtjwCAMuUoi2 w9ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="u+CIuR8/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id r8-20020a63fc48000000b005859e8c7c2dsi4064851pgk.639.2023.10.04.10.17.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 10:17:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="u+CIuR8/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 8C2CB81904F8; Wed, 4 Oct 2023 10:17:25 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243659AbjJDRRD (ORCPT + 99 others); Wed, 4 Oct 2023 13:17:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243539AbjJDRRB (ORCPT ); Wed, 4 Oct 2023 13:17:01 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1238FA7 for ; Wed, 4 Oct 2023 10:16:58 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D1D8EC433C7; Wed, 4 Oct 2023 17:16:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696439817; bh=65wN/OPk7VyVnaoHcf2mpY7v09FcPKJdaCZKb1Bz7dE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=u+CIuR8/ePugGDtCtrHAGraYMIAqvKSDUylA0pm9xZwieyDbL+0AGbIHBB9wXKaHT OKhgEwYHAaXPM+9f2oWHe1E5tjE2I9l2qdoGK4Z0x4i6dvOyMaBpvTR3yO565gMSFZ XDwTKOli+3i+5H3snBaI//sXT+IJMsAiaZsMwDm9gD2WFm8Uxp3zrSQBOQOoosUdn7 rjRYzgNsuCTkAnPZV3rB/gF92SFvBQKwOOd43tKs/Sq+OvvZG6SImrgu/1xLkkEYK0 gtfkhX3jt4WO7NzXL0jpoychFyHG0l8RMBpkB7nxyUIg8B/PQF19t0h/ozXWxql/KU YVCfGDhLFSfNw== MIME-Version: 1.0 Date: Wed, 04 Oct 2023 19:16:52 +0200 From: Michael Walle To: Simon Glass Cc: miquel.raynal@bootlin.com, conor+dt@kernel.org, devicetree@vger.kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, ptyadav@amazon.de, rafal@milecki.pl, richard@nod.at, robh+dt@kernel.org, robh@kernel.org, trini@konsulko.com, u-boot@lists.denx.de, vigneshr@ti.com Subject: Re: [PATCH v2 1/3] dt-bindings: mtd: fixed-partitions: Add binman compatible In-Reply-To: References: <20231004093620.2b1d6917@xps-13> <20231004113458.531124-1-mwalle@kernel.org> Message-ID: <9e588e3ec8c0c321a2861723d0d42b9a@kernel.org> X-Sender: mwalle@kernel.org Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 04 Oct 2023 10:17:25 -0700 (PDT) Hi, >> >> Add a compatible string for binman, so we can extend fixed-partitions >> >> in various ways. >> > >> > I've been thinking at the proper way to describe the binman partitions. >> > I am wondering if we should really extend the fixed-partitions >> > schema. This description is really basic and kind of supposed to remain >> > like that. Instead, I wonder if we should not just keep the binman >> > compatible alone, like many others already. This way it would be very clear >> > what is expected and allowed in both cases. I am thinking about >> > something like that: >> > >> > Documentation/devicetree/bindings/mtd/partitions/brcm,bcm4908-partitions.yaml >> > >> > this file is also referenced there (but this patch does the same, which >> > is what I'd expect): >> > >> > Documentation/devicetree/bindings/mtd/partitions/partitions.yaml >> > >> > I'll let the binding maintainers judge whether they think it's >> > relevant, it's not a strong opposition. >> >> What is the overall goal here? To replace the current binman node >> which is >> usually contained in the -u-boot.dtsi files? If one is using binman to >> create an image, is it expected that one needs to adapt the DT in >> linux? >> Or will it still be a seperate -u-boot.dtsi? > Because in the latter >> case >> I see that there will be conflicts because you have to overwrite the >> flash node. Or will it be a seperate node with all the information >> duplicated? > > The goal is simply to have a full binding for firmware layout, such > that firmware images can be created, examined and updated. The > -u-boot.dtsi files are a stopgap while we sort out a real binding. > They should eventually go away. You haven't answered whether this node should be a seperate binman node - or if you'll reuse the existing flash (partitions) node(s) and add any missing property there. If it's the latter, I don't think compatible = "binman", "fixed-partitions"; is correct. >> Maybe (a more complete) example would be helpful. > > Can you please be a bit more specific? What is missing from the > example? Like a complete (stripped) DTS. Right now I just see how the individual node looks like. But with a complete example DTS, my question from above would have been answered. What if a board uses eMMC to store the firmware binaries? Will that then be a subnode to the eMMC device? -michael