Adds support for the M5Stack Fire. Board files are adapted from those used for the M5Stack Core2. Aside from the 2 newest revisions the device also contains a BMM150 magnetometer which is not supported. The LED strips on the sides are also not supported because Zephyr does not support fast GPIO switching, see: #11917. The IP5306 charger works by itself but doesn't have a driver written for it thus it's not able to be interfaced with. Signed-off-by: Jakub Novák <jakubnovak.cz@outlook.cz>
73 lines
1.3 KiB
Plaintext
73 lines
1.3 KiB
Plaintext
/*
|
|
* Copyright (c) 2022 AVSystem Sławomir Wolf Sp.j. (AVSystem)
|
|
* Copyright (c) 2023 Martin Kiepfer <m.kiepfer@teleschrim.org>
|
|
* Copyright (c) 2025 Jakub Novák <jakubnovak.cz@outlook.cz>
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <zephyr/dt-bindings/pinctrl/esp-pinctrl-common.h>
|
|
#include <dt-bindings/pinctrl/esp32-pinctrl.h>
|
|
#include <zephyr/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;
|
|
};
|
|
|
|
uart1_rx_gpio33: uart1_rx_gpio33 {
|
|
pinmux = <UART1_RX_GPIO33>;
|
|
};
|
|
|
|
uart2_rx_gpio13: uart2_rx_gpio13 {
|
|
pinmux = <UART2_RX_GPIO13>;
|
|
};
|
|
|
|
uart2_tx_gpio14: uart2_rx_gpio14 {
|
|
pinmux = <UART2_TX_GPIO14>;
|
|
};
|
|
|
|
uart1_tx_gpio32: uart1_tx_gpio32 {
|
|
pinmux = <UART1_TX_GPIO32>;
|
|
};
|
|
|
|
spim3_default: spim3_default {
|
|
group1 {
|
|
pinmux = <SPIM3_MISO_GPIO23>,
|
|
<SPIM3_SCLK_GPIO18>;
|
|
};
|
|
|
|
group2 {
|
|
pinmux = <SPIM3_MOSI_GPIO23>, <SPIM3_SCLK_GPIO18>;
|
|
output-low;
|
|
};
|
|
};
|
|
|
|
i2c0_default: i2c0_default {
|
|
group1 {
|
|
pinmux = <I2C0_SDA_GPIO21>,
|
|
<I2C0_SCL_GPIO22>;
|
|
drive-open-drain;
|
|
output-high;
|
|
};
|
|
};
|
|
|
|
ledc0_default: ledc0_default {
|
|
group1 {
|
|
pinmux = <LEDC_CH7_GPIO32>;
|
|
output-enable;
|
|
};
|
|
|
|
group2 {
|
|
pinmux = <LEDC_CH8_GPIO25>;
|
|
output-enable;
|
|
};
|
|
};
|
|
};
|