linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] dt-bindings: gpio: sunxi:create a DT header for Allwinner pin controller
@ 2020-07-15 11:54 Frank Lee
  2020-07-17 16:07 ` Maxime Ripard
  0 siblings, 1 reply; 7+ messages in thread
From: Frank Lee @ 2020-07-15 11:54 UTC (permalink / raw)
  To: robh+dt, mripard, wens, tiny.windzz
  Cc: linux-kernel, devicetree, linux-arm-kernel, Yangtao Li

From: Yangtao Li <frank@allwinnertech.com>

The sunxi gpio binding defines a few custom cells for its gpio specifier.
Provide bank name for those.

Signed-off-by: Yangtao Li <frank@allwinnertech.com>

---
 include/dt-bindings/gpio/sunxi-gpio.h | 29 +++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 include/dt-bindings/gpio/sunxi-gpio.h

diff --git a/include/dt-bindings/gpio/sunxi-gpio.h b/include/dt-bindings/gpio/sunxi-gpio.h
new file mode 100644
index 000000000000..c692b4360da6
--- /dev/null
+++ b/include/dt-bindings/gpio/sunxi-gpio.h
@@ -0,0 +1,29 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * GPIO definitions for Allwinner SoCs
+ *
+ * Copyright (C) 2020 Yangtao Li <frank@allwinnertech.com>
+ */
+
+#ifndef _DT_BINDINGS_SUNXI_GPIO_H
+#define _DT_BINDINGS_SUNXI_GPIO_H
+
+#include <dt-bindings/gpio/gpio.h>
+
+/* pio */
+#define PA	0
+#define PB	1
+#define PC	2
+#define PD	3
+#define PE	4
+#define PF	5
+#define PG	6
+#define PH	7
+#define PI	8
+
+/* r-pio */
+#define PL	0
+#define PM	1
+#define PN	2
+
+#endif /* _DT_BINDINGS_SUNXI_GPIO_H */
-- 
2.24.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-11-10 11:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-15 11:54 [PATCH 1/3] dt-bindings: gpio: sunxi:create a DT header for Allwinner pin controller Frank Lee
2020-07-17 16:07 ` Maxime Ripard
2020-07-25 19:18   ` Samuel Holland
2020-07-29 13:06     ` Maxime Ripard
2020-10-28 12:15       ` Frank Lee
2020-11-09 12:29         ` Frank Lee
2020-11-10 11:35         ` Maxime Ripard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).