Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp2111227rwe; Fri, 2 Sep 2022 08:39:21 -0700 (PDT) X-Google-Smtp-Source: AA6agR769T1+C8fg8mxiB3IXVhAnbQVn3NYhDFVsD5M3zRITI+8+dgCCIoGckpawKFp+aLJ3a0Eq X-Received: by 2002:a05:6a02:202:b0:42b:d711:f27c with SMTP id bh2-20020a056a02020200b0042bd711f27cmr23491289pgb.246.1662133161518; Fri, 02 Sep 2022 08:39:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662133161; cv=none; d=google.com; s=arc-20160816; b=gFYGd0FKrI7ykgLXHcXiiXMKC8VFvkL7/fr7+hkvP4N1luITTk89qlqkWRTm+drqlt DnG7X18cGdbWjpKTGm2v3HW2BUzsrDq0qDOBUi77Gyxyta50IZ/8MTtN0zbbN77QbGN/ l+4BHy5rygFsGeowe4Nu+fSi+Md9LAq07kW0VXBYYceBl6pjOKruUyD0sJ7gr9ZKLO/f Af5CR+UBciS0xFmCtb+KnWH0c68Om+RPoRXpz9aqHR+obOOW5pxaf9a7j1zFRqGG3+/Y YaIVoKOhI+caqfLj9A+dpvN791YbVu0qHxzK8nZH32NVhE1sXfOp51YYZrwaw4wR9zCQ 8q3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=zScI5h5FGPKgOryYjjGnnTCud0esh9sdV8p+adLFmk0=; b=yG9IBf4UYjuZmjY9TEQ7CGFJX6IHxI3jILJ9gPmsReBjT/Yo7WYupsFYlo3gdClORw Vn26U4firRefQ6x8LqU+kbydr6vYt4R8dIWUeFfG8EVtGPaRqga8Az6ZxhnqJdnKybnx F0SIlWZXFHpEx9y4DdHFJzUSeYql8uaMr7pPbbhTtsg/eOYKt8tXxoUTcqbu2MPJqQOn Arb5X6gNqXPynBUEctkW8Onq8p8WEaZVnqAp/cTG2Qs4YjxGPtcEbHCFNg5K+4MiO6kB C1MH6A/P6FBc627PhUZoY7p9kJZOpbQ/mXb86HOaP5WPzG0ZwQaOolcRHdNyrN3A0oub Wncg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dMg4a4KM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l64-20020a638843000000b0042af7ef1bf4si2125346pgd.569.2022.09.02.08.39.09; Fri, 02 Sep 2022 08:39:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dMg4a4KM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236111AbiIBPPE (ORCPT + 99 others); Fri, 2 Sep 2022 11:15:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236433AbiIBPOc (ORCPT ); Fri, 2 Sep 2022 11:14:32 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4086012DA05; Fri, 2 Sep 2022 07:46:32 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id AAB43B82C4E; Fri, 2 Sep 2022 14:46:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 540AEC433D6; Fri, 2 Sep 2022 14:46:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1662129989; bh=twCq4L5d3vlzAeCsNCl4PJSXLjKOaJZ0A4O4iMXSBpo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=dMg4a4KMo+iHy1mOVMxe1pxd4INzedd3EJHWfWCuLtDIi7OQczgSBWgspdACa0dqL uuCwCNkaEzR4O6aUADzYVuISOlWz1TGhGbKTfauoJ5pX87mqUgfNqlBP6+AOlbwjzP 9lSxWVv7uc8uh4MWBU3HkU2Q4/dY41MpUVTTdUWICpwY+wxNunuf5JL8era8+OyBDe D0A9krV8ySP+8c4aU75Y53eX7wwR74P+53s42L7riUFIcs93K89FVAKWZweV6YoEkM TyLzeGJJRLMgqNDj+GJ8iq8doXQgC4fnWqrKKmgOU8Jp3yI+kmQCL6FuY6WQTLBeJn DC6aKQ0Zcp/CA== Received: by mail-ua1-f53.google.com with SMTP id q21so865286uam.13; Fri, 02 Sep 2022 07:46:29 -0700 (PDT) X-Gm-Message-State: ACgBeo2KS+LbfHTrdkkVBJte952PvzWb0ME+pfIBbBIAIlC2D88FEhP/ uFYy9UiKKrGvwQm9/+0XKG8JLRRWHsMh6Ecmmw== X-Received: by 2002:ab0:32d1:0:b0:3ab:7f86:2121 with SMTP id f17-20020ab032d1000000b003ab7f862121mr267135uao.86.1662129988100; Fri, 02 Sep 2022 07:46:28 -0700 (PDT) MIME-Version: 1.0 References: <20220825214423.903672-1-michael@walle.cc> <20220825214423.903672-9-michael@walle.cc> <20220831214809.GA282739-robh@kernel.org> <60308ba420cdd072ea19e11e2e5e7d4b@walle.cc> In-Reply-To: <60308ba420cdd072ea19e11e2e5e7d4b@walle.cc> From: Rob Herring Date: Fri, 2 Sep 2022 09:46:16 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v1 08/14] dt-bindings: mtd: relax the nvmem compatible string To: Michael Walle Cc: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Krzysztof Kozlowski , Srinivas Kandagatla , Shawn Guo , Li Yang , =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Frank Rowand , MTD Maling List , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , linux-arm-kernel , netdev , Ahmad Fatoum Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 31, 2022 at 5:30 PM Michael Walle wrote: > > Am 2022-08-31 23:48, schrieb Rob Herring: > > On Thu, Aug 25, 2022 at 11:44:17PM +0200, Michael Walle wrote: > >> The "user-otp" and "factory-otp" compatible string just depicts a > >> generic NVMEM device. But an actual device tree node might as well > >> contain a more specific compatible string. Make it possible to add > >> more specific binding elsewere and just match part of the compatibles > >> here. > >> > >> Signed-off-by: Michael Walle > >> --- > >> Documentation/devicetree/bindings/mtd/mtd.yaml | 7 ++++--- > >> 1 file changed, 4 insertions(+), 3 deletions(-) > > > > In hindsight it looks like we are mixing 2 different purposes of 'which > > instance is this' and 'what is this'. 'compatible' is supposed to be > > the > > latter. > > > > Maybe there's a better way to handle user/factory? There's a similar > > need with partitions for A/B or factory/update. > > I'm not sure I understand what you mean. It has nothing to with > user and factory provisionings. > > SPI flashes have a user programmable and a factory programmable > area, some have just one of them. Whereas with A/B you (as in the > user or the board manufacturer) defines an area within a memory device > to be either slot A or slot B. But here the flash dictates what's > factory and what's user storage. It's in the datasheet. Ah, right. Nevermind... Rob