Skip to content

Commit 543d550

Browse files
ene-stevenfabiobaltieri
authored andcommitted
dts: uart: kb1200 uart device nodes
Add uart device nodes and pinctrl nodes for ENE KB1200 Signed-off-by: Steven Chang <[email protected]>
1 parent 62245b3 commit 543d550

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed

dts/arm/ene/kb1200-pinctrl.dtsi

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+
};

dts/arm/ene/kb1200.dtsi

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,30 @@
9999
status = "disabled";
100100
};
101101
};
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+
};
102126
};
103127
};
104128

0 commit comments

Comments
 (0)