1/* 2 * Copyright (c) 2024 TOKITA Hiroshi 3 * SPDX-License-Identifier: Apache-2.0 4 */ 5 6/ { 7 m5stack_mbus_header: m5stack_mbus_connector { 8 compatible = "m5stack,mbus-header"; 9 #gpio-cells = <2>; 10 gpio-map-mask = <0xffffffff 0xffffffc0>; 11 gpio-map-pass-thru = <0 0x3f>; 12 gpio-map = /* GND */ <1 0 &gpio 10 0>, /* ADC */ 13 /* GND */ <3 0 &gpio 8 0>, /* PB_IN */ 14 /* GND */ /* RESET/EN */ 15 /* MOSI */ <6 0 &gpio 37 0>, <7 0 &gpio 5 0>, /* GPIO */ 16 /* MISO */ <8 0 &gpio 35 0>, <9 0 &gpio 9 0>, /* PB_OUT */ 17 /* SCK */ <10 0 &gpio 36 0>, /* 3.3V */ 18 /* RXD0 */ <12 0 &gpio 44 0>, <13 0 &gpio 43 0>, /* TXD0 */ 19 /* PC_RX */ <14 0 &gpio 18 0>, <15 0 &gpio 17 0>, /* PC_TX */ 20 /* intSDA */ <16 0 &gpio 12 0>, <17 0 &gpio 11 0>, /* intSCL */ 21 /* PA_SDA */ <18 0 &gpio 2 0>, <19 0 &gpio 1 0>, /* PA_SCL */ 22 /* GPIO */ <20 0 &gpio 6 0>, <21 0 &gpio 7 0>, /* GPIO */ 23 /* I2S_DOUT */ <22 0 &gpio 13 0>, <23 0 &gpio 0 0>, /* I2S_LRCK */ 24 /* NC */ <25 0 &gpio 3 0>; /* I2S_DIN */ 25 /* NC */ /* 5V */ 26 /* NC */ /* BAT */ 27 }; 28}; 29 30m5stack_mbus_i2c0: &i2c0 {}; 31m5stack_mbus_i2c1: &i2c1 {}; 32m5stack_mbus_uart0: &uart0 {}; 33m5stack_mbus_uart1: &uart1 {}; 34m5stack_mbus_spi: &spi2 {}; 35