/* * NOTE: Autogenerated file by kinetis_signal2dts.py * for MKW41Z512CAT4/signal_configuration.xml * * Copyright (c) 2022, NXP * SPDX-License-Identifier: Apache-2.0 */ #ifndef _ZEPHYR_DTS_BINDING_MKW41Z512CAT4_ #define _ZEPHYR_DTS_BINDING_MKW41Z512CAT4_ #define KINETIS_MUX(port, pin, mux) \ (((((port) - 'A') & 0xF) << 28) | \ (((pin) & 0x3F) << 22) | \ (((mux) & 0x7) << 8)) #define TSI0_CH8_PTA0 KINETIS_MUX('A',0,0) /* PTA0 */ #define PTA0 KINETIS_MUX('A',0,1) /* PTA0 */ #define SPI0_PCS1_PTA0 KINETIS_MUX('A',0,2) /* PTA0 */ #define TPM1_CH0_PTA0 KINETIS_MUX('A',0,5) /* PTA0 */ #define SWD_DIO_PTA0 KINETIS_MUX('A',0,7) /* PTA0 */ #define TSI0_CH9_PTA1 KINETIS_MUX('A',1,0) /* PTA1 */ #define PTA1 KINETIS_MUX('A',1,1) /* PTA1 */ #define SPI1_PCS0_PTA1 KINETIS_MUX('A',1,2) /* PTA1 */ #define TPM1_CH1_PTA1 KINETIS_MUX('A',1,5) /* PTA1 */ #define SWD_CLK_PTA1 KINETIS_MUX('A',1,7) /* PTA1 */ #define PTA2 KINETIS_MUX('A',2,1) /* PTA2 */ #define TPM0_CH3_PTA2 KINETIS_MUX('A',2,5) /* PTA2 */ #define RESET_b_PTA2 KINETIS_MUX('A',2,7) /* PTA2 */ #define TSI0_CH10_PTA16 KINETIS_MUX('A',16,0) /* PTA16 */ #define PTA16 KINETIS_MUX('A',16,1) /* PTA16 */ #define LLWU_P4_PTA16 KINETIS_MUX('A',16,1) /* PTA16 */ #define SPI1_SOUT_PTA16 KINETIS_MUX('A',16,2) /* PTA16 */ #define TPM0_CH0_PTA16 KINETIS_MUX('A',16,5) /* PTA16 */ #define TSI0_CH11_PTA17 KINETIS_MUX('A',17,0) /* PTA17 */ #define RF_RESET_PTA17 KINETIS_MUX('A',17,1) /* PTA17 */ #define LLWU_P5_PTA17 KINETIS_MUX('A',17,1) /* PTA17 */ #define PTA17 KINETIS_MUX('A',17,1) /* PTA17 */ #define SPI1_SIN_PTA17 KINETIS_MUX('A',17,2) /* PTA17 */ #define TPM_CLKIN1_PTA17 KINETIS_MUX('A',17,5) /* PTA17 */ #define TSI0_CH12_PTA18 KINETIS_MUX('A',18,0) /* PTA18 */ #define PTA18 KINETIS_MUX('A',18,1) /* PTA18 */ #define LLWU_P6_PTA18 KINETIS_MUX('A',18,1) /* PTA18 */ #define SPI1_SCK_PTA18 KINETIS_MUX('A',18,2) /* PTA18 */ #define TPM2_CH0_PTA18 KINETIS_MUX('A',18,5) /* PTA18 */ #define TSI0_CH13_PTA19 KINETIS_MUX('A',19,0) /* PTA19 */ #define ADC0_SE5_PTA19 KINETIS_MUX('A',19,0) /* PTA19 */ #define PTA19 KINETIS_MUX('A',19,1) /* PTA19 */ #define LLWU_P7_PTA19 KINETIS_MUX('A',19,1) /* PTA19 */ #define SPI1_PCS0_PTA19 KINETIS_MUX('A',19,2) /* PTA19 */ #define TPM2_CH1_PTA19 KINETIS_MUX('A',19,5) /* PTA19 */ #define PTB0 KINETIS_MUX('B',0,1) /* PTB0 */ #define LLWU_P8_PTB0 KINETIS_MUX('B',0,1) /* PTB0 */ #define XTAL_OUT_EN_PTB0 KINETIS_MUX('B',0,1) /* PTB0 */ #define I2C0_SCL_PTB0 KINETIS_MUX('B',0,3) /* PTB0 */ #define CMP0_OUT_PTB0 KINETIS_MUX('B',0,4) /* PTB0 */ #define TPM0_CH1_PTB0 KINETIS_MUX('B',0,5) /* PTB0 */ #define CLKOUT_PTB0 KINETIS_MUX('B',0,7) /* PTB0 */ #define CMP0_IN5_PTB1 KINETIS_MUX('B',1,0) /* PTB1 */ #define ADC0_SE1_PTB1 KINETIS_MUX('B',1,0) /* PTB1 */ #define PTB1 KINETIS_MUX('B',1,1) /* PTB1 */ #define DTM_RX_PTB1 KINETIS_MUX('B',1,2) /* PTB1 */ #define I2C0_SDA_PTB1 KINETIS_MUX('B',1,3) /* PTB1 */ #define LPTMR0_ALT1_PTB1 KINETIS_MUX('B',1,4) /* PTB1 */ #define TPM0_CH2_PTB1 KINETIS_MUX('B',1,5) /* PTB1 */ #define CMT_IRO_PTB1 KINETIS_MUX('B',1,7) /* PTB1 */ #define CMP0_IN3_PTB2 KINETIS_MUX('B',2,0) /* PTB2 */ #define ADC0_SE3_PTB2 KINETIS_MUX('B',2,0) /* PTB2 */ #define PTB2 KINETIS_MUX('B',2,1) /* PTB2 */ #define RF_NOT_ALLOWED_PTB2 KINETIS_MUX('B',2,2) /* PTB2 */ #define DTM_TX_PTB2 KINETIS_MUX('B',2,3) /* PTB2 */ #define TPM1_CH0_PTB2 KINETIS_MUX('B',2,5) /* PTB2 */ #define ADC0_SE2_PTB3 KINETIS_MUX('B',3,0) /* PTB3 */ #define CMP0_IN4_PTB3 KINETIS_MUX('B',3,0) /* PTB3 */ #define PTB3 KINETIS_MUX('B',3,1) /* PTB3 */ #define CLKOUT_PTB3 KINETIS_MUX('B',3,4) /* PTB3 */ #define TPM1_CH1_PTB3 KINETIS_MUX('B',3,5) /* PTB3 */ #define RTC_CLKOUT_PTB3 KINETIS_MUX('B',3,7) /* PTB3 */ #define EXTAL32K_PTB16 KINETIS_MUX('B',16,0) /* PTB16 */ #define PTB16 KINETIS_MUX('B',16,1) /* PTB16 */ #define I2C1_SCL_PTB16 KINETIS_MUX('B',16,3) /* PTB16 */ #define TPM2_CH0_PTB16 KINETIS_MUX('B',16,5) /* PTB16 */ #define XTAL32K_PTB17 KINETIS_MUX('B',17,0) /* PTB17 */ #define PTB17 KINETIS_MUX('B',17,1) /* PTB17 */ #define I2C1_SDA_PTB17 KINETIS_MUX('B',17,3) /* PTB17 */ #define TPM2_CH1_PTB17 KINETIS_MUX('B',17,5) /* PTB17 */ #define BSM_CLK_PTB17 KINETIS_MUX('B',17,7) /* PTB17 */ #define ADC0_SE4_PTB18 KINETIS_MUX('B',18,0) /* PTB18 */ #define DAC0_OUT_PTB18 KINETIS_MUX('B',18,0) /* PTB18 */ #define CMP0_IN2_PTB18 KINETIS_MUX('B',18,0) /* PTB18 */ #define PTB18 KINETIS_MUX('B',18,1) /* PTB18 */ #define I2C1_SCL_PTB18 KINETIS_MUX('B',18,3) /* PTB18 */ #define TPM_CLKIN0_PTB18 KINETIS_MUX('B',18,4) /* PTB18 */ #define TPM0_CH0_PTB18 KINETIS_MUX('B',18,5) /* PTB18 */ #define NMI_b_PTB18 KINETIS_MUX('B',18,7) /* PTB18 */ #define PTC0 KINETIS_MUX('C',0,1) /* PTC0 */ #define LLWU_P9_PTC0 KINETIS_MUX('C',0,1) /* PTC0 */ #define ANT_A_PTC0 KINETIS_MUX('C',0,2) /* PTC0 */ #define I2C0_SCL_PTC0 KINETIS_MUX('C',0,3) /* PTC0 */ #define UART0_CTS_b_PTC0 KINETIS_MUX('C',0,4) /* PTC0 */ #define TPM0_CH1_PTC0 KINETIS_MUX('C',0,5) /* PTC0 */ #define PTC1 KINETIS_MUX('C',1,1) /* PTC1 */ #define ANT_B_PTC1 KINETIS_MUX('C',1,2) /* PTC1 */ #define I2C0_SDA_PTC1 KINETIS_MUX('C',1,3) /* PTC1 */ #define UART0_RTS_b_PTC1 KINETIS_MUX('C',1,4) /* PTC1 */ #define TPM0_CH2_PTC1 KINETIS_MUX('C',1,5) /* PTC1 */ #define BLE_RF_ACTIVE_PTC1 KINETIS_MUX('C',1,7) /* PTC1 */ #define TSI0_CH14_PTC2 KINETIS_MUX('C',2,0) /* PTC2 */ #define PTC2 KINETIS_MUX('C',2,1) /* PTC2 */ #define LLWU_P10_PTC2 KINETIS_MUX('C',2,1) /* PTC2 */ #define TX_SWITCH_PTC2 KINETIS_MUX('C',2,2) /* PTC2 */ #define I2C1_SCL_PTC2 KINETIS_MUX('C',2,3) /* PTC2 */ #define UART0_RX_PTC2 KINETIS_MUX('C',2,4) /* PTC2 */ #define CMT_IRO_PTC2 KINETIS_MUX('C',2,5) /* PTC2 */ #define DTM_RX_PTC2 KINETIS_MUX('C',2,7) /* PTC2 */ #define TSI0_CH15_PTC3 KINETIS_MUX('C',3,0) /* PTC3 */ #define LLWU_P11_PTC3 KINETIS_MUX('C',3,1) /* PTC3 */ #define PTC3 KINETIS_MUX('C',3,1) /* PTC3 */ #define RX_SWITCH_PTC3 KINETIS_MUX('C',3,2) /* PTC3 */ #define I2C1_SDA_PTC3 KINETIS_MUX('C',3,3) /* PTC3 */ #define UART0_TX_PTC3 KINETIS_MUX('C',3,4) /* PTC3 */ #define TPM0_CH1_PTC3 KINETIS_MUX('C',3,5) /* PTC3 */ #define DTM_TX_PTC3 KINETIS_MUX('C',3,7) /* PTC3 */ #define TSI0_CH0_PTC4 KINETIS_MUX('C',4,0) /* PTC4 */ #define LLWU_P12_PTC4 KINETIS_MUX('C',4,1) /* PTC4 */ #define PTC4 KINETIS_MUX('C',4,1) /* PTC4 */ #define ANT_A_PTC4 KINETIS_MUX('C',4,2) /* PTC4 */ #define EXTRG_IN_PTC4 KINETIS_MUX('C',4,3) /* PTC4 */ #define UART0_CTS_b_PTC4 KINETIS_MUX('C',4,4) /* PTC4 */ #define TPM1_CH0_PTC4 KINETIS_MUX('C',4,5) /* PTC4 */ #define BSM_DATA_PTC4 KINETIS_MUX('C',4,7) /* PTC4 */ #define TSI0_CH1_PTC5 KINETIS_MUX('C',5,0) /* PTC5 */ #define LLWU_P13_PTC5 KINETIS_MUX('C',5,1) /* PTC5 */ #define PTC5 KINETIS_MUX('C',5,1) /* PTC5 */ #define RF_NOT_ALLOWED_PTC5 KINETIS_MUX('C',5,2) /* PTC5 */ #define LPTMR0_ALT2_PTC5 KINETIS_MUX('C',5,3) /* PTC5 */ #define UART0_RTS_b_PTC5 KINETIS_MUX('C',5,4) /* PTC5 */ #define TPM1_CH1_PTC5 KINETIS_MUX('C',5,5) /* PTC5 */ #define BSM_CLK_PTC5 KINETIS_MUX('C',5,7) /* PTC5 */ #define TSI0_CH2_PTC6 KINETIS_MUX('C',6,0) /* PTC6 */ #define PTC6 KINETIS_MUX('C',6,1) /* PTC6 */ #define LLWU_P14_PTC6 KINETIS_MUX('C',6,1) /* PTC6 */ #define XTAL_OUT_EN_PTC6 KINETIS_MUX('C',6,1) /* PTC6 */ #define I2C1_SCL_PTC6 KINETIS_MUX('C',6,3) /* PTC6 */ #define UART0_RX_PTC6 KINETIS_MUX('C',6,4) /* PTC6 */ #define TPM2_CH0_PTC6 KINETIS_MUX('C',6,5) /* PTC6 */ #define BSM_FRAME_PTC6 KINETIS_MUX('C',6,7) /* PTC6 */ #define TSI0_CH3_PTC7 KINETIS_MUX('C',7,0) /* PTC7 */ #define PTC7 KINETIS_MUX('C',7,1) /* PTC7 */ #define LLWU_P15_PTC7 KINETIS_MUX('C',7,1) /* PTC7 */ #define SPI0_PCS2_PTC7 KINETIS_MUX('C',7,2) /* PTC7 */ #define I2C1_SDA_PTC7 KINETIS_MUX('C',7,3) /* PTC7 */ #define UART0_TX_PTC7 KINETIS_MUX('C',7,4) /* PTC7 */ #define TPM2_CH1_PTC7 KINETIS_MUX('C',7,5) /* PTC7 */ #define BSM_DATA_PTC7 KINETIS_MUX('C',7,7) /* PTC7 */ #define TSI0_CH4_PTC16 KINETIS_MUX('C',16,0) /* PTC16 */ #define LLWU_P0_PTC16 KINETIS_MUX('C',16,1) /* PTC16 */ #define PTC16 KINETIS_MUX('C',16,1) /* PTC16 */ #define SPI0_SCK_PTC16 KINETIS_MUX('C',16,2) /* PTC16 */ #define I2C0_SDA_PTC16 KINETIS_MUX('C',16,3) /* PTC16 */ #define UART0_RTS_b_PTC16 KINETIS_MUX('C',16,4) /* PTC16 */ #define TPM0_CH3_PTC16 KINETIS_MUX('C',16,5) /* PTC16 */ #define TSI0_CH5_PTC17 KINETIS_MUX('C',17,0) /* PTC17 */ #define LLWU_P1_PTC17 KINETIS_MUX('C',17,1) /* PTC17 */ #define PTC17 KINETIS_MUX('C',17,1) /* PTC17 */ #define SPI0_SOUT_PTC17 KINETIS_MUX('C',17,2) /* PTC17 */ #define I2C1_SCL_PTC17 KINETIS_MUX('C',17,3) /* PTC17 */ #define UART0_RX_PTC17 KINETIS_MUX('C',17,4) /* PTC17 */ #define BSM_FRAME_PTC17 KINETIS_MUX('C',17,5) /* PTC17 */ #define DTM_RX_PTC17 KINETIS_MUX('C',17,7) /* PTC17 */ #define TSI0_CH6_PTC18 KINETIS_MUX('C',18,0) /* PTC18 */ #define PTC18 KINETIS_MUX('C',18,1) /* PTC18 */ #define LLWU_P2_PTC18 KINETIS_MUX('C',18,1) /* PTC18 */ #define SPI0_SIN_PTC18 KINETIS_MUX('C',18,2) /* PTC18 */ #define I2C1_SDA_PTC18 KINETIS_MUX('C',18,3) /* PTC18 */ #define UART0_TX_PTC18 KINETIS_MUX('C',18,4) /* PTC18 */ #define BSM_DATA_PTC18 KINETIS_MUX('C',18,5) /* PTC18 */ #define DTM_TX_PTC18 KINETIS_MUX('C',18,7) /* PTC18 */ #define TSI0_CH7_PTC19 KINETIS_MUX('C',19,0) /* PTC19 */ #define PTC19 KINETIS_MUX('C',19,1) /* PTC19 */ #define LLWU_P3_PTC19 KINETIS_MUX('C',19,1) /* PTC19 */ #define SPI0_PCS0_PTC19 KINETIS_MUX('C',19,2) /* PTC19 */ #define I2C0_SCL_PTC19 KINETIS_MUX('C',19,3) /* PTC19 */ #define UART0_CTS_b_PTC19 KINETIS_MUX('C',19,4) /* PTC19 */ #define BSM_CLK_PTC19 KINETIS_MUX('C',19,5) /* PTC19 */ #define BLE_RF_ACTIVE_PTC19 KINETIS_MUX('C',19,7) /* PTC19 */ #endif