1 /* SPDX-License-Identifier: GPL-2.0 */ 1 2 /* 3 * This header provides constants specific to 4 */ 5 6 #ifndef _DT_BINDINGS_PINCTRL_AM33XX_H 7 #define _DT_BINDINGS_PINCTRL_AM33XX_H 8 9 #include <dt-bindings/pinctrl/omap.h> 10 11 /* am33xx specific mux bit defines */ 12 #undef PULL_ENA 13 #undef INPUT_EN 14 15 #define PULL_DISABLE (1 << 3) 16 #define INPUT_EN (1 << 5) 17 #define SLEWCTRL_SLOW (1 << 6) 18 #define SLEWCTRL_FAST 0 19 20 /* update macro depending on INPUT_EN and PULL 21 #undef PIN_OUTPUT 22 #undef PIN_OUTPUT_PULLUP 23 #undef PIN_OUTPUT_PULLDOWN 24 #undef PIN_INPUT 25 #undef PIN_INPUT_PULLUP 26 #undef PIN_INPUT_PULLDOWN 27 28 #define PIN_OUTPUT (PULL_DISABLE) 29 #define PIN_OUTPUT_PULLUP (PULL_UP) 30 #define PIN_OUTPUT_PULLDOWN 0 31 #define PIN_INPUT (INPUT_EN | PU 32 #define PIN_INPUT_PULLUP (INPUT_EN | PU 33 #define PIN_INPUT_PULLDOWN (INPUT_EN) 34 35 /* undef non-existing modes */ 36 #undef PIN_OFF_NONE 37 #undef PIN_OFF_OUTPUT_HIGH 38 #undef PIN_OFF_OUTPUT_LOW 39 #undef PIN_OFF_INPUT_PULLUP 40 #undef PIN_OFF_INPUT_PULLDOWN 41 #undef PIN_OFF_WAKEUPENABLE 42 43 #define AM335X_PIN_OFFSET_MIN 44 45 #define AM335X_PIN_GPMC_AD0 46 #define AM335X_PIN_GPMC_AD1 47 #define AM335X_PIN_GPMC_AD2 48 #define AM335X_PIN_GPMC_AD3 49 #define AM335X_PIN_GPMC_AD4 50 #define AM335X_PIN_GPMC_AD5 51 #define AM335X_PIN_GPMC_AD6 52 #define AM335X_PIN_GPMC_AD7 53 #define AM335X_PIN_GPMC_AD8 54 #define AM335X_PIN_GPMC_AD9 55 #define AM335X_PIN_GPMC_AD10 56 #define AM335X_PIN_GPMC_AD11 57 #define AM335X_PIN_GPMC_AD12 58 #define AM335X_PIN_GPMC_AD13 59 #define AM335X_PIN_GPMC_AD14 60 #define AM335X_PIN_GPMC_AD15 61 #define AM335X_PIN_GPMC_A0 62 #define AM335X_PIN_GPMC_A1 63 #define AM335X_PIN_GPMC_A2 64 #define AM335X_PIN_GPMC_A3 65 #define AM335X_PIN_GPMC_A4 66 #define AM335X_PIN_GPMC_A5 67 #define AM335X_PIN_GPMC_A6 68 #define AM335X_PIN_GPMC_A7 69 #define AM335X_PIN_GPMC_A8 70 #define AM335X_PIN_GPMC_A9 71 #define AM335X_PIN_GPMC_A10 72 #define AM335X_PIN_GPMC_A11 73 #define AM335X_PIN_GPMC_WAIT0 74 #define AM335X_PIN_GPMC_WPN 75 #define AM335X_PIN_GPMC_BEN1 76 #define AM335X_PIN_GPMC_CSN0 77 #define AM335X_PIN_GPMC_CSN1 78 #define AM335X_PIN_GPMC_CSN2 79 #define AM335X_PIN_GPMC_CSN3 80 #define AM335X_PIN_GPMC_CLK 81 #define AM335X_PIN_GPMC_ADVN_ALE 82 #define AM335X_PIN_GPMC_OEN_REN 83 #define AM335X_PIN_GPMC_WEN 84 #define AM335X_PIN_GPMC_BEN0_CLE 85 #define AM335X_PIN_LCD_DATA0 86 #define AM335X_PIN_LCD_DATA1 87 #define AM335X_PIN_LCD_DATA2 88 #define AM335X_PIN_LCD_DATA3 89 #define AM335X_PIN_LCD_DATA4 90 #define AM335X_PIN_LCD_DATA5 91 #define AM335X_PIN_LCD_DATA6 92 #define AM335X_PIN_LCD_DATA7 93 #define AM335X_PIN_LCD_DATA8 94 #define AM335X_PIN_LCD_DATA9 95 #define AM335X_PIN_LCD_DATA10 96 #define AM335X_PIN_LCD_DATA11 97 #define AM335X_PIN_LCD_DATA12 98 #define AM335X_PIN_LCD_DATA13 99 #define AM335X_PIN_LCD_DATA14 100 #define AM335X_PIN_LCD_DATA15 101 #define AM335X_PIN_LCD_VSYNC 102 #define AM335X_PIN_LCD_HSYNC 103 #define AM335X_PIN_LCD_PCLK 104 #define AM335X_PIN_LCD_AC_BIAS_EN 105 #define AM335X_PIN_MMC0_DAT3 106 #define AM335X_PIN_MMC0_DAT2 107 #define AM335X_PIN_MMC0_DAT1 108 #define AM335X_PIN_MMC0_DAT0 109 #define AM335X_PIN_MMC0_CLK 110 #define AM335X_PIN_MMC0_CMD 111 #define AM335X_PIN_MII1_COL 112 #define AM335X_PIN_MII1_CRS 113 #define AM335X_PIN_MII1_RX_ER 114 #define AM335X_PIN_MII1_TX_EN 115 #define AM335X_PIN_MII1_RX_DV 116 #define AM335X_PIN_MII1_TXD3 117 #define AM335X_PIN_MII1_TXD2 118 #define AM335X_PIN_MII1_TXD1 119 #define AM335X_PIN_MII1_TXD0 120 #define AM335X_PIN_MII1_TX_CLK 121 #define AM335X_PIN_MII1_RX_CLK 122 #define AM335X_PIN_MII1_RXD3 123 #define AM335X_PIN_MII1_RXD2 124 #define AM335X_PIN_MII1_RXD1 125 #define AM335X_PIN_MII1_RXD0 126 #define AM335X_PIN_RMII1_REF_CLK 127 #define AM335X_PIN_MDIO 128 #define AM335X_PIN_MDC 129 #define AM335X_PIN_SPI0_SCLK 130 #define AM335X_PIN_SPI0_D0 131 #define AM335X_PIN_SPI0_D1 132 #define AM335X_PIN_SPI0_CS0 133 #define AM335X_PIN_SPI0_CS1 134 #define AM335X_PIN_ECAP0_IN_PWM0_OUT 135 #define AM335X_PIN_UART0_CTSN 136 #define AM335X_PIN_UART0_RTSN 137 #define AM335X_PIN_UART0_RXD 138 #define AM335X_PIN_UART0_TXD 139 #define AM335X_PIN_UART1_CTSN 140 #define AM335X_PIN_UART1_RTSN 141 #define AM335X_PIN_UART1_RXD 142 #define AM335X_PIN_UART1_TXD 143 #define AM335X_PIN_I2C0_SDA 144 #define AM335X_PIN_I2C0_SCL 145 #define AM335X_PIN_MCASP0_ACLKX 146 #define AM335X_PIN_MCASP0_FSX 147 #define AM335X_PIN_MCASP0_AXR0 148 #define AM335X_PIN_MCASP0_AHCLKR 149 #define AM335X_PIN_MCASP0_ACLKR 150 #define AM335X_PIN_MCASP0_FSR 151 #define AM335X_PIN_MCASP0_AXR1 152 #define AM335X_PIN_MCASP0_AHCLKX 153 #define AM335X_PIN_XDMA_EVENT_INTR0 154 #define AM335X_PIN_XDMA_EVENT_INTR1 155 #define AM335X_PIN_WARMRSTN 156 #define AM335X_PIN_NNMI 157 #define AM335X_PIN_TMS 158 #define AM335X_PIN_TDI 159 #define AM335X_PIN_TDO 160 #define AM335X_PIN_TCK 161 #define AM335X_PIN_TRSTN 162 #define AM335X_PIN_EMU0 163 #define AM335X_PIN_EMU1 164 #define AM335X_PIN_RTC_PWRONRSTN 165 #define AM335X_PIN_PMIC_POWER_EN 166 #define AM335X_PIN_EXT_WAKEUP 167 #define AM335X_PIN_USB0_DRVVBUS 168 #define AM335X_PIN_USB1_DRVVBUS 169 170 #define AM335X_PIN_OFFSET_MAX 171 172 #endif 173
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.