summaryrefslogtreecommitdiff
path: root/include/dt-bindings
diff options
context:
space:
mode:
authorClaudiu Beznea <claudiu.beznea@microchip.com>2022-07-06 11:06:21 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-07-08 15:45:04 +0200
commit4d5e3b06e1fc1428be14cd4ebe3b37c1bb34f95d (patch)
tree474f1f92861ca3017f48edf5b18b633d4d745b62 /include/dt-bindings
parentb7e241bbff24f9e106bf616408fd58bcedc44bae (diff)
downloadlwn-4d5e3b06e1fc1428be14cd4ebe3b37c1bb34f95d.tar.gz
lwn-4d5e3b06e1fc1428be14cd4ebe3b37c1bb34f95d.zip
dt-bindings: microchip-otpc: document Microchip OTPC
Document Microchip OTP controller. Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Link: https://lore.kernel.org/r/20220706100627.6534-2-srinivas.kandagatla@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.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