1/* 2 * Copyright (c) 2024 Iacopo Moles 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7#include <dt-bindings/pinctrl/rpi-pico-rp2040-pinctrl.h> 8#include <dt-bindings/i2c/i2c.h> 9 10&pinctrl { 11 uart0_default: uart0_default { 12 status = "okay"; 13 group1 { 14 pinmux = <UART0_TX_P0>; 15 }; 16 group2 { 17 pinmux = <UART0_RX_P1>; 18 input-enable; 19 }; 20 }; 21 22 i2c0_default: i2c0_default { 23 group1 { 24 pinmux = <I2C0_SDA_P24>; 25 input-enable; 26 }; 27 group2 { 28 pinmux = <I2C0_SCL_P25>; 29 input-enable; 30 }; 31 }; 32 33 i2c1_default: i2c1_default { 34 group1 { 35 pinmux = <I2C1_SDA_P22>; 36 input-enable; 37 }; 38 group2 { 39 pinmux = <I2C1_SCL_P23>; 40 input-enable; 41 }; 42 }; 43 44 spi0_default: spi0_default { 45 group1 { 46 pinmux = <SPI0_TX_P3>; 47 }; 48 group2 { 49 pinmux = <SPI0_RX_P4>; 50 input-enable; 51 }; 52 group3 { 53 pinmux = <SPI0_SCK_P6>; 54 }; 55 }; 56 57 adc_default: adc_default { 58 group1 { 59 pinmux = <ADC_CH0_P26>, <ADC_CH1_P27>, <ADC_CH2_P28>, <ADC_CH3_P29>; 60 input-enable; 61 }; 62 }; 63 64 ws2812_pio0_default: ws2812_pio0_default { 65 ws2812 { 66 pinmux = <PIO0_P16>; 67 }; 68 }; 69}; 70