]> Git Repo - linux.git/commitdiff
dt-bindings: pinctrl: renesas: Add alpha-numerical port support for RZ/V2H
authorBiju Das <[email protected]>
Mon, 16 Dec 2024 19:53:11 +0000 (19:53 +0000)
committerGeert Uytterhoeven <[email protected]>
Fri, 3 Jan 2025 19:45:57 +0000 (20:45 +0100)
RZ/V2H has ports P0-P9 and PA-PB. Add support for defining alpha-numerical
ports in DT using RZV2H_* macros.

Signed-off-by: Biju Das <[email protected]>
Acked-by: Rob Herring (Arm) <[email protected]>
Reviewed-by: Geert Uytterhoeven <[email protected]>
Link: https://lore.kernel.org/[email protected]
Signed-off-by: Geert Uytterhoeven <[email protected]>
include/dt-bindings/pinctrl/renesas,r9a09g057-pinctrl.h [new file with mode: 0644]

diff --git a/include/dt-bindings/pinctrl/renesas,r9a09g057-pinctrl.h b/include/dt-bindings/pinctrl/renesas,r9a09g057-pinctrl.h
new file mode 100644 (file)
index 0000000..2e83bf4
--- /dev/null
@@ -0,0 +1,31 @@
+/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
+/*
+ * This header provides constants for Renesas RZ/V2H family pinctrl bindings.
+ *
+ * Copyright (C) 2024 Renesas Electronics Corp.
+ *
+ */
+
+#ifndef __DT_BINDINGS_PINCTRL_RENESAS_R9A09G057_PINCTRL_H__
+#define __DT_BINDINGS_PINCTRL_RENESAS_R9A09G057_PINCTRL_H__
+
+#include <dt-bindings/pinctrl/rzg2l-pinctrl.h>
+
+/* RZV2H_Px = Offset address of PFC_P_mn  - 0x20 */
+#define RZV2H_P0       0
+#define RZV2H_P1       1
+#define RZV2H_P2       2
+#define RZV2H_P3       3
+#define RZV2H_P4       4
+#define RZV2H_P5       5
+#define RZV2H_P6       6
+#define RZV2H_P7       7
+#define RZV2H_P8       8
+#define RZV2H_P9       9
+#define RZV2H_PA       10
+#define RZV2H_PB       11
+
+#define RZV2H_PORT_PINMUX(b, p, f)     RZG2L_PORT_PINMUX(RZV2H_P##b, p, f)
+#define RZV2H_GPIO(port, pin)          RZG2L_GPIO(RZV2H_P##port, pin)
+
+#endif /* __DT_BINDINGS_PINCTRL_RENESAS_R9A09G057_PINCTRL_H__ */
This page took 0.061217 seconds and 4 git commands to generate.