18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Defines macros and constants for Renesas RZ/A1 pin controller pin
48c2ecf20Sopenharmony_ci * muxing functions.
58c2ecf20Sopenharmony_ci */
68c2ecf20Sopenharmony_ci#ifndef __DT_BINDINGS_PINCTRL_RENESAS_RZA1_H
78c2ecf20Sopenharmony_ci#define __DT_BINDINGS_PINCTRL_RENESAS_RZA1_H
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci#define RZA1_PINS_PER_PORT	16
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci/*
128c2ecf20Sopenharmony_ci * Create the pin index from its bank and position numbers and store in
138c2ecf20Sopenharmony_ci * the upper 16 bits the alternate function identifier
148c2ecf20Sopenharmony_ci */
158c2ecf20Sopenharmony_ci#define RZA1_PINMUX(b, p, f)	((b) * RZA1_PINS_PER_PORT + (p) | (f << 16))
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci#endif /* __DT_BINDINGS_PINCTRL_RENESAS_RZA1_H */
18