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