Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6749211rdb; Fri, 15 Dec 2023 07:24:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IGR0eC1iMotssQlxSkd0uh0tCt5yzY16VJePZlzDqKqc7VaAQDgP+mi1GQLU7E2K/nft/OK X-Received: by 2002:a05:6a20:4f07:b0:191:b476:6cfd with SMTP id gi7-20020a056a204f0700b00191b4766cfdmr5007709pzb.53.1702653892673; Fri, 15 Dec 2023 07:24:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702653892; cv=none; d=google.com; s=arc-20160816; b=EBzJ7p/JdO+qYl6bt+ejyH2INcv35/51uIfIPh8kVbg1thSIjzou9Gm9KxbNI4M3/c MQKyqm9JbX7FQotrv5rpvBomNyRnzOoF7a7BDJx0tZ9A39PoPHQll1/IBf4DttnzAD4Z qkFMTHyeTmn+obzGGi7I9SOqqYYfWaEx/g56qcFJ9aLohPVPyaKa94pVjL8d6VwQI19Q /M6u/q+hsn8UxUdc65KsjtkIgvrs08s00b4gerf9LKapiqZBFPO2C45ReTATOCBfawwd o0WYtK6a11CzIoUA7lNwRHhwVFUbUgnPKU4cTr9DuNG0ryLbRgcELce8xLawE9Q8RDmI Y39Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date; bh=Rw3CYoRVmGzAAcY/wyRAKNOBUN7bY7gSQi19yFERVh8=; fh=kG296J10JgJeOwCW+2M5MZsHJNqM0ynDH01oddWOAqA=; b=xxY4SV2zyu1Mr5ym/otIZb65jY1mCzgATnxUjp2FfP0YMO0CPPOrxTEWl+ChQwp4Y8 4n1/MgnWv6N/yYoLuYT4eTWyfK0YnhCuJgN9w/QGB8KY0/nv7zo0Ak4HVhfukKKmN/s6 +3cd3qB6Lg29IhbLheSdwA0kzs54IN6Jlrx08/zxYcAQz12i6V3auTQu8OD507dPQv/N QAPZczka9unMhcEinVES0Emx+2lB70tBCo4/mC+GW2ogB+I4EWBoT8sas27+zbVDICOn rdxqABrzBf8xxJgCqK/r9uDPi4J7AjdJZZujYv37a7AQm0/jZ+RgX03046PHwNeDSmaz lk7w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-1207-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1207-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id w3-20020a6556c3000000b005644a9be955si13279416pgs.179.2023.12.15.07.24.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 07:24:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-1207-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-1207-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1207-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 5EC27B232F3 for ; Fri, 15 Dec 2023 15:23:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E18C936AE3; Fri, 15 Dec 2023 15:22:59 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ot1-f49.google.com (mail-ot1-f49.google.com [209.85.210.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1FCE72FE26; Fri, 15 Dec 2023 15:22:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ot1-f49.google.com with SMTP id 46e09a7af769-6d9da137748so312121a34.1; Fri, 15 Dec 2023 07:22:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702653777; x=1703258577; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Rw3CYoRVmGzAAcY/wyRAKNOBUN7bY7gSQi19yFERVh8=; b=cGEHC7xLtq4Ko6AZh9LJ8zMO6DQqD3OIRbNwbnl9C58FtKGawuXAxr8K6V8kkcyK29 idCDLQrercW9LP3lACnZh6FpOwBeg3c4iuXPYaC/CjU/9iu2PuKVTINd/qvJZPhg/6aM 6jVY25WG3wRGeEiCYy9yHed9VJxeFK9BKdOSGAR5xlJWQxdyBVYRNe0b+QzFrZxjU9du +fOEAVcxHsgMbE4YDNk+/uwOR2C0XlKxS/x/d1tCwPhUlOOsllbOC9aLBmrPnGrpDcpS Q/o9RJg+w0L/tFcRnvGoM03m9/4ROqQJppC7tAuGWSaQR/vuNtPaelLMzawZqf2i5ZPg s0Eg== X-Gm-Message-State: AOJu0Yzhc0ie8JYrKSjnhD7mZAFi9hEQDhd+6iCZnYHLKdUhHYi3Iq4C ig0m5sTXEIjp8eWgC/XdBXWXsNGuPA== X-Received: by 2002:a05:6830:1511:b0:6da:3273:319f with SMTP id k17-20020a056830151100b006da3273319fmr2279116otp.9.1702653777214; Fri, 15 Dec 2023 07:22:57 -0800 (PST) Received: from herring.priv (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id eq9-20020a056830490900b006da0e88aa4bsm2685520otb.64.2023.12.15.07.22.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 07:22:56 -0800 (PST) Received: (nullmailer pid 3974040 invoked by uid 1000); Fri, 15 Dec 2023 15:22:55 -0000 Date: Fri, 15 Dec 2023 09:22:55 -0600 From: Rob Herring To: =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= , Simon Glass Cc: Srinivas Kandagatla , Krzysztof Kozlowski , Conor Dooley , Greg Kroah-Hartman , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= , Christian Marangi Subject: Re: [PATCH 1/2] dt-bindings: nvmem: add "data-size" property Message-ID: <20231215152255.GA3798777-robh@kernel.org> References: <20231213154721.5037-1-zajec5@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231213154721.5037-1-zajec5@gmail.com> On Wed, Dec 13, 2023 at 04:47:20PM +0100, Rafał Miłecki wrote: > From: Rafał Miłecki > > Allow specifying NVMEM device content size in case it differs from > device total size. > > Cc: Christian Marangi > Signed-off-by: Rafał Miłecki > --- > Documentation/devicetree/bindings/nvmem/nvmem.yaml | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/Documentation/devicetree/bindings/nvmem/nvmem.yaml b/Documentation/devicetree/bindings/nvmem/nvmem.yaml > index 4fd015d402ce..095aed4250de 100644 > --- a/Documentation/devicetree/bindings/nvmem/nvmem.yaml > +++ b/Documentation/devicetree/bindings/nvmem/nvmem.yaml > @@ -26,6 +26,13 @@ properties: > "#size-cells": > const: 1 > > + data-size: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: > + NVMEM device actual data (content) size. It may be need to be specified > + if it differs by design from the total NVMEM device size and it's > + impossible to determine it on runtime. 'data-size' is already defined in Documentation/devicetree/bindings/eeprom/microchip,93lc46b.yaml. That would be fine, but it's defining bits per word. So I think it's better if we call this something else. 'total-data-size' or 'actual-data-size'? I think Simon had something similar for binman. Rob