[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20231027094610.1022114-2-equu@openmail.cc>
Date: Fri, 27 Oct 2023 17:46:09 +0800
From: Edward Chow <equu@...nmail.cc>
To: Rob Herring <robh+dt@...nel.org>,
Miquel Raynal <miquel.raynal@...tlin.com>,
Richard Weinberger <richard@....at>,
Vignesh Raghavendra <vigneshr@...com>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>
Cc: linux-mtd@...ts.infradead.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org,
Lech Perczak <lech.perczak@...lingroup.com>,
Edward Chow <equu@...nmail.cc>
Subject: [PATCH v2 1/2] dt-bindings: mtd: partitions: Export special values
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 <equu@...nmail.cc>
---
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 <ddrokosov@...rdevices.ru>
L: linux-iio@...r.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
Powered by blists - more mailing lists