Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2969796rdh; Wed, 27 Sep 2023 20:35:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH/0iej8uzN6p2Yvkov42K9+3vY9TFJW3BUCV6UlnhDRu/GD9scMszDdHQbT5b8gTfOqmfX X-Received: by 2002:a1f:c746:0:b0:495:c362:94c1 with SMTP id x67-20020a1fc746000000b00495c36294c1mr16094vkf.7.1695872127211; Wed, 27 Sep 2023 20:35:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695872127; cv=none; d=google.com; s=arc-20160816; b=pO4pKRqrmr6n79Ox4f4MDipUynzW45bZaJLRTXH02y/XVP0w3Ik90c0wRBcZe7jKc3 fJUZSDhpds3YR+nFczOzwAbHxc/I9Rz5oAyFOaFnaNjfTY7iSw8uAhMBvwQ/OxxvjxI5 90TRaq5F3N9YvRxgGJGFdzJw5od7yARLUDHnjKQS6N16VWNps//f7M/URMrF+bnZqFFH 1aIIexx+Q51Gkh/RiF96V1i37aOuaK0r9SGAdX0F8UYBFgSq693or8zT7xXrrfQX5SBj CHy/bZ+9Vk+c8N0x6EDvctfL4DnK8WSuKjlaQXzL/wGig23ruWLoS2oeU6FcBfXkjNir XJwA== 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=xi0NPAXOKB2g4KhPtyHEVHOc+BFF5U0uejfT8FKn0j4=; fh=JEOSGaSCGpN/nOE80ChHFyqv27junK73qWQoyvTHp0A=; b=OQPLefghLe3EbsHBNtypRtfX1DM1rJGPNONee5gnW8rsa78+n8PmYFwXSJtgFEfmLa tAN2tQ8Uhp2N8NyE8eer3GexmeSo62r1IWOVOC4sj+HoJDncrorU5nY5U8d+V96R+beF mfUrkvjy/myq9oY4TqdI3FKeOFIw6wk42Z2jjajsrEmPA5T/FR9E/ComG6+I3lS8Rb0A 5WID81I5eCPDXkSi6fwo5Pk0KZZq3RaB87hXMhfEX18VDF5fP6mGAvkgSzi+WoUazIwn b6zvqdYUgOiEcXEbprI/cZjVv7ydnqRvlFuNnl0GZgV+sfNJ+q6TdtFbM/3Y2PJviiZQ iM9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ANev2KbL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id u64-20020a638543000000b00564274c2947si17387381pgd.637.2023.09.27.20.35.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 20:35:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ANev2KbL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id 2C4598021397; Wed, 27 Sep 2023 09:47:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229497AbjI0Qr3 (ORCPT + 99 others); Wed, 27 Sep 2023 12:47:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229485AbjI0Qr2 (ORCPT ); Wed, 27 Sep 2023 12:47:28 -0400 Received: from mail-il1-x129.google.com (mail-il1-x129.google.com [IPv6:2607:f8b0:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7853DD for ; Wed, 27 Sep 2023 09:47:26 -0700 (PDT) Received: by mail-il1-x129.google.com with SMTP id e9e14a558f8ab-3512efed950so27403805ab.2 for ; Wed, 27 Sep 2023 09:47:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1695833246; x=1696438046; 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=xi0NPAXOKB2g4KhPtyHEVHOc+BFF5U0uejfT8FKn0j4=; b=ANev2KbLmjb0e3xXYqld5zgaRI70VN7XQUK2fw4yoVdiTpStIFJOWFiDu5iAG0/TlR QzKwtdNwFhFVSdaRLUTGMwhGfGJ8IYpK2yeVwHpmq0ZbbHLse2Xs20C6sdbE2lUFROrg RzTogpyfS5f+LKAQlCXyASltpGj5d2dHUbVPo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695833246; x=1696438046; 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=xi0NPAXOKB2g4KhPtyHEVHOc+BFF5U0uejfT8FKn0j4=; b=sjjzTHtTV1KipmmMIpgwx9CI7UpYVwNBneUalaooYwIZW3NbJZkd42b3D0SZWVKeSQ LozcIu/Rui77fKIzCfey2FfZuTdrd5+2e6X3DBcZ4vmTwTps5d3W9vJorBVaqBnE0P/m 5M7RQPK1cjyAhZHnfpGWwTbzp2KUPMxf5fd8SdcU4Ye/qjFvzQHRz8RXM0SJPe6oZPsv if+KhQ26zJkLrjCoDaCu5wto3Z1E5H4vj1g3sP8725l/BdazCaOiVVCZDE63f4mZDsav 849SixP7/hptVsmIuBr0pN8rVDAhdY+B2ffwsVb1bNt404hNzZPp9kF6+Wo7noZFhI66 4ghQ== X-Gm-Message-State: AOJu0YygjmXvCJLy3rkjHwcuIdINJhqW3DKkrjKaAPTuiEgnkK76mM+u XG+LKmSqnhl4Q9hD7Z3yecNIaEi3DsJbWQtu8nQ= X-Received: by 2002:a05:6e02:12c5:b0:34c:ecc8:98e7 with SMTP id i5-20020a056e0212c500b0034cecc898e7mr3216823ilm.9.1695833246163; Wed, 27 Sep 2023 09:47:26 -0700 (PDT) Received: from kea.bld.corp.google.com ([2620:15c:183:200:5d4f:fe51:5575:6f76]) by smtp.gmail.com with ESMTPSA id ei25-20020a05663829b900b00439eda8c1c1sm3980500jab.111.2023.09.27.09.47.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 09:47:25 -0700 (PDT) From: Simon Glass To: devicetree@vger.kernel.org Cc: U-Boot Mailing List , Tom Rini , Rob Herring , linux-mtd@lists.infradead.org, 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 v3] dt-bindings: mtd: fixed-partitions: Add compression property Date: Wed, 27 Sep 2023 10:46:51 -0600 Message-ID: <20230927164654.3397353-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 (howler.vger.email [0.0.0.0]); Wed, 27 Sep 2023 09:47:37 -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 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 | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Documentation/devicetree/bindings/mtd/partitions/fixed-partitions.yaml b/Documentation/devicetree/bindings/mtd/partitions/fixed-partitions.yaml index 331e564f29dc..13ff313cabda 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# -- 2.42.0.515.g380fc7ccd1-goog