summaryrefslogtreecommitdiff
path: root/include/dt-bindings
diff options
context:
space:
mode:
authorClaudiu Beznea <claudiu.beznea@microchip.com>2022-05-18 14:51:28 +0300
committerSrinivas Kandagatla <srinivas.kandagatla@linaro.org>2022-06-06 11:06:57 +0100
commit51fda8ab74642d43d7b0a334ee2f01842f945233 (patch)
treeabdcc6aac7f517489b88309b3989234b199e9d0c /include/dt-bindings
parentf2906aa863381afb0015a9eb7fefad885d4e5a56 (diff)
downloadlinux-next-51fda8ab74642d43d7b0a334ee2f01842f945233.tar.gz
dt-bindings: microchip-otpc: document Microchip OTPC
Document Microchip OTP controller. Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Diffstat (limited to 'include/dt-bindings')
-rw-r--r--include/dt-bindings/nvmem/microchip,sama7g5-otpc.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/dt-bindings/nvmem/microchip,sama7g5-otpc.h b/include/dt-bindings/nvmem/microchip,sama7g5-otpc.h
new file mode 100644
index 000000000000..f570b23165a2
--- /dev/null
+++ b/include/dt-bindings/nvmem/microchip,sama7g5-otpc.h
@@ -0,0 +1,12 @@
+/* SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause */
+
+#ifndef _DT_BINDINGS_NVMEM_MICROCHIP_OTPC_H
+#define _DT_BINDINGS_NVMEM_MICROCHIP_OTPC_H
+
+/*
+ * Need to have it as a multiple of 4 as NVMEM memory is registered with
+ * stride = 4.
+ */
+#define OTP_PKT(id) ((id) * 4)
+
+#endif