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