1/* 2 * Copyright (c) 2023 Joel Guittet 3 * SPDX-License-Identifier: Apache-2.0 4 */ 5 6/ { 7 raspberrypi_header: raspberrypi_header { 8 compatible = "raspberrypi-40pins-header"; 9 #gpio-cells = <2>; 10 gpio-map-mask = <0xffffffff 0xffffffc0>; 11 gpio-map-pass-thru = <0 0x3f>; 12 gpio-map = <0 0 &porta 17 0>, /* I2C1_SDA */ 13 <1 0 &porta 16 0>, /* I2C1_SCL */ 14 <2 0 &portb 14 0>, /* GPCLK0 */ 15 <3 0 &portb 26 0>, /* TXD */ 16 <4 0 &portb 27 0>, /* RXD */ 17 <5 0 &porta 2 0>, /* DAC0 */ 18 <6 0 &portb 16 0>, /* I2S_BLCK */ 19 <7 0 &portb 8 0>, /* A0/D0 */ 20 <8 0 &portb 9 0>, /* A1/D1 */ 21 <9 0 &porta 7 0>, /* A2/D2 */ 22 <10 0 &portb 4 0>, /* A3/D3 */ 23 <11 0 &portb 2 0>, /* SPI_MOSI */ 24 <12 0 &portb 0 0>, /* SPI_MISO */ 25 <13 0 &portb 5 0>, /* A4/D4 */ 26 <14 0 &portb 3 0>, /* SPI_SCK */ 27 <15 0 &portb 1 0>, /* SPI_CS */ 28 <16 0 &porta 5 0>, /* DAC1 */ 29 <17 0 &porta 13 0>, /* I2C0_SDA */ 30 <18 0 &porta 12 0>, /* I2C0_SCL */ 31 <19 0 &portb 12 0>, /* GPCLK1 */ 32 <20 0 &portb 13 0>, /* GPCLK2 */ 33 <21 0 &portb 6 0>, /* A5/D5 */ 34 <22 0 &porta 4 0>, /* A6/D6 */ 35 <23 0 &porta 20 0>, /* I2S_LRCLK */ 36 <24 0 &portb 7 0>, /* A7/D7 */ 37 <25 0 &porta 6 0>, /* A8/D8 */ 38 <26 0 &porta 21 0>, /* I2S_SDIN */ 39 <27 0 &porta 22 0>; /* I2S_SDOUT */ 40 }; 41}; 42 43raspberrypi_serial: &sercom2 {}; 44raspberrypi_i2c0: &sercom4 {}; 45raspberrypi_i2c1: &sercom3 {}; 46raspberrypi_spi: &sercom5 {}; 47