From mboxrd@z Thu Jan 1 00:00:00 1970 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 61402C25B70 for ; Fri, 27 Oct 2023 09:46:58 +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=IEegbVN/Srh5L6hzMiXbuf5mBe7wmPbx29jW3mBR4iE=; b=XMdytrQ+rvu31I y9hgBLpjrfDqeZIWTwJ2+4tiai+r0tl1LtwVDN1iAMeaic7afY0hiBRqeD0tDX9s9WCF50QhR92s9 zug1bRACftmMY1Q/Dn0K+qvwDsEhiUbeoiBJOvv+Ite0+LkK4TQpk5CLZ2x5BIoB8N0U9aRWa/KM2 sE0NLdH8ou6zOouXEJOtSBJ4CFmLpsJyyZownLUSB+AVJeHu3agX4ItNq/qIDNjfHRbCaln/6gk79 +ZsvENnU3yGv1MuN7K/fMgAH255Mq/dN/yGDjdbe+FmxQ0RkUDsK2Cpt+Y82q9bcYR9R9QX1F3O/K 2jP9hvBM0Mn4G74fH7Dg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qwJQY-00G3jP-1n; Fri, 27 Oct 2023 09:46:50 +0000 Received: from smtp161.vfemail.net ([146.59.185.161]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qwJQV-00G3gv-1Z for linux-mtd@lists.infradead.org; Fri, 27 Oct 2023 09:46:48 +0000 Received: (qmail 28643 invoked from network); 27 Oct 2023 09:46:39 +0000 Received: from localhost (HELO nl101-3.vfemail.net) () by smtpout.vfemail.net with ESMTPS (ECDHE-RSA-AES256-GCM-SHA384 encrypted); 27 Oct 2023 09:46:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=openmail.cc; h=from:to:cc :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; s=2018; bh=Bwdf/hXtE2z1yTkhneNd8f2BY QKrt7drzyCFHrjxjtw=; b=qxscFcUTB5Qwi7tQsy24z5rDPnCWiFulXa165hUpJ HzL+/8ak1Kj4Iuf44tIyV6YXIVQyWh7qO4lDKoicRJKyhxW2XJvU3U2VqrNtEI2G pysRjciBWXEsO7Nhu0C6TyP/onZxlm1ZoH4qqpnU7TP/6wbSvdJfJd4prRI5W20S qQ= Received: (qmail 19359 invoked from network); 27 Oct 2023 09:46:39 -0000 Received: by simscan 1.4.0 ppid: 19049, pid: 19318, t: 0.5371s scanners:none Received: from unknown (HELO bmwxMDEudmZlbWFpbC5uZXQ=) (ZXF1dUBvcGVubWFpbC5jYw==@MTkyLjE2OC4xLjE5Mg==) by nl101.vfemail.net with ESMTPA; 27 Oct 2023 09:46:38 -0000 From: Edward Chow To: Rob Herring , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Krzysztof Kozlowski Cc: linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Lech Perczak , Edward Chow Subject: [PATCH v2 1/2] dt-bindings: mtd: partitions: Export special values Date: Fri, 27 Oct 2023 17:46:09 +0800 Message-ID: <20231027094610.1022114-2-equu@openmail.cc> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231027094610.1022114-1-equu@openmail.cc> References: <20231025052937.830813-1-equu@openmail.cc> <20231027094610.1022114-1-equu@openmail.cc> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231027_024647_825127_F6A66AFC X-CRM114-Status: GOOD ( 10.56 ) X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-mtd" Errors-To: linux-mtd-bounces+linux-mtd=archiver.kernel.org@lists.infradead.org Export special "offset" and "size" values defined and documented in linux/mtd/partitions.h to dt-bindings/mtd/partitions.h. Signed-off-by: Edward Chow --- MAINTAINERS | 2 ++ include/dt-bindings/mtd/partitions.h | 15 +++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 include/dt-bindings/mtd/partitions.h diff --git a/MAINTAINERS b/MAINTAINERS index 668d1e24452d..7d6beadc8b36 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -13771,9 +13771,11 @@ T: git git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/fixes T: git git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next F: Documentation/devicetree/bindings/mtd/ F: drivers/mtd/ +F: include/dt-bindings/mtd/ F: include/linux/mtd/ F: include/uapi/mtd/ + MEMSENSING MICROSYSTEMS MSA311 DRIVER M: Dmitry Rokosov L: linux-iio@vger.kernel.org diff --git a/include/dt-bindings/mtd/partitions.h b/include/dt-bindings/mtd/partitions.h new file mode 100644 index 000000000000..b7f622fe458c --- /dev/null +++ b/include/dt-bindings/mtd/partitions.h @@ -0,0 +1,15 @@ +/* SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause */ +/* + * Device Tree constants identical to those in include/linux/mtd/partitions.h + */ + +#ifndef _DT_BINDINGS_MTD_PARTITIONS_H +#define _DT_BINDINGS_MTD_PARTITIONS_H + +#define MTDPART_OFS_SPECIAL (-1) +#define MTDPART_OFS_RETAIN (-3) +#define MTDPART_OFS_NXTBLK (-2) +#define MTDPART_OFS_APPEND (-1) +#define MTDPART_SIZ_FULL (0) + +#endif -- 2.42.0 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/