1/*
2 * Copyright 2022-2024 NXP
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#include <nxp/s32/S32Z27-BGA594-pinctrl.h>
8
9&pinctrl {
10	uart0_default: uart0_default {
11		group1 {
12			pinmux = <PB10_LIN_0_TX>;
13			output-enable;
14		};
15		group2 {
16			pinmux = <PB11_LIN_0_RX>;
17			input-enable;
18		};
19	};
20
21	uart9_default: uart9_default {
22		group1 {
23			pinmux = <PM6_LIN_9_TX>;
24			output-enable;
25		};
26		group2 {
27			pinmux = <PM7_LIN_9_RX>;
28			input-enable;
29		};
30	};
31
32	emdio_default: emdio_default {
33		group1 {
34			pinmux = <(PE10_ETH_MDC_I | PE10_ETH_MDC_O)>;
35			input-enable;
36			output-enable;
37		};
38		group2 {
39			pinmux = <(PE11_ETH_MDIO_I | PE11_ETH_MDIO_O)>;
40			input-enable;
41			output-enable;
42			drive-open-drain;
43		};
44	};
45
46	eth0_default: eth0_default {
47		group1 {
48			pinmux = <PF2_ETH_0_RX_CLK>,
49				<PF3_ETH_0_RGMII_RXCTL>,
50				<PF4_ETH_0_RGMII_RXD_0>,
51				<PF5_ETH_0_RGMII_RXD_1>,
52				<PF6_ETH_0_RGMII_RXD_2>,
53				<PF7_ETH_0_RGMII_RXD_3>;
54			input-enable;
55		};
56		group2 {
57			pinmux = <PE12_ETH_0_RGMII_TXC>,
58				<PE13_ETH_0_RGMII_TXCTL>,
59				<PE14_ETH_0_RGMII_TXD_0>,
60				<PE15_ETH_0_RGMII_TXD_1>,
61				<PF0_ETH_0_RGMII_TXD_2>,
62				<PF1_ETH_0_RGMII_TXD_3>;
63			output-enable;
64		};
65	};
66
67	canxl0_default: canxl0_default {
68		group1 {
69			pinmux = <PN2_CANXL_0_RX>;
70			input-enable;
71		};
72		group2 {
73			pinmux = <PN1_CANXL_0_TX>;
74			output-enable;
75		};
76	};
77
78	canxl1_default: canxl1_default {
79		group1 {
80			pinmux = <PM11_CANXL_1_RX>;
81			input-enable;
82		};
83		group2 {
84			pinmux = <PM10_CANXL_1_TX>;
85			output-enable;
86		};
87	};
88
89	flexcan0_default: flexcan0_default {
90		group1 {
91			pinmux = <PA5_CAN_0_RX>;
92			input-enable;
93		};
94		group2 {
95			pinmux = <PA4_CAN_0_TX>;
96			output-enable;
97		};
98	};
99
100	flexcan1_default: flexcan1_default {
101		group1 {
102			pinmux = <PB7_CAN_1_RX>;
103			input-enable;
104		};
105		group2 {
106			pinmux = <PB6_CAN_1_TX>;
107			output-enable;
108		};
109	};
110
111	i2c1_default: i2c1_default {
112		group1 {
113			pinmux = <(PC15_I2C_1_SDA_I | PC15_I2C_1_SDA_O)>,
114				<(PD0_I2C_1_SCL_I | PD0_I2C_1_SCL_O)>;
115			input-enable;
116			output-enable;
117			drive-open-drain;
118		};
119	};
120
121	i2c2_default: i2c2_default {
122		group1 {
123			pinmux = <(PJ11_I2C_2_SDA_I | PJ11_I2C_2_SDA_O)>,
124				<(PJ10_I2C_2_SCL_I | PJ10_I2C_2_SCL_O)>;
125			input-enable;
126			output-enable;
127			drive-open-drain;
128		};
129	};
130};
131