shields: esp_8266: support Nuvoton numaker_pfm_m467 board

1. Support H/W reset pin
2. Support UART flow control (CTS/RTS)

Signed-off-by: Chun-Chieh Li <ccli8@nuvoton.com>
This commit is contained in:
Chun-Chieh Li 2023-12-14 17:23:19 +08:00 committed by Fabio Baltieri
parent c7ce871a04
commit fe75bb950f
1 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,35 @@
/*
* Copyright (c) 2023 Nuvoton Technology Corporation.
*
* SPDX-License-Identifier: Apache-2.0
*/
&pinctrl {
uart2_esp8266: uart2_esp8266 {
group0 {
pinmux = <PC1MFP_UART2_TXD>,
<PC0MFP_UART2_RXD>,
<PC3MFP_UART2_nRTS>,
<PC2MFP_UART2_nCTS>;
};
};
};
&uart2 {
status = "okay";
current-speed = <115200>;
hw-flow-control;
pinctrl-0 = <&uart2_esp8266>;
pinctrl-names = "default";
esp8266: esp8266 {
compatible = "espressif,esp-at";
reset-gpios = <&gpioc 4 GPIO_ACTIVE_LOW>;
status = "okay";
};
};
&gpioc {
status = "okay";
};