new file mode 100644
@@ -0,0 +1,36 @@
+ * Defines macros and constants for Renesas RZ/A1 pin controller pin
+ * muxing functions.
+#define RZA1_PINS_PER_PORT 16
+/* Create the pin index from it's bank and position numbers */
+#define PIN(b, p) ((b) * RZA1_PINS_PER_PORT + (p))
+ * Flags to apply to alternate function configuration
+ * All of the following are mutually exclusive.
+ * Pin is bi-directional.
+ * Alternate function that need both input/outpu functionalities shall
+ * be configured as bidirectional.
+ * Eg. SDA/SCL pins of an I2c interface.
+#define BI_DIR (1 << 3)
+ * Flags used to ask software drive the pin I/O direction overriding the
+ * alternate function configuration.
+ * Some alternate function requires software to force I/O direction of a pin,
+ * ovverriding the designated one.
+ * Reference to the HW manual to know when this flag shall be used.
+#define SWIO_IN (1 << 4)
+#define SWIO_OUT (1 << 5)