44 lines
757 B
Plaintext
44 lines
757 B
Plaintext
|
/*
|
||
|
* Copyright 2022 Google LLC
|
||
|
*
|
||
|
* SPDX-License-Identifier: Apache-2.0
|
||
|
*/
|
||
|
|
||
|
#include <zephyr/dt-bindings/pinctrl/esp-pinctrl-common.h>
|
||
|
#include <dt-bindings/pinctrl/esp32c3-pinctrl.h>
|
||
|
#include <zephyr/dt-bindings/pinctrl/esp32c3-gpio-sigmap.h>
|
||
|
|
||
|
&pinctrl {
|
||
|
uart1_default: uart1_default {
|
||
|
group1 {
|
||
|
pinmux = <UART1_TX_GPIO21>;
|
||
|
output-high;
|
||
|
};
|
||
|
group2 {
|
||
|
pinmux = <UART1_RX_GPIO20>;
|
||
|
bias-pull-up;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
spim2_default: spim2_default {
|
||
|
group1 {
|
||
|
pinmux = <SPIM2_MISO_GPIO8>,
|
||
|
<SPIM2_SCLK_GPIO10>;
|
||
|
};
|
||
|
group2 {
|
||
|
pinmux = <SPIM2_MOSI_GPIO7>;
|
||
|
output-low;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
i2c0_default: i2c0_default {
|
||
|
group1 {
|
||
|
pinmux = <I2C0_SDA_GPIO5>,
|
||
|
<I2C0_SCL_GPIO6>;
|
||
|
bias-pull-up;
|
||
|
drive-open-drain;
|
||
|
output-high;
|
||
|
};
|
||
|
};
|
||
|
};
|