]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
dt-bindings: sound: add microchip,pdmc.h
authorEugen Hristev <eugen.hristev@microchip.com>
Tue, 24 May 2022 10:00:54 +0000 (13:00 +0300)
committerEugen Hristev <eugen.hristev@microchip.com>
Tue, 28 Jun 2022 07:09:45 +0000 (10:09 +0300)
Include microchip,pdmc.h from Linux.

This file includes required defines for DT successful build.

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
include/dt-bindings/sound/microchip,pdmc.h [new file with mode: 0644]

diff --git a/include/dt-bindings/sound/microchip,pdmc.h b/include/dt-bindings/sound/microchip,pdmc.h
new file mode 100644 (file)
index 0000000..96cde94
--- /dev/null
@@ -0,0 +1,13 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef __DT_BINDINGS_MICROCHIP_PDMC_H__
+#define __DT_BINDINGS_MICROCHIP_PDMC_H__
+
+/* PDM microphone's pin placement */
+#define MCHP_PDMC_DS0 0
+#define MCHP_PDMC_DS1 1
+
+/* PDM microphone clock edge sampling */
+#define MCHP_PDMC_CLK_POSITIVE 0
+#define MCHP_PDMC_CLK_NEGATIVE 1
+
+#endif /* __DT_BINDINGS_MICROCHIP_PDMC_H__ */