1/* 2 * Copyright (c) 2023 Martin Kiepfer 3 * SPDX-License-Identifier: Apache-2.0 4 */ 5 6/ { 7 m5stack_stamps3_header: m5stack_stamps3_header { 8 compatible = "m5stack,stamps3-header"; 9 #gpio-cells = <2>; 10 gpio-map-mask = <0xffffffff 0xffffffc0>; 11 gpio-map-pass-thru = <0 0x3f>; 12 gpio-map = 13 <0 0 &gpio0 1 0>, /* GPIO/AIN */ 14 <1 0 &gpio0 2 0>, /* GPIO/AIN */ 15 <2 0 &gpio0 3 0>, /* GPIO/AIN/CLKOUT1-3 */ 16 <3 0 &gpio0 4 0>, /* GPIO/AIN */ 17 <4 0 &gpio0 5 0>, /* GPIO/AIN/SPI2-MOSI */ 18 <5 0 &gpio0 6 0>, /* GPIO/AIN/SPI2-CLK */ 19 <6 0 &gpio0 7 0>, /* GPIO/AIN/SPI2-CS */ 20 <7 0 &gpio0 8 0>, /* GPIO/AIN */ 21 <8 0 &gpio0 9 0>, /* GPIO/AIN/CLKOUT1-4 */ 22 <9 0 &gpio0 10 0>, /* GPIO/AIN */ 23 /* 10 GND */ 24 <11 0 &gpio0 11 0>, /* GPIO/AIN/SDA1 */ 25 /* 11 5V */ 26 <12 0 &gpio0 12 0>, /* GPIO/AIN/SCL1 */ 27 <14 0 &gpio0 13 0>, /* GPIO/AIN/SDA0 */ 28 <15 0 &gpio0 14 0>, /* GPIO/AIN */ 29 <16 0 &gpio0 15 0>, /* GPIO/AIN/SCL0 */ 30 /* 17 GND */ 31 <18 0 &gpio1 7 0>, /* GPIO/CLKOUT0-0 */ 32 <19 0 &gpio0 0 0>, /* GPIO */ 33 <20 0 &gpio1 8 0>, /* GPIO/CLKOUT0-1 */ 34 /* 21 EN */ 35 <22 0 &gpio1 9 0>, /* GPIO/CLKOUT1-0 */ 36 <23 0 &gpio1 12 0>, /* GPIO/CLKOUT1-1/RXD0 */ 37 <24 0 &gpio1 10 0>, /* GPIO */ 38 <25 0 &gpio1 11 0>, /* GPIO/CLKOUT1.2/TXD0 */ 39 <26 0 &gpio1 14 0>; /* GPIO */ 40 /* 27 3V3 */ 41 }; 42}; 43 44m5stack_stamps3_uart0: &uart0 {}; 45m5stack_stamps3_i2c0: &i2c0 {}; 46m5stack_stamps3_i2c1: &i2c1 {}; 47m5stack_stamps3_clkout0: &mcpwm0 {}; 48m5stack_stamps3_spilcd: &spi2 {}; 49