1/* 2 * Copyright (c) 2021 Yonatan Schachter 3 * Copyright (c) 2023 Seeed Studio inc. 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7#include <dt-bindings/pinctrl/rpi-pico-rp2040-pinctrl.h> 8 9&pinctrl { 10 uart0_default: uart0_default { 11 group1 { 12 pinmux = <UART0_TX_P0>; 13 }; 14 group2 { 15 pinmux = <UART0_RX_P1>; 16 input-enable; 17 }; 18 }; 19 20 i2c1_default: i2c1_default { 21 group1 { 22 pinmux = <I2C1_SDA_P6>; 23 input-enable; 24 }; 25 group2 { 26 pinmux = <I2C1_SCL_P7>; 27 input-enable; 28 }; 29 }; 30 31 pwm_ch4b_default: pwm_ch4b_default { 32 group1 { 33 pinmux = <PWM_4B_P25>; 34 }; 35 }; 36 37 spi0_default: spi0_default { 38 group1 { 39 pinmux = <SPI0_TX_P3>; 40 }; 41 group2 { 42 pinmux = <SPI0_RX_P4>; 43 input-enable; 44 }; 45 group3 { 46 pinmux = <SPI0_SCK_P2>; 47 }; 48 }; 49 50 adc_default: adc_default { 51 group1 { 52 pinmux = <ADC_CH0_P26>, 53 <ADC_CH1_P27>, 54 <ADC_CH2_P28>, 55 <ADC_CH3_P29>; 56 input-enable; 57 }; 58 }; 59 60 ws2812_pio0_default: ws2812_pio0_default { 61 ws2812 { 62 pinmux = <PIO0_P12>; 63 }; 64 }; 65}; 66