File tree Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2024 Texas Instruments Incorporated
3
+ * Copyright (c) 2024 BayLibre, SAS
4
+ *
5
+ * SPDX-License-Identifier: Apache-2.0
6
+ */
7
+
8
+ #include <zephyr/dt-bindings/pinctrl/cc23x0-pinctrl.h>
9
+
10
+ &pinctrl {
11
+ /* UART0 */
12
+ uart0_tx_default: uart0_tx_default {
13
+ pinmux = <20 DIO20_UART0_TXD>;
14
+ bias-disable;
15
+ };
16
+ uart0_rx_default: uart0_rx_default {
17
+ pinmux = <22 DIO22_UART0_RXD>;
18
+ bias-disable;
19
+ input-enable;
20
+ };
21
+ };
Original file line number Diff line number Diff line change 9
9
10
10
#include <ti/cc2340r5.dtsi>
11
11
#include "boosterpack_connector.dtsi"
12
+ #include "lp_em_cc2340r5-pinctrl.dtsi"
12
13
#include <zephyr/dt-bindings/gpio/gpio.h>
13
14
#include <zephyr/dt-bindings/input/input-event-codes.h>
14
15
20
21
zephyr,sram = &sram0;
21
22
zephyr,flash = &flash0;
22
23
zephyr,code-partition = &slot0_partition;
24
+ zephyr,console = &uart0;
25
+ zephyr,shell-uart = &uart0;
23
26
};
24
27
25
28
aliases {
63
66
&gpio0 {
64
67
status = "okay";
65
68
};
69
+
70
+ &uart0 {
71
+ status = "okay";
72
+ current-speed = <115200>;
73
+ pinctrl-0 = <&uart0_rx_default &uart0_tx_default>;
74
+ pinctrl-names = "default";
75
+ };
You can’t perform that action at this time.
0 commit comments