Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2899901rdh; Wed, 27 Sep 2023 17:04:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHO2bcXAk6PY5L4ArQ+EWdICL0ZUBzkDCwKywa49u5s0wplPgvfSU63TTAf5c7MtVkxvqFl X-Received: by 2002:a05:6a21:3388:b0:15b:95ef:fee6 with SMTP id yy8-20020a056a21338800b0015b95effee6mr3738738pzb.14.1695859478445; Wed, 27 Sep 2023 17:04:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695859478; cv=none; d=google.com; s=arc-20160816; b=rh7vAmCsNrGqZJPg9el6NhY40zqWatoIzJSDBwgYutLyuX3YE6GGlHm4WZ1HQn7lVD xGUxtml6emnd256OW1FxNZjzeiw71oHWyHq84L2M6cDe/lE+xemrPErhD1TO/E+4FOzN A/41eGBoPNeM9RQrMySJOobIfWm4L3mk+Av0fSJFmAajoNhmjIXum3gajSkHOILY1j2x dqOgU9+nu6ZLhNjDKDQC2DU0V31IyJae7ouysfpxDsKn7C/wUHHBJsj9Ld4UVUyUSbCn ZqHNQvC2jMSyR9D1MZHy1z8bt0h2KoUCaHQcTgmHtA1ees30uUQftXN4ZKvRHTRnDFOT 8Teg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=4GrqlkQ0I1JKG3CG9kC5zFGUFrlkl3FrQ5k9bmVUJsY=; fh=HAUQ2hx2eYDeCB83ey44SZJqFaYeyoODDJn+HG7U1y0=; b=sEeIM0GFWIlGx4m+azwyiNrAZnLkJOdnmPJLPun7x65elpv9uTc9J/BPILfxMcGMzP wxqlSllMtB+p7LpxCGGF+skRoJjxyPc9zAb2iUe42z0mzwktWwpiEdwz2Ww/VpjlZPOO ixr4mLNx8obnFf7YF5wBWy180VjjlUfRnCYQkQD2fh3uFBwIJqjHh9afXuASq7zJT/WE gB3H9xTLr0/yuN84vlwvAwulVPN9H/hcIFbyyQXMAoUJ6ioJOXXf8NeJqcVwaPz6najT 1klG7G2jQW+vYk1CE/AHDdamP+EWJVZuU74VfdCQzKBD4AnZitBIGaUm67ZQdfCmVFfv FfNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=oVDssoQ5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id w19-20020a17090a8a1300b00271a453203esi9969842pjn.130.2023.09.27.17.04.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 17:04:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=oVDssoQ5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id EF1AE80658D5; Wed, 27 Sep 2023 11:06:04 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229640AbjI0SFw (ORCPT + 99 others); Wed, 27 Sep 2023 14:05:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229511AbjI0SFv (ORCPT ); Wed, 27 Sep 2023 14:05:51 -0400 Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A870EB4 for ; Wed, 27 Sep 2023 11:05:50 -0700 (PDT) Received: by mail-io1-xd2e.google.com with SMTP id ca18e2360f4ac-79fb78e297bso297212139f.0 for ; Wed, 27 Sep 2023 11:05:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1695837950; x=1696442750; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=4GrqlkQ0I1JKG3CG9kC5zFGUFrlkl3FrQ5k9bmVUJsY=; b=oVDssoQ5a1rtKJP1wYRKaDYWc3hUy/RinUJk/QOka5colyjpnBw8E7phouZJFHZQuf jwjQE1Fw7biAuxWaMUshJe1YfjOjxSVW5cI3OMaenArtj8hgMrggkkOIitFmhmmWrqwR Kyi2gpDZSTzWwiiAITxDaY4e+9C322X/+LYvM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695837950; x=1696442750; 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=4GrqlkQ0I1JKG3CG9kC5zFGUFrlkl3FrQ5k9bmVUJsY=; b=iEsSA50gYh/WM3OnvWF7JKlMJ6HIj7oORpq/Tw0WqHZ4CDdUx6iTeTJ6bbZ8K7TBfS v+/0hJNqqvTUApX0ObEF9vD+kJDR71KxP5ZU8RImuy+1wLWE8XibR2aUzPc/Q6pmAT5p wjfSQ1wRTU24JaFeNPn+lquj8PW+u9D8I8DSGBHWl3Ko5kbQ/5+7sGU2ZunOjccca/gV BcdgBIYj9oQUM5jb6aa0MsGR+ZsTKxu2z8639tIA82zNkKAIQF/0YwmprHgA+bpxxoO2 aI/S1WZPPxvw2CWQR69Agqhg0JJHk5VtuZwtb1gTeEcvabJ3h1qeTO7IdfyUAHE3I/2W 3JKQ== X-Gm-Message-State: AOJu0YzZvXXlK/BFovCpktz+qib0RiDH9DCjwYJWCVNp602heNzLY0yd 9642A2vjo58sHpoD0U+G1FWMBg== X-Received: by 2002:a6b:ea10:0:b0:795:13ea:477a with SMTP id m16-20020a6bea10000000b0079513ea477amr2843824ioc.8.1695837950050; Wed, 27 Sep 2023 11:05:50 -0700 (PDT) Received: from kea.bld.corp.google.com ([2620:15c:183:200:5d4f:fe51:5575:6f76]) by smtp.gmail.com with ESMTPSA id b17-20020a05663801b100b00439fa6ff6a9sm4032583jaq.70.2023.09.27.11.05.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 11:05:49 -0700 (PDT) From: Simon Glass To: devicetree@vger.kernel.org Cc: linux-mtd@lists.infradead.org, U-Boot Mailing List , Rob Herring , Tom Rini , Simon Glass , Conor Dooley , Krzysztof Kozlowski , Miquel Raynal , Nick Terrell , =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , Richard Weinberger , Rob Herring , Vignesh Raghavendra , linux-kernel@vger.kernel.org Subject: [PATCH v4] dt-bindings: mtd: fixed-partitions: Add compression property Date: Wed, 27 Sep 2023 12:05:43 -0600 Message-ID: <20230927180545.3522628-1-sjg@chromium.org> X-Mailer: git-send-email 2.42.0.515.g380fc7ccd1-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 27 Sep 2023 11:06:05 -0700 (PDT) Sometimes the contents of a partition are compressed. Add a property to express this and define the algorithm used. Signed-off-by: Simon Glass --- Changes in v4: - Add an example Changes in v3: - Just add a compression property for now Changes in v2: - Use "binman" for compatible instead of "u-boot,binman" - Significantly rework the patch - Use make dt_binding_check DT_SCHEMA_FILES=Documentation/../partitions .../mtd/partitions/fixed-partitions.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Documentation/devicetree/bindings/mtd/partitions/fixed-partitions.yaml b/Documentation/devicetree/bindings/mtd/partitions/fixed-partitions.yaml index 331e564f29dc..058253d6d889 100644 --- a/Documentation/devicetree/bindings/mtd/partitions/fixed-partitions.yaml +++ b/Documentation/devicetree/bindings/mtd/partitions/fixed-partitions.yaml @@ -29,6 +29,24 @@ properties: "#size-cells": true + compression: + $ref: /schemas/types.yaml#/definitions/string + description: | + Compression algorithm used to store the data in this partition, chosen + from a list of well-known algorithms. + + The contents are compressed using this algorithm. + + enum: + - none + - bzip2 + - gzip + - lzop + - lz4 + - lzma + - xz + - zstd + patternProperties: "@[0-9a-f]+$": $ref: partition.yaml# @@ -64,6 +82,7 @@ examples: uimage@100000 { reg = <0x0100000 0x200000>; + compress = "lzma"; }; }; -- 2.42.0.515.g380fc7ccd1-goog