1 /* SPDX-License-Identifier: GPL-2.0 */ 1 2 /* 3 * Defines macros and constants for Renesas RZ 4 * muxing functions. 5 */ 6 #ifndef __DT_BINDINGS_RZN1_PINCTRL_H 7 #define __DT_BINDINGS_RZN1_PINCTRL_H 8 9 #define RZN1_PINMUX(_gpio, _func) \ 10 (((_func) << 8) | (_gpio)) 11 12 /* 13 * Given the different levels of muxing on the 14 * 'linearize' them into one numerical space. 15 * muxes are all represented by one single val 16 * 17 * You can derive the hardware value pretty ea 18 * 0...9 are Level 1 19 * 10...71 are Level 2. The Level 2 mux will b 20 * value - RZN1_FUNC_L2_OFFSET, and th 21 * set accordingly. 22 * 72...103 are for the 2 MDIO muxes. 23 */ 24 #define RZN1_FUNC_HIGHZ 25 #define RZN1_FUNC_0L 26 #define RZN1_FUNC_CLK_ETH_MII_RGMII_RMII 27 #define RZN1_FUNC_CLK_ETH_NAND 28 #define RZN1_FUNC_QSPI 29 #define RZN1_FUNC_SDIO 30 #define RZN1_FUNC_LCD 31 #define RZN1_FUNC_LCD_E 32 #define RZN1_FUNC_MSEBIM 33 #define RZN1_FUNC_MSEBIS 34 #define RZN1_FUNC_L2_OFFSET 35 36 #define RZN1_FUNC_HIGHZ1 37 #define RZN1_FUNC_ETHERCAT 38 #define RZN1_FUNC_SERCOS3 39 #define RZN1_FUNC_SDIO_E 40 #define RZN1_FUNC_ETH_MDIO 41 #define RZN1_FUNC_ETH_MDIO_E1 42 #define RZN1_FUNC_USB 43 #define RZN1_FUNC_MSEBIM_E 44 #define RZN1_FUNC_MSEBIS_E 45 #define RZN1_FUNC_RSV 46 #define RZN1_FUNC_RSV_E 47 #define RZN1_FUNC_RSV_E1 48 #define RZN1_FUNC_UART0_I 49 #define RZN1_FUNC_UART0_I_E 50 #define RZN1_FUNC_UART1_I 51 #define RZN1_FUNC_UART1_I_E 52 #define RZN1_FUNC_UART2_I 53 #define RZN1_FUNC_UART2_I_E 54 #define RZN1_FUNC_UART0 55 #define RZN1_FUNC_UART0_E 56 #define RZN1_FUNC_UART1 57 #define RZN1_FUNC_UART1_E 58 #define RZN1_FUNC_UART2 59 #define RZN1_FUNC_UART2_E 60 #define RZN1_FUNC_UART3 61 #define RZN1_FUNC_UART3_E 62 #define RZN1_FUNC_UART4 63 #define RZN1_FUNC_UART4_E 64 #define RZN1_FUNC_UART5 65 #define RZN1_FUNC_UART5_E 66 #define RZN1_FUNC_UART6 67 #define RZN1_FUNC_UART6_E 68 #define RZN1_FUNC_UART7 69 #define RZN1_FUNC_UART7_E 70 #define RZN1_FUNC_SPI0_M 71 #define RZN1_FUNC_SPI0_M_E 72 #define RZN1_FUNC_SPI1_M 73 #define RZN1_FUNC_SPI1_M_E 74 #define RZN1_FUNC_SPI2_M 75 #define RZN1_FUNC_SPI2_M_E 76 #define RZN1_FUNC_SPI3_M 77 #define RZN1_FUNC_SPI3_M_E 78 #define RZN1_FUNC_SPI4_S 79 #define RZN1_FUNC_SPI4_S_E 80 #define RZN1_FUNC_SPI5_S 81 #define RZN1_FUNC_SPI5_S_E 82 #define RZN1_FUNC_SGPIO0_M 83 #define RZN1_FUNC_SGPIO1_M 84 #define RZN1_FUNC_GPIO 85 #define RZN1_FUNC_CAN 86 #define RZN1_FUNC_I2C 87 #define RZN1_FUNC_SAFE 88 #define RZN1_FUNC_PTO_PWM 89 #define RZN1_FUNC_PTO_PWM1 90 #define RZN1_FUNC_PTO_PWM2 91 #define RZN1_FUNC_PTO_PWM3 92 #define RZN1_FUNC_PTO_PWM4 93 #define RZN1_FUNC_DELTA_SIGMA 94 #define RZN1_FUNC_SGPIO2_M 95 #define RZN1_FUNC_SGPIO3_M 96 #define RZN1_FUNC_SGPIO4_S 97 #define RZN1_FUNC_MAC_MTIP_SWITCH 98 99 #define RZN1_FUNC_MDIO_OFFSET 100 101 /* These are MDIO0 peripherals for the RZN1_FU 102 #define RZN1_FUNC_MDIO0_HIGHZ 103 #define RZN1_FUNC_MDIO0_GMAC0 104 #define RZN1_FUNC_MDIO0_GMAC1 105 #define RZN1_FUNC_MDIO0_ECAT 106 #define RZN1_FUNC_MDIO0_S3_MDIO0 107 #define RZN1_FUNC_MDIO0_S3_MDIO1 108 #define RZN1_FUNC_MDIO0_HWRTOS 109 #define RZN1_FUNC_MDIO0_SWITCH 110 /* These are MDIO0 peripherals for the RZN1_FU 111 #define RZN1_FUNC_MDIO0_E1_HIGHZ 112 #define RZN1_FUNC_MDIO0_E1_GMAC0 113 #define RZN1_FUNC_MDIO0_E1_GMAC1 114 #define RZN1_FUNC_MDIO0_E1_ECAT 115 #define RZN1_FUNC_MDIO0_E1_S3_MDIO0 116 #define RZN1_FUNC_MDIO0_E1_S3_MDIO1 117 #define RZN1_FUNC_MDIO0_E1_HWRTOS 118 #define RZN1_FUNC_MDIO0_E1_SWITCH 119 120 /* These are MDIO1 peripherals for the RZN1_FU 121 #define RZN1_FUNC_MDIO1_HIGHZ 122 #define RZN1_FUNC_MDIO1_GMAC0 123 #define RZN1_FUNC_MDIO1_GMAC1 124 #define RZN1_FUNC_MDIO1_ECAT 125 #define RZN1_FUNC_MDIO1_S3_MDIO0 126 #define RZN1_FUNC_MDIO1_S3_MDIO1 127 #define RZN1_FUNC_MDIO1_HWRTOS 128 #define RZN1_FUNC_MDIO1_SWITCH 129 /* These are MDIO1 peripherals for the RZN1_FU 130 #define RZN1_FUNC_MDIO1_E1_HIGHZ 131 #define RZN1_FUNC_MDIO1_E1_GMAC0 132 #define RZN1_FUNC_MDIO1_E1_GMAC1 133 #define RZN1_FUNC_MDIO1_E1_ECAT 134 #define RZN1_FUNC_MDIO1_E1_S3_MDIO0 135 #define RZN1_FUNC_MDIO1_E1_S3_MDIO1 136 #define RZN1_FUNC_MDIO1_E1_HWRTOS 137 #define RZN1_FUNC_MDIO1_E1_SWITCH 138 139 #define RZN1_FUNC_MAX 140 141 #endif /* __DT_BINDINGS_RZN1_PINCTRL_H */ 142
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.