[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250227142751.61496-2-csokas.bence@prolan.hu>
Date: Thu, 27 Feb 2025 15:27:46 +0100
From: Bence Csókás <csokas.bence@...lan.hu>
To: <linux-kernel@...r.kernel.org>, <linux-arm-kernel@...ts.infradead.org>,
<linux-iio@...r.kernel.org>
CC: Bence Csókás <csokas.bence@...lan.hu>, "Kamel
Bouhara" <kamel.bouhara@...tlin.com>
Subject: [PATCH v5 1/3] include: uapi: counter: Add microchip-tcb-capture.h
Add UAPI header for the microchip-tcb-capture.c driver.
This header will hold the various event channels, component numbers etc.
used by this driver.
Signed-off-by: Bence Csókás <csokas.bence@...lan.hu>
---
Notes:
New in v5
MAINTAINERS | 1 +
.../linux/counter/microchip-tcb-capture.h | 22 +++++++++++++++++++
2 files changed, 23 insertions(+)
create mode 100644 include/uapi/linux/counter/microchip-tcb-capture.h
diff --git a/MAINTAINERS b/MAINTAINERS
index 8e047e20fbd8..d1d264210690 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -15579,6 +15579,7 @@ L: linux-arm-kernel@...ts.infradead.org (moderated for non-subscribers)
L: linux-iio@...r.kernel.org
S: Maintained
F: drivers/counter/microchip-tcb-capture.c
+F: include/uapi/linux/counter/microchip-tcb-capture.h
MICROCHIP USB251XB DRIVER
M: Richard Leitner <richard.leitner@...data.com>
diff --git a/include/uapi/linux/counter/microchip-tcb-capture.h b/include/uapi/linux/counter/microchip-tcb-capture.h
new file mode 100644
index 000000000000..7bda5fdef19b
--- /dev/null
+++ b/include/uapi/linux/counter/microchip-tcb-capture.h
@@ -0,0 +1,22 @@
+/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
+/*
+ * Channel numbers used by the microchip-tcb-capture driver
+ * Copyright (C) 2025 Bence Csókás
+ */
+#ifndef _UAPI_COUNTER_MCHP_TCB_H_
+#define _UAPI_COUNTER_MCHP_TCB_H_
+
+/*
+ * The driver defines the following components:
+ *
+ * Count 0
+ * \__ Synapse 0 -- Signal 0 (Channel A, i.e. TIOA)
+ * \__ Synapse 1 -- Signal 1 (Channel B, i.e. TIOB)
+ */
+
+enum counter_mchp_signals {
+ COUNTER_MCHP_SIG_TIOA,
+ COUNTER_MCHP_SIG_TIOB,
+};
+
+#endif /* _UAPI_COUNTER_MCHP_TCB_H_ */
--
2.48.1
Powered by blists - more mailing lists