1/* 2 * Copyright (c) 2022 Peter Johanson 3 * Copyright (c) 2022 Marcin Niestroj 4 * 5 * SPDX-License-Identifier: Apache-2.0 6 */ 7 8/ { 9 xiao_d: connector { 10 compatible = "seeed,xiao-gpio"; 11 #gpio-cells = <2>; 12 gpio-map-mask = <0xffffffff 0xffffffc0>; 13 gpio-map-pass-thru = <0 0x3f>; 14 gpio-map 15 = <0 0 &gpio0 2 0> /* D0 */ 16 , <1 0 &gpio0 3 0> /* D1 */ 17 , <2 0 &gpio0 28 0> /* D2 */ 18 , <3 0 &gpio0 29 0> /* D3 */ 19 , <4 0 &gpio0 4 0> /* D4 */ 20 , <5 0 &gpio0 5 0> /* D5 */ 21 , <6 0 &gpio1 11 0> /* D6 */ 22 , <7 0 &gpio1 12 0> /* D7 */ 23 , <8 0 &gpio1 13 0> /* D8 */ 24 , <9 0 &gpio1 14 0> /* D9 */ 25 , <10 0 &gpio1 15 0> /* D10 */ 26 ; 27 }; 28}; 29 30xiao_spi: &spi2 {}; 31xiao_i2c: &i2c1 {}; 32xiao_serial: &uart0 {}; 33