1*340407d2SWells Lu /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ 2*340407d2SWells Lu /* 3*340407d2SWells Lu * Sunplus SP7021 dt-bindings Pinctrl header file 4*340407d2SWells Lu * Copyright (C) Sunplus Tech/Tibbo Tech. 5*340407d2SWells Lu * Author: Dvorkin Dmitry <dvorkin@tibbo.com> 6*340407d2SWells Lu */ 7*340407d2SWells Lu 8*340407d2SWells Lu #ifndef __DT_BINDINGS_PINCTRL_SPPCTL_SP7021_H__ 9*340407d2SWells Lu #define __DT_BINDINGS_PINCTRL_SPPCTL_SP7021_H__ 10*340407d2SWells Lu 11*340407d2SWells Lu #include <dt-bindings/pinctrl/sppctl.h> 12*340407d2SWells Lu 13*340407d2SWells Lu /* 14*340407d2SWells Lu * Please don't change the order of the following defines. 15*340407d2SWells Lu * They are based on order of 'hardware' control register 16*340407d2SWells Lu * defined in MOON2 ~ MOON3 registers. 17*340407d2SWells Lu */ 18*340407d2SWells Lu #define MUXF_GPIO 0 19*340407d2SWells Lu #define MUXF_IOP 1 20*340407d2SWells Lu #define MUXF_L2SW_CLK_OUT 2 21*340407d2SWells Lu #define MUXF_L2SW_MAC_SMI_MDC 3 22*340407d2SWells Lu #define MUXF_L2SW_LED_FLASH0 4 23*340407d2SWells Lu #define MUXF_L2SW_LED_FLASH1 5 24*340407d2SWells Lu #define MUXF_L2SW_LED_ON0 6 25*340407d2SWells Lu #define MUXF_L2SW_LED_ON1 7 26*340407d2SWells Lu #define MUXF_L2SW_MAC_SMI_MDIO 8 27*340407d2SWells Lu #define MUXF_L2SW_P0_MAC_RMII_TXEN 9 28*340407d2SWells Lu #define MUXF_L2SW_P0_MAC_RMII_TXD0 10 29*340407d2SWells Lu #define MUXF_L2SW_P0_MAC_RMII_TXD1 11 30*340407d2SWells Lu #define MUXF_L2SW_P0_MAC_RMII_CRSDV 12 31*340407d2SWells Lu #define MUXF_L2SW_P0_MAC_RMII_RXD0 13 32*340407d2SWells Lu #define MUXF_L2SW_P0_MAC_RMII_RXD1 14 33*340407d2SWells Lu #define MUXF_L2SW_P0_MAC_RMII_RXER 15 34*340407d2SWells Lu #define MUXF_L2SW_P1_MAC_RMII_TXEN 16 35*340407d2SWells Lu #define MUXF_L2SW_P1_MAC_RMII_TXD0 17 36*340407d2SWells Lu #define MUXF_L2SW_P1_MAC_RMII_TXD1 18 37*340407d2SWells Lu #define MUXF_L2SW_P1_MAC_RMII_CRSDV 19 38*340407d2SWells Lu #define MUXF_L2SW_P1_MAC_RMII_RXD0 20 39*340407d2SWells Lu #define MUXF_L2SW_P1_MAC_RMII_RXD1 21 40*340407d2SWells Lu #define MUXF_L2SW_P1_MAC_RMII_RXER 22 41*340407d2SWells Lu #define MUXF_DAISY_MODE 23 42*340407d2SWells Lu #define MUXF_SDIO_CLK 24 43*340407d2SWells Lu #define MUXF_SDIO_CMD 25 44*340407d2SWells Lu #define MUXF_SDIO_D0 26 45*340407d2SWells Lu #define MUXF_SDIO_D1 27 46*340407d2SWells Lu #define MUXF_SDIO_D2 28 47*340407d2SWells Lu #define MUXF_SDIO_D3 29 48*340407d2SWells Lu #define MUXF_PWM0 30 49*340407d2SWells Lu #define MUXF_PWM1 31 50*340407d2SWells Lu #define MUXF_PWM2 32 51*340407d2SWells Lu #define MUXF_PWM3 33 52*340407d2SWells Lu #define MUXF_PWM4 34 53*340407d2SWells Lu #define MUXF_PWM5 35 54*340407d2SWells Lu #define MUXF_PWM6 36 55*340407d2SWells Lu #define MUXF_PWM7 37 56*340407d2SWells Lu #define MUXF_ICM0_D 38 57*340407d2SWells Lu #define MUXF_ICM1_D 39 58*340407d2SWells Lu #define MUXF_ICM2_D 40 59*340407d2SWells Lu #define MUXF_ICM3_D 41 60*340407d2SWells Lu #define MUXF_ICM0_CLK 42 61*340407d2SWells Lu #define MUXF_ICM1_CLK 43 62*340407d2SWells Lu #define MUXF_ICM2_CLK 44 63*340407d2SWells Lu #define MUXF_ICM3_CLK 45 64*340407d2SWells Lu #define MUXF_SPIM0_INT 46 65*340407d2SWells Lu #define MUXF_SPIM0_CLK 47 66*340407d2SWells Lu #define MUXF_SPIM0_EN 48 67*340407d2SWells Lu #define MUXF_SPIM0_DO 49 68*340407d2SWells Lu #define MUXF_SPIM0_DI 50 69*340407d2SWells Lu #define MUXF_SPIM1_INT 51 70*340407d2SWells Lu #define MUXF_SPIM1_CLK 52 71*340407d2SWells Lu #define MUXF_SPIM1_EN 53 72*340407d2SWells Lu #define MUXF_SPIM1_DO 54 73*340407d2SWells Lu #define MUXF_SPIM1_DI 55 74*340407d2SWells Lu #define MUXF_SPIM2_INT 56 75*340407d2SWells Lu #define MUXF_SPIM2_CLK 57 76*340407d2SWells Lu #define MUXF_SPIM2_EN 58 77*340407d2SWells Lu #define MUXF_SPIM2_DO 59 78*340407d2SWells Lu #define MUXF_SPIM2_DI 60 79*340407d2SWells Lu #define MUXF_SPIM3_INT 61 80*340407d2SWells Lu #define MUXF_SPIM3_CLK 62 81*340407d2SWells Lu #define MUXF_SPIM3_EN 63 82*340407d2SWells Lu #define MUXF_SPIM3_DO 64 83*340407d2SWells Lu #define MUXF_SPIM3_DI 65 84*340407d2SWells Lu #define MUXF_SPI0S_INT 66 85*340407d2SWells Lu #define MUXF_SPI0S_CLK 67 86*340407d2SWells Lu #define MUXF_SPI0S_EN 68 87*340407d2SWells Lu #define MUXF_SPI0S_DO 69 88*340407d2SWells Lu #define MUXF_SPI0S_DI 70 89*340407d2SWells Lu #define MUXF_SPI1S_INT 71 90*340407d2SWells Lu #define MUXF_SPI1S_CLK 72 91*340407d2SWells Lu #define MUXF_SPI1S_EN 73 92*340407d2SWells Lu #define MUXF_SPI1S_DO 74 93*340407d2SWells Lu #define MUXF_SPI1S_DI 75 94*340407d2SWells Lu #define MUXF_SPI2S_INT 76 95*340407d2SWells Lu #define MUXF_SPI2S_CLK 77 96*340407d2SWells Lu #define MUXF_SPI2S_EN 78 97*340407d2SWells Lu #define MUXF_SPI2S_DO 79 98*340407d2SWells Lu #define MUXF_SPI2S_DI 80 99*340407d2SWells Lu #define MUXF_SPI3S_INT 81 100*340407d2SWells Lu #define MUXF_SPI3S_CLK 82 101*340407d2SWells Lu #define MUXF_SPI3S_EN 83 102*340407d2SWells Lu #define MUXF_SPI3S_DO 84 103*340407d2SWells Lu #define MUXF_SPI3S_DI 85 104*340407d2SWells Lu #define MUXF_I2CM0_CLK 86 105*340407d2SWells Lu #define MUXF_I2CM0_DAT 87 106*340407d2SWells Lu #define MUXF_I2CM1_CLK 88 107*340407d2SWells Lu #define MUXF_I2CM1_DAT 89 108*340407d2SWells Lu #define MUXF_I2CM2_CLK 90 109*340407d2SWells Lu #define MUXF_I2CM2_DAT 91 110*340407d2SWells Lu #define MUXF_I2CM3_CLK 92 111*340407d2SWells Lu #define MUXF_I2CM3_DAT 93 112*340407d2SWells Lu #define MUXF_UA1_TX 94 113*340407d2SWells Lu #define MUXF_UA1_RX 95 114*340407d2SWells Lu #define MUXF_UA1_CTS 96 115*340407d2SWells Lu #define MUXF_UA1_RTS 97 116*340407d2SWells Lu #define MUXF_UA2_TX 98 117*340407d2SWells Lu #define MUXF_UA2_RX 99 118*340407d2SWells Lu #define MUXF_UA2_CTS 100 119*340407d2SWells Lu #define MUXF_UA2_RTS 101 120*340407d2SWells Lu #define MUXF_UA3_TX 102 121*340407d2SWells Lu #define MUXF_UA3_RX 103 122*340407d2SWells Lu #define MUXF_UA3_CTS 104 123*340407d2SWells Lu #define MUXF_UA3_RTS 105 124*340407d2SWells Lu #define MUXF_UA4_TX 106 125*340407d2SWells Lu #define MUXF_UA4_RX 107 126*340407d2SWells Lu #define MUXF_UA4_CTS 108 127*340407d2SWells Lu #define MUXF_UA4_RTS 109 128*340407d2SWells Lu #define MUXF_TIMER0_INT 110 129*340407d2SWells Lu #define MUXF_TIMER1_INT 111 130*340407d2SWells Lu #define MUXF_TIMER2_INT 112 131*340407d2SWells Lu #define MUXF_TIMER3_INT 113 132*340407d2SWells Lu #define MUXF_GPIO_INT0 114 133*340407d2SWells Lu #define MUXF_GPIO_INT1 115 134*340407d2SWells Lu #define MUXF_GPIO_INT2 116 135*340407d2SWells Lu #define MUXF_GPIO_INT3 117 136*340407d2SWells Lu #define MUXF_GPIO_INT4 118 137*340407d2SWells Lu #define MUXF_GPIO_INT5 119 138*340407d2SWells Lu #define MUXF_GPIO_INT6 120 139*340407d2SWells Lu #define MUXF_GPIO_INT7 121 140*340407d2SWells Lu 141*340407d2SWells Lu /* 142*340407d2SWells Lu * Please don't change the order of the following defines. 143*340407d2SWells Lu * They are based on order of items in array 'sppctl_list_funcs' 144*340407d2SWells Lu * in Sunplus pinctrl driver. 145*340407d2SWells Lu */ 146*340407d2SWells Lu #define GROP_SPI_FLASH 122 147*340407d2SWells Lu #define GROP_SPI_FLASH_4BIT 123 148*340407d2SWells Lu #define GROP_SPI_NAND 124 149*340407d2SWells Lu #define GROP_CARD0_EMMC 125 150*340407d2SWells Lu #define GROP_SD_CARD 126 151*340407d2SWells Lu #define GROP_UA0 127 152*340407d2SWells Lu #define GROP_ACHIP_DEBUG 128 153*340407d2SWells Lu #define GROP_ACHIP_UA2AXI 129 154*340407d2SWells Lu #define GROP_FPGA_IFX 130 155*340407d2SWells Lu #define GROP_HDMI_TX 131 156*340407d2SWells Lu #define GROP_AUD_EXT_ADC_IFX0 132 157*340407d2SWells Lu #define GROP_AUD_EXT_DAC_IFX0 133 158*340407d2SWells Lu #define GROP_SPDIF_RX 134 159*340407d2SWells Lu #define GROP_SPDIF_TX 135 160*340407d2SWells Lu #define GROP_TDMTX_IFX0 136 161*340407d2SWells Lu #define GROP_TDMRX_IFX0 137 162*340407d2SWells Lu #define GROP_PDMRX_IFX0 138 163*340407d2SWells Lu #define GROP_PCM_IEC_TX 139 164*340407d2SWells Lu #define GROP_LCDIF 140 165*340407d2SWells Lu #define GROP_DVD_DSP_DEBUG 141 166*340407d2SWells Lu #define GROP_I2C_DEBUG 142 167*340407d2SWells Lu #define GROP_I2C_SLAVE 143 168*340407d2SWells Lu #define GROP_WAKEUP 144 169*340407d2SWells Lu #define GROP_UART2AXI 145 170*340407d2SWells Lu #define GROP_USB0_I2C 146 171*340407d2SWells Lu #define GROP_USB1_I2C 147 172*340407d2SWells Lu #define GROP_USB0_OTG 148 173*340407d2SWells Lu #define GROP_USB1_OTG 149 174*340407d2SWells Lu #define GROP_UPHY0_DEBUG 150 175*340407d2SWells Lu #define GROP_UPHY1_DEBUG 151 176*340407d2SWells Lu #define GROP_UPHY0_EXT 152 177*340407d2SWells Lu #define GROP_PROBE_PORT 153 178*340407d2SWells Lu 179*340407d2SWells Lu #endif 180