1 /* 2 * NOTE: Autogenerated file by kinetis_cfg_utils.py 3 * for S32K118_LQFP64/signal_configuration.xml 4 * 5 * Copyright 2023, NXP 6 * SPDX-License-Identifier: Apache-2.0 7 */ 8 9 #ifndef _ZEPHYR_DTS_BINDING_S32K118_LQFP64_ 10 #define _ZEPHYR_DTS_BINDING_S32K118_LQFP64_ 11 12 #define KINETIS_MUX(port, pin, mux) \ 13 (((((port) - 'A') & 0xF) << 28) | \ 14 (((pin) & 0x3F) << 22) | \ 15 (((mux) & 0x7) << 8)) 16 17 #define CMP0_IN0_PTA0 KINETIS_MUX('A',0,0) /* PTA0 */ 18 #define ADC0_SE0_PTA0 KINETIS_MUX('A',0,0) /* PTA0 */ 19 #define PTA0 KINETIS_MUX('A',0,1) /* PTA0 */ 20 #define LPI2C0_SCLS_PTA0 KINETIS_MUX('A',0,3) /* PTA0 */ 21 #define FXIO_D2_PTA0 KINETIS_MUX('A',0,4) /* PTA0 */ 22 #define LPUART0_CTS_PTA0 KINETIS_MUX('A',0,6) /* PTA0 */ 23 #define TRGMUX_OUT3_PTA0 KINETIS_MUX('A',0,7) /* PTA0 */ 24 #define ADC0_SE1_PTA1 KINETIS_MUX('A',1,0) /* PTA1 */ 25 #define CMP0_IN1_PTA1 KINETIS_MUX('A',1,0) /* PTA1 */ 26 #define PTA1 KINETIS_MUX('A',1,1) /* PTA1 */ 27 #define FTM1_CH1_PTA1 KINETIS_MUX('A',1,2) /* PTA1 */ 28 #define LPI2C0_SDAS_PTA1 KINETIS_MUX('A',1,3) /* PTA1 */ 29 #define FXIO_D3_PTA1 KINETIS_MUX('A',1,4) /* PTA1 */ 30 #define FTM1_QD_PHA_PTA1 KINETIS_MUX('A',1,5) /* PTA1 */ 31 #define LPUART0_RTS_PTA1 KINETIS_MUX('A',1,6) /* PTA1 */ 32 #define TRGMUX_OUT0_PTA1 KINETIS_MUX('A',1,7) /* PTA1 */ 33 #define PTA2 KINETIS_MUX('A',2,1) /* PTA2 */ 34 #define LPI2C0_SDA_PTA2 KINETIS_MUX('A',2,3) /* PTA2 */ 35 #define FXIO_D4_PTA2 KINETIS_MUX('A',2,5) /* PTA2 */ 36 #define LPUART0_RX_PTA2 KINETIS_MUX('A',2,6) /* PTA2 */ 37 #define PTA3 KINETIS_MUX('A',3,1) /* PTA3 */ 38 #define LPI2C0_SCL_PTA3 KINETIS_MUX('A',3,3) /* PTA3 */ 39 #define FXIO_D5_PTA3 KINETIS_MUX('A',3,5) /* PTA3 */ 40 #define LPUART0_TX_PTA3 KINETIS_MUX('A',3,6) /* PTA3 */ 41 #define PTA4 KINETIS_MUX('A',4,1) /* PTA4 */ 42 #define CMP0_OUT_PTA4 KINETIS_MUX('A',4,4) /* PTA4 */ 43 #define JTAG_TMS_PTA4 KINETIS_MUX('A',4,7) /* PTA4 */ 44 #define SWD_DIO_PTA4 KINETIS_MUX('A',4,7) /* PTA4 */ 45 #define PTA5 KINETIS_MUX('A',5,1) /* PTA5 */ 46 #define TCLK1_PTA5 KINETIS_MUX('A',5,3) /* PTA5 */ 47 #define RESET_b_PTA5 KINETIS_MUX('A',5,7) /* PTA5 */ 48 #define ADC0_SE2_PTA6 KINETIS_MUX('A',6,0) /* PTA6 */ 49 #define PTA6 KINETIS_MUX('A',6,1) /* PTA6 */ 50 #define FTM0_FLT1_PTA6 KINETIS_MUX('A',6,2) /* PTA6 */ 51 #define LPSPI1_PCS1_PTA6 KINETIS_MUX('A',6,3) /* PTA6 */ 52 #define LPUART1_CTS_PTA6 KINETIS_MUX('A',6,6) /* PTA6 */ 53 #define ADC0_SE3_PTA7 KINETIS_MUX('A',7,0) /* PTA7 */ 54 #define PTA7 KINETIS_MUX('A',7,1) /* PTA7 */ 55 #define FTM0_FLT2_PTA7 KINETIS_MUX('A',7,2) /* PTA7 */ 56 #define RTC_CLKIN_PTA7 KINETIS_MUX('A',7,4) /* PTA7 */ 57 #define LPUART1_RTS_PTA7 KINETIS_MUX('A',7,6) /* PTA7 */ 58 #define PTA10 KINETIS_MUX('A',10,1) /* PTA10 */ 59 #define FTM1_CH4_PTA10 KINETIS_MUX('A',10,2) /* PTA10 */ 60 #define FXIO_D0_PTA10 KINETIS_MUX('A',10,4) /* PTA10 */ 61 #define JTAG_TDO_PTA10 KINETIS_MUX('A',10,7) /* PTA10 */ 62 #define PTA11 KINETIS_MUX('A',11,1) /* PTA11 */ 63 #define FTM1_CH5_PTA11 KINETIS_MUX('A',11,2) /* PTA11 */ 64 #define FXIO_D1_PTA11 KINETIS_MUX('A',11,4) /* PTA11 */ 65 #define CMP0_RRT_PTA11 KINETIS_MUX('A',11,5) /* PTA11 */ 66 #define PTA12 KINETIS_MUX('A',12,1) /* PTA12 */ 67 #define FTM1_CH6_PTA12 KINETIS_MUX('A',12,2) /* PTA12 */ 68 #define PTA13 KINETIS_MUX('A',13,1) /* PTA13 */ 69 #define FTM1_CH7_PTA13 KINETIS_MUX('A',13,2) /* PTA13 */ 70 #define ADC0_SE4_PTB0 KINETIS_MUX('B',0,0) /* PTB0 */ 71 #define PTB0 KINETIS_MUX('B',0,1) /* PTB0 */ 72 #define LPUART0_RX_PTB0 KINETIS_MUX('B',0,2) /* PTB0 */ 73 #define LPSPI0_PCS0_PTB0 KINETIS_MUX('B',0,3) /* PTB0 */ 74 #define LPTMR0_ALT3_PTB0 KINETIS_MUX('B',0,4) /* PTB0 */ 75 #define CAN0_RX_PTB0 KINETIS_MUX('B',0,5) /* PTB0 */ 76 #define ADC0_SE5_PTB1 KINETIS_MUX('B',1,0) /* PTB1 */ 77 #define PTB1 KINETIS_MUX('B',1,1) /* PTB1 */ 78 #define LPUART0_TX_PTB1 KINETIS_MUX('B',1,2) /* PTB1 */ 79 #define LPSPI0_SOUT_PTB1 KINETIS_MUX('B',1,3) /* PTB1 */ 80 #define TCLK0_PTB1 KINETIS_MUX('B',1,4) /* PTB1 */ 81 #define CAN0_TX_PTB1 KINETIS_MUX('B',1,5) /* PTB1 */ 82 #define ADC0_SE6_PTB2 KINETIS_MUX('B',2,0) /* PTB2 */ 83 #define PTB2 KINETIS_MUX('B',2,1) /* PTB2 */ 84 #define FTM1_CH0_PTB2 KINETIS_MUX('B',2,2) /* PTB2 */ 85 #define LPSPI0_SCK_PTB2 KINETIS_MUX('B',2,3) /* PTB2 */ 86 #define FTM1_QD_PHB_PTB2 KINETIS_MUX('B',2,4) /* PTB2 */ 87 #define TRGMUX_IN3_PTB2 KINETIS_MUX('B',2,6) /* PTB2 */ 88 #define ADC0_SE7_PTB3 KINETIS_MUX('B',3,0) /* PTB3 */ 89 #define PTB3 KINETIS_MUX('B',3,1) /* PTB3 */ 90 #define FTM1_CH1_PTB3 KINETIS_MUX('B',3,2) /* PTB3 */ 91 #define LPSPI0_SIN_PTB3 KINETIS_MUX('B',3,3) /* PTB3 */ 92 #define FTM1_QD_PHA_PTB3 KINETIS_MUX('B',3,4) /* PTB3 */ 93 #define TRGMUX_IN2_PTB3 KINETIS_MUX('B',3,6) /* PTB3 */ 94 #define PTB4 KINETIS_MUX('B',4,1) /* PTB4 */ 95 #define FTM0_CH4_PTB4 KINETIS_MUX('B',4,2) /* PTB4 */ 96 #define LPSPI0_SOUT_PTB4 KINETIS_MUX('B',4,3) /* PTB4 */ 97 #define TRGMUX_IN1_PTB4 KINETIS_MUX('B',4,6) /* PTB4 */ 98 #define PTB5 KINETIS_MUX('B',5,1) /* PTB5 */ 99 #define FTM0_CH5_PTB5 KINETIS_MUX('B',5,2) /* PTB5 */ 100 #define LPSPI0_PCS1_PTB5 KINETIS_MUX('B',5,3) /* PTB5 */ 101 #define LPSPI0_PCS0_PTB5 KINETIS_MUX('B',5,4) /* PTB5 */ 102 #define CLKOUT_PTB5 KINETIS_MUX('B',5,5) /* PTB5 */ 103 #define TRGMUX_IN0_PTB5 KINETIS_MUX('B',5,6) /* PTB5 */ 104 #define XTAL_PTB6 KINETIS_MUX('B',6,0) /* PTB6 */ 105 #define PTB6 KINETIS_MUX('B',6,1) /* PTB6 */ 106 #define LPI2C0_SDA_PTB6 KINETIS_MUX('B',6,2) /* PTB6 */ 107 #define EXTAL_PTB7 KINETIS_MUX('B',7,0) /* PTB7 */ 108 #define PTB7 KINETIS_MUX('B',7,1) /* PTB7 */ 109 #define LPI2C0_SCL_PTB7 KINETIS_MUX('B',7,2) /* PTB7 */ 110 #define PTB12 KINETIS_MUX('B',12,1) /* PTB12 */ 111 #define FTM0_CH0_PTB12 KINETIS_MUX('B',12,2) /* PTB12 */ 112 #define PTB13 KINETIS_MUX('B',13,1) /* PTB13 */ 113 #define FTM0_CH1_PTB13 KINETIS_MUX('B',13,2) /* PTB13 */ 114 #define ADC0_SE8_PTC0 KINETIS_MUX('C',0,0) /* PTC0 */ 115 #define PTC0 KINETIS_MUX('C',0,1) /* PTC0 */ 116 #define FTM0_CH0_PTC0 KINETIS_MUX('C',0,2) /* PTC0 */ 117 #define FTM1_CH6_PTC0 KINETIS_MUX('C',0,6) /* PTC0 */ 118 #define ADC0_SE9_PTC1 KINETIS_MUX('C',1,0) /* PTC1 */ 119 #define PTC1 KINETIS_MUX('C',1,1) /* PTC1 */ 120 #define FTM0_CH1_PTC1 KINETIS_MUX('C',1,2) /* PTC1 */ 121 #define FTM1_CH7_PTC1 KINETIS_MUX('C',1,6) /* PTC1 */ 122 #define ADC0_SE10_PTC2 KINETIS_MUX('C',2,0) /* PTC2 */ 123 #define CMP0_IN5_PTC2 KINETIS_MUX('C',2,0) /* PTC2 */ 124 #define PTC2 KINETIS_MUX('C',2,1) /* PTC2 */ 125 #define FTM0_CH2_PTC2 KINETIS_MUX('C',2,2) /* PTC2 */ 126 #define CAN0_RX_PTC2 KINETIS_MUX('C',2,3) /* PTC2 */ 127 #define LPUART0_RX_PTC2 KINETIS_MUX('C',2,4) /* PTC2 */ 128 #define CMP0_IN4_PTC3 KINETIS_MUX('C',3,0) /* PTC3 */ 129 #define ADC0_SE11_PTC3 KINETIS_MUX('C',3,0) /* PTC3 */ 130 #define PTC3 KINETIS_MUX('C',3,1) /* PTC3 */ 131 #define FTM0_CH3_PTC3 KINETIS_MUX('C',3,2) /* PTC3 */ 132 #define CAN0_TX_PTC3 KINETIS_MUX('C',3,3) /* PTC3 */ 133 #define LPUART0_TX_PTC3 KINETIS_MUX('C',3,4) /* PTC3 */ 134 #define CMP0_IN2_PTC4 KINETIS_MUX('C',4,0) /* PTC4 */ 135 #define PTC4 KINETIS_MUX('C',4,1) /* PTC4 */ 136 #define FTM1_CH0_PTC4 KINETIS_MUX('C',4,2) /* PTC4 */ 137 #define RTC_CLKOUT_PTC4 KINETIS_MUX('C',4,3) /* PTC4 */ 138 #define FTM1_QD_PHB_PTC4 KINETIS_MUX('C',4,6) /* PTC4 */ 139 #define JTAG_TCLK_PTC4 KINETIS_MUX('C',4,7) /* PTC4 */ 140 #define SWD_CLK_PTC4 KINETIS_MUX('C',4,7) /* PTC4 */ 141 #define PTC5 KINETIS_MUX('C',5,1) /* PTC5 */ 142 #define RTC_CLKOUT_PTC5 KINETIS_MUX('C',5,3) /* PTC5 */ 143 #define JTAG_TDI_PTC5 KINETIS_MUX('C',5,7) /* PTC5 */ 144 #define PTC6 KINETIS_MUX('C',6,1) /* PTC6 */ 145 #define LPUART1_RX_PTC6 KINETIS_MUX('C',6,2) /* PTC6 */ 146 #define FTM1_QD_PHB_PTC6 KINETIS_MUX('C',6,6) /* PTC6 */ 147 #define PTC7 KINETIS_MUX('C',7,1) /* PTC7 */ 148 #define LPUART1_TX_PTC7 KINETIS_MUX('C',7,2) /* PTC7 */ 149 #define FTM1_QD_PHA_PTC7 KINETIS_MUX('C',7,6) /* PTC7 */ 150 #define PTC8 KINETIS_MUX('C',8,1) /* PTC8 */ 151 #define LPUART1_RX_PTC8 KINETIS_MUX('C',8,2) /* PTC8 */ 152 #define FTM1_FLT0_PTC8 KINETIS_MUX('C',8,3) /* PTC8 */ 153 #define LPUART0_CTS_PTC8 KINETIS_MUX('C',8,6) /* PTC8 */ 154 #define PTC9 KINETIS_MUX('C',9,1) /* PTC9 */ 155 #define LPUART1_TX_PTC9 KINETIS_MUX('C',9,2) /* PTC9 */ 156 #define FTM1_FLT1_PTC9 KINETIS_MUX('C',9,3) /* PTC9 */ 157 #define LPUART0_RTS_PTC9 KINETIS_MUX('C',9,6) /* PTC9 */ 158 #define ADC0_SE12_PTC14 KINETIS_MUX('C',14,0) /* PTC14 */ 159 #define PTC14 KINETIS_MUX('C',14,1) /* PTC14 */ 160 #define FTM1_CH2_PTC14 KINETIS_MUX('C',14,2) /* PTC14 */ 161 #define TRGMUX_IN9_PTC14 KINETIS_MUX('C',14,6) /* PTC14 */ 162 #define ADC0_SE13_PTC15 KINETIS_MUX('C',15,0) /* PTC15 */ 163 #define PTC15 KINETIS_MUX('C',15,1) /* PTC15 */ 164 #define FTM1_CH3_PTC15 KINETIS_MUX('C',15,2) /* PTC15 */ 165 #define TRGMUX_IN8_PTC15 KINETIS_MUX('C',15,6) /* PTC15 */ 166 #define ADC0_SE14_PTC16 KINETIS_MUX('C',16,0) /* PTC16 */ 167 #define PTC16 KINETIS_MUX('C',16,1) /* PTC16 */ 168 #define FTM1_FLT2_PTC16 KINETIS_MUX('C',16,2) /* PTC16 */ 169 #define ADC0_SE15_PTC17 KINETIS_MUX('C',17,0) /* PTC17 */ 170 #define PTC17 KINETIS_MUX('C',17,1) /* PTC17 */ 171 #define FTM1_FLT3_PTC17 KINETIS_MUX('C',17,2) /* PTC17 */ 172 #define PTD0 KINETIS_MUX('D',0,1) /* PTD0 */ 173 #define FTM0_CH2_PTD0 KINETIS_MUX('D',0,2) /* PTD0 */ 174 #define LPSPI1_SCK_PTD0 KINETIS_MUX('D',0,3) /* PTD0 */ 175 #define FXIO_D0_PTD0 KINETIS_MUX('D',0,6) /* PTD0 */ 176 #define TRGMUX_OUT1_PTD0 KINETIS_MUX('D',0,7) /* PTD0 */ 177 #define PTD1 KINETIS_MUX('D',1,1) /* PTD1 */ 178 #define FTM0_CH3_PTD1 KINETIS_MUX('D',1,2) /* PTD1 */ 179 #define LPSPI1_SIN_PTD1 KINETIS_MUX('D',1,3) /* PTD1 */ 180 #define FXIO_D1_PTD1 KINETIS_MUX('D',1,6) /* PTD1 */ 181 #define TRGMUX_OUT2_PTD1 KINETIS_MUX('D',1,7) /* PTD1 */ 182 #define PTD2 KINETIS_MUX('D',2,1) /* PTD2 */ 183 #define LPSPI1_SOUT_PTD2 KINETIS_MUX('D',2,3) /* PTD2 */ 184 #define FXIO_D4_PTD2 KINETIS_MUX('D',2,4) /* PTD2 */ 185 #define FXIO_D6_PTD2 KINETIS_MUX('D',2,5) /* PTD2 */ 186 #define TRGMUX_IN5_PTD2 KINETIS_MUX('D',2,6) /* PTD2 */ 187 #define PTD3 KINETIS_MUX('D',3,1) /* PTD3 */ 188 #define LPSPI1_PCS0_PTD3 KINETIS_MUX('D',3,3) /* PTD3 */ 189 #define FXIO_D5_PTD3 KINETIS_MUX('D',3,4) /* PTD3 */ 190 #define FXIO_D7_PTD3 KINETIS_MUX('D',3,5) /* PTD3 */ 191 #define TRGMUX_IN4_PTD3 KINETIS_MUX('D',3,6) /* PTD3 */ 192 #define NMI_b_PTD3 KINETIS_MUX('D',3,7) /* PTD3 */ 193 #define PTD4 KINETIS_MUX('D',4,1) /* PTD4 */ 194 #define FTM0_FLT3_PTD4 KINETIS_MUX('D',4,2) /* PTD4 */ 195 #define PTD5 KINETIS_MUX('D',5,1) /* PTD5 */ 196 #define LPTMR0_ALT2_PTD5 KINETIS_MUX('D',5,3) /* PTD5 */ 197 #define TRGMUX_IN7_PTD5 KINETIS_MUX('D',5,6) /* PTD5 */ 198 #define CMP0_IN7_PTD6 KINETIS_MUX('D',6,0) /* PTD6 */ 199 #define PTD6 KINETIS_MUX('D',6,1) /* PTD6 */ 200 #define CMP0_IN6_PTD7 KINETIS_MUX('D',7,0) /* PTD7 */ 201 #define PTD7 KINETIS_MUX('D',7,1) /* PTD7 */ 202 #define PTD15 KINETIS_MUX('D',15,1) /* PTD15 */ 203 #define FTM0_CH0_PTD15 KINETIS_MUX('D',15,2) /* PTD15 */ 204 #define LPSPI0_SCK_PTD15 KINETIS_MUX('D',15,4) /* PTD15 */ 205 #define PTD16 KINETIS_MUX('D',16,1) /* PTD16 */ 206 #define FTM0_CH1_PTD16 KINETIS_MUX('D',16,2) /* PTD16 */ 207 #define LPSPI0_SIN_PTD16 KINETIS_MUX('D',16,4) /* PTD16 */ 208 #define CMP0_RRT_PTD16 KINETIS_MUX('D',16,5) /* PTD16 */ 209 #define PTE0 KINETIS_MUX('E',0,1) /* PTE0 */ 210 #define LPSPI0_SCK_PTE0 KINETIS_MUX('E',0,2) /* PTE0 */ 211 #define TCLK1_PTE0 KINETIS_MUX('E',0,3) /* PTE0 */ 212 #define LPSPI1_SOUT_PTE0 KINETIS_MUX('E',0,5) /* PTE0 */ 213 #define FTM1_FLT2_PTE0 KINETIS_MUX('E',0,6) /* PTE0 */ 214 #define PTE1 KINETIS_MUX('E',1,1) /* PTE1 */ 215 #define LPSPI0_SIN_PTE1 KINETIS_MUX('E',1,2) /* PTE1 */ 216 #define LPI2C0_HREQ_PTE1 KINETIS_MUX('E',1,3) /* PTE1 */ 217 #define LPSPI1_PCS0_PTE1 KINETIS_MUX('E',1,5) /* PTE1 */ 218 #define FTM1_FLT1_PTE1 KINETIS_MUX('E',1,6) /* PTE1 */ 219 #define PTE2 KINETIS_MUX('E',2,1) /* PTE2 */ 220 #define LPSPI0_SOUT_PTE2 KINETIS_MUX('E',2,2) /* PTE2 */ 221 #define LPTMR0_ALT3_PTE2 KINETIS_MUX('E',2,3) /* PTE2 */ 222 #define LPUART1_CTS_PTE2 KINETIS_MUX('E',2,6) /* PTE2 */ 223 #define PTE3 KINETIS_MUX('E',3,1) /* PTE3 */ 224 #define FTM0_FLT0_PTE3 KINETIS_MUX('E',3,2) /* PTE3 */ 225 #define TRGMUX_IN6_PTE3 KINETIS_MUX('E',3,6) /* PTE3 */ 226 #define CMP0_OUT_PTE3 KINETIS_MUX('E',3,7) /* PTE3 */ 227 #define PTE4 KINETIS_MUX('E',4,1) /* PTE4 */ 228 #define CAN0_RX_PTE4 KINETIS_MUX('E',4,5) /* PTE4 */ 229 #define FXIO_D6_PTE4 KINETIS_MUX('E',4,6) /* PTE4 */ 230 #define PTE5 KINETIS_MUX('E',5,1) /* PTE5 */ 231 #define TCLK2_PTE5 KINETIS_MUX('E',5,2) /* PTE5 */ 232 #define CAN0_TX_PTE5 KINETIS_MUX('E',5,5) /* PTE5 */ 233 #define FXIO_D7_PTE5 KINETIS_MUX('E',5,6) /* PTE5 */ 234 #define PTE6 KINETIS_MUX('E',6,1) /* PTE6 */ 235 #define LPSPI0_PCS2_PTE6 KINETIS_MUX('E',6,2) /* PTE6 */ 236 #define LPUART1_RTS_PTE6 KINETIS_MUX('E',6,6) /* PTE6 */ 237 #define PTE7 KINETIS_MUX('E',7,1) /* PTE7 */ 238 #define FTM0_CH7_PTE7 KINETIS_MUX('E',7,2) /* PTE7 */ 239 #define CMP0_IN3_PTE8 KINETIS_MUX('E',8,0) /* PTE8 */ 240 #define PTE8 KINETIS_MUX('E',8,1) /* PTE8 */ 241 #define FTM0_CH6_PTE8 KINETIS_MUX('E',8,2) /* PTE8 */ 242 #define PTE9 KINETIS_MUX('E',9,1) /* PTE9 */ 243 #define FTM0_CH7_PTE9 KINETIS_MUX('E',9,2) /* PTE9 */ 244 #define PTE10 KINETIS_MUX('E',10,1) /* PTE10 */ 245 #define CLKOUT_PTE10 KINETIS_MUX('E',10,2) /* PTE10 */ 246 #define FXIO_D4_PTE10 KINETIS_MUX('E',10,6) /* PTE10 */ 247 #define TRGMUX_OUT4_PTE10 KINETIS_MUX('E',10,7) /* PTE10 */ 248 #define PTE11 KINETIS_MUX('E',11,1) /* PTE11 */ 249 #define LPTMR0_ALT1_PTE11 KINETIS_MUX('E',11,3) /* PTE11 */ 250 #define FXIO_D5_PTE11 KINETIS_MUX('E',11,6) /* PTE11 */ 251 #define TRGMUX_OUT5_PTE11 KINETIS_MUX('E',11,7) /* PTE11 */ 252 #endif 253