Path: blob/master/include/dt-bindings/pinctrl/r7s9210-pinctrl.h
26288 views
/* SPDX-License-Identifier: GPL-2.0 */1/*2* Defines macros and constants for Renesas RZ/A2 pin controller pin3* muxing functions.4*/5#ifndef __DT_BINDINGS_PINCTRL_RENESAS_RZA2_H6#define __DT_BINDINGS_PINCTRL_RENESAS_RZA2_H78#define RZA2_PINS_PER_PORT 8910/* Port names as labeled in the Hardware Manual */11#define PORT0 012#define PORT1 113#define PORT2 214#define PORT3 315#define PORT4 416#define PORT5 517#define PORT6 618#define PORT7 719#define PORT8 820#define PORT9 921#define PORTA 1022#define PORTB 1123#define PORTC 1224#define PORTD 1325#define PORTE 1426#define PORTF 1527#define PORTG 1628#define PORTH 1729/* No I */30#define PORTJ 1831#define PORTK 1932#define PORTL 2033#define PORTM 21 /* Pins PM_0/1 are labeled JP_0/1 in HW manual */3435/*36* Create the pin index from its bank and position numbers and store in37* the upper 16 bits the alternate function identifier38*/39#define RZA2_PINMUX(b, p, f) ((b) * RZA2_PINS_PER_PORT + (p) | (f << 16))4041/*42* Convert a port and pin label to its global pin index43*/44#define RZA2_PIN(port, pin) ((port) * RZA2_PINS_PER_PORT + (pin))4546#endif /* __DT_BINDINGS_PINCTRL_RENESAS_RZA2_H */474849