dts: uart: kb1200 uart device nodes
Add uart device nodes and pinctrl nodes for ENE KB1200 Signed-off-by: Steven Chang <steven@ene.com.tw>
This commit is contained in:
parent
62245b3ba9
commit
543d550c54
2 changed files with 56 additions and 0 deletions
32
dts/arm/ene/kb1200-pinctrl.dtsi
Normal file
32
dts/arm/ene/kb1200-pinctrl.dtsi
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* Copyright (c) 2023 ENE Technology Inc.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <zephyr/dt-bindings/pinctrl/ene-kb1200-pinctrl.h>
|
||||
#include <zephyr/dt-bindings/gpio/gpio.h>
|
||||
|
||||
&pinctrl {
|
||||
/omit-if-no-ref/ uart0_tx_gpio03: uart0_tx_gpio03 {
|
||||
pinmux = <ENE_KB1200_PINMUX(0x03, PINMUX_FUNC_B)>;
|
||||
output-enable;
|
||||
};
|
||||
/omit-if-no-ref/ uart0_rx_gpio01: uart0_rx_gpio01 {
|
||||
pinmux = <ENE_KB1200_PINMUX(0x01, PINMUX_FUNC_A)>;
|
||||
};
|
||||
/omit-if-no-ref/ uart1_tx_gpio36: uart1_tx_gpio36 {
|
||||
pinmux = <ENE_KB1200_PINMUX(0x36, PINMUX_FUNC_C)>;
|
||||
output-enable;
|
||||
};
|
||||
/omit-if-no-ref/ uart1_rx_gpio28: uart1_rx_gpio28 {
|
||||
pinmux = <ENE_KB1200_PINMUX(0x28, PINMUX_FUNC_A)>;
|
||||
};
|
||||
/omit-if-no-ref/ uart2_tx_gpio04: uart2_tx_gpio04 {
|
||||
pinmux = <ENE_KB1200_PINMUX(0x04, PINMUX_FUNC_B)>;
|
||||
output-enable;
|
||||
};
|
||||
/omit-if-no-ref/ uart2_rx_gpio55: uart2_rx_gpio55 {
|
||||
pinmux = <ENE_KB1200_PINMUX(0x55, PINMUX_FUNC_A)>;
|
||||
};
|
||||
};
|
||||
|
|
@ -99,6 +99,30 @@
|
|||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
uart0: serial@40310000 {
|
||||
compatible = "ene,kb1200-uart";
|
||||
reg = <0x40310000 0x4c>;
|
||||
interrupts = <20 3>;
|
||||
current-speed = <115200>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
uart1: serial@40310020 {
|
||||
compatible = "ene,kb1200-uart";
|
||||
reg = <0x40310020 0x4c>;
|
||||
interrupts = <20 3>;
|
||||
current-speed = <115200>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
uart2: serial@40310040 {
|
||||
compatible = "ene,kb1200-uart";
|
||||
reg = <0x40310040 0x4c>;
|
||||
interrupts = <20 3>;
|
||||
current-speed = <115200>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue