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>
51 lines
1.4 KiB
Plaintext
51 lines
1.4 KiB
Plaintext
/*
|
|
* Copyright (c) 2023 Martin Kiepfer
|
|
* Copyright (c) 2025 Jakub Novák <jakubnovak.cz@outlook.cz>
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/ {
|
|
m5stack_mbus_header: m5stack_mbus_connector {
|
|
compatible = "m5stack,mbus-header";
|
|
#gpio-cells = <2>;
|
|
gpio-map-mask = <0xffffffff 0xffffffc0>;
|
|
gpio-map-pass-thru = <0 0x3f>;
|
|
gpio-map = /* 0 GND */
|
|
<1 0 &gpio1 4 0>, /* ADC0 */
|
|
/* 2 GND */
|
|
<3 0 &gpio1 5 0>, /* ADC1 */
|
|
/* 4 GND */
|
|
/* 5 RESET */
|
|
<6 0 &gpio0 23 0>, /* MOSI */
|
|
<7 0 &gpio0 25 0>, /* DAC0 */
|
|
<8 0 &gpio0 19 0>, /* MISO */
|
|
<9 0 &gpio0 26 0>, /* DAC1 */
|
|
<10 0 &gpio0 18 0>, /* SCK */
|
|
/* 11 3.3V */
|
|
<12 0 &gpio0 3 0>, /* RXD0 */
|
|
<13 0 &gpio0 1 0>, /* TXD0 */
|
|
<14 0 &gpio0 16 0>, /* RXD1 */
|
|
<15 0 &gpio0 17 0>, /* TXD1 */
|
|
<16 0 &gpio0 21 0>, /* SDA */
|
|
<17 0 &gpio0 22 0>, /* SCL */
|
|
<18 0 &gpio0 2 0>, /* GPIO */
|
|
<19 0 &gpio0 5 0>, /* GPIO */
|
|
<20 0 &gpio0 12 0>, /* IIS SK */
|
|
<21 0 &gpio0 13 0>, /* IIS WS */
|
|
<22 0 &gpio0 15 0>, /* IIS OUT */
|
|
<23 0 &gpio0 0 0>, /* IIS MK */
|
|
/* 24 HPWR */
|
|
<25 0 &gpio1 3 0>; /* IIS IN */
|
|
/* 26 HPWR */
|
|
/* 27 5V */
|
|
/* 28 HPWR */
|
|
/* 29 BAT */
|
|
};
|
|
};
|
|
|
|
m5stack_mbus_i2c0: &i2c0 {};
|
|
m5stack_mbus_uart0: &uart1 {};
|
|
m5stack_mbus_uart1: &uart2 {};
|
|
m5stack_mbus_spi: &spi3 {};
|