From patchwork Wed Dec 13 15:47:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 13491571 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 BA8B3C4332F for ; Wed, 13 Dec 2023 15:48:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=2MtxPmfTDKINCy4HQHVcnzCcDlEl7EYu2WHV1z30MVM=; b=BOOMDeP6q6f9V9 sv/nPjbSeHqWOrAlUId1U72jlpZdtcl0NBWNlQy8xhUbnXN9czdrbzobM6+30rPEhlcGs3TsA4Aas XZTcsRUPl7bmaSzg5mrIIaI7yh6VP/QtI8a2nToQTFQCktk4qMBL4wGmD/V7Zsk507OjNdq/M9711 PAPfVTZNoWG5cW2AqDwoHfGTJRr7kxM5KlpHRzvX+VkraW0rxzeSZHtOjrQr4FaffU+pOzGfHWsaY DKUBpCf6wLi+o5cVI72onpL+yDPY9YKpRKusMNXnK2YqZxG2IbhKYvyDvZkhXQ8zlwjcockao9V2u PSUgvimrn0SJqsIru06w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rDRSU-00FKUD-1V; Wed, 13 Dec 2023 15:47:38 +0000 Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rDRSR-00FKRz-0s for linux-arm-kernel@lists.infradead.org; Wed, 13 Dec 2023 15:47:36 +0000 Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-50bf898c43cso6800543e87.1 for ; Wed, 13 Dec 2023 07:47:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702482451; x=1703087251; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=xIWhGTiO6IreVCPqf6sdV9Yh0S4ilyzxwc53Fb/1j7o=; b=CLTf8V6OhKuh7i8xWSVm5UcFwJegO97YoYfp81P/QmVKGNfbz8Z07TZtFxSZ44ChvC AM15nu4PvDj+sWyFU1xeJ7F2PKxnLRH9XUUArxqHRADLFQ/xYtZLD5317XkeHP5u3NxW bN5vBCSr0LPRv6UhUg1XSSXbqXSZNZUMvhuOxTzWgrWvim9Y7ZJzLJlN250J3jBgxEOl 5T/MdtXYSyNf//585gB0HxrCQV5lt7LX5x6vhfVoiNIHEqk3wofvlpY4P8DFDzy7C/+P +C6eDC93madQuBsuBQs1UETlEvBeB2itbTy0roZKVVcGLldvMt1rYjGtadkThSlowQBT L29g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702482451; x=1703087251; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=xIWhGTiO6IreVCPqf6sdV9Yh0S4ilyzxwc53Fb/1j7o=; b=ANhi8/IBijl4K62WvYW2n2iBEl6dPCnK7OLj3/asXVDEnp5P0LoVYYhnVLMc8woUM2 sZHn7p8leoY8ZVvDTRq5vb4V5kGmFODdMfg7MsXUO1GYN5N8lYBPKx7cuZ+UYTBDG5Cd YlemFN2SPC8rsLrzQdBsGaPE1MZ81w8AuSpY9gPDbzZ3J9t6BxRBv+cCkhdnlmY9YjEK NhdTEpytfm9w5wHCFBf1IIaPPyWSgcdt5EBlqQGuc4lzJGWWZy6eyD0ITAyudG1oMhhY vkHnYAcwymBmBArQVNQWO1bX4/1vpQ3T89dXfEIdsEBBTsp+2fipzAln7/pqhK5nC9Zb bGyg== X-Gm-Message-State: AOJu0Ywl3ZLCZGsOaYivLDJczfE3WNHkrwIdKGTQFJJPA68v9rsOh69Z GDz43sltlcLCkectONeK1XTgGWp2IwE= X-Google-Smtp-Source: AGHT+IFrMT+u8qQaDQTwx3+NlXxfeelFAxVsphLHBdElGrEIev2ru44NUGDr5dvFrt6ZhLh5ybjxdg== X-Received: by 2002:a05:6512:ea3:b0:50b:fc06:7a2b with SMTP id bi35-20020a0565120ea300b0050bfc067a2bmr2974785lfb.110.1702482450523; Wed, 13 Dec 2023 07:47:30 -0800 (PST) Received: from localhost.lan (031011218106.poznan.vectranet.pl. [31.11.218.106]) by smtp.gmail.com with ESMTPSA id 28-20020a508e5c000000b0054b686e5b3bsm5972810edx.68.2023.12.13.07.47.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 07:47:30 -0800 (PST) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Srinivas Kandagatla , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: 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: [PATCH 1/2] dt-bindings: nvmem: add "data-size" property Date: Wed, 13 Dec 2023 16:47:20 +0100 Message-Id: <20231213154721.5037-1-zajec5@gmail.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231213_074735_310613_710AD503 X-CRM114-Status: GOOD ( 11.27 ) 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 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. + read-only: $ref: /schemas/types.yaml#/definitions/flag description: