1 /* SPDX-License-Identifier: GPL-2.0 */ << 2 #ifndef __DTS_MT6397_PINFUNC_H 1 #ifndef __DTS_MT6397_PINFUNC_H 3 #define __DTS_MT6397_PINFUNC_H 2 #define __DTS_MT6397_PINFUNC_H 4 3 5 #include <dt-bindings/pinctrl/mt65xx.h> 4 #include <dt-bindings/pinctrl/mt65xx.h> 6 5 7 #define MT6397_PIN_0_INT__FUNC_GPIO0 (MTK_PIN_ 6 #define MT6397_PIN_0_INT__FUNC_GPIO0 (MTK_PIN_NO(0) | 0) 8 #define MT6397_PIN_0_INT__FUNC_INT (MTK_PIN_NO 7 #define MT6397_PIN_0_INT__FUNC_INT (MTK_PIN_NO(0) | 1) 9 8 10 #define MT6397_PIN_1_SRCVOLTEN__FUNC_GPIO1 (MT 9 #define MT6397_PIN_1_SRCVOLTEN__FUNC_GPIO1 (MTK_PIN_NO(1) | 0) 11 #define MT6397_PIN_1_SRCVOLTEN__FUNC_SRCVOLTEN 10 #define MT6397_PIN_1_SRCVOLTEN__FUNC_SRCVOLTEN (MTK_PIN_NO(1) | 1) 12 #define MT6397_PIN_1_SRCVOLTEN__FUNC_TEST_CK1 11 #define MT6397_PIN_1_SRCVOLTEN__FUNC_TEST_CK1 (MTK_PIN_NO(1) | 6) 13 12 14 #define MT6397_PIN_2_SRCLKEN_PERI__FUNC_GPIO2 13 #define MT6397_PIN_2_SRCLKEN_PERI__FUNC_GPIO2 (MTK_PIN_NO(2) | 0) 15 #define MT6397_PIN_2_SRCLKEN_PERI__FUNC_SRCLKE 14 #define MT6397_PIN_2_SRCLKEN_PERI__FUNC_SRCLKEN_PERI (MTK_PIN_NO(2) | 1) 16 #define MT6397_PIN_2_SRCLKEN_PERI__FUNC_TEST_C 15 #define MT6397_PIN_2_SRCLKEN_PERI__FUNC_TEST_CK2 (MTK_PIN_NO(2) | 6) 17 16 18 #define MT6397_PIN_3_RTC_32K1V8__FUNC_GPIO3 (M 17 #define MT6397_PIN_3_RTC_32K1V8__FUNC_GPIO3 (MTK_PIN_NO(3) | 0) 19 #define MT6397_PIN_3_RTC_32K1V8__FUNC_RTC_32K1 18 #define MT6397_PIN_3_RTC_32K1V8__FUNC_RTC_32K1V8 (MTK_PIN_NO(3) | 1) 20 #define MT6397_PIN_3_RTC_32K1V8__FUNC_TEST_CK3 19 #define MT6397_PIN_3_RTC_32K1V8__FUNC_TEST_CK3 (MTK_PIN_NO(3) | 6) 21 20 22 #define MT6397_PIN_4_WRAP_EVENT__FUNC_GPIO4 (M 21 #define MT6397_PIN_4_WRAP_EVENT__FUNC_GPIO4 (MTK_PIN_NO(4) | 0) 23 #define MT6397_PIN_4_WRAP_EVENT__FUNC_WRAP_EVE 22 #define MT6397_PIN_4_WRAP_EVENT__FUNC_WRAP_EVENT (MTK_PIN_NO(4) | 1) 24 23 25 #define MT6397_PIN_5_SPI_CLK__FUNC_GPIO5 (MTK_ 24 #define MT6397_PIN_5_SPI_CLK__FUNC_GPIO5 (MTK_PIN_NO(5) | 0) 26 #define MT6397_PIN_5_SPI_CLK__FUNC_SPI_CLK (MT 25 #define MT6397_PIN_5_SPI_CLK__FUNC_SPI_CLK (MTK_PIN_NO(5) | 1) 27 26 28 #define MT6397_PIN_6_SPI_CSN__FUNC_GPIO6 (MTK_ 27 #define MT6397_PIN_6_SPI_CSN__FUNC_GPIO6 (MTK_PIN_NO(6) | 0) 29 #define MT6397_PIN_6_SPI_CSN__FUNC_SPI_CSN (MT 28 #define MT6397_PIN_6_SPI_CSN__FUNC_SPI_CSN (MTK_PIN_NO(6) | 1) 30 29 31 #define MT6397_PIN_7_SPI_MOSI__FUNC_GPIO7 (MTK 30 #define MT6397_PIN_7_SPI_MOSI__FUNC_GPIO7 (MTK_PIN_NO(7) | 0) 32 #define MT6397_PIN_7_SPI_MOSI__FUNC_SPI_MOSI ( 31 #define MT6397_PIN_7_SPI_MOSI__FUNC_SPI_MOSI (MTK_PIN_NO(7) | 1) 33 32 34 #define MT6397_PIN_8_SPI_MISO__FUNC_GPIO8 (MTK 33 #define MT6397_PIN_8_SPI_MISO__FUNC_GPIO8 (MTK_PIN_NO(8) | 0) 35 #define MT6397_PIN_8_SPI_MISO__FUNC_SPI_MISO ( 34 #define MT6397_PIN_8_SPI_MISO__FUNC_SPI_MISO (MTK_PIN_NO(8) | 1) 36 35 37 #define MT6397_PIN_9_AUD_CLK_MOSI__FUNC_GPIO9 36 #define MT6397_PIN_9_AUD_CLK_MOSI__FUNC_GPIO9 (MTK_PIN_NO(9) | 0) 38 #define MT6397_PIN_9_AUD_CLK_MOSI__FUNC_AUD_CL 37 #define MT6397_PIN_9_AUD_CLK_MOSI__FUNC_AUD_CLK (MTK_PIN_NO(9) | 1) 39 #define MT6397_PIN_9_AUD_CLK_MOSI__FUNC_TEST_I 38 #define MT6397_PIN_9_AUD_CLK_MOSI__FUNC_TEST_IN0 (MTK_PIN_NO(9) | 6) 40 #define MT6397_PIN_9_AUD_CLK_MOSI__FUNC_TEST_O 39 #define MT6397_PIN_9_AUD_CLK_MOSI__FUNC_TEST_OUT0 (MTK_PIN_NO(9) | 7) 41 40 42 #define MT6397_PIN_10_AUD_DAT_MISO__FUNC_GPIO1 41 #define MT6397_PIN_10_AUD_DAT_MISO__FUNC_GPIO10 (MTK_PIN_NO(10) | 0) 43 #define MT6397_PIN_10_AUD_DAT_MISO__FUNC_AUD_M 42 #define MT6397_PIN_10_AUD_DAT_MISO__FUNC_AUD_MISO (MTK_PIN_NO(10) | 1) 44 #define MT6397_PIN_10_AUD_DAT_MISO__FUNC_TEST_ 43 #define MT6397_PIN_10_AUD_DAT_MISO__FUNC_TEST_IN1 (MTK_PIN_NO(10) | 6) 45 #define MT6397_PIN_10_AUD_DAT_MISO__FUNC_TEST_ 44 #define MT6397_PIN_10_AUD_DAT_MISO__FUNC_TEST_OUT1 (MTK_PIN_NO(10) | 7) 46 45 47 #define MT6397_PIN_11_AUD_DAT_MOSI__FUNC_GPIO1 46 #define MT6397_PIN_11_AUD_DAT_MOSI__FUNC_GPIO11 (MTK_PIN_NO(11) | 0) 48 #define MT6397_PIN_11_AUD_DAT_MOSI__FUNC_AUD_M 47 #define MT6397_PIN_11_AUD_DAT_MOSI__FUNC_AUD_MOSI (MTK_PIN_NO(11) | 1) 49 #define MT6397_PIN_11_AUD_DAT_MOSI__FUNC_TEST_ 48 #define MT6397_PIN_11_AUD_DAT_MOSI__FUNC_TEST_IN2 (MTK_PIN_NO(11) | 6) 50 #define MT6397_PIN_11_AUD_DAT_MOSI__FUNC_TEST_ 49 #define MT6397_PIN_11_AUD_DAT_MOSI__FUNC_TEST_OUT2 (MTK_PIN_NO(11) | 7) 51 50 52 #define MT6397_PIN_12_COL0__FUNC_GPIO12 (MTK_P 51 #define MT6397_PIN_12_COL0__FUNC_GPIO12 (MTK_PIN_NO(12) | 0) 53 #define MT6397_PIN_12_COL0__FUNC_COL0_USBDL (M 52 #define MT6397_PIN_12_COL0__FUNC_COL0_USBDL (MTK_PIN_NO(12) | 1) 54 #define MT6397_PIN_12_COL0__FUNC_EINT10_1X (MT 53 #define MT6397_PIN_12_COL0__FUNC_EINT10_1X (MTK_PIN_NO(12) | 2) 55 #define MT6397_PIN_12_COL0__FUNC_PWM1_3X (MTK_ 54 #define MT6397_PIN_12_COL0__FUNC_PWM1_3X (MTK_PIN_NO(12) | 3) 56 #define MT6397_PIN_12_COL0__FUNC_TEST_IN3 (MTK 55 #define MT6397_PIN_12_COL0__FUNC_TEST_IN3 (MTK_PIN_NO(12) | 6) 57 #define MT6397_PIN_12_COL0__FUNC_TEST_OUT3 (MT 56 #define MT6397_PIN_12_COL0__FUNC_TEST_OUT3 (MTK_PIN_NO(12) | 7) 58 57 59 #define MT6397_PIN_13_COL1__FUNC_GPIO13 (MTK_P 58 #define MT6397_PIN_13_COL1__FUNC_GPIO13 (MTK_PIN_NO(13) | 0) 60 #define MT6397_PIN_13_COL1__FUNC_COL1 (MTK_PIN 59 #define MT6397_PIN_13_COL1__FUNC_COL1 (MTK_PIN_NO(13) | 1) 61 #define MT6397_PIN_13_COL1__FUNC_EINT11_1X (MT 60 #define MT6397_PIN_13_COL1__FUNC_EINT11_1X (MTK_PIN_NO(13) | 2) 62 #define MT6397_PIN_13_COL1__FUNC_SCL0_2X (MTK_ 61 #define MT6397_PIN_13_COL1__FUNC_SCL0_2X (MTK_PIN_NO(13) | 3) 63 #define MT6397_PIN_13_COL1__FUNC_TEST_IN4 (MTK 62 #define MT6397_PIN_13_COL1__FUNC_TEST_IN4 (MTK_PIN_NO(13) | 6) 64 #define MT6397_PIN_13_COL1__FUNC_TEST_OUT4 (MT 63 #define MT6397_PIN_13_COL1__FUNC_TEST_OUT4 (MTK_PIN_NO(13) | 7) 65 64 66 #define MT6397_PIN_14_COL2__FUNC_GPIO14 (MTK_P 65 #define MT6397_PIN_14_COL2__FUNC_GPIO14 (MTK_PIN_NO(14) | 0) 67 #define MT6397_PIN_14_COL2__FUNC_COL2 (MTK_PIN 66 #define MT6397_PIN_14_COL2__FUNC_COL2 (MTK_PIN_NO(14) | 1) 68 #define MT6397_PIN_14_COL2__FUNC_EINT12_1X (MT 67 #define MT6397_PIN_14_COL2__FUNC_EINT12_1X (MTK_PIN_NO(14) | 2) 69 #define MT6397_PIN_14_COL2__FUNC_SDA0_2X (MTK_ 68 #define MT6397_PIN_14_COL2__FUNC_SDA0_2X (MTK_PIN_NO(14) | 3) 70 #define MT6397_PIN_14_COL2__FUNC_TEST_IN5 (MTK 69 #define MT6397_PIN_14_COL2__FUNC_TEST_IN5 (MTK_PIN_NO(14) | 6) 71 #define MT6397_PIN_14_COL2__FUNC_TEST_OUT5 (MT 70 #define MT6397_PIN_14_COL2__FUNC_TEST_OUT5 (MTK_PIN_NO(14) | 7) 72 71 73 #define MT6397_PIN_15_COL3__FUNC_GPIO15 (MTK_P 72 #define MT6397_PIN_15_COL3__FUNC_GPIO15 (MTK_PIN_NO(15) | 0) 74 #define MT6397_PIN_15_COL3__FUNC_COL3 (MTK_PIN 73 #define MT6397_PIN_15_COL3__FUNC_COL3 (MTK_PIN_NO(15) | 1) 75 #define MT6397_PIN_15_COL3__FUNC_EINT13_1X (MT 74 #define MT6397_PIN_15_COL3__FUNC_EINT13_1X (MTK_PIN_NO(15) | 2) 76 #define MT6397_PIN_15_COL3__FUNC_SCL1_2X (MTK_ 75 #define MT6397_PIN_15_COL3__FUNC_SCL1_2X (MTK_PIN_NO(15) | 3) 77 #define MT6397_PIN_15_COL3__FUNC_TEST_IN6 (MTK 76 #define MT6397_PIN_15_COL3__FUNC_TEST_IN6 (MTK_PIN_NO(15) | 6) 78 #define MT6397_PIN_15_COL3__FUNC_TEST_OUT6 (MT 77 #define MT6397_PIN_15_COL3__FUNC_TEST_OUT6 (MTK_PIN_NO(15) | 7) 79 78 80 #define MT6397_PIN_16_COL4__FUNC_GPIO16 (MTK_P 79 #define MT6397_PIN_16_COL4__FUNC_GPIO16 (MTK_PIN_NO(16) | 0) 81 #define MT6397_PIN_16_COL4__FUNC_COL4 (MTK_PIN 80 #define MT6397_PIN_16_COL4__FUNC_COL4 (MTK_PIN_NO(16) | 1) 82 #define MT6397_PIN_16_COL4__FUNC_EINT14_1X (MT 81 #define MT6397_PIN_16_COL4__FUNC_EINT14_1X (MTK_PIN_NO(16) | 2) 83 #define MT6397_PIN_16_COL4__FUNC_SDA1_2X (MTK_ 82 #define MT6397_PIN_16_COL4__FUNC_SDA1_2X (MTK_PIN_NO(16) | 3) 84 #define MT6397_PIN_16_COL4__FUNC_TEST_IN7 (MTK 83 #define MT6397_PIN_16_COL4__FUNC_TEST_IN7 (MTK_PIN_NO(16) | 6) 85 #define MT6397_PIN_16_COL4__FUNC_TEST_OUT7 (MT 84 #define MT6397_PIN_16_COL4__FUNC_TEST_OUT7 (MTK_PIN_NO(16) | 7) 86 85 87 #define MT6397_PIN_17_COL5__FUNC_GPIO17 (MTK_P 86 #define MT6397_PIN_17_COL5__FUNC_GPIO17 (MTK_PIN_NO(17) | 0) 88 #define MT6397_PIN_17_COL5__FUNC_COL5 (MTK_PIN 87 #define MT6397_PIN_17_COL5__FUNC_COL5 (MTK_PIN_NO(17) | 1) 89 #define MT6397_PIN_17_COL5__FUNC_EINT15_1X (MT 88 #define MT6397_PIN_17_COL5__FUNC_EINT15_1X (MTK_PIN_NO(17) | 2) 90 #define MT6397_PIN_17_COL5__FUNC_SCL2_2X (MTK_ 89 #define MT6397_PIN_17_COL5__FUNC_SCL2_2X (MTK_PIN_NO(17) | 3) 91 #define MT6397_PIN_17_COL5__FUNC_TEST_IN8 (MTK 90 #define MT6397_PIN_17_COL5__FUNC_TEST_IN8 (MTK_PIN_NO(17) | 6) 92 #define MT6397_PIN_17_COL5__FUNC_TEST_OUT8 (MT 91 #define MT6397_PIN_17_COL5__FUNC_TEST_OUT8 (MTK_PIN_NO(17) | 7) 93 92 94 #define MT6397_PIN_18_COL6__FUNC_GPIO18 (MTK_P 93 #define MT6397_PIN_18_COL6__FUNC_GPIO18 (MTK_PIN_NO(18) | 0) 95 #define MT6397_PIN_18_COL6__FUNC_COL6 (MTK_PIN 94 #define MT6397_PIN_18_COL6__FUNC_COL6 (MTK_PIN_NO(18) | 1) 96 #define MT6397_PIN_18_COL6__FUNC_EINT16_1X (MT 95 #define MT6397_PIN_18_COL6__FUNC_EINT16_1X (MTK_PIN_NO(18) | 2) 97 #define MT6397_PIN_18_COL6__FUNC_SDA2_2X (MTK_ 96 #define MT6397_PIN_18_COL6__FUNC_SDA2_2X (MTK_PIN_NO(18) | 3) 98 #define MT6397_PIN_18_COL6__FUNC_GPIO32K_0 (MT 97 #define MT6397_PIN_18_COL6__FUNC_GPIO32K_0 (MTK_PIN_NO(18) | 4) 99 #define MT6397_PIN_18_COL6__FUNC_GPIO26M_0 (MT 98 #define MT6397_PIN_18_COL6__FUNC_GPIO26M_0 (MTK_PIN_NO(18) | 5) 100 #define MT6397_PIN_18_COL6__FUNC_TEST_IN9 (MTK 99 #define MT6397_PIN_18_COL6__FUNC_TEST_IN9 (MTK_PIN_NO(18) | 6) 101 #define MT6397_PIN_18_COL6__FUNC_TEST_OUT9 (MT 100 #define MT6397_PIN_18_COL6__FUNC_TEST_OUT9 (MTK_PIN_NO(18) | 7) 102 101 103 #define MT6397_PIN_19_COL7__FUNC_GPIO19 (MTK_P 102 #define MT6397_PIN_19_COL7__FUNC_GPIO19 (MTK_PIN_NO(19) | 0) 104 #define MT6397_PIN_19_COL7__FUNC_COL7 (MTK_PIN 103 #define MT6397_PIN_19_COL7__FUNC_COL7 (MTK_PIN_NO(19) | 1) 105 #define MT6397_PIN_19_COL7__FUNC_EINT17_1X (MT 104 #define MT6397_PIN_19_COL7__FUNC_EINT17_1X (MTK_PIN_NO(19) | 2) 106 #define MT6397_PIN_19_COL7__FUNC_PWM2_3X (MTK_ 105 #define MT6397_PIN_19_COL7__FUNC_PWM2_3X (MTK_PIN_NO(19) | 3) 107 #define MT6397_PIN_19_COL7__FUNC_GPIO32K_1 (MT 106 #define MT6397_PIN_19_COL7__FUNC_GPIO32K_1 (MTK_PIN_NO(19) | 4) 108 #define MT6397_PIN_19_COL7__FUNC_GPIO26M_1 (MT 107 #define MT6397_PIN_19_COL7__FUNC_GPIO26M_1 (MTK_PIN_NO(19) | 5) 109 #define MT6397_PIN_19_COL7__FUNC_TEST_IN10 (MT 108 #define MT6397_PIN_19_COL7__FUNC_TEST_IN10 (MTK_PIN_NO(19) | 6) 110 #define MT6397_PIN_19_COL7__FUNC_TEST_OUT10 (M 109 #define MT6397_PIN_19_COL7__FUNC_TEST_OUT10 (MTK_PIN_NO(19) | 7) 111 110 112 #define MT6397_PIN_20_ROW0__FUNC_GPIO20 (MTK_P 111 #define MT6397_PIN_20_ROW0__FUNC_GPIO20 (MTK_PIN_NO(20) | 0) 113 #define MT6397_PIN_20_ROW0__FUNC_ROW0 (MTK_PIN 112 #define MT6397_PIN_20_ROW0__FUNC_ROW0 (MTK_PIN_NO(20) | 1) 114 #define MT6397_PIN_20_ROW0__FUNC_EINT18_1X (MT 113 #define MT6397_PIN_20_ROW0__FUNC_EINT18_1X (MTK_PIN_NO(20) | 2) 115 #define MT6397_PIN_20_ROW0__FUNC_SCL0_3X (MTK_ 114 #define MT6397_PIN_20_ROW0__FUNC_SCL0_3X (MTK_PIN_NO(20) | 3) 116 #define MT6397_PIN_20_ROW0__FUNC_TEST_IN11 (MT 115 #define MT6397_PIN_20_ROW0__FUNC_TEST_IN11 (MTK_PIN_NO(20) | 6) 117 #define MT6397_PIN_20_ROW0__FUNC_TEST_OUT11 (M 116 #define MT6397_PIN_20_ROW0__FUNC_TEST_OUT11 (MTK_PIN_NO(20) | 7) 118 117 119 #define MT6397_PIN_21_ROW1__FUNC_GPIO21 (MTK_P 118 #define MT6397_PIN_21_ROW1__FUNC_GPIO21 (MTK_PIN_NO(21) | 0) 120 #define MT6397_PIN_21_ROW1__FUNC_ROW1 (MTK_PIN 119 #define MT6397_PIN_21_ROW1__FUNC_ROW1 (MTK_PIN_NO(21) | 1) 121 #define MT6397_PIN_21_ROW1__FUNC_EINT19_1X (MT 120 #define MT6397_PIN_21_ROW1__FUNC_EINT19_1X (MTK_PIN_NO(21) | 2) 122 #define MT6397_PIN_21_ROW1__FUNC_SDA0_3X (MTK_ 121 #define MT6397_PIN_21_ROW1__FUNC_SDA0_3X (MTK_PIN_NO(21) | 3) 123 #define MT6397_PIN_21_ROW1__FUNC_AUD_TSTCK (MT 122 #define MT6397_PIN_21_ROW1__FUNC_AUD_TSTCK (MTK_PIN_NO(21) | 4) 124 #define MT6397_PIN_21_ROW1__FUNC_TEST_IN12 (MT 123 #define MT6397_PIN_21_ROW1__FUNC_TEST_IN12 (MTK_PIN_NO(21) | 6) 125 #define MT6397_PIN_21_ROW1__FUNC_TEST_OUT12 (M 124 #define MT6397_PIN_21_ROW1__FUNC_TEST_OUT12 (MTK_PIN_NO(21) | 7) 126 125 127 #define MT6397_PIN_22_ROW2__FUNC_GPIO22 (MTK_P 126 #define MT6397_PIN_22_ROW2__FUNC_GPIO22 (MTK_PIN_NO(22) | 0) 128 #define MT6397_PIN_22_ROW2__FUNC_ROW2 (MTK_PIN 127 #define MT6397_PIN_22_ROW2__FUNC_ROW2 (MTK_PIN_NO(22) | 1) 129 #define MT6397_PIN_22_ROW2__FUNC_EINT20_1X (MT 128 #define MT6397_PIN_22_ROW2__FUNC_EINT20_1X (MTK_PIN_NO(22) | 2) 130 #define MT6397_PIN_22_ROW2__FUNC_SCL1_3X (MTK_ 129 #define MT6397_PIN_22_ROW2__FUNC_SCL1_3X (MTK_PIN_NO(22) | 3) 131 #define MT6397_PIN_22_ROW2__FUNC_TEST_IN13 (MT 130 #define MT6397_PIN_22_ROW2__FUNC_TEST_IN13 (MTK_PIN_NO(22) | 6) 132 #define MT6397_PIN_22_ROW2__FUNC_TEST_OUT13 (M 131 #define MT6397_PIN_22_ROW2__FUNC_TEST_OUT13 (MTK_PIN_NO(22) | 7) 133 132 134 #define MT6397_PIN_23_ROW3__FUNC_GPIO23 (MTK_P 133 #define MT6397_PIN_23_ROW3__FUNC_GPIO23 (MTK_PIN_NO(23) | 0) 135 #define MT6397_PIN_23_ROW3__FUNC_ROW3 (MTK_PIN 134 #define MT6397_PIN_23_ROW3__FUNC_ROW3 (MTK_PIN_NO(23) | 1) 136 #define MT6397_PIN_23_ROW3__FUNC_EINT21_1X (MT 135 #define MT6397_PIN_23_ROW3__FUNC_EINT21_1X (MTK_PIN_NO(23) | 2) 137 #define MT6397_PIN_23_ROW3__FUNC_SDA1_3X (MTK_ 136 #define MT6397_PIN_23_ROW3__FUNC_SDA1_3X (MTK_PIN_NO(23) | 3) 138 #define MT6397_PIN_23_ROW3__FUNC_TEST_IN14 (MT 137 #define MT6397_PIN_23_ROW3__FUNC_TEST_IN14 (MTK_PIN_NO(23) | 6) 139 #define MT6397_PIN_23_ROW3__FUNC_TEST_OUT14 (M 138 #define MT6397_PIN_23_ROW3__FUNC_TEST_OUT14 (MTK_PIN_NO(23) | 7) 140 139 141 #define MT6397_PIN_24_ROW4__FUNC_GPIO24 (MTK_P 140 #define MT6397_PIN_24_ROW4__FUNC_GPIO24 (MTK_PIN_NO(24) | 0) 142 #define MT6397_PIN_24_ROW4__FUNC_ROW4 (MTK_PIN 141 #define MT6397_PIN_24_ROW4__FUNC_ROW4 (MTK_PIN_NO(24) | 1) 143 #define MT6397_PIN_24_ROW4__FUNC_EINT22_1X (MT 142 #define MT6397_PIN_24_ROW4__FUNC_EINT22_1X (MTK_PIN_NO(24) | 2) 144 #define MT6397_PIN_24_ROW4__FUNC_SCL2_3X (MTK_ 143 #define MT6397_PIN_24_ROW4__FUNC_SCL2_3X (MTK_PIN_NO(24) | 3) 145 #define MT6397_PIN_24_ROW4__FUNC_TEST_IN15 (MT 144 #define MT6397_PIN_24_ROW4__FUNC_TEST_IN15 (MTK_PIN_NO(24) | 6) 146 #define MT6397_PIN_24_ROW4__FUNC_TEST_OUT15 (M 145 #define MT6397_PIN_24_ROW4__FUNC_TEST_OUT15 (MTK_PIN_NO(24) | 7) 147 146 148 #define MT6397_PIN_25_ROW5__FUNC_GPIO25 (MTK_P 147 #define MT6397_PIN_25_ROW5__FUNC_GPIO25 (MTK_PIN_NO(25) | 0) 149 #define MT6397_PIN_25_ROW5__FUNC_ROW5 (MTK_PIN 148 #define MT6397_PIN_25_ROW5__FUNC_ROW5 (MTK_PIN_NO(25) | 1) 150 #define MT6397_PIN_25_ROW5__FUNC_EINT23_1X (MT 149 #define MT6397_PIN_25_ROW5__FUNC_EINT23_1X (MTK_PIN_NO(25) | 2) 151 #define MT6397_PIN_25_ROW5__FUNC_SDA2_3X (MTK_ 150 #define MT6397_PIN_25_ROW5__FUNC_SDA2_3X (MTK_PIN_NO(25) | 3) 152 #define MT6397_PIN_25_ROW5__FUNC_TEST_IN16 (MT 151 #define MT6397_PIN_25_ROW5__FUNC_TEST_IN16 (MTK_PIN_NO(25) | 6) 153 #define MT6397_PIN_25_ROW5__FUNC_TEST_OUT16 (M 152 #define MT6397_PIN_25_ROW5__FUNC_TEST_OUT16 (MTK_PIN_NO(25) | 7) 154 153 155 #define MT6397_PIN_26_ROW6__FUNC_GPIO26 (MTK_P 154 #define MT6397_PIN_26_ROW6__FUNC_GPIO26 (MTK_PIN_NO(26) | 0) 156 #define MT6397_PIN_26_ROW6__FUNC_ROW6 (MTK_PIN 155 #define MT6397_PIN_26_ROW6__FUNC_ROW6 (MTK_PIN_NO(26) | 1) 157 #define MT6397_PIN_26_ROW6__FUNC_EINT24_1X (MT 156 #define MT6397_PIN_26_ROW6__FUNC_EINT24_1X (MTK_PIN_NO(26) | 2) 158 #define MT6397_PIN_26_ROW6__FUNC_PWM3_3X (MTK_ 157 #define MT6397_PIN_26_ROW6__FUNC_PWM3_3X (MTK_PIN_NO(26) | 3) 159 #define MT6397_PIN_26_ROW6__FUNC_GPIO32K_2 (MT 158 #define MT6397_PIN_26_ROW6__FUNC_GPIO32K_2 (MTK_PIN_NO(26) | 4) 160 #define MT6397_PIN_26_ROW6__FUNC_GPIO26M_2 (MT 159 #define MT6397_PIN_26_ROW6__FUNC_GPIO26M_2 (MTK_PIN_NO(26) | 5) 161 #define MT6397_PIN_26_ROW6__FUNC_TEST_IN17 (MT 160 #define MT6397_PIN_26_ROW6__FUNC_TEST_IN17 (MTK_PIN_NO(26) | 6) 162 #define MT6397_PIN_26_ROW6__FUNC_TEST_OUT17 (M 161 #define MT6397_PIN_26_ROW6__FUNC_TEST_OUT17 (MTK_PIN_NO(26) | 7) 163 162 164 #define MT6397_PIN_27_ROW7__FUNC_GPIO27 (MTK_P 163 #define MT6397_PIN_27_ROW7__FUNC_GPIO27 (MTK_PIN_NO(27) | 0) 165 #define MT6397_PIN_27_ROW7__FUNC_ROW7 (MTK_PIN 164 #define MT6397_PIN_27_ROW7__FUNC_ROW7 (MTK_PIN_NO(27) | 1) 166 #define MT6397_PIN_27_ROW7__FUNC_EINT3_1X (MTK 165 #define MT6397_PIN_27_ROW7__FUNC_EINT3_1X (MTK_PIN_NO(27) | 2) 167 #define MT6397_PIN_27_ROW7__FUNC_CBUS (MTK_PIN 166 #define MT6397_PIN_27_ROW7__FUNC_CBUS (MTK_PIN_NO(27) | 3) 168 #define MT6397_PIN_27_ROW7__FUNC_GPIO32K_3 (MT 167 #define MT6397_PIN_27_ROW7__FUNC_GPIO32K_3 (MTK_PIN_NO(27) | 4) 169 #define MT6397_PIN_27_ROW7__FUNC_GPIO26M_3 (MT 168 #define MT6397_PIN_27_ROW7__FUNC_GPIO26M_3 (MTK_PIN_NO(27) | 5) 170 #define MT6397_PIN_27_ROW7__FUNC_TEST_IN18 (MT 169 #define MT6397_PIN_27_ROW7__FUNC_TEST_IN18 (MTK_PIN_NO(27) | 6) 171 #define MT6397_PIN_27_ROW7__FUNC_TEST_OUT18 (M 170 #define MT6397_PIN_27_ROW7__FUNC_TEST_OUT18 (MTK_PIN_NO(27) | 7) 172 171 173 #define MT6397_PIN_28_PWM1__FUNC_GPIO28 (MTK_P 172 #define MT6397_PIN_28_PWM1__FUNC_GPIO28 (MTK_PIN_NO(28) | 0) 174 #define MT6397_PIN_28_PWM1__FUNC_PWM1 (MTK_PIN 173 #define MT6397_PIN_28_PWM1__FUNC_PWM1 (MTK_PIN_NO(28) | 1) 175 #define MT6397_PIN_28_PWM1__FUNC_EINT4_1X (MTK 174 #define MT6397_PIN_28_PWM1__FUNC_EINT4_1X (MTK_PIN_NO(28) | 2) 176 #define MT6397_PIN_28_PWM1__FUNC_GPIO32K_4 (MT 175 #define MT6397_PIN_28_PWM1__FUNC_GPIO32K_4 (MTK_PIN_NO(28) | 4) 177 #define MT6397_PIN_28_PWM1__FUNC_GPIO26M_4 (MT 176 #define MT6397_PIN_28_PWM1__FUNC_GPIO26M_4 (MTK_PIN_NO(28) | 5) 178 #define MT6397_PIN_28_PWM1__FUNC_TEST_IN19 (MT 177 #define MT6397_PIN_28_PWM1__FUNC_TEST_IN19 (MTK_PIN_NO(28) | 6) 179 #define MT6397_PIN_28_PWM1__FUNC_TEST_OUT19 (M 178 #define MT6397_PIN_28_PWM1__FUNC_TEST_OUT19 (MTK_PIN_NO(28) | 7) 180 179 181 #define MT6397_PIN_29_PWM2__FUNC_GPIO29 (MTK_P 180 #define MT6397_PIN_29_PWM2__FUNC_GPIO29 (MTK_PIN_NO(29) | 0) 182 #define MT6397_PIN_29_PWM2__FUNC_PWM2 (MTK_PIN 181 #define MT6397_PIN_29_PWM2__FUNC_PWM2 (MTK_PIN_NO(29) | 1) 183 #define MT6397_PIN_29_PWM2__FUNC_EINT5_1X (MTK 182 #define MT6397_PIN_29_PWM2__FUNC_EINT5_1X (MTK_PIN_NO(29) | 2) 184 #define MT6397_PIN_29_PWM2__FUNC_GPIO32K_5 (MT 183 #define MT6397_PIN_29_PWM2__FUNC_GPIO32K_5 (MTK_PIN_NO(29) | 4) 185 #define MT6397_PIN_29_PWM2__FUNC_GPIO26M_5 (MT 184 #define MT6397_PIN_29_PWM2__FUNC_GPIO26M_5 (MTK_PIN_NO(29) | 5) 186 #define MT6397_PIN_29_PWM2__FUNC_TEST_IN20 (MT 185 #define MT6397_PIN_29_PWM2__FUNC_TEST_IN20 (MTK_PIN_NO(29) | 6) 187 #define MT6397_PIN_29_PWM2__FUNC_TEST_OUT20 (M 186 #define MT6397_PIN_29_PWM2__FUNC_TEST_OUT20 (MTK_PIN_NO(29) | 7) 188 187 189 #define MT6397_PIN_30_PWM3__FUNC_GPIO30 (MTK_P 188 #define MT6397_PIN_30_PWM3__FUNC_GPIO30 (MTK_PIN_NO(30) | 0) 190 #define MT6397_PIN_30_PWM3__FUNC_PWM3 (MTK_PIN 189 #define MT6397_PIN_30_PWM3__FUNC_PWM3 (MTK_PIN_NO(30) | 1) 191 #define MT6397_PIN_30_PWM3__FUNC_EINT6_1X (MTK 190 #define MT6397_PIN_30_PWM3__FUNC_EINT6_1X (MTK_PIN_NO(30) | 2) 192 #define MT6397_PIN_30_PWM3__FUNC_COL0 (MTK_PIN 191 #define MT6397_PIN_30_PWM3__FUNC_COL0 (MTK_PIN_NO(30) | 3) 193 #define MT6397_PIN_30_PWM3__FUNC_GPIO32K_6 (MT 192 #define MT6397_PIN_30_PWM3__FUNC_GPIO32K_6 (MTK_PIN_NO(30) | 4) 194 #define MT6397_PIN_30_PWM3__FUNC_GPIO26M_6 (MT 193 #define MT6397_PIN_30_PWM3__FUNC_GPIO26M_6 (MTK_PIN_NO(30) | 5) 195 #define MT6397_PIN_30_PWM3__FUNC_TEST_IN21 (MT 194 #define MT6397_PIN_30_PWM3__FUNC_TEST_IN21 (MTK_PIN_NO(30) | 6) 196 #define MT6397_PIN_30_PWM3__FUNC_TEST_OUT21 (M 195 #define MT6397_PIN_30_PWM3__FUNC_TEST_OUT21 (MTK_PIN_NO(30) | 7) 197 196 198 #define MT6397_PIN_31_SCL0__FUNC_GPIO31 (MTK_P 197 #define MT6397_PIN_31_SCL0__FUNC_GPIO31 (MTK_PIN_NO(31) | 0) 199 #define MT6397_PIN_31_SCL0__FUNC_SCL0 (MTK_PIN 198 #define MT6397_PIN_31_SCL0__FUNC_SCL0 (MTK_PIN_NO(31) | 1) 200 #define MT6397_PIN_31_SCL0__FUNC_EINT7_1X (MTK 199 #define MT6397_PIN_31_SCL0__FUNC_EINT7_1X (MTK_PIN_NO(31) | 2) 201 #define MT6397_PIN_31_SCL0__FUNC_PWM1_2X (MTK_ 200 #define MT6397_PIN_31_SCL0__FUNC_PWM1_2X (MTK_PIN_NO(31) | 3) 202 #define MT6397_PIN_31_SCL0__FUNC_TEST_IN22 (MT 201 #define MT6397_PIN_31_SCL0__FUNC_TEST_IN22 (MTK_PIN_NO(31) | 6) 203 #define MT6397_PIN_31_SCL0__FUNC_TEST_OUT22 (M 202 #define MT6397_PIN_31_SCL0__FUNC_TEST_OUT22 (MTK_PIN_NO(31) | 7) 204 203 205 #define MT6397_PIN_32_SDA0__FUNC_GPIO32 (MTK_P 204 #define MT6397_PIN_32_SDA0__FUNC_GPIO32 (MTK_PIN_NO(32) | 0) 206 #define MT6397_PIN_32_SDA0__FUNC_SDA0 (MTK_PIN 205 #define MT6397_PIN_32_SDA0__FUNC_SDA0 (MTK_PIN_NO(32) | 1) 207 #define MT6397_PIN_32_SDA0__FUNC_EINT8_1X (MTK 206 #define MT6397_PIN_32_SDA0__FUNC_EINT8_1X (MTK_PIN_NO(32) | 2) 208 #define MT6397_PIN_32_SDA0__FUNC_TEST_IN23 (MT 207 #define MT6397_PIN_32_SDA0__FUNC_TEST_IN23 (MTK_PIN_NO(32) | 6) 209 #define MT6397_PIN_32_SDA0__FUNC_TEST_OUT23 (M 208 #define MT6397_PIN_32_SDA0__FUNC_TEST_OUT23 (MTK_PIN_NO(32) | 7) 210 209 211 #define MT6397_PIN_33_SCL1__FUNC_GPIO33 (MTK_P 210 #define MT6397_PIN_33_SCL1__FUNC_GPIO33 (MTK_PIN_NO(33) | 0) 212 #define MT6397_PIN_33_SCL1__FUNC_SCL1 (MTK_PIN 211 #define MT6397_PIN_33_SCL1__FUNC_SCL1 (MTK_PIN_NO(33) | 1) 213 #define MT6397_PIN_33_SCL1__FUNC_EINT9_1X (MTK 212 #define MT6397_PIN_33_SCL1__FUNC_EINT9_1X (MTK_PIN_NO(33) | 2) 214 #define MT6397_PIN_33_SCL1__FUNC_PWM2_2X (MTK_ 213 #define MT6397_PIN_33_SCL1__FUNC_PWM2_2X (MTK_PIN_NO(33) | 3) 215 #define MT6397_PIN_33_SCL1__FUNC_TEST_IN24 (MT 214 #define MT6397_PIN_33_SCL1__FUNC_TEST_IN24 (MTK_PIN_NO(33) | 6) 216 #define MT6397_PIN_33_SCL1__FUNC_TEST_OUT24 (M 215 #define MT6397_PIN_33_SCL1__FUNC_TEST_OUT24 (MTK_PIN_NO(33) | 7) 217 216 218 #define MT6397_PIN_34_SDA1__FUNC_GPIO34 (MTK_P 217 #define MT6397_PIN_34_SDA1__FUNC_GPIO34 (MTK_PIN_NO(34) | 0) 219 #define MT6397_PIN_34_SDA1__FUNC_SDA1 (MTK_PIN 218 #define MT6397_PIN_34_SDA1__FUNC_SDA1 (MTK_PIN_NO(34) | 1) 220 #define MT6397_PIN_34_SDA1__FUNC_EINT0_1X (MTK 219 #define MT6397_PIN_34_SDA1__FUNC_EINT0_1X (MTK_PIN_NO(34) | 2) 221 #define MT6397_PIN_34_SDA1__FUNC_TEST_IN25 (MT 220 #define MT6397_PIN_34_SDA1__FUNC_TEST_IN25 (MTK_PIN_NO(34) | 6) 222 #define MT6397_PIN_34_SDA1__FUNC_TEST_OUT25 (M 221 #define MT6397_PIN_34_SDA1__FUNC_TEST_OUT25 (MTK_PIN_NO(34) | 7) 223 222 224 #define MT6397_PIN_35_SCL2__FUNC_GPIO35 (MTK_P 223 #define MT6397_PIN_35_SCL2__FUNC_GPIO35 (MTK_PIN_NO(35) | 0) 225 #define MT6397_PIN_35_SCL2__FUNC_SCL2 (MTK_PIN 224 #define MT6397_PIN_35_SCL2__FUNC_SCL2 (MTK_PIN_NO(35) | 1) 226 #define MT6397_PIN_35_SCL2__FUNC_EINT1_1X (MTK 225 #define MT6397_PIN_35_SCL2__FUNC_EINT1_1X (MTK_PIN_NO(35) | 2) 227 #define MT6397_PIN_35_SCL2__FUNC_PWM3_2X (MTK_ 226 #define MT6397_PIN_35_SCL2__FUNC_PWM3_2X (MTK_PIN_NO(35) | 3) 228 #define MT6397_PIN_35_SCL2__FUNC_TEST_IN26 (MT 227 #define MT6397_PIN_35_SCL2__FUNC_TEST_IN26 (MTK_PIN_NO(35) | 6) 229 #define MT6397_PIN_35_SCL2__FUNC_TEST_OUT26 (M 228 #define MT6397_PIN_35_SCL2__FUNC_TEST_OUT26 (MTK_PIN_NO(35) | 7) 230 229 231 #define MT6397_PIN_36_SDA2__FUNC_GPIO36 (MTK_P 230 #define MT6397_PIN_36_SDA2__FUNC_GPIO36 (MTK_PIN_NO(36) | 0) 232 #define MT6397_PIN_36_SDA2__FUNC_SDA2 (MTK_PIN 231 #define MT6397_PIN_36_SDA2__FUNC_SDA2 (MTK_PIN_NO(36) | 1) 233 #define MT6397_PIN_36_SDA2__FUNC_EINT2_1X (MTK 232 #define MT6397_PIN_36_SDA2__FUNC_EINT2_1X (MTK_PIN_NO(36) | 2) 234 #define MT6397_PIN_36_SDA2__FUNC_TEST_IN27 (MT 233 #define MT6397_PIN_36_SDA2__FUNC_TEST_IN27 (MTK_PIN_NO(36) | 6) 235 #define MT6397_PIN_36_SDA2__FUNC_TEST_OUT27 (M 234 #define MT6397_PIN_36_SDA2__FUNC_TEST_OUT27 (MTK_PIN_NO(36) | 7) 236 235 237 #define MT6397_PIN_37_HDMISD__FUNC_GPIO37 (MTK 236 #define MT6397_PIN_37_HDMISD__FUNC_GPIO37 (MTK_PIN_NO(37) | 0) 238 #define MT6397_PIN_37_HDMISD__FUNC_HDMISD (MTK 237 #define MT6397_PIN_37_HDMISD__FUNC_HDMISD (MTK_PIN_NO(37) | 1) 239 #define MT6397_PIN_37_HDMISD__FUNC_TEST_IN28 ( 238 #define MT6397_PIN_37_HDMISD__FUNC_TEST_IN28 (MTK_PIN_NO(37) | 6) 240 #define MT6397_PIN_37_HDMISD__FUNC_TEST_OUT28 239 #define MT6397_PIN_37_HDMISD__FUNC_TEST_OUT28 (MTK_PIN_NO(37) | 7) 241 240 242 #define MT6397_PIN_38_HDMISCK__FUNC_GPIO38 (MT 241 #define MT6397_PIN_38_HDMISCK__FUNC_GPIO38 (MTK_PIN_NO(38) | 0) 243 #define MT6397_PIN_38_HDMISCK__FUNC_HDMISCK (M 242 #define MT6397_PIN_38_HDMISCK__FUNC_HDMISCK (MTK_PIN_NO(38) | 1) 244 #define MT6397_PIN_38_HDMISCK__FUNC_TEST_IN29 243 #define MT6397_PIN_38_HDMISCK__FUNC_TEST_IN29 (MTK_PIN_NO(38) | 6) 245 #define MT6397_PIN_38_HDMISCK__FUNC_TEST_OUT29 244 #define MT6397_PIN_38_HDMISCK__FUNC_TEST_OUT29 (MTK_PIN_NO(38) | 7) 246 245 247 #define MT6397_PIN_39_HTPLG__FUNC_GPIO39 (MTK_ 246 #define MT6397_PIN_39_HTPLG__FUNC_GPIO39 (MTK_PIN_NO(39) | 0) 248 #define MT6397_PIN_39_HTPLG__FUNC_HTPLG (MTK_P 247 #define MT6397_PIN_39_HTPLG__FUNC_HTPLG (MTK_PIN_NO(39) | 1) 249 #define MT6397_PIN_39_HTPLG__FUNC_TEST_IN30 (M 248 #define MT6397_PIN_39_HTPLG__FUNC_TEST_IN30 (MTK_PIN_NO(39) | 6) 250 #define MT6397_PIN_39_HTPLG__FUNC_TEST_OUT30 ( 249 #define MT6397_PIN_39_HTPLG__FUNC_TEST_OUT30 (MTK_PIN_NO(39) | 7) 251 250 252 #define MT6397_PIN_40_CEC__FUNC_GPIO40 (MTK_PI 251 #define MT6397_PIN_40_CEC__FUNC_GPIO40 (MTK_PIN_NO(40) | 0) 253 #define MT6397_PIN_40_CEC__FUNC_CEC (MTK_PIN_N 252 #define MT6397_PIN_40_CEC__FUNC_CEC (MTK_PIN_NO(40) | 1) 254 #define MT6397_PIN_40_CEC__FUNC_TEST_IN31 (MTK 253 #define MT6397_PIN_40_CEC__FUNC_TEST_IN31 (MTK_PIN_NO(40) | 6) 255 #define MT6397_PIN_40_CEC__FUNC_TEST_OUT31 (MT 254 #define MT6397_PIN_40_CEC__FUNC_TEST_OUT31 (MTK_PIN_NO(40) | 7) 256 255 257 #endif /* __DTS_MT6397_PINFUNC_H */ 256 #endif /* __DTS_MT6397_PINFUNC_H */ 258 257
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.