1/* SPDX-License-Identifier: Apache-2.0
2 *
3 * Copyright (c) 2022 Vaishnav Achath
4 *
5 */
6
7#include <zephyr/dt-bindings/pinctrl/cc13xx_cc26xx-pinctrl.h>
8
9&pinctrl {
10	/* UART0 */
11	uart0_tx_default: uart0_tx_default {
12		pinmux = <13 IOC_PORT_MCU_UART0_TX>;
13		bias-disable;
14	};
15	uart0_rx_default: uart0_rx_default {
16		pinmux = <12 IOC_PORT_MCU_UART0_RX>;
17		bias-disable;
18		input-enable;
19	};
20
21	/* UART1 */
22	uart1_tx_default: uart1_tx_default {
23		pinmux = <22 IOC_PORT_MCU_UART1_TX>;
24		bias-disable;
25	};
26	uart1_rx_default: uart1_rx_default {
27		pinmux = <21 IOC_PORT_MCU_UART1_RX>;
28		bias-disable;
29		input-enable;
30	};
31
32	/* I2C0 */
33	i2c0_scl_default: i2c0_scl_default {
34		pinmux = <25 IOC_PORT_MCU_I2C_MSSCL>;
35		bias-pull-up;
36		drive-open-drain;
37		input-enable;
38	};
39	i2c0_sda_default: i2c0_sda_default {
40		pinmux = <26 IOC_PORT_MCU_I2C_MSSDA>;
41		bias-pull-up;
42		drive-open-drain;
43		input-enable;
44	};
45	i2c0_scl_sleep: i2c0_scl_sleep {
46		pinmux = <25 IOC_PORT_GPIO>;
47		bias-disable;
48	};
49	i2c0_sda_sleep: i2c0_sda_sleep {
50		pinmux = <26 IOC_PORT_GPIO>;
51		bias-disable;
52	};
53
54	/* SPI0 */
55	spi0_sck_default: spi0_sck_default {
56		pinmux = <10 IOC_PORT_MCU_SSI0_CLK>;
57		bias-disable;
58	};
59	spi0_mosi_default: spi0_mosi_default {
60		pinmux = <9 IOC_PORT_MCU_SSI0_TX>;
61		bias-disable;
62	};
63	spi0_miso_default: spi0_miso_default {
64		pinmux = <11 IOC_PORT_MCU_SSI0_RX>;
65		bias-disable;
66		input-enable;
67	};
68	spi0_cs0_default: spi0_cs0_default {
69		pinmux = <8 IOC_PORT_GPIO>;
70		bias-disable;
71	};
72	spi0_cs1_default: spi0_cs1_default {
73		pinmux = <28 IOC_PORT_GPIO>;
74		bias-disable;
75	};
76	spi0_cs2_default: spi0_cs2_default {
77		pinmux = <27 IOC_PORT_GPIO>;
78		bias-disable;
79	};
80
81	/* On-board antenna pinmux states */
82	board_ant_tx_pa_off: board_ant_tx_pa_off {
83		pinmux = <29 IOC_PORT_GPIO>;
84		bias-disable;
85	};
86	board_ant_tx_pa_on: board_ant_tx_pa_on {
87		pinmux = <29 IOC_PORT_RFC_GPO3>;
88		bias-disable;
89	};
90	board_ant_subg_off: board_ant_subg_off {
91		pinmux = <30 IOC_PORT_GPIO>;
92		bias-disable;
93	};
94	board_ant_subg_on: board_ant_subg_on {
95		pinmux = <30 IOC_PORT_RFC_GPO0>;
96		bias-disable;
97	};
98
99	/* MB1 PWM */
100	pwm0_default: pwm0_default {
101		pinmux = <17 IOC_PORT_MCU_PORT_EVENT1>;
102		bias-disable;
103		drive-strength = <2>;
104	};
105
106	/* MB2 PWM */
107	pwm1_default: pwm1_default {
108		pinmux = <19 IOC_PORT_MCU_PORT_EVENT3>;
109		bias-disable;
110		drive-strength = <2>;
111	};
112};
113