1*cb7aa33aSEmmanuel Vadot /* SPDX-License-Identifier: GPL-2.0 OR MIT */ 2*cb7aa33aSEmmanuel Vadot /* 3*cb7aa33aSEmmanuel Vadot * Copyright (C) 2022 Emil Renner Berthing <kernel@esmil.dk> 4*cb7aa33aSEmmanuel Vadot * Copyright (C) 2022 StarFive Technology Co., Ltd. 5*cb7aa33aSEmmanuel Vadot */ 6*cb7aa33aSEmmanuel Vadot 7*cb7aa33aSEmmanuel Vadot #ifndef __DT_BINDINGS_PINCTRL_STARFIVE_JH7110_H__ 8*cb7aa33aSEmmanuel Vadot #define __DT_BINDINGS_PINCTRL_STARFIVE_JH7110_H__ 9*cb7aa33aSEmmanuel Vadot 10*cb7aa33aSEmmanuel Vadot /* sys_iomux pins */ 11*cb7aa33aSEmmanuel Vadot #define PAD_GPIO0 0 12*cb7aa33aSEmmanuel Vadot #define PAD_GPIO1 1 13*cb7aa33aSEmmanuel Vadot #define PAD_GPIO2 2 14*cb7aa33aSEmmanuel Vadot #define PAD_GPIO3 3 15*cb7aa33aSEmmanuel Vadot #define PAD_GPIO4 4 16*cb7aa33aSEmmanuel Vadot #define PAD_GPIO5 5 17*cb7aa33aSEmmanuel Vadot #define PAD_GPIO6 6 18*cb7aa33aSEmmanuel Vadot #define PAD_GPIO7 7 19*cb7aa33aSEmmanuel Vadot #define PAD_GPIO8 8 20*cb7aa33aSEmmanuel Vadot #define PAD_GPIO9 9 21*cb7aa33aSEmmanuel Vadot #define PAD_GPIO10 10 22*cb7aa33aSEmmanuel Vadot #define PAD_GPIO11 11 23*cb7aa33aSEmmanuel Vadot #define PAD_GPIO12 12 24*cb7aa33aSEmmanuel Vadot #define PAD_GPIO13 13 25*cb7aa33aSEmmanuel Vadot #define PAD_GPIO14 14 26*cb7aa33aSEmmanuel Vadot #define PAD_GPIO15 15 27*cb7aa33aSEmmanuel Vadot #define PAD_GPIO16 16 28*cb7aa33aSEmmanuel Vadot #define PAD_GPIO17 17 29*cb7aa33aSEmmanuel Vadot #define PAD_GPIO18 18 30*cb7aa33aSEmmanuel Vadot #define PAD_GPIO19 19 31*cb7aa33aSEmmanuel Vadot #define PAD_GPIO20 20 32*cb7aa33aSEmmanuel Vadot #define PAD_GPIO21 21 33*cb7aa33aSEmmanuel Vadot #define PAD_GPIO22 22 34*cb7aa33aSEmmanuel Vadot #define PAD_GPIO23 23 35*cb7aa33aSEmmanuel Vadot #define PAD_GPIO24 24 36*cb7aa33aSEmmanuel Vadot #define PAD_GPIO25 25 37*cb7aa33aSEmmanuel Vadot #define PAD_GPIO26 26 38*cb7aa33aSEmmanuel Vadot #define PAD_GPIO27 27 39*cb7aa33aSEmmanuel Vadot #define PAD_GPIO28 28 40*cb7aa33aSEmmanuel Vadot #define PAD_GPIO29 29 41*cb7aa33aSEmmanuel Vadot #define PAD_GPIO30 30 42*cb7aa33aSEmmanuel Vadot #define PAD_GPIO31 31 43*cb7aa33aSEmmanuel Vadot #define PAD_GPIO32 32 44*cb7aa33aSEmmanuel Vadot #define PAD_GPIO33 33 45*cb7aa33aSEmmanuel Vadot #define PAD_GPIO34 34 46*cb7aa33aSEmmanuel Vadot #define PAD_GPIO35 35 47*cb7aa33aSEmmanuel Vadot #define PAD_GPIO36 36 48*cb7aa33aSEmmanuel Vadot #define PAD_GPIO37 37 49*cb7aa33aSEmmanuel Vadot #define PAD_GPIO38 38 50*cb7aa33aSEmmanuel Vadot #define PAD_GPIO39 39 51*cb7aa33aSEmmanuel Vadot #define PAD_GPIO40 40 52*cb7aa33aSEmmanuel Vadot #define PAD_GPIO41 41 53*cb7aa33aSEmmanuel Vadot #define PAD_GPIO42 42 54*cb7aa33aSEmmanuel Vadot #define PAD_GPIO43 43 55*cb7aa33aSEmmanuel Vadot #define PAD_GPIO44 44 56*cb7aa33aSEmmanuel Vadot #define PAD_GPIO45 45 57*cb7aa33aSEmmanuel Vadot #define PAD_GPIO46 46 58*cb7aa33aSEmmanuel Vadot #define PAD_GPIO47 47 59*cb7aa33aSEmmanuel Vadot #define PAD_GPIO48 48 60*cb7aa33aSEmmanuel Vadot #define PAD_GPIO49 49 61*cb7aa33aSEmmanuel Vadot #define PAD_GPIO50 50 62*cb7aa33aSEmmanuel Vadot #define PAD_GPIO51 51 63*cb7aa33aSEmmanuel Vadot #define PAD_GPIO52 52 64*cb7aa33aSEmmanuel Vadot #define PAD_GPIO53 53 65*cb7aa33aSEmmanuel Vadot #define PAD_GPIO54 54 66*cb7aa33aSEmmanuel Vadot #define PAD_GPIO55 55 67*cb7aa33aSEmmanuel Vadot #define PAD_GPIO56 56 68*cb7aa33aSEmmanuel Vadot #define PAD_GPIO57 57 69*cb7aa33aSEmmanuel Vadot #define PAD_GPIO58 58 70*cb7aa33aSEmmanuel Vadot #define PAD_GPIO59 59 71*cb7aa33aSEmmanuel Vadot #define PAD_GPIO60 60 72*cb7aa33aSEmmanuel Vadot #define PAD_GPIO61 61 73*cb7aa33aSEmmanuel Vadot #define PAD_GPIO62 62 74*cb7aa33aSEmmanuel Vadot #define PAD_GPIO63 63 75*cb7aa33aSEmmanuel Vadot #define PAD_SD0_CLK 64 76*cb7aa33aSEmmanuel Vadot #define PAD_SD0_CMD 65 77*cb7aa33aSEmmanuel Vadot #define PAD_SD0_DATA0 66 78*cb7aa33aSEmmanuel Vadot #define PAD_SD0_DATA1 67 79*cb7aa33aSEmmanuel Vadot #define PAD_SD0_DATA2 68 80*cb7aa33aSEmmanuel Vadot #define PAD_SD0_DATA3 69 81*cb7aa33aSEmmanuel Vadot #define PAD_SD0_DATA4 70 82*cb7aa33aSEmmanuel Vadot #define PAD_SD0_DATA5 71 83*cb7aa33aSEmmanuel Vadot #define PAD_SD0_DATA6 72 84*cb7aa33aSEmmanuel Vadot #define PAD_SD0_DATA7 73 85*cb7aa33aSEmmanuel Vadot #define PAD_SD0_STRB 74 86*cb7aa33aSEmmanuel Vadot #define PAD_GMAC1_MDC 75 87*cb7aa33aSEmmanuel Vadot #define PAD_GMAC1_MDIO 76 88*cb7aa33aSEmmanuel Vadot #define PAD_GMAC1_RXD0 77 89*cb7aa33aSEmmanuel Vadot #define PAD_GMAC1_RXD1 78 90*cb7aa33aSEmmanuel Vadot #define PAD_GMAC1_RXD2 79 91*cb7aa33aSEmmanuel Vadot #define PAD_GMAC1_RXD3 80 92*cb7aa33aSEmmanuel Vadot #define PAD_GMAC1_RXDV 81 93*cb7aa33aSEmmanuel Vadot #define PAD_GMAC1_RXC 82 94*cb7aa33aSEmmanuel Vadot #define PAD_GMAC1_TXD0 83 95*cb7aa33aSEmmanuel Vadot #define PAD_GMAC1_TXD1 84 96*cb7aa33aSEmmanuel Vadot #define PAD_GMAC1_TXD2 85 97*cb7aa33aSEmmanuel Vadot #define PAD_GMAC1_TXD3 86 98*cb7aa33aSEmmanuel Vadot #define PAD_GMAC1_TXEN 87 99*cb7aa33aSEmmanuel Vadot #define PAD_GMAC1_TXC 88 100*cb7aa33aSEmmanuel Vadot #define PAD_QSPI_SCLK 89 101*cb7aa33aSEmmanuel Vadot #define PAD_QSPI_CS0 90 102*cb7aa33aSEmmanuel Vadot #define PAD_QSPI_DATA0 91 103*cb7aa33aSEmmanuel Vadot #define PAD_QSPI_DATA1 92 104*cb7aa33aSEmmanuel Vadot #define PAD_QSPI_DATA2 93 105*cb7aa33aSEmmanuel Vadot #define PAD_QSPI_DATA3 94 106*cb7aa33aSEmmanuel Vadot 107*cb7aa33aSEmmanuel Vadot /* aon_iomux pins */ 108*cb7aa33aSEmmanuel Vadot #define PAD_TESTEN 0 109*cb7aa33aSEmmanuel Vadot #define PAD_RGPIO0 1 110*cb7aa33aSEmmanuel Vadot #define PAD_RGPIO1 2 111*cb7aa33aSEmmanuel Vadot #define PAD_RGPIO2 3 112*cb7aa33aSEmmanuel Vadot #define PAD_RGPIO3 4 113*cb7aa33aSEmmanuel Vadot #define PAD_RSTN 5 114*cb7aa33aSEmmanuel Vadot #define PAD_GMAC0_MDC 6 115*cb7aa33aSEmmanuel Vadot #define PAD_GMAC0_MDIO 7 116*cb7aa33aSEmmanuel Vadot #define PAD_GMAC0_RXD0 8 117*cb7aa33aSEmmanuel Vadot #define PAD_GMAC0_RXD1 9 118*cb7aa33aSEmmanuel Vadot #define PAD_GMAC0_RXD2 10 119*cb7aa33aSEmmanuel Vadot #define PAD_GMAC0_RXD3 11 120*cb7aa33aSEmmanuel Vadot #define PAD_GMAC0_RXDV 12 121*cb7aa33aSEmmanuel Vadot #define PAD_GMAC0_RXC 13 122*cb7aa33aSEmmanuel Vadot #define PAD_GMAC0_TXD0 14 123*cb7aa33aSEmmanuel Vadot #define PAD_GMAC0_TXD1 15 124*cb7aa33aSEmmanuel Vadot #define PAD_GMAC0_TXD2 16 125*cb7aa33aSEmmanuel Vadot #define PAD_GMAC0_TXD3 17 126*cb7aa33aSEmmanuel Vadot #define PAD_GMAC0_TXEN 18 127*cb7aa33aSEmmanuel Vadot #define PAD_GMAC0_TXC 19 128*cb7aa33aSEmmanuel Vadot 129*cb7aa33aSEmmanuel Vadot #define GPOUT_LOW 0 130*cb7aa33aSEmmanuel Vadot #define GPOUT_HIGH 1 131*cb7aa33aSEmmanuel Vadot 132*cb7aa33aSEmmanuel Vadot #define GPOEN_ENABLE 0 133*cb7aa33aSEmmanuel Vadot #define GPOEN_DISABLE 1 134*cb7aa33aSEmmanuel Vadot 135*cb7aa33aSEmmanuel Vadot #define GPI_NONE 255 136*cb7aa33aSEmmanuel Vadot 137*cb7aa33aSEmmanuel Vadot #endif 138