zephyr/boards/beagle/beagleconnect_freedom/beagleconnect_freedom-pinct...

113 lines
2.3 KiB
Plaintext

/* SPDX-License-Identifier: Apache-2.0
*
* Copyright (c) 2022 Vaishnav Achath
*
*/
#include <zephyr/dt-bindings/pinctrl/cc13xx_cc26xx-pinctrl.h>
&pinctrl {
/* UART0 */
uart0_tx_default: uart0_tx_default {
pinmux = <13 IOC_PORT_MCU_UART0_TX>;
bias-disable;
};
uart0_rx_default: uart0_rx_default {
pinmux = <12 IOC_PORT_MCU_UART0_RX>;
bias-disable;
input-enable;
};
/* UART1 */
uart1_tx_default: uart1_tx_default {
pinmux = <22 IOC_PORT_MCU_UART1_TX>;
bias-disable;
};
uart1_rx_default: uart1_rx_default {
pinmux = <21 IOC_PORT_MCU_UART1_RX>;
bias-disable;
input-enable;
};
/* I2C0 */
i2c0_scl_default: i2c0_scl_default {
pinmux = <25 IOC_PORT_MCU_I2C_MSSCL>;
bias-pull-up;
drive-open-drain;
input-enable;
};
i2c0_sda_default: i2c0_sda_default {
pinmux = <26 IOC_PORT_MCU_I2C_MSSDA>;
bias-pull-up;
drive-open-drain;
input-enable;
};
i2c0_scl_sleep: i2c0_scl_sleep {
pinmux = <25 IOC_PORT_GPIO>;
bias-disable;
};
i2c0_sda_sleep: i2c0_sda_sleep {
pinmux = <26 IOC_PORT_GPIO>;
bias-disable;
};
/* SPI0 */
spi0_sck_default: spi0_sck_default {
pinmux = <10 IOC_PORT_MCU_SSI0_CLK>;
bias-disable;
};
spi0_mosi_default: spi0_mosi_default {
pinmux = <9 IOC_PORT_MCU_SSI0_TX>;
bias-disable;
};
spi0_miso_default: spi0_miso_default {
pinmux = <11 IOC_PORT_MCU_SSI0_RX>;
bias-disable;
input-enable;
};
spi0_cs0_default: spi0_cs0_default {
pinmux = <8 IOC_PORT_GPIO>;
bias-disable;
};
spi0_cs1_default: spi0_cs1_default {
pinmux = <28 IOC_PORT_GPIO>;
bias-disable;
};
spi0_cs2_default: spi0_cs2_default {
pinmux = <27 IOC_PORT_GPIO>;
bias-disable;
};
/* On-board antenna pinmux states */
board_ant_tx_pa_off: board_ant_tx_pa_off {
pinmux = <29 IOC_PORT_GPIO>;
bias-disable;
};
board_ant_tx_pa_on: board_ant_tx_pa_on {
pinmux = <29 IOC_PORT_RFC_GPO3>;
bias-disable;
};
board_ant_subg_off: board_ant_subg_off {
pinmux = <30 IOC_PORT_GPIO>;
bias-disable;
};
board_ant_subg_on: board_ant_subg_on {
pinmux = <30 IOC_PORT_RFC_GPO0>;
bias-disable;
};
/* MB1 PWM */
pwm0_default: pwm0_default {
pinmux = <17 IOC_PORT_MCU_PORT_EVENT1>;
bias-disable;
drive-strength = <2>;
};
/* MB2 PWM */
pwm1_default: pwm1_default {
pinmux = <19 IOC_PORT_MCU_PORT_EVENT3>;
bias-disable;
drive-strength = <2>;
};
};