Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2474608pxj; Mon, 10 May 2021 04:00:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzeUMPvZ/7zCpjwRao5G8rAya5mSvauelqVvx+iBsUBISyJQAeT/om+9wOyFqd9O6zz2r9e X-Received: by 2002:a02:938c:: with SMTP id z12mr20639255jah.70.1620644454981; Mon, 10 May 2021 04:00:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620644454; cv=none; d=google.com; s=arc-20160816; b=jwY125lLD9ElKURJIgfcLYvRGFrFdYHxkvLtkzY8rQPAZdC04sMTUPF3aairOg7YQD q0lfb5ixDnP/Pg1vs4tBUs/0YKq+LccyM0Rj7hg+mhIMzwtYRf04VVOpVYxTX5zqetEk bsSN9TKFjvMBx/vxdDN+StXm9B96qlIzVs/8HuoxE8NaP8wTaxAD5qU2Y8lempCU+Ith aK1/JUONZrsbC4b03/Q3xAMZTJX0tFTCcs2Cwjw/xUMqnIu/oDQ8nT9BTOOYZARqKjCa OJRUg88UYCpAeyjT6oguvvBrfTE7ow5SRuLUWrAK6ouk/X8VL2eJAlU/PBCcTnzkSDB7 l7Dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=TmyWnYLLuopvzZDFqyzUnlwlkanvN8SugsxiLYp+rbI=; b=skH0OFnvcFXaj8GJTCQHYGmqlpdYFHGFSuKlm+f1Ny18mkkasWzc2OGgIKF70xv9nk SYB0gFT671vO6UMmonAkncjkJLiIYBmPsRHA3WPrZ/qnoBTFSXYY6InIivVPbfVWRPUt J3kB3ekYTKKJP91NDQAJTqEp+iDFWABoSHh4qqFoRevUY6c9utjRtqAAleJ33n9XxtGJ ym2quG1sQl+Sa76JDQd8aUHftWE85JpbMHX7rzBIOq7Xv4bV+QxuERTq7YvsnCNo2TdX WrHGYOSdLqCQwHvkOTarLxD4u4iasZeFRfrVNpYMRxwNSzyWs0zQgUa+SV9dEKiuEOPF FtCA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c71si16473489jai.86.2021.05.10.04.00.41; Mon, 10 May 2021 04:00:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232397AbhEJK6O (ORCPT + 99 others); Mon, 10 May 2021 06:58:14 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:54377 "EHLO relay3-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233222AbhEJKpX (ORCPT ); Mon, 10 May 2021 06:45:23 -0400 X-Originating-IP: 90.89.138.59 Received: from xps13.home (lfbn-tou-1-1325-59.w90-89.abo.wanadoo.fr [90.89.138.59]) (Authenticated sender: miquel.raynal@bootlin.com) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id B9A176000B; Mon, 10 May 2021 10:44:15 +0000 (UTC) From: Miquel Raynal To: Michael Walle , linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Rob Herring , Srinivas Kandagatla Subject: Re: [PATCH v2 1/5] nvmem: core: allow specifying of_node Date: Mon, 10 May 2021 12:44:15 +0200 Message-Id: <20210510104415.11332-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210424110608.15748-2-michael@walle.cc> References: MIME-Version: 1.0 X-linux-mtd-patch-notification: thanks X-linux-mtd-patch-commit: b'1333a6779501f4cc662ff5c8b36b0a22f3a7ddc6' Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2021-04-24 at 11:06:04 UTC, Michael Walle wrote: > Until now, the of_node of the parent device is used. Some devices > provide more than just the nvmem provider. To avoid name space clashes, > add a way to allow specifying the nvmem cells in subnodes. Consider the > following example: > > flash@0 { > compatible = "jedec,spi-nor"; > > partitions { > compatible = "fixed-partitions"; > #address-cells = <1>; > #size-cells = <1>; > > partition@0 { > reg = <0x000000 0x010000>; > }; > }; > > otp { > compatible = "user-otp"; > #address-cells = <1>; > #size-cells = <1>; > > serial-number@0 { > reg = <0x0 0x8>; > }; > }; > }; > > There the nvmem provider might be the MTD partition or the OTP region of > the flash. > > Add a new config->of_node parameter, which if set, will be used instead > of the parent's of_node. > > Signed-off-by: Michael Walle > Acked-by: Srinivas Kandagatla Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks. Miquel