File tree Expand file tree Collapse file tree 2 files changed +56
-0
lines changed Expand file tree Collapse file tree 2 files changed +56
-0
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2023 ENE Technology Inc.
3
+ *
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+
7
+ #include <zephyr/dt-bindings/pinctrl/ene-kb1200-pinctrl.h>
8
+ #include <zephyr/dt-bindings/gpio/gpio.h>
9
+
10
+ &pinctrl {
11
+ /omit-if-no-ref/ uart0_tx_gpio03: uart0_tx_gpio03 {
12
+ pinmux = <ENE_KB1200_PINMUX(0x03, PINMUX_FUNC_B)>;
13
+ output-enable;
14
+ };
15
+ /omit-if-no-ref/ uart0_rx_gpio01: uart0_rx_gpio01 {
16
+ pinmux = <ENE_KB1200_PINMUX(0x01, PINMUX_FUNC_A)>;
17
+ };
18
+ /omit-if-no-ref/ uart1_tx_gpio36: uart1_tx_gpio36 {
19
+ pinmux = <ENE_KB1200_PINMUX(0x36, PINMUX_FUNC_C)>;
20
+ output-enable;
21
+ };
22
+ /omit-if-no-ref/ uart1_rx_gpio28: uart1_rx_gpio28 {
23
+ pinmux = <ENE_KB1200_PINMUX(0x28, PINMUX_FUNC_A)>;
24
+ };
25
+ /omit-if-no-ref/ uart2_tx_gpio04: uart2_tx_gpio04 {
26
+ pinmux = <ENE_KB1200_PINMUX(0x04, PINMUX_FUNC_B)>;
27
+ output-enable;
28
+ };
29
+ /omit-if-no-ref/ uart2_rx_gpio55: uart2_rx_gpio55 {
30
+ pinmux = <ENE_KB1200_PINMUX(0x55, PINMUX_FUNC_A)>;
31
+ };
32
+ };
Original file line number Diff line number Diff line change 99
99
status = "disabled";
100
100
};
101
101
};
102
+
103
+ uart0: serial@40310000 {
104
+ compatible = "ene,kb1200-uart";
105
+ reg = <0x40310000 0x4c>;
106
+ interrupts = <20 3>;
107
+ current-speed = <115200>;
108
+ status = "disabled";
109
+ };
110
+
111
+ uart1: serial@40310020 {
112
+ compatible = "ene,kb1200-uart";
113
+ reg = <0x40310020 0x4c>;
114
+ interrupts = <20 3>;
115
+ current-speed = <115200>;
116
+ status = "disabled";
117
+ };
118
+
119
+ uart2: serial@40310040 {
120
+ compatible = "ene,kb1200-uart";
121
+ reg = <0x40310040 0x4c>;
122
+ interrupts = <20 3>;
123
+ current-speed = <115200>;
124
+ status = "disabled";
125
+ };
102
126
};
103
127
};
104
128
You can’t perform that action at this time.
0 commit comments