18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * This header provides constants specific to AM33XX pinctrl bindings. 48c2ecf20Sopenharmony_ci */ 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ci#ifndef _DT_BINDINGS_PINCTRL_AM33XX_H 78c2ecf20Sopenharmony_ci#define _DT_BINDINGS_PINCTRL_AM33XX_H 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci#include <dt-bindings/pinctrl/omap.h> 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci/* am33xx specific mux bit defines */ 128c2ecf20Sopenharmony_ci#undef PULL_ENA 138c2ecf20Sopenharmony_ci#undef INPUT_EN 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci#define PULL_DISABLE (1 << 3) 168c2ecf20Sopenharmony_ci#define INPUT_EN (1 << 5) 178c2ecf20Sopenharmony_ci#define SLEWCTRL_SLOW (1 << 6) 188c2ecf20Sopenharmony_ci#define SLEWCTRL_FAST 0 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ci/* update macro depending on INPUT_EN and PULL_ENA */ 218c2ecf20Sopenharmony_ci#undef PIN_OUTPUT 228c2ecf20Sopenharmony_ci#undef PIN_OUTPUT_PULLUP 238c2ecf20Sopenharmony_ci#undef PIN_OUTPUT_PULLDOWN 248c2ecf20Sopenharmony_ci#undef PIN_INPUT 258c2ecf20Sopenharmony_ci#undef PIN_INPUT_PULLUP 268c2ecf20Sopenharmony_ci#undef PIN_INPUT_PULLDOWN 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ci#define PIN_OUTPUT (PULL_DISABLE) 298c2ecf20Sopenharmony_ci#define PIN_OUTPUT_PULLUP (PULL_UP) 308c2ecf20Sopenharmony_ci#define PIN_OUTPUT_PULLDOWN 0 318c2ecf20Sopenharmony_ci#define PIN_INPUT (INPUT_EN | PULL_DISABLE) 328c2ecf20Sopenharmony_ci#define PIN_INPUT_PULLUP (INPUT_EN | PULL_UP) 338c2ecf20Sopenharmony_ci#define PIN_INPUT_PULLDOWN (INPUT_EN) 348c2ecf20Sopenharmony_ci 358c2ecf20Sopenharmony_ci/* undef non-existing modes */ 368c2ecf20Sopenharmony_ci#undef PIN_OFF_NONE 378c2ecf20Sopenharmony_ci#undef PIN_OFF_OUTPUT_HIGH 388c2ecf20Sopenharmony_ci#undef PIN_OFF_OUTPUT_LOW 398c2ecf20Sopenharmony_ci#undef PIN_OFF_INPUT_PULLUP 408c2ecf20Sopenharmony_ci#undef PIN_OFF_INPUT_PULLDOWN 418c2ecf20Sopenharmony_ci#undef PIN_OFF_WAKEUPENABLE 428c2ecf20Sopenharmony_ci 438c2ecf20Sopenharmony_ci#define AM335X_PIN_OFFSET_MIN 0x0800U 448c2ecf20Sopenharmony_ci 458c2ecf20Sopenharmony_ci#define AM335X_PIN_GPMC_AD0 0x800 468c2ecf20Sopenharmony_ci#define AM335X_PIN_GPMC_AD1 0x804 478c2ecf20Sopenharmony_ci#define AM335X_PIN_GPMC_AD2 0x808 488c2ecf20Sopenharmony_ci#define AM335X_PIN_GPMC_AD3 0x80c 498c2ecf20Sopenharmony_ci#define AM335X_PIN_GPMC_AD4 0x810 508c2ecf20Sopenharmony_ci#define AM335X_PIN_GPMC_AD5 0x814 518c2ecf20Sopenharmony_ci#define AM335X_PIN_GPMC_AD6 0x818 528c2ecf20Sopenharmony_ci#define AM335X_PIN_GPMC_AD7 0x81c 538c2ecf20Sopenharmony_ci#define AM335X_PIN_GPMC_AD8 0x820 548c2ecf20Sopenharmony_ci#define AM335X_PIN_GPMC_AD9 0x824 558c2ecf20Sopenharmony_ci#define AM335X_PIN_GPMC_AD10 0x828 568c2ecf20Sopenharmony_ci#define AM335X_PIN_GPMC_AD11 0x82c 578c2ecf20Sopenharmony_ci#define AM335X_PIN_GPMC_AD12 0x830 588c2ecf20Sopenharmony_ci#define AM335X_PIN_GPMC_AD13 0x834 598c2ecf20Sopenharmony_ci#define AM335X_PIN_GPMC_AD14 0x838 608c2ecf20Sopenharmony_ci#define AM335X_PIN_GPMC_AD15 0x83c 618c2ecf20Sopenharmony_ci#define AM335X_PIN_GPMC_A0 0x840 628c2ecf20Sopenharmony_ci#define AM335X_PIN_GPMC_A1 0x844 638c2ecf20Sopenharmony_ci#define AM335X_PIN_GPMC_A2 0x848 648c2ecf20Sopenharmony_ci#define AM335X_PIN_GPMC_A3 0x84c 658c2ecf20Sopenharmony_ci#define AM335X_PIN_GPMC_A4 0x850 668c2ecf20Sopenharmony_ci#define AM335X_PIN_GPMC_A5 0x854 678c2ecf20Sopenharmony_ci#define AM335X_PIN_GPMC_A6 0x858 688c2ecf20Sopenharmony_ci#define AM335X_PIN_GPMC_A7 0x85c 698c2ecf20Sopenharmony_ci#define AM335X_PIN_GPMC_A8 0x860 708c2ecf20Sopenharmony_ci#define AM335X_PIN_GPMC_A9 0x864 718c2ecf20Sopenharmony_ci#define AM335X_PIN_GPMC_A10 0x868 728c2ecf20Sopenharmony_ci#define AM335X_PIN_GPMC_A11 0x86c 738c2ecf20Sopenharmony_ci#define AM335X_PIN_GPMC_WAIT0 0x870 748c2ecf20Sopenharmony_ci#define AM335X_PIN_GPMC_WPN 0x874 758c2ecf20Sopenharmony_ci#define AM335X_PIN_GPMC_BEN1 0x878 768c2ecf20Sopenharmony_ci#define AM335X_PIN_GPMC_CSN0 0x87c 778c2ecf20Sopenharmony_ci#define AM335X_PIN_GPMC_CSN1 0x880 788c2ecf20Sopenharmony_ci#define AM335X_PIN_GPMC_CSN2 0x884 798c2ecf20Sopenharmony_ci#define AM335X_PIN_GPMC_CSN3 0x888 808c2ecf20Sopenharmony_ci#define AM335X_PIN_GPMC_CLK 0x88c 818c2ecf20Sopenharmony_ci#define AM335X_PIN_GPMC_ADVN_ALE 0x890 828c2ecf20Sopenharmony_ci#define AM335X_PIN_GPMC_OEN_REN 0x894 838c2ecf20Sopenharmony_ci#define AM335X_PIN_GPMC_WEN 0x898 848c2ecf20Sopenharmony_ci#define AM335X_PIN_GPMC_BEN0_CLE 0x89c 858c2ecf20Sopenharmony_ci#define AM335X_PIN_LCD_DATA0 0x8a0 868c2ecf20Sopenharmony_ci#define AM335X_PIN_LCD_DATA1 0x8a4 878c2ecf20Sopenharmony_ci#define AM335X_PIN_LCD_DATA2 0x8a8 888c2ecf20Sopenharmony_ci#define AM335X_PIN_LCD_DATA3 0x8ac 898c2ecf20Sopenharmony_ci#define AM335X_PIN_LCD_DATA4 0x8b0 908c2ecf20Sopenharmony_ci#define AM335X_PIN_LCD_DATA5 0x8b4 918c2ecf20Sopenharmony_ci#define AM335X_PIN_LCD_DATA6 0x8b8 928c2ecf20Sopenharmony_ci#define AM335X_PIN_LCD_DATA7 0x8bc 938c2ecf20Sopenharmony_ci#define AM335X_PIN_LCD_DATA8 0x8c0 948c2ecf20Sopenharmony_ci#define AM335X_PIN_LCD_DATA9 0x8c4 958c2ecf20Sopenharmony_ci#define AM335X_PIN_LCD_DATA10 0x8c8 968c2ecf20Sopenharmony_ci#define AM335X_PIN_LCD_DATA11 0x8cc 978c2ecf20Sopenharmony_ci#define AM335X_PIN_LCD_DATA12 0x8d0 988c2ecf20Sopenharmony_ci#define AM335X_PIN_LCD_DATA13 0x8d4 998c2ecf20Sopenharmony_ci#define AM335X_PIN_LCD_DATA14 0x8d8 1008c2ecf20Sopenharmony_ci#define AM335X_PIN_LCD_DATA15 0x8dc 1018c2ecf20Sopenharmony_ci#define AM335X_PIN_LCD_VSYNC 0x8e0 1028c2ecf20Sopenharmony_ci#define AM335X_PIN_LCD_HSYNC 0x8e4 1038c2ecf20Sopenharmony_ci#define AM335X_PIN_LCD_PCLK 0x8e8 1048c2ecf20Sopenharmony_ci#define AM335X_PIN_LCD_AC_BIAS_EN 0x8ec 1058c2ecf20Sopenharmony_ci#define AM335X_PIN_MMC0_DAT3 0x8f0 1068c2ecf20Sopenharmony_ci#define AM335X_PIN_MMC0_DAT2 0x8f4 1078c2ecf20Sopenharmony_ci#define AM335X_PIN_MMC0_DAT1 0x8f8 1088c2ecf20Sopenharmony_ci#define AM335X_PIN_MMC0_DAT0 0x8fc 1098c2ecf20Sopenharmony_ci#define AM335X_PIN_MMC0_CLK 0x900 1108c2ecf20Sopenharmony_ci#define AM335X_PIN_MMC0_CMD 0x904 1118c2ecf20Sopenharmony_ci#define AM335X_PIN_MII1_COL 0x908 1128c2ecf20Sopenharmony_ci#define AM335X_PIN_MII1_CRS 0x90c 1138c2ecf20Sopenharmony_ci#define AM335X_PIN_MII1_RX_ER 0x910 1148c2ecf20Sopenharmony_ci#define AM335X_PIN_MII1_TX_EN 0x914 1158c2ecf20Sopenharmony_ci#define AM335X_PIN_MII1_RX_DV 0x918 1168c2ecf20Sopenharmony_ci#define AM335X_PIN_MII1_TXD3 0x91c 1178c2ecf20Sopenharmony_ci#define AM335X_PIN_MII1_TXD2 0x920 1188c2ecf20Sopenharmony_ci#define AM335X_PIN_MII1_TXD1 0x924 1198c2ecf20Sopenharmony_ci#define AM335X_PIN_MII1_TXD0 0x928 1208c2ecf20Sopenharmony_ci#define AM335X_PIN_MII1_TX_CLK 0x92c 1218c2ecf20Sopenharmony_ci#define AM335X_PIN_MII1_RX_CLK 0x930 1228c2ecf20Sopenharmony_ci#define AM335X_PIN_MII1_RXD3 0x934 1238c2ecf20Sopenharmony_ci#define AM335X_PIN_MII1_RXD2 0x938 1248c2ecf20Sopenharmony_ci#define AM335X_PIN_MII1_RXD1 0x93c 1258c2ecf20Sopenharmony_ci#define AM335X_PIN_MII1_RXD0 0x940 1268c2ecf20Sopenharmony_ci#define AM335X_PIN_RMII1_REF_CLK 0x944 1278c2ecf20Sopenharmony_ci#define AM335X_PIN_MDIO 0x948 1288c2ecf20Sopenharmony_ci#define AM335X_PIN_MDC 0x94c 1298c2ecf20Sopenharmony_ci#define AM335X_PIN_SPI0_SCLK 0x950 1308c2ecf20Sopenharmony_ci#define AM335X_PIN_SPI0_D0 0x954 1318c2ecf20Sopenharmony_ci#define AM335X_PIN_SPI0_D1 0x958 1328c2ecf20Sopenharmony_ci#define AM335X_PIN_SPI0_CS0 0x95c 1338c2ecf20Sopenharmony_ci#define AM335X_PIN_SPI0_CS1 0x960 1348c2ecf20Sopenharmony_ci#define AM335X_PIN_ECAP0_IN_PWM0_OUT 0x964 1358c2ecf20Sopenharmony_ci#define AM335X_PIN_UART0_CTSN 0x968 1368c2ecf20Sopenharmony_ci#define AM335X_PIN_UART0_RTSN 0x96c 1378c2ecf20Sopenharmony_ci#define AM335X_PIN_UART0_RXD 0x970 1388c2ecf20Sopenharmony_ci#define AM335X_PIN_UART0_TXD 0x974 1398c2ecf20Sopenharmony_ci#define AM335X_PIN_UART1_CTSN 0x978 1408c2ecf20Sopenharmony_ci#define AM335X_PIN_UART1_RTSN 0x97c 1418c2ecf20Sopenharmony_ci#define AM335X_PIN_UART1_RXD 0x980 1428c2ecf20Sopenharmony_ci#define AM335X_PIN_UART1_TXD 0x984 1438c2ecf20Sopenharmony_ci#define AM335X_PIN_I2C0_SDA 0x988 1448c2ecf20Sopenharmony_ci#define AM335X_PIN_I2C0_SCL 0x98c 1458c2ecf20Sopenharmony_ci#define AM335X_PIN_MCASP0_ACLKX 0x990 1468c2ecf20Sopenharmony_ci#define AM335X_PIN_MCASP0_FSX 0x994 1478c2ecf20Sopenharmony_ci#define AM335X_PIN_MCASP0_AXR0 0x998 1488c2ecf20Sopenharmony_ci#define AM335X_PIN_MCASP0_AHCLKR 0x99c 1498c2ecf20Sopenharmony_ci#define AM335X_PIN_MCASP0_ACLKR 0x9a0 1508c2ecf20Sopenharmony_ci#define AM335X_PIN_MCASP0_FSR 0x9a4 1518c2ecf20Sopenharmony_ci#define AM335X_PIN_MCASP0_AXR1 0x9a8 1528c2ecf20Sopenharmony_ci#define AM335X_PIN_MCASP0_AHCLKX 0x9ac 1538c2ecf20Sopenharmony_ci#define AM335X_PIN_XDMA_EVENT_INTR0 0x9b0 1548c2ecf20Sopenharmony_ci#define AM335X_PIN_XDMA_EVENT_INTR1 0x9b4 1558c2ecf20Sopenharmony_ci#define AM335X_PIN_WARMRSTN 0x9b8 1568c2ecf20Sopenharmony_ci#define AM335X_PIN_NNMI 0x9c0 1578c2ecf20Sopenharmony_ci#define AM335X_PIN_TMS 0x9d0 1588c2ecf20Sopenharmony_ci#define AM335X_PIN_TDI 0x9d4 1598c2ecf20Sopenharmony_ci#define AM335X_PIN_TDO 0x9d8 1608c2ecf20Sopenharmony_ci#define AM335X_PIN_TCK 0x9dc 1618c2ecf20Sopenharmony_ci#define AM335X_PIN_TRSTN 0x9e0 1628c2ecf20Sopenharmony_ci#define AM335X_PIN_EMU0 0x9e4 1638c2ecf20Sopenharmony_ci#define AM335X_PIN_EMU1 0x9e8 1648c2ecf20Sopenharmony_ci#define AM335X_PIN_RTC_PWRONRSTN 0x9f8 1658c2ecf20Sopenharmony_ci#define AM335X_PIN_PMIC_POWER_EN 0x9fc 1668c2ecf20Sopenharmony_ci#define AM335X_PIN_EXT_WAKEUP 0xa00 1678c2ecf20Sopenharmony_ci#define AM335X_PIN_USB0_DRVVBUS 0xa1c 1688c2ecf20Sopenharmony_ci#define AM335X_PIN_USB1_DRVVBUS 0xa34 1698c2ecf20Sopenharmony_ci 1708c2ecf20Sopenharmony_ci#define AM335X_PIN_OFFSET_MAX 0x0a34U 1718c2ecf20Sopenharmony_ci 1728c2ecf20Sopenharmony_ci#endif 173