1 /* 2 * NOTE: Autogenerated file by kinetis_signal2dts.py 3 * for MKW41Z512VHT4/signal_configuration.xml 4 * 5 * Copyright (c) 2022, NXP 6 * SPDX-License-Identifier: Apache-2.0 7 */ 8 9 #ifndef _ZEPHYR_DTS_BINDING_MKW41Z512VHT4_ 10 #define _ZEPHYR_DTS_BINDING_MKW41Z512VHT4_ 11 12 #define KINETIS_MUX(port, pin, mux) \ 13 (((((port) - 'A') & 0xF) << 28) | \ 14 (((pin) & 0x3F) << 22) | \ 15 (((mux) & 0x7) << 8)) 16 17 #define TSI0_CH8_PTA0 KINETIS_MUX('A',0,0) /* PTA0 */ 18 #define PTA0 KINETIS_MUX('A',0,1) /* PTA0 */ 19 #define SPI0_PCS1_PTA0 KINETIS_MUX('A',0,2) /* PTA0 */ 20 #define TPM1_CH0_PTA0 KINETIS_MUX('A',0,5) /* PTA0 */ 21 #define SWD_DIO_PTA0 KINETIS_MUX('A',0,7) /* PTA0 */ 22 #define TSI0_CH9_PTA1 KINETIS_MUX('A',1,0) /* PTA1 */ 23 #define PTA1 KINETIS_MUX('A',1,1) /* PTA1 */ 24 #define SPI1_PCS0_PTA1 KINETIS_MUX('A',1,2) /* PTA1 */ 25 #define TPM1_CH1_PTA1 KINETIS_MUX('A',1,5) /* PTA1 */ 26 #define SWD_CLK_PTA1 KINETIS_MUX('A',1,7) /* PTA1 */ 27 #define PTA2 KINETIS_MUX('A',2,1) /* PTA2 */ 28 #define TPM0_CH3_PTA2 KINETIS_MUX('A',2,5) /* PTA2 */ 29 #define RESET_b_PTA2 KINETIS_MUX('A',2,7) /* PTA2 */ 30 #define TSI0_CH10_PTA16 KINETIS_MUX('A',16,0) /* PTA16 */ 31 #define PTA16 KINETIS_MUX('A',16,1) /* PTA16 */ 32 #define LLWU_P4_PTA16 KINETIS_MUX('A',16,1) /* PTA16 */ 33 #define SPI1_SOUT_PTA16 KINETIS_MUX('A',16,2) /* PTA16 */ 34 #define TPM0_CH0_PTA16 KINETIS_MUX('A',16,5) /* PTA16 */ 35 #define TSI0_CH11_PTA17 KINETIS_MUX('A',17,0) /* PTA17 */ 36 #define RF_RESET_PTA17 KINETIS_MUX('A',17,1) /* PTA17 */ 37 #define LLWU_P5_PTA17 KINETIS_MUX('A',17,1) /* PTA17 */ 38 #define PTA17 KINETIS_MUX('A',17,1) /* PTA17 */ 39 #define SPI1_SIN_PTA17 KINETIS_MUX('A',17,2) /* PTA17 */ 40 #define TPM_CLKIN1_PTA17 KINETIS_MUX('A',17,5) /* PTA17 */ 41 #define TSI0_CH12_PTA18 KINETIS_MUX('A',18,0) /* PTA18 */ 42 #define PTA18 KINETIS_MUX('A',18,1) /* PTA18 */ 43 #define LLWU_P6_PTA18 KINETIS_MUX('A',18,1) /* PTA18 */ 44 #define SPI1_SCK_PTA18 KINETIS_MUX('A',18,2) /* PTA18 */ 45 #define TPM2_CH0_PTA18 KINETIS_MUX('A',18,5) /* PTA18 */ 46 #define TSI0_CH13_PTA19 KINETIS_MUX('A',19,0) /* PTA19 */ 47 #define ADC0_SE5_PTA19 KINETIS_MUX('A',19,0) /* PTA19 */ 48 #define PTA19 KINETIS_MUX('A',19,1) /* PTA19 */ 49 #define LLWU_P7_PTA19 KINETIS_MUX('A',19,1) /* PTA19 */ 50 #define SPI1_PCS0_PTA19 KINETIS_MUX('A',19,2) /* PTA19 */ 51 #define TPM2_CH1_PTA19 KINETIS_MUX('A',19,5) /* PTA19 */ 52 #define PTB0 KINETIS_MUX('B',0,1) /* PTB0 */ 53 #define LLWU_P8_PTB0 KINETIS_MUX('B',0,1) /* PTB0 */ 54 #define XTAL_OUT_EN_PTB0 KINETIS_MUX('B',0,1) /* PTB0 */ 55 #define I2C0_SCL_PTB0 KINETIS_MUX('B',0,3) /* PTB0 */ 56 #define CMP0_OUT_PTB0 KINETIS_MUX('B',0,4) /* PTB0 */ 57 #define TPM0_CH1_PTB0 KINETIS_MUX('B',0,5) /* PTB0 */ 58 #define CLKOUT_PTB0 KINETIS_MUX('B',0,7) /* PTB0 */ 59 #define CMP0_IN5_PTB1 KINETIS_MUX('B',1,0) /* PTB1 */ 60 #define ADC0_SE1_PTB1 KINETIS_MUX('B',1,0) /* PTB1 */ 61 #define PTB1 KINETIS_MUX('B',1,1) /* PTB1 */ 62 #define DTM_RX_PTB1 KINETIS_MUX('B',1,2) /* PTB1 */ 63 #define I2C0_SDA_PTB1 KINETIS_MUX('B',1,3) /* PTB1 */ 64 #define LPTMR0_ALT1_PTB1 KINETIS_MUX('B',1,4) /* PTB1 */ 65 #define TPM0_CH2_PTB1 KINETIS_MUX('B',1,5) /* PTB1 */ 66 #define CMT_IRO_PTB1 KINETIS_MUX('B',1,7) /* PTB1 */ 67 #define CMP0_IN3_PTB2 KINETIS_MUX('B',2,0) /* PTB2 */ 68 #define ADC0_SE3_PTB2 KINETIS_MUX('B',2,0) /* PTB2 */ 69 #define PTB2 KINETIS_MUX('B',2,1) /* PTB2 */ 70 #define RF_NOT_ALLOWED_PTB2 KINETIS_MUX('B',2,2) /* PTB2 */ 71 #define DTM_TX_PTB2 KINETIS_MUX('B',2,3) /* PTB2 */ 72 #define TPM1_CH0_PTB2 KINETIS_MUX('B',2,5) /* PTB2 */ 73 #define ADC0_SE2_PTB3 KINETIS_MUX('B',3,0) /* PTB3 */ 74 #define CMP0_IN4_PTB3 KINETIS_MUX('B',3,0) /* PTB3 */ 75 #define PTB3 KINETIS_MUX('B',3,1) /* PTB3 */ 76 #define CLKOUT_PTB3 KINETIS_MUX('B',3,4) /* PTB3 */ 77 #define TPM1_CH1_PTB3 KINETIS_MUX('B',3,5) /* PTB3 */ 78 #define RTC_CLKOUT_PTB3 KINETIS_MUX('B',3,7) /* PTB3 */ 79 #define EXTAL32K_PTB16 KINETIS_MUX('B',16,0) /* PTB16 */ 80 #define PTB16 KINETIS_MUX('B',16,1) /* PTB16 */ 81 #define I2C1_SCL_PTB16 KINETIS_MUX('B',16,3) /* PTB16 */ 82 #define TPM2_CH0_PTB16 KINETIS_MUX('B',16,5) /* PTB16 */ 83 #define XTAL32K_PTB17 KINETIS_MUX('B',17,0) /* PTB17 */ 84 #define PTB17 KINETIS_MUX('B',17,1) /* PTB17 */ 85 #define I2C1_SDA_PTB17 KINETIS_MUX('B',17,3) /* PTB17 */ 86 #define TPM2_CH1_PTB17 KINETIS_MUX('B',17,5) /* PTB17 */ 87 #define BSM_CLK_PTB17 KINETIS_MUX('B',17,7) /* PTB17 */ 88 #define ADC0_SE4_PTB18 KINETIS_MUX('B',18,0) /* PTB18 */ 89 #define DAC0_OUT_PTB18 KINETIS_MUX('B',18,0) /* PTB18 */ 90 #define CMP0_IN2_PTB18 KINETIS_MUX('B',18,0) /* PTB18 */ 91 #define PTB18 KINETIS_MUX('B',18,1) /* PTB18 */ 92 #define I2C1_SCL_PTB18 KINETIS_MUX('B',18,3) /* PTB18 */ 93 #define TPM_CLKIN0_PTB18 KINETIS_MUX('B',18,4) /* PTB18 */ 94 #define TPM0_CH0_PTB18 KINETIS_MUX('B',18,5) /* PTB18 */ 95 #define NMI_b_PTB18 KINETIS_MUX('B',18,7) /* PTB18 */ 96 #define PTC1 KINETIS_MUX('C',1,1) /* PTC1 */ 97 #define ANT_B_PTC1 KINETIS_MUX('C',1,2) /* PTC1 */ 98 #define I2C0_SDA_PTC1 KINETIS_MUX('C',1,3) /* PTC1 */ 99 #define UART0_RTS_b_PTC1 KINETIS_MUX('C',1,4) /* PTC1 */ 100 #define TPM0_CH2_PTC1 KINETIS_MUX('C',1,5) /* PTC1 */ 101 #define BLE_RF_ACTIVE_PTC1 KINETIS_MUX('C',1,7) /* PTC1 */ 102 #define TSI0_CH14_PTC2 KINETIS_MUX('C',2,0) /* PTC2 */ 103 #define PTC2 KINETIS_MUX('C',2,1) /* PTC2 */ 104 #define LLWU_P10_PTC2 KINETIS_MUX('C',2,1) /* PTC2 */ 105 #define TX_SWITCH_PTC2 KINETIS_MUX('C',2,2) /* PTC2 */ 106 #define I2C1_SCL_PTC2 KINETIS_MUX('C',2,3) /* PTC2 */ 107 #define UART0_RX_PTC2 KINETIS_MUX('C',2,4) /* PTC2 */ 108 #define CMT_IRO_PTC2 KINETIS_MUX('C',2,5) /* PTC2 */ 109 #define DTM_RX_PTC2 KINETIS_MUX('C',2,7) /* PTC2 */ 110 #define TSI0_CH15_PTC3 KINETIS_MUX('C',3,0) /* PTC3 */ 111 #define LLWU_P11_PTC3 KINETIS_MUX('C',3,1) /* PTC3 */ 112 #define PTC3 KINETIS_MUX('C',3,1) /* PTC3 */ 113 #define RX_SWITCH_PTC3 KINETIS_MUX('C',3,2) /* PTC3 */ 114 #define I2C1_SDA_PTC3 KINETIS_MUX('C',3,3) /* PTC3 */ 115 #define UART0_TX_PTC3 KINETIS_MUX('C',3,4) /* PTC3 */ 116 #define TPM0_CH1_PTC3 KINETIS_MUX('C',3,5) /* PTC3 */ 117 #define DTM_TX_PTC3 KINETIS_MUX('C',3,7) /* PTC3 */ 118 #define TSI0_CH0_PTC4 KINETIS_MUX('C',4,0) /* PTC4 */ 119 #define LLWU_P12_PTC4 KINETIS_MUX('C',4,1) /* PTC4 */ 120 #define PTC4 KINETIS_MUX('C',4,1) /* PTC4 */ 121 #define ANT_A_PTC4 KINETIS_MUX('C',4,2) /* PTC4 */ 122 #define EXTRG_IN_PTC4 KINETIS_MUX('C',4,3) /* PTC4 */ 123 #define UART0_CTS_b_PTC4 KINETIS_MUX('C',4,4) /* PTC4 */ 124 #define TPM1_CH0_PTC4 KINETIS_MUX('C',4,5) /* PTC4 */ 125 #define BSM_DATA_PTC4 KINETIS_MUX('C',4,7) /* PTC4 */ 126 #define TSI0_CH1_PTC5 KINETIS_MUX('C',5,0) /* PTC5 */ 127 #define LLWU_P13_PTC5 KINETIS_MUX('C',5,1) /* PTC5 */ 128 #define PTC5 KINETIS_MUX('C',5,1) /* PTC5 */ 129 #define RF_NOT_ALLOWED_PTC5 KINETIS_MUX('C',5,2) /* PTC5 */ 130 #define LPTMR0_ALT2_PTC5 KINETIS_MUX('C',5,3) /* PTC5 */ 131 #define UART0_RTS_b_PTC5 KINETIS_MUX('C',5,4) /* PTC5 */ 132 #define TPM1_CH1_PTC5 KINETIS_MUX('C',5,5) /* PTC5 */ 133 #define BSM_CLK_PTC5 KINETIS_MUX('C',5,7) /* PTC5 */ 134 #define TSI0_CH2_PTC6 KINETIS_MUX('C',6,0) /* PTC6 */ 135 #define PTC6 KINETIS_MUX('C',6,1) /* PTC6 */ 136 #define LLWU_P14_PTC6 KINETIS_MUX('C',6,1) /* PTC6 */ 137 #define XTAL_OUT_EN_PTC6 KINETIS_MUX('C',6,1) /* PTC6 */ 138 #define I2C1_SCL_PTC6 KINETIS_MUX('C',6,3) /* PTC6 */ 139 #define UART0_RX_PTC6 KINETIS_MUX('C',6,4) /* PTC6 */ 140 #define TPM2_CH0_PTC6 KINETIS_MUX('C',6,5) /* PTC6 */ 141 #define BSM_FRAME_PTC6 KINETIS_MUX('C',6,7) /* PTC6 */ 142 #define TSI0_CH3_PTC7 KINETIS_MUX('C',7,0) /* PTC7 */ 143 #define PTC7 KINETIS_MUX('C',7,1) /* PTC7 */ 144 #define LLWU_P15_PTC7 KINETIS_MUX('C',7,1) /* PTC7 */ 145 #define SPI0_PCS2_PTC7 KINETIS_MUX('C',7,2) /* PTC7 */ 146 #define I2C1_SDA_PTC7 KINETIS_MUX('C',7,3) /* PTC7 */ 147 #define UART0_TX_PTC7 KINETIS_MUX('C',7,4) /* PTC7 */ 148 #define TPM2_CH1_PTC7 KINETIS_MUX('C',7,5) /* PTC7 */ 149 #define BSM_DATA_PTC7 KINETIS_MUX('C',7,7) /* PTC7 */ 150 #define TSI0_CH4_PTC16 KINETIS_MUX('C',16,0) /* PTC16 */ 151 #define LLWU_P0_PTC16 KINETIS_MUX('C',16,1) /* PTC16 */ 152 #define PTC16 KINETIS_MUX('C',16,1) /* PTC16 */ 153 #define SPI0_SCK_PTC16 KINETIS_MUX('C',16,2) /* PTC16 */ 154 #define I2C0_SDA_PTC16 KINETIS_MUX('C',16,3) /* PTC16 */ 155 #define UART0_RTS_b_PTC16 KINETIS_MUX('C',16,4) /* PTC16 */ 156 #define TPM0_CH3_PTC16 KINETIS_MUX('C',16,5) /* PTC16 */ 157 #define TSI0_CH5_PTC17 KINETIS_MUX('C',17,0) /* PTC17 */ 158 #define LLWU_P1_PTC17 KINETIS_MUX('C',17,1) /* PTC17 */ 159 #define PTC17 KINETIS_MUX('C',17,1) /* PTC17 */ 160 #define SPI0_SOUT_PTC17 KINETIS_MUX('C',17,2) /* PTC17 */ 161 #define I2C1_SCL_PTC17 KINETIS_MUX('C',17,3) /* PTC17 */ 162 #define UART0_RX_PTC17 KINETIS_MUX('C',17,4) /* PTC17 */ 163 #define BSM_FRAME_PTC17 KINETIS_MUX('C',17,5) /* PTC17 */ 164 #define DTM_RX_PTC17 KINETIS_MUX('C',17,7) /* PTC17 */ 165 #define TSI0_CH6_PTC18 KINETIS_MUX('C',18,0) /* PTC18 */ 166 #define PTC18 KINETIS_MUX('C',18,1) /* PTC18 */ 167 #define LLWU_P2_PTC18 KINETIS_MUX('C',18,1) /* PTC18 */ 168 #define SPI0_SIN_PTC18 KINETIS_MUX('C',18,2) /* PTC18 */ 169 #define I2C1_SDA_PTC18 KINETIS_MUX('C',18,3) /* PTC18 */ 170 #define UART0_TX_PTC18 KINETIS_MUX('C',18,4) /* PTC18 */ 171 #define BSM_DATA_PTC18 KINETIS_MUX('C',18,5) /* PTC18 */ 172 #define DTM_TX_PTC18 KINETIS_MUX('C',18,7) /* PTC18 */ 173 #define TSI0_CH7_PTC19 KINETIS_MUX('C',19,0) /* PTC19 */ 174 #define PTC19 KINETIS_MUX('C',19,1) /* PTC19 */ 175 #define LLWU_P3_PTC19 KINETIS_MUX('C',19,1) /* PTC19 */ 176 #define SPI0_PCS0_PTC19 KINETIS_MUX('C',19,2) /* PTC19 */ 177 #define I2C0_SCL_PTC19 KINETIS_MUX('C',19,3) /* PTC19 */ 178 #define UART0_CTS_b_PTC19 KINETIS_MUX('C',19,4) /* PTC19 */ 179 #define BSM_CLK_PTC19 KINETIS_MUX('C',19,5) /* PTC19 */ 180 #define BLE_RF_ACTIVE_PTC19 KINETIS_MUX('C',19,7) /* PTC19 */ 181 #endif 182