1/* 2 * Copyright (c) 2021, Yonatan Schachter 3 * SPDX-License-Identifier: Apache-2.0 4 */ 5 6#include <dt-bindings/pinctrl/rpi-pico-rp2040-pinctrl.h> 7 8&pinctrl { 9 uart0_default: uart0_default { 10 group1 { 11 pinmux = <UART0_TX_P0>; 12 }; 13 group2 { 14 pinmux = <UART0_RX_P1>; 15 input-enable; 16 }; 17 }; 18 19 i2c1_default: i2c1_default { 20 group1 { 21 pinmux = <I2C1_SDA_P2>; 22 input-enable; 23 }; 24 group2 { 25 pinmux = <I2C1_SCL_P3>; 26 input-enable; 27 }; 28 }; 29 30 spi0_default: spi0_default { 31 group1 { 32 pinmux = <SPI0_TX_P19>; 33 }; 34 group2 { 35 pinmux = <SPI0_RX_P20>; 36 input-enable; 37 }; 38 group3 { 39 pinmux = <SPI0_SCK_P18>; 40 }; 41 }; 42 43 adc_default: adc_default { 44 group1 { 45 pinmux = <ADC_CH0_P26>, <ADC_CH1_P27>, <ADC_CH2_P28>, <ADC_CH3_P29>; 46 input-enable; 47 }; 48 }; 49 50 ws2812_pio0_default: ws2812_pio_default { 51 ws2812 { 52 pinmux = <PIO0_P25>; 53 }; 54 }; 55}; 56