Add dt-bindings header for Renesas RZ pincontroller. The header defines macros for pin description and alternate function numbers. Signed-off-by: Jacopo Mondi <jacopo+renesas@xxxxxxxxxx> --- include/dt-bindings/pinctrl/pinctrl-renesas-rz.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 include/dt-bindings/pinctrl/pinctrl-renesas-rz.h diff --git a/include/dt-bindings/pinctrl/pinctrl-renesas-rz.h b/include/dt-bindings/pinctrl/pinctrl-renesas-rz.h new file mode 100644 index 0000000..92816d4 --- /dev/null +++ b/include/dt-bindings/pinctrl/pinctrl-renesas-rz.h @@ -0,0 +1,19 @@ +/* + * Defines macros and constants for Renesas RZ pin controller and muxer + */ + +#ifndef __DT_BINDINGS_PINCTRL_RENESAS_RZ_H +#define __DT_BINDINGS_PINCTRL_RENESAS_RZ_H + +#define RZ_PIN(b, p) b p + +#define ALTERNATE_FUNC_1 0 +#define ALTERNATE_FUNC_2 1 +#define ALTERNATE_FUNC_3 2 +#define ALTERNATE_FUNC_4 3 +#define ALTERNATE_FUNC_5 4 +#define ALTERNATE_FUNC_6 5 +#define ALTERNATE_FUNC_7 6 +#define ALTERNATE_FUNC_8 7 + +#endif -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html