Commit fe75bb95 authored by Chun-Chieh Li's avatar Chun-Chieh Li Committed by Fabio Baltieri
Browse files

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: default avatarChun-Chieh Li <ccli8@nuvoton.com>
parent c7ce871a
Loading
Loading
Loading
Loading
+35 −0
Changes for boards/shields/esp_8266/boards/numaker_pfm_m467.overlay: 35 added lines, 0 removed lines.
Original line number Diff line number Diff line
/*
 * 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";
};