boards: heltec_wifi_lora32_v2: dts: add default pinctrl states
update peripheral nodes to use default pinctrl states. Signed-off-by: Glauber Maroto Ferreira <glauber.ferreira@espressif.com>
This commit is contained in:
parent
5e549b57b6
commit
6dd0d5d24b
2 changed files with 41 additions and 2 deletions
|
@ -0,0 +1,36 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2022 Espressif Systems (Shanghai) Co., Ltd.
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <dt-bindings/pinctrl/esp-pinctrl-common.h>
|
||||||
|
#include <dt-bindings/pinctrl/esp32-pinctrl.h>
|
||||||
|
#include <dt-bindings/pinctrl/esp32-gpio-sigmap.h>
|
||||||
|
|
||||||
|
&pinctrl {
|
||||||
|
|
||||||
|
uart0_tx_gpio1: uart0_tx_gpio1 {
|
||||||
|
pinmux = <UART0_TX_GPIO1>;
|
||||||
|
};
|
||||||
|
|
||||||
|
uart0_rx_gpio3: uart0_rx_gpio3 {
|
||||||
|
pinmux = <UART0_RX_GPIO3>;
|
||||||
|
bias-pull-up;
|
||||||
|
};
|
||||||
|
|
||||||
|
i2c0_sda_gpio4: i2c0_sda_gpio4 {
|
||||||
|
pinmux = <I2C0_SDA_GPIO4>;
|
||||||
|
bias-pull-up;
|
||||||
|
drive-open-drain;
|
||||||
|
output-high;
|
||||||
|
};
|
||||||
|
|
||||||
|
i2c0_scl_gpio15: i2c0_scl_gpio15 {
|
||||||
|
pinmux = <I2C0_SCL_GPIO15>;
|
||||||
|
bias-pull-up;
|
||||||
|
drive-open-drain;
|
||||||
|
output-high;
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
|
@ -6,6 +6,7 @@
|
||||||
/dts-v1/;
|
/dts-v1/;
|
||||||
|
|
||||||
#include <espressif/esp32.dtsi>
|
#include <espressif/esp32.dtsi>
|
||||||
|
#include "heltec_wifi_lora32_v2-pinctrl.dtsi"
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
model = "heltec_wifi_lora32";
|
model = "heltec_wifi_lora32";
|
||||||
|
@ -66,8 +67,8 @@
|
||||||
&uart0 {
|
&uart0 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
current-speed = <115200>;
|
current-speed = <115200>;
|
||||||
tx-pin = <1>;
|
pinctrl-0 = <&uart0_tx_gpio1 &uart0_rx_gpio3>;
|
||||||
rx-pin = <3>;
|
pinctrl-names = "default";
|
||||||
};
|
};
|
||||||
|
|
||||||
&gpio0 {
|
&gpio0 {
|
||||||
|
@ -79,6 +80,8 @@
|
||||||
clock-frequency = <I2C_BITRATE_FAST>;
|
clock-frequency = <I2C_BITRATE_FAST>;
|
||||||
sda-pin = <4>;
|
sda-pin = <4>;
|
||||||
scl-pin = <15>;
|
scl-pin = <15>;
|
||||||
|
pinctrl-0 = <&i2c0_sda_gpio4 &i2c0_scl_gpio15>;
|
||||||
|
pinctrl-names = "default";
|
||||||
};
|
};
|
||||||
|
|
||||||
&flash0 {
|
&flash0 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue