dts: bindings: cc13xx-cc26xx: add port info for uart tx and rx pins

Adding port information for uart tx and rx pins in dts, so that it can
be more systematically retrieved in the uart driver.

Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
This commit is contained in:
Vincent Wan 2020-04-16 11:33:22 -07:00 committed by Kumar Gala
commit 984988285b
4 changed files with 33 additions and 14 deletions

View file

@ -9,6 +9,13 @@
#include <ti/cc1352r.dtsi>
#include "boosterpack_connector.dtsi"
/*
* Define some constants from driverlib/ioc.h in TI HAL,
* since we don't have a way to include the file directly.
*/
#define IOC_PORT_MCU_UART0_TX 0x00000010
#define IOC_PORT_MCU_UART0_RX 0x0000000F
#define BTN_GPIO_FLAGS (GPIO_ACTIVE_LOW | GPIO_PULL_UP)
/ {
@ -69,8 +76,8 @@
&uart0 {
status = "okay";
current-speed = <115200>;
tx-pin = <13>;
rx-pin = <12>;
tx-pin = <13 IOC_PORT_MCU_UART0_TX>;
rx-pin = <12 IOC_PORT_MCU_UART0_RX>;
};
&i2c0 {