From patchwork Wed Dec 13 15:47:21 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: 13491572 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 506E4C4332F for ; Wed, 13 Dec 2023 15:48:07 +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:References:In-Reply-To: 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: List-Owner; bh=t87a+Y3kvn5muimqRZbFw4e2YKbejHQ6GvzS6TqDSMQ=; b=bVG4c1u8/kwMPP /IlF+u7zRVuQ1kpuhJg84Dmui+eUshT/1Y030widInAkNatTLMObntGHFio4d9e8j5b6QaTzTyNKh shJFVjY3vb/Gzv2b1YgegDABlU/18geVNqejzmSlRvvfANVRQIv+xCrDG2zu81qcV7oo3h/hCIZ8W 40iQkQaGcbGvcJshInLpTrA/6+JI3sOr0hAypVw7MrGqMHrAQbE4HcCqvbSyPmJgRBwykHmGy/XNi 94vdkjkJ/c9jXH4vMe0ns+DDGRKaL8YtJTDWMkV2WBnuAP8GL3BIf1gLWzasdNOzj7lr4qsiEWPPK tlRP6yeb4IqG7MAfCRYg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rDRSZ-00FKWo-2X; Wed, 13 Dec 2023 15:47:43 +0000 Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rDRSS-00FKSU-03 for linux-arm-kernel@lists.infradead.org; Wed, 13 Dec 2023 15:47:37 +0000 Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-5522ba3f94aso773054a12.1 for ; Wed, 13 Dec 2023 07:47:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702482452; x=1703087252; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=mc743gSKV5l8g3BJNGJgDTP6ynD6tEmGecWgB19Lq0s=; b=aUoZUI9b+D9qwunjiUifJkM0TnCycEhkjHvjUCBYf3l3M9eDfYCvIVLfu5ZIcNPHuS VAMlGDgdhfbAqMNzm4HDXQ9xzKtWWMxfAD9F7roMNz+BggNViaWUkBWcouwgjyiO0SCv f2NMAaBZgJBsIWT3YRBoRo15y9EkWEIBKq2OTyq1cWNM576g0q/ftPDmNZkN7B3GVgod zIxsOYeR4g/+L56NYuiNL7pAMI98QneNq2h/Leel8e95/vYH849UnCP1l13qkSKR6Npx b5s19xSHFi+YWT+DrZU6rssfYF8kiqjZfkGQEhfb48+RfM3Z2QqLlezhewZBxxNJLvsS 6WLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702482452; x=1703087252; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mc743gSKV5l8g3BJNGJgDTP6ynD6tEmGecWgB19Lq0s=; b=Yjgsor76fgLF3inhKBKdYAviAMPUcoWA3WS9ZDS+PqU4vdeth0Sum2ViXclS5MBCkv sVQkQuTkhnn+jjfw5LuGO6kCupHDFJDdodLkDihJTfPAFPz+bo6jd+wKqCXUov+p8+0B azc7+VY0OvctA7ocgzl/iSlDJ6X1ZK94FRpvMf39taq8S7qFmUrxkZ53BYvkcTnkwRl6 FxIj+FaVKCGHMGAVw92QrBiMAZchsE27ifmvtTVwgajqA//XxAo9bSstKh7JMJ1c/4kf zusXQQ823tRvZedPk3/LR/1dbnBioW9cwJvI1cAlSs7FaQfzUUgXBJOqgjPD4PVHDBrf HQNw== X-Gm-Message-State: AOJu0Yysn+lgINgTCV5IfdSCdYW1KVCixQe3upIemPsVxPST2ao2reLH WZ3VbSmLHFh7Q4oRBnk4gr6CFuNisrg= X-Google-Smtp-Source: AGHT+IGCU2djaB5uBgtYDAXhZ+c2JU0gc4uz8t34fOeLNj93VffqKG4unjLh88AT+nseKv3EtNdcng== X-Received: by 2002:a05:6402:f8d:b0:54c:4fec:f0 with SMTP id eh13-20020a0564020f8d00b0054c4fec00f0mr2308546edb.127.1702482452111; Wed, 13 Dec 2023 07:47:32 -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.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 07:47:31 -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 2/2] dt-bindings: nvmem: u-boot,env: describe "data-size" property Date: Wed, 13 Dec 2023 16:47:21 +0100 Message-Id: <20231213154721.5037-2-zajec5@gmail.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20231213154721.5037-1-zajec5@gmail.com> References: <20231213154721.5037-1-zajec5@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231213_074736_052974_8D7DA799 X-CRM114-Status: GOOD ( 12.05 ) 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 Describe what "data-size" means in U-Boot env context and why it may be needed. It's a generic property but giving it some extra meaning in U-Boot context may be helpful. Cc: Christian Marangi Signed-off-by: Rafał Miłecki --- .../devicetree/bindings/nvmem/u-boot,env.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Documentation/devicetree/bindings/nvmem/u-boot,env.yaml b/Documentation/devicetree/bindings/nvmem/u-boot,env.yaml index 9c36afc7084b..0006f022d0af 100644 --- a/Documentation/devicetree/bindings/nvmem/u-boot,env.yaml +++ b/Documentation/devicetree/bindings/nvmem/u-boot,env.yaml @@ -44,6 +44,15 @@ properties: reg: maxItems: 1 + data-size: + description: + U-Boot environment data size is set and hardcoded during compilation using + CONFIG_ENV_SIZE. Knowing it is critical for CRC32 checksum calculation. + + This property allows specifying it in case it differs from NVMEM device + size. It may happen if device partitioning was designed with different + concepts in mind (like block alignment or future-proof size). + bootcmd: type: object description: Command to use for automatic booting @@ -76,6 +85,7 @@ examples: env: partition@40000 { compatible = "u-boot,env"; reg = <0x40000 0x10000>; + data-size = <0x4000>; mac: ethaddr { #nvmem-cell-cells = <1>;