From nobody Fri Feb 13 07:55:35 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EC838E82CA1 for ; Wed, 27 Sep 2023 18:05:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229662AbjI0SFx (ORCPT ); Wed, 27 Sep 2023 14:05:53 -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-Google-Smtp-Source: AGHT+IEaajljv/uey+1Fqd1NIa3A9BpHMaQNWVA3f2Xydq8XNThDYOjFx6Y3UKwlj27CGNI0r8qbOQ== 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: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Sometimes the contents of a partition are compressed. Add a property to express this and define the algorithm used. Signed-off-by: Simon Glass Reviewed-by: Rob Herring --- 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=3DDocumentation/../partitions .../mtd/partitions/fixed-partitions.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Documentation/devicetree/bindings/mtd/partitions/fixed-partiti= ons.yaml b/Documentation/devicetree/bindings/mtd/partitions/fixed-partition= s.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: =20 "#size-cells": true =20 + compression: + $ref: /schemas/types.yaml#/definitions/string + description: | + Compression algorithm used to store the data in this partition, chos= en + 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: =20 uimage@100000 { reg =3D <0x0100000 0x200000>; + compress =3D "lzma"; }; }; =20 --=20 2.42.0.515.g380fc7ccd1-goog