Line data Source code
1 0 : /*
2 : * Copyright (c) 2015 - 2017, Texas Instruments Incorporated
3 : *
4 : * SPDX-License-Identifier: Apache-2.0
5 : */
6 :
7 : #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_CC13XX_CC26XX_PINCTRL_H_
8 : #define ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_CC13XX_CC26XX_PINCTRL_H_
9 :
10 : /* Adapted from hal/ti/simplelink/source/ti/devices/cc13x2_cc26x2/driverlib/ioc.h */
11 :
12 : /* IOC Peripheral Port Mapping */
13 0 : #define IOC_PORT_GPIO 0x00000000 /* Default general purpose IO usage */
14 0 : #define IOC_PORT_AON_CLK32K 0x00000007 /* AON External 32kHz clock */
15 0 : #define IOC_PORT_AUX_IO 0x00000008 /* AUX IO Pin */
16 0 : #define IOC_PORT_MCU_SSI0_RX 0x00000009 /* MCU SSI0 Receive Pin */
17 0 : #define IOC_PORT_MCU_SSI0_TX 0x0000000A /* MCU SSI0 Transmit Pin */
18 0 : #define IOC_PORT_MCU_SSI0_FSS 0x0000000B /* MCU SSI0 FSS Pin */
19 0 : #define IOC_PORT_MCU_SSI0_CLK 0x0000000C /* MCU SSI0 Clock Pin */
20 0 : #define IOC_PORT_MCU_I2C_MSSDA 0x0000000D /* MCU I2C Data Pin */
21 0 : #define IOC_PORT_MCU_I2C_MSSCL 0x0000000E /* MCU I2C Clock Pin */
22 0 : #define IOC_PORT_MCU_UART0_RX 0x0000000F /* MCU UART0 Receive Pin */
23 0 : #define IOC_PORT_MCU_UART0_TX 0x00000010 /* MCU UART0 Transmit Pin */
24 0 : #define IOC_PORT_MCU_UART0_CTS 0x00000011 /* MCU UART0 Clear To Send Pin */
25 0 : #define IOC_PORT_MCU_UART0_RTS 0x00000012 /* MCU UART0 Request To Send Pin */
26 0 : #define IOC_PORT_MCU_UART1_RX 0x00000013 /* MCU UART1 Receive Pin */
27 0 : #define IOC_PORT_MCU_UART1_TX 0x00000014 /* MCU UART1 Transmit Pin */
28 0 : #define IOC_PORT_MCU_UART1_CTS 0x00000015 /* MCU UART1 Clear To Send Pin */
29 0 : #define IOC_PORT_MCU_UART1_RTS 0x00000016 /* MCU UART1 Request To Send Pin */
30 0 : #define IOC_PORT_MCU_PORT_EVENT0 0x00000017 /* MCU PORT EVENT 0 */
31 0 : #define IOC_PORT_MCU_PORT_EVENT1 0x00000018 /* MCU PORT EVENT 1 */
32 0 : #define IOC_PORT_MCU_PORT_EVENT2 0x00000019 /* MCU PORT EVENT 2 */
33 0 : #define IOC_PORT_MCU_PORT_EVENT3 0x0000001A /* MCU PORT EVENT 3 */
34 0 : #define IOC_PORT_MCU_PORT_EVENT4 0x0000001B /* MCU PORT EVENT 4 */
35 0 : #define IOC_PORT_MCU_PORT_EVENT5 0x0000001C /* MCU PORT EVENT 5 */
36 0 : #define IOC_PORT_MCU_PORT_EVENT6 0x0000001D /* MCU PORT EVENT 6 */
37 0 : #define IOC_PORT_MCU_PORT_EVENT7 0x0000001E /* MCU PORT EVENT 7 */
38 0 : #define IOC_PORT_MCU_SWV 0x00000020 /* Serial Wire Viewer */
39 0 : #define IOC_PORT_MCU_SSI1_RX 0x00000021 /* MCU SSI1 Receive Pin */
40 0 : #define IOC_PORT_MCU_SSI1_TX 0x00000022 /* MCU SSI1 Transmit Pin */
41 0 : #define IOC_PORT_MCU_SSI1_FSS 0x00000023 /* MCU SSI1 FSS Pin */
42 0 : #define IOC_PORT_MCU_SSI1_CLK 0x00000024 /* MCU SSI1 Clock Pin */
43 0 : #define IOC_PORT_MCU_I2S_AD0 0x00000025 /* MCU I2S Data Pin 0 */
44 0 : #define IOC_PORT_MCU_I2S_AD1 0x00000026 /* MCU I2S Data Pin 1 */
45 0 : #define IOC_PORT_MCU_I2S_WCLK 0x00000027 /* MCU I2S Frame/Word Clock */
46 0 : #define IOC_PORT_MCU_I2S_BCLK 0x00000028 /* MCU I2S Bit Clock */
47 0 : #define IOC_PORT_MCU_I2S_MCLK 0x00000029 /* MCU I2S Master clock 2 */
48 0 : #define IOC_PORT_RFC_TRC 0x0000002E /* RF Core Tracer */
49 0 : #define IOC_PORT_RFC_GPO0 0x0000002F /* RC Core Data Out Pin 0 */
50 0 : #define IOC_PORT_RFC_GPO1 0x00000030 /* RC Core Data Out Pin 1 */
51 0 : #define IOC_PORT_RFC_GPO2 0x00000031 /* RC Core Data Out Pin 2 */
52 0 : #define IOC_PORT_RFC_GPO3 0x00000032 /* RC Core Data Out Pin 3 */
53 0 : #define IOC_PORT_RFC_GPI0 0x00000033 /* RC Core Data In Pin 0 */
54 0 : #define IOC_PORT_RFC_GPI1 0x00000034 /* RC Core Data In Pin 1 */
55 0 : #define IOC_PORT_RFC_SMI_DL_OUT 0x00000035 /* RF Core SMI Data Link Out */
56 0 : #define IOC_PORT_RFC_SMI_DL_IN 0x00000036 /* RF Core SMI Data Link in */
57 0 : #define IOC_PORT_RFC_SMI_CL_OUT 0x00000037 /* RF Core SMI Command Link Out */
58 0 : #define IOC_PORT_RFC_SMI_CL_IN 0x00000038 /* RF Core SMI Command Link In */
59 :
60 : /* Edge Detection */
61 0 : #define IOC_NO_EDGE 0x00000000 /* No edge detection */
62 0 : #define IOC_FALLING_EDGE 0x00010000 /* Edge detection on falling edge */
63 0 : #define IOC_RISING_EDGE 0x00020000 /* Edge detection on rising edge */
64 0 : #define IOC_BOTH_EDGES 0x00030000 /* Edge detection on both edges */
65 :
66 : #endif /* ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_CC13XX_CC26XX_PINCTRL_H_ */
|