From patchwork Wed Sep 27 16:46:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 145589 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp2896362vqu; Wed, 27 Sep 2023 13:59:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGU4yNAePIP0h+lTfH7hW2mDE3N92fmOKNylgFwV7KlMPT0ScYcffMOGNE0ay29w/Zr1TIV X-Received: by 2002:a05:6808:1410:b0:3a7:5557:16c2 with SMTP id w16-20020a056808141000b003a7555716c2mr4223471oiv.0.1695848378607; Wed, 27 Sep 2023 13:59:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695848378; cv=none; d=google.com; s=arc-20160816; b=C7cKR5XwtTqzexU6u8uVe7mBRIsUvYLAHjcsBzDaK+DyPdnV9a+0lTHy5Zl3yXZibm rN/hF8LpnxM9Lq25AYOgYBOs455vywTt4yT6VAuZg3bBJysN7fnZOc7c4q53rZ/qK+18 a2RaTrzn58NDI4kULT0lYItumOemrZHdVsdhWPEmKZom/BQCee/OiCTJ/mIK4VR6wm6Z +ybG0pK90OkAO6qkv/9FQ6W5G9NPuiaQNDMTjz/GIB175WqOf5TwWsGI1qGtVYHvpH9u HLHMCITtuIHxPX2Oia8XWWE5Ir4tvXIH52uzLbgNbqLzLmQ8HUsxpKqg6ALCQJbPMcOo b1qg== 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 Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id az1-20020a056a02004100b00577461b010fsi16934379pgb.685.2023.09.27.13.59.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 13:59:38 -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 8FBE780213A8; Wed, 27 Sep 2023 09:47:40 -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 S229504AbjI0Qr3 (ORCPT + 19 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?b?UmFmYcWCIE1pxYJlY2tp?= , 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 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:40 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778225909474315710 X-GMAIL-MSGID: 1778225909474315710 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#