[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210430123511.116057-2-robert.marko@sartura.hr>
Date: Fri, 30 Apr 2021 14:35:07 +0200
From: Robert Marko <robert.marko@...tura.hr>
To: lee.jones@...aro.org, robh+dt@...nel.org, linus.walleij@...aro.org,
bgolaszewski@...libre.com, jdelvare@...e.com, linux@...ck-us.net,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-gpio@...r.kernel.org, linux-hwmon@...r.kernel.org
Cc: luka.perkov@...tura.hr, jmp@...phyte.org, pmenzel@...gen.mpg.de,
buczek@...gen.mpg.de, Robert Marko <robert.marko@...tura.hr>
Subject: [PATCH 2/6] dt-bindings: gpio: Add Delta TN48M CPLD GPIO bindings
CPLD inside of the Delta TN48M does not number GPIOs
at all, so in order to ensure numbering lets use bindigs.
Signed-off-by: Robert Marko <robert.marko@...tura.hr>
---
include/dt-bindings/gpio/tn48m-gpio.h | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
create mode 100644 include/dt-bindings/gpio/tn48m-gpio.h
diff --git a/include/dt-bindings/gpio/tn48m-gpio.h b/include/dt-bindings/gpio/tn48m-gpio.h
new file mode 100644
index 000000000000..4ece4826d746
--- /dev/null
+++ b/include/dt-bindings/gpio/tn48m-gpio.h
@@ -0,0 +1,26 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+/*
+ * GPIO definitions for Delta TN48M CPLD GPIO driver
+ *
+ * Copyright 2020 Sartura Ltd
+ *
+ * Author: Robert Marko <robert.marko@...tura.hr>
+ */
+
+#ifndef _DT_BINDINGS_TN48M_GPIO_H
+#define _DT_BINDINGS_TN48M_GPIO_H
+
+#define SFP_TX_DISABLE_52 0
+#define SFP_TX_DISABLE_51 1
+#define SFP_TX_DISABLE_50 2
+#define SFP_TX_DISABLE_49 3
+#define SFP_PRESENT_52 4
+#define SFP_PRESENT_51 5
+#define SFP_PRESENT_50 6
+#define SFP_PRESENT_49 7
+#define SFP_LOS_52 8
+#define SFP_LOS_51 9
+#define SFP_LOS_50 10
+#define SFP_LOS_49 11
+
+#endif /* _DT_BINDINGS_TN48M_GPIO_H */
--
2.31.1
Powered by blists - more mailing lists