1 /*
2  * NOTE: Autogenerated file by kinetis_cfg_utils.py
3  * for MK22FX512VLH12/signal_configuration.xml
4  *
5  *
6  */
7 
8 #ifndef _ZEPHYR_DTS_BINDING_MK22FX512VLH12_
9 #define _ZEPHYR_DTS_BINDING_MK22FX512VLH12_
10 
11 #define KINETIS_MUX(port, pin, mux)		\
12 	(((((port) - 'A') & 0xF) << 28) |	\
13 	(((pin) & 0x3F) << 22) |		\
14 	(((mux) & 0x7) << 8))
15 
16 #define PTA0 KINETIS_MUX('A',0,1) /* PTA0 */
17 #define UART0_CTS_b_PTA0 KINETIS_MUX('A',0,2) /* PTA0 */
18 #define FTM0_CH5_PTA0 KINETIS_MUX('A',0,3) /* PTA0 */
19 #define JTAG_TCLK_PTA0 KINETIS_MUX('A',0,7) /* PTA0 */
20 #define PTA1 KINETIS_MUX('A',1,1) /* PTA1 */
21 #define UART0_RX_PTA1 KINETIS_MUX('A',1,2) /* PTA1 */
22 #define FTM0_CH6_PTA1 KINETIS_MUX('A',1,3) /* PTA1 */
23 #define JTAG_TDI_PTA1 KINETIS_MUX('A',1,7) /* PTA1 */
24 #define PTA2 KINETIS_MUX('A',2,1) /* PTA2 */
25 #define UART0_TX_PTA2 KINETIS_MUX('A',2,2) /* PTA2 */
26 #define FTM0_CH7_PTA2 KINETIS_MUX('A',2,3) /* PTA2 */
27 #define TRACE_SWO_PTA2 KINETIS_MUX('A',2,7) /* PTA2 */
28 #define JTAG_TDO_PTA2 KINETIS_MUX('A',2,7) /* PTA2 */
29 #define PTA3 KINETIS_MUX('A',3,1) /* PTA3 */
30 #define UART0_RTS_b_PTA3 KINETIS_MUX('A',3,2) /* PTA3 */
31 #define FTM0_CH0_PTA3 KINETIS_MUX('A',3,3) /* PTA3 */
32 #define JTAG_TMS_PTA3 KINETIS_MUX('A',3,7) /* PTA3 */
33 #define PTA4 KINETIS_MUX('A',4,1) /* PTA4 */
34 #define LLWU_P3_PTA4 KINETIS_MUX('A',4,1) /* PTA4 */
35 #define FTM0_CH1_PTA4 KINETIS_MUX('A',4,3) /* PTA4 */
36 #define NMI_b_PTA4 KINETIS_MUX('A',4,7) /* PTA4 */
37 #define PTA5 KINETIS_MUX('A',5,1) /* PTA5 */
38 #define USB_CLKIN_PTA5 KINETIS_MUX('A',5,2) /* PTA5 */
39 #define FTM0_CH2_PTA5 KINETIS_MUX('A',5,3) /* PTA5 */
40 #define CMP2_OUT_PTA5 KINETIS_MUX('A',5,5) /* PTA5 */
41 #define I2S0_TX_BCLK_PTA5 KINETIS_MUX('A',5,6) /* PTA5 */
42 #define JTAG_TRST_b_PTA5 KINETIS_MUX('A',5,7) /* PTA5 */
43 #define CMP2_IN0_PTA12 KINETIS_MUX('A',12,0) /* PTA12 */
44 #define PTA12 KINETIS_MUX('A',12,1) /* PTA12 */
45 #define CAN0_TX_PTA12 KINETIS_MUX('A',12,2) /* PTA12 */
46 #define FTM1_CH0_PTA12 KINETIS_MUX('A',12,3) /* PTA12 */
47 #define I2C2_SCL_PTA12 KINETIS_MUX('A',12,5) /* PTA12 */
48 #define I2S0_TXD0_PTA12 KINETIS_MUX('A',12,6) /* PTA12 */
49 #define FTM1_QD_PHA_PTA12 KINETIS_MUX('A',12,7) /* PTA12 */
50 #define CMP2_IN1_PTA13 KINETIS_MUX('A',13,0) /* PTA13 */
51 #define LLWU_P4_PTA13 KINETIS_MUX('A',13,1) /* PTA13 */
52 #define PTA13 KINETIS_MUX('A',13,1) /* PTA13 */
53 #define CAN0_RX_PTA13 KINETIS_MUX('A',13,2) /* PTA13 */
54 #define FTM1_CH1_PTA13 KINETIS_MUX('A',13,3) /* PTA13 */
55 #define I2C2_SDA_PTA13 KINETIS_MUX('A',13,5) /* PTA13 */
56 #define I2S0_TX_FS_PTA13 KINETIS_MUX('A',13,6) /* PTA13 */
57 #define FTM1_QD_PHB_PTA13 KINETIS_MUX('A',13,7) /* PTA13 */
58 #define EXTAL0_PTA18 KINETIS_MUX('A',18,0) /* PTA18 */
59 #define PTA18 KINETIS_MUX('A',18,1) /* PTA18 */
60 #define FTM0_FLT2_PTA18 KINETIS_MUX('A',18,3) /* PTA18 */
61 #define FTM_CLKIN0_PTA18 KINETIS_MUX('A',18,4) /* PTA18 */
62 #define XTAL0_PTA19 KINETIS_MUX('A',19,0) /* PTA19 */
63 #define PTA19 KINETIS_MUX('A',19,1) /* PTA19 */
64 #define FTM1_FLT0_PTA19 KINETIS_MUX('A',19,3) /* PTA19 */
65 #define FTM_CLKIN1_PTA19 KINETIS_MUX('A',19,4) /* PTA19 */
66 #define LPTMR0_ALT1_PTA19 KINETIS_MUX('A',19,6) /* PTA19 */
67 #define ADC0_SE8_PTB0 KINETIS_MUX('B',0,0) /* PTB0 */
68 #define ADC1_SE8_PTB0 KINETIS_MUX('B',0,0) /* PTB0 */
69 #define PTB0 KINETIS_MUX('B',0,1) /* PTB0 */
70 #define LLWU_P5_PTB0 KINETIS_MUX('B',0,1) /* PTB0 */
71 #define I2C0_SCL_PTB0 KINETIS_MUX('B',0,2) /* PTB0 */
72 #define FTM1_CH0_PTB0 KINETIS_MUX('B',0,3) /* PTB0 */
73 #define FTM1_QD_PHA_PTB0 KINETIS_MUX('B',0,6) /* PTB0 */
74 #define ADC0_SE9_PTB1 KINETIS_MUX('B',1,0) /* PTB1 */
75 #define ADC1_SE9_PTB1 KINETIS_MUX('B',1,0) /* PTB1 */
76 #define PTB1 KINETIS_MUX('B',1,1) /* PTB1 */
77 #define I2C0_SDA_PTB1 KINETIS_MUX('B',1,2) /* PTB1 */
78 #define FTM1_CH1_PTB1 KINETIS_MUX('B',1,3) /* PTB1 */
79 #define FTM1_QD_PHB_PTB1 KINETIS_MUX('B',1,6) /* PTB1 */
80 #define ADC0_SE12_PTB2 KINETIS_MUX('B',2,0) /* PTB2 */
81 #define PTB2 KINETIS_MUX('B',2,1) /* PTB2 */
82 #define I2C0_SCL_PTB2 KINETIS_MUX('B',2,2) /* PTB2 */
83 #define UART0_RTS_b_PTB2 KINETIS_MUX('B',2,3) /* PTB2 */
84 #define FTM0_FLT3_PTB2 KINETIS_MUX('B',2,6) /* PTB2 */
85 #define ADC0_SE13_PTB3 KINETIS_MUX('B',3,0) /* PTB3 */
86 #define PTB3 KINETIS_MUX('B',3,1) /* PTB3 */
87 #define I2C0_SDA_PTB3 KINETIS_MUX('B',3,2) /* PTB3 */
88 #define UART0_CTS_b_PTB3 KINETIS_MUX('B',3,3) /* PTB3 */
89 #define FTM0_FLT0_PTB3 KINETIS_MUX('B',3,6) /* PTB3 */
90 #define PTB16 KINETIS_MUX('B',16,1) /* PTB16 */
91 #define UART0_RX_PTB16 KINETIS_MUX('B',16,3) /* PTB16 */
92 #define FTM_CLKIN0_PTB16 KINETIS_MUX('B',16,4) /* PTB16 */
93 #define EWM_IN_PTB16 KINETIS_MUX('B',16,6) /* PTB16 */
94 #define PTB17 KINETIS_MUX('B',17,1) /* PTB17 */
95 #define UART0_TX_PTB17 KINETIS_MUX('B',17,3) /* PTB17 */
96 #define FTM_CLKIN1_PTB17 KINETIS_MUX('B',17,4) /* PTB17 */
97 #define EWM_OUT_b_PTB17 KINETIS_MUX('B',17,6) /* PTB17 */
98 #define PTB18 KINETIS_MUX('B',18,1) /* PTB18 */
99 #define CAN0_TX_PTB18 KINETIS_MUX('B',18,2) /* PTB18 */
100 #define FTM2_CH0_PTB18 KINETIS_MUX('B',18,3) /* PTB18 */
101 #define I2S0_TX_BCLK_PTB18 KINETIS_MUX('B',18,4) /* PTB18 */
102 #define FTM2_QD_PHA_PTB18 KINETIS_MUX('B',18,6) /* PTB18 */
103 #define PTB19 KINETIS_MUX('B',19,1) /* PTB19 */
104 #define CAN0_RX_PTB19 KINETIS_MUX('B',19,2) /* PTB19 */
105 #define FTM2_CH1_PTB19 KINETIS_MUX('B',19,3) /* PTB19 */
106 #define I2S0_TX_FS_PTB19 KINETIS_MUX('B',19,4) /* PTB19 */
107 #define FTM2_QD_PHB_PTB19 KINETIS_MUX('B',19,6) /* PTB19 */
108 #define ADC0_SE14_PTC0 KINETIS_MUX('C',0,0) /* PTC0 */
109 #define PTC0 KINETIS_MUX('C',0,1) /* PTC0 */
110 #define SPI0_PCS4_PTC0 KINETIS_MUX('C',0,2) /* PTC0 */
111 #define PDB0_EXTRG_PTC0 KINETIS_MUX('C',0,3) /* PTC0 */
112 #define I2S0_TXD1_PTC0 KINETIS_MUX('C',0,6) /* PTC0 */
113 #define ADC0_SE15_PTC1 KINETIS_MUX('C',1,0) /* PTC1 */
114 #define LLWU_P6_PTC1 KINETIS_MUX('C',1,1) /* PTC1 */
115 #define PTC1 KINETIS_MUX('C',1,1) /* PTC1 */
116 #define SPI0_PCS3_PTC1 KINETIS_MUX('C',1,2) /* PTC1 */
117 #define UART1_RTS_b_PTC1 KINETIS_MUX('C',1,3) /* PTC1 */
118 #define FTM0_CH0_PTC1 KINETIS_MUX('C',1,4) /* PTC1 */
119 #define I2S0_TXD0_PTC1 KINETIS_MUX('C',1,6) /* PTC1 */
120 #define ADC0_SE4b_PTC2 KINETIS_MUX('C',2,0) /* PTC2 */
121 #define CMP1_IN0_PTC2 KINETIS_MUX('C',2,0) /* PTC2 */
122 #define PTC2 KINETIS_MUX('C',2,1) /* PTC2 */
123 #define SPI0_PCS2_PTC2 KINETIS_MUX('C',2,2) /* PTC2 */
124 #define UART1_CTS_b_PTC2 KINETIS_MUX('C',2,3) /* PTC2 */
125 #define FTM0_CH1_PTC2 KINETIS_MUX('C',2,4) /* PTC2 */
126 #define I2S0_TX_FS_PTC2 KINETIS_MUX('C',2,6) /* PTC2 */
127 #define CMP1_IN1_PTC3 KINETIS_MUX('C',3,0) /* PTC3 */
128 #define PTC3 KINETIS_MUX('C',3,1) /* PTC3 */
129 #define LLWU_P7_PTC3 KINETIS_MUX('C',3,1) /* PTC3 */
130 #define SPI0_PCS1_PTC3 KINETIS_MUX('C',3,2) /* PTC3 */
131 #define UART1_RX_PTC3 KINETIS_MUX('C',3,3) /* PTC3 */
132 #define FTM0_CH2_PTC3 KINETIS_MUX('C',3,4) /* PTC3 */
133 #define CLKOUT_PTC3 KINETIS_MUX('C',3,5) /* PTC3 */
134 #define I2S0_TX_BCLK_PTC3 KINETIS_MUX('C',3,6) /* PTC3 */
135 #define LLWU_P8_PTC4 KINETIS_MUX('C',4,1) /* PTC4 */
136 #define PTC4 KINETIS_MUX('C',4,1) /* PTC4 */
137 #define SPI0_PCS0_PTC4 KINETIS_MUX('C',4,2) /* PTC4 */
138 #define UART1_TX_PTC4 KINETIS_MUX('C',4,3) /* PTC4 */
139 #define FTM0_CH3_PTC4 KINETIS_MUX('C',4,4) /* PTC4 */
140 #define CMP1_OUT_PTC4 KINETIS_MUX('C',4,6) /* PTC4 */
141 #define PTC5 KINETIS_MUX('C',5,1) /* PTC5 */
142 #define LLWU_P9_PTC5 KINETIS_MUX('C',5,1) /* PTC5 */
143 #define SPI0_SCK_PTC5 KINETIS_MUX('C',5,2) /* PTC5 */
144 #define LPTMR0_ALT2_PTC5 KINETIS_MUX('C',5,3) /* PTC5 */
145 #define I2S0_RXD0_PTC5 KINETIS_MUX('C',5,4) /* PTC5 */
146 #define CMP0_OUT_PTC5 KINETIS_MUX('C',5,6) /* PTC5 */
147 #define FTM0_CH2_PTC5 KINETIS_MUX('C',5,7) /* PTC5 */
148 #define CMP0_IN0_PTC6 KINETIS_MUX('C',6,0) /* PTC6 */
149 #define PTC6 KINETIS_MUX('C',6,1) /* PTC6 */
150 #define LLWU_P10_PTC6 KINETIS_MUX('C',6,1) /* PTC6 */
151 #define SPI0_SOUT_PTC6 KINETIS_MUX('C',6,2) /* PTC6 */
152 #define PDB0_EXTRG_PTC6 KINETIS_MUX('C',6,3) /* PTC6 */
153 #define I2S0_RX_BCLK_PTC6 KINETIS_MUX('C',6,4) /* PTC6 */
154 #define I2S0_MCLK_PTC6 KINETIS_MUX('C',6,6) /* PTC6 */
155 #define CMP0_IN1_PTC7 KINETIS_MUX('C',7,0) /* PTC7 */
156 #define PTC7 KINETIS_MUX('C',7,1) /* PTC7 */
157 #define SPI0_SIN_PTC7 KINETIS_MUX('C',7,2) /* PTC7 */
158 #define USB_SOF_OUT_PTC7 KINETIS_MUX('C',7,3) /* PTC7 */
159 #define I2S0_RX_FS_PTC7 KINETIS_MUX('C',7,4) /* PTC7 */
160 #define ADC1_SE4b_PTC8 KINETIS_MUX('C',8,0) /* PTC8 */
161 #define CMP0_IN2_PTC8 KINETIS_MUX('C',8,0) /* PTC8 */
162 #define PTC8 KINETIS_MUX('C',8,1) /* PTC8 */
163 #define FTM3_CH4_PTC8 KINETIS_MUX('C',8,3) /* PTC8 */
164 #define I2S0_MCLK_PTC8 KINETIS_MUX('C',8,4) /* PTC8 */
165 #define ADC1_SE5b_PTC9 KINETIS_MUX('C',9,0) /* PTC9 */
166 #define CMP0_IN3_PTC9 KINETIS_MUX('C',9,0) /* PTC9 */
167 #define PTC9 KINETIS_MUX('C',9,1) /* PTC9 */
168 #define FTM3_CH5_PTC9 KINETIS_MUX('C',9,3) /* PTC9 */
169 #define I2S0_RX_BCLK_PTC9 KINETIS_MUX('C',9,4) /* PTC9 */
170 #define FTM2_FLT0_PTC9 KINETIS_MUX('C',9,6) /* PTC9 */
171 #define ADC1_SE6b_PTC10 KINETIS_MUX('C',10,0) /* PTC10 */
172 #define PTC10 KINETIS_MUX('C',10,1) /* PTC10 */
173 #define I2C1_SCL_PTC10 KINETIS_MUX('C',10,2) /* PTC10 */
174 #define FTM3_CH6_PTC10 KINETIS_MUX('C',10,3) /* PTC10 */
175 #define I2S0_RX_FS_PTC10 KINETIS_MUX('C',10,4) /* PTC10 */
176 #define ADC1_SE7b_PTC11 KINETIS_MUX('C',11,0) /* PTC11 */
177 #define LLWU_P11_PTC11 KINETIS_MUX('C',11,1) /* PTC11 */
178 #define PTC11 KINETIS_MUX('C',11,1) /* PTC11 */
179 #define I2C1_SDA_PTC11 KINETIS_MUX('C',11,2) /* PTC11 */
180 #define FTM3_CH7_PTC11 KINETIS_MUX('C',11,3) /* PTC11 */
181 #define I2S0_RXD1_PTC11 KINETIS_MUX('C',11,4) /* PTC11 */
182 #define PTD0 KINETIS_MUX('D',0,1) /* PTD0 */
183 #define LLWU_P12_PTD0 KINETIS_MUX('D',0,1) /* PTD0 */
184 #define SPI0_PCS0_PTD0 KINETIS_MUX('D',0,2) /* PTD0 */
185 #define UART2_RTS_b_PTD0 KINETIS_MUX('D',0,3) /* PTD0 */
186 #define FTM3_CH0_PTD0 KINETIS_MUX('D',0,4) /* PTD0 */
187 #define ADC0_SE5b_PTD1 KINETIS_MUX('D',1,0) /* PTD1 */
188 #define PTD1 KINETIS_MUX('D',1,1) /* PTD1 */
189 #define SPI0_SCK_PTD1 KINETIS_MUX('D',1,2) /* PTD1 */
190 #define UART2_CTS_b_PTD1 KINETIS_MUX('D',1,3) /* PTD1 */
191 #define FTM3_CH1_PTD1 KINETIS_MUX('D',1,4) /* PTD1 */
192 #define PTD2 KINETIS_MUX('D',2,1) /* PTD2 */
193 #define LLWU_P13_PTD2 KINETIS_MUX('D',2,1) /* PTD2 */
194 #define SPI0_SOUT_PTD2 KINETIS_MUX('D',2,2) /* PTD2 */
195 #define UART2_RX_PTD2 KINETIS_MUX('D',2,3) /* PTD2 */
196 #define FTM3_CH2_PTD2 KINETIS_MUX('D',2,4) /* PTD2 */
197 #define I2C0_SCL_PTD2 KINETIS_MUX('D',2,7) /* PTD2 */
198 #define PTD3 KINETIS_MUX('D',3,1) /* PTD3 */
199 #define SPI0_SIN_PTD3 KINETIS_MUX('D',3,2) /* PTD3 */
200 #define UART2_TX_PTD3 KINETIS_MUX('D',3,3) /* PTD3 */
201 #define FTM3_CH3_PTD3 KINETIS_MUX('D',3,4) /* PTD3 */
202 #define I2C0_SDA_PTD3 KINETIS_MUX('D',3,7) /* PTD3 */
203 #define PTD4 KINETIS_MUX('D',4,1) /* PTD4 */
204 #define LLWU_P14_PTD4 KINETIS_MUX('D',4,1) /* PTD4 */
205 #define SPI0_PCS1_PTD4 KINETIS_MUX('D',4,2) /* PTD4 */
206 #define UART0_RTS_b_PTD4 KINETIS_MUX('D',4,3) /* PTD4 */
207 #define FTM0_CH4_PTD4 KINETIS_MUX('D',4,4) /* PTD4 */
208 #define EWM_IN_PTD4 KINETIS_MUX('D',4,6) /* PTD4 */
209 #define ADC0_SE6b_PTD5 KINETIS_MUX('D',5,0) /* PTD5 */
210 #define PTD5 KINETIS_MUX('D',5,1) /* PTD5 */
211 #define SPI0_PCS2_PTD5 KINETIS_MUX('D',5,2) /* PTD5 */
212 #define UART0_CTS_b_PTD5 KINETIS_MUX('D',5,3) /* PTD5 */
213 #define FTM0_CH5_PTD5 KINETIS_MUX('D',5,4) /* PTD5 */
214 #define EWM_OUT_b_PTD5 KINETIS_MUX('D',5,6) /* PTD5 */
215 #define ADC0_SE7b_PTD6 KINETIS_MUX('D',6,0) /* PTD6 */
216 #define LLWU_P15_PTD6 KINETIS_MUX('D',6,1) /* PTD6 */
217 #define PTD6 KINETIS_MUX('D',6,1) /* PTD6 */
218 #define SPI0_PCS3_PTD6 KINETIS_MUX('D',6,2) /* PTD6 */
219 #define UART0_RX_PTD6 KINETIS_MUX('D',6,3) /* PTD6 */
220 #define FTM0_CH6_PTD6 KINETIS_MUX('D',6,4) /* PTD6 */
221 #define FTM0_FLT0_PTD6 KINETIS_MUX('D',6,6) /* PTD6 */
222 #define PTD7 KINETIS_MUX('D',7,1) /* PTD7 */
223 #define CMT_IRO_PTD7 KINETIS_MUX('D',7,2) /* PTD7 */
224 #define UART0_TX_PTD7 KINETIS_MUX('D',7,3) /* PTD7 */
225 #define FTM0_CH7_PTD7 KINETIS_MUX('D',7,4) /* PTD7 */
226 #define FTM0_FLT1_PTD7 KINETIS_MUX('D',7,6) /* PTD7 */
227 #define ADC1_SE4a_PTE0 KINETIS_MUX('E',0,0) /* PTE0 */
228 #define PTE0 KINETIS_MUX('E',0,1) /* PTE0 */
229 #define UART1_TX_PTE0 KINETIS_MUX('E',0,3) /* PTE0 */
230 #define TRACE_CLKOUT_PTE0 KINETIS_MUX('E',0,5) /* PTE0 */
231 #define I2C1_SDA_PTE0 KINETIS_MUX('E',0,6) /* PTE0 */
232 #define RTC_CLKOUT_PTE0 KINETIS_MUX('E',0,7) /* PTE0 */
233 #define ADC1_SE5a_PTE1 KINETIS_MUX('E',1,0) /* PTE1 */
234 #define LLWU_P0_PTE1 KINETIS_MUX('E',1,1) /* PTE1 */
235 #define PTE1 KINETIS_MUX('E',1,1) /* PTE1 */
236 #define UART1_RX_PTE1 KINETIS_MUX('E',1,3) /* PTE1 */
237 #define TRACE_D3_PTE1 KINETIS_MUX('E',1,5) /* PTE1 */
238 #define I2C1_SCL_PTE1 KINETIS_MUX('E',1,6) /* PTE1 */
239 #endif
240