1/*
2 * Copyright (c) 2024 RAKwireless Technology Co., Ltd. <www.rakwireless.com>
3 * Sercan Erat <sercanerat@gmail.com>
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#include <dt-bindings/pinctrl/ambiq-apollo3-pinctrl.h>
8
9&pinctrl {
10	uart0_default: uart0_default {
11		group1 {
12			pinmux = <UART0TX_P39>;
13		};
14		group2 {
15			pinmux = <UART0RX_P40>;
16			input-enable;
17		};
18	};
19	i2c0_default: i2c0_default {
20		group1 {
21			pinmux = <M0SCL_P5>, <M0SDAWIR3_P6>;
22			drive-open-drain;
23			drive-strength = "0.5";
24			bias-pull-up;
25		};
26	};
27	i2c1_default: i2c1_default {
28		group1 {
29			pinmux = <M1SCL_P8>, <M1SDAWIR3_P9>;
30			drive-open-drain;
31			drive-strength = "0.5";
32			bias-pull-up;
33		};
34	};
35	i2c2_default: i2c2_default {
36		group1 {
37			pinmux = <M2SCL_P27>, <M2SDAWIR3_P25>;
38			drive-open-drain;
39			drive-strength = "0.5";
40			bias-pull-up;
41		};
42	};
43	i2c3_default: i2c3_default {
44		group1 {
45			pinmux = <M3SCL_P42>, <M3SDAWIR3_P43>;
46			drive-open-drain;
47			drive-strength = "0.5";
48			bias-pull-up;
49		};
50	};
51	i2c4_default: i2c4_default {
52		group1 {
53			pinmux = <M4SCL_P39>, <M4SDAWIR3_P40>;
54			drive-open-drain;
55			drive-strength = "0.5";
56			bias-pull-up;
57		};
58	};
59	i2c5_default: i2c5_default {
60		group1 {
61			pinmux = <M5SCL_P48>, <M5SDAWIR3_P49>;
62			drive-open-drain;
63			drive-strength = "0.5";
64			bias-pull-up;
65		};
66	};
67
68	spi0_default: spi0_default {
69		group1 {
70			pinmux = <M0SCK_P5>, <M0MISO_P6>, <M0MOSI_P7>;
71		};
72	};
73	spi1_default: spi1_default {
74		group1 {
75			pinmux = <M1SCK_P8>, <M1MISO_P9>, <M1MOSI_P10>;
76		};
77	};
78	spi2_default: spi2_default {
79		group1 {
80			pinmux = <M2SCK_P27>, <M2MISO_P25>, <M2MOSI_P28>;
81		};
82	};
83	spi3_default: spi3_default {
84		group1 {
85			pinmux = <M3SCK_P42>, <M3MISO_P43>, <M3MOSI_P38>;
86		};
87	};
88	spi4_default: spi4_default {
89		group1 {
90			pinmux = <M4SCK_P39>, <M4MISO_P40>, <M4MOSI_P44>;
91		};
92	};
93	spi5_default: spi5_default {
94		group1 {
95			pinmux = <M5SCK_P48>, <M5MISO_P49>, <M5MOSI_P47>;
96		};
97	};
98
99	mspi0_default: mspi0_default{
100		group1 {
101			pinmux = <MSPI0_0_P22>,
102				 <MSPI0_1_P26>,
103				 <MSPI0_2_P4>,
104				 <MSPI0_3_P23>,
105				 <MSPI0_8_P24>;
106		};
107		group2 {
108			pinmux = <NCE19_P19>;
109			drive-push-pull;
110			drive-strength = "0.5";
111			ambiq,iom-nce-module = <0>;
112			ambiq,iom-num = <6>;
113		};
114	};
115
116	bleif_default: bleif_default{
117		group1 {
118			pinmux = <BLEIF_SCK_P30>,
119				 <BLEIF_MISO_P31>,
120				 <BLEIF_MOSI_P32>,
121				 <BLEIF_CSN_P33>,
122				 <BLEIF_STATUS_P35>,
123				 <BLEIF_IRQ_P41>;
124		};
125	};
126};
127