xref: /linux/scripts/dtc/include-prefixes/arm/rockchip/rv1126-pinctrl.dtsi (revision b1ed25667f5f88531bcb51f3683029693e7a9b8c)
1724ba675SRob Herring// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2724ba675SRob Herring/*
3724ba675SRob Herring * Copyright (c) 2020 Fuzhou Rockchip Electronics Co., Ltd
4724ba675SRob Herring */
5724ba675SRob Herring
6724ba675SRob Herring#include <dt-bindings/pinctrl/rockchip.h>
7724ba675SRob Herring#include <arm64/rockchip/rockchip-pinconf.dtsi>
8724ba675SRob Herring
9724ba675SRob Herring/*
10724ba675SRob Herring * This file is auto generated by pin2dts tool, please keep these code
11724ba675SRob Herring * by adding changes at end of this file.
12724ba675SRob Herring */
13724ba675SRob Herring&pinctrl {
14724ba675SRob Herring	clk_out_ethernet {
15724ba675SRob Herring		/omit-if-no-ref/
16724ba675SRob Herring		clk_out_ethernetm1_pins: clk-out-ethernetm1-pins {
17724ba675SRob Herring			rockchip,pins =
18724ba675SRob Herring				/* clk_out_ethernet_m1 */
19724ba675SRob Herring				<2 RK_PC5 2 &pcfg_pull_none>;
20724ba675SRob Herring		};
21724ba675SRob Herring	};
22724ba675SRob Herring	emmc {
23724ba675SRob Herring		/omit-if-no-ref/
24724ba675SRob Herring		emmc_rstnout: emmc-rstnout {
25724ba675SRob Herring			rockchip,pins =
26724ba675SRob Herring				/* emmc_rstn */
27724ba675SRob Herring				<1 RK_PA3 2 &pcfg_pull_none>;
28724ba675SRob Herring		};
29724ba675SRob Herring		/omit-if-no-ref/
30724ba675SRob Herring		emmc_bus8: emmc-bus8 {
31724ba675SRob Herring			rockchip,pins =
32724ba675SRob Herring				/* emmc_d0 */
33724ba675SRob Herring				<0 RK_PC4 2 &pcfg_pull_up_drv_level_2>,
34724ba675SRob Herring				/* emmc_d1 */
35724ba675SRob Herring				<0 RK_PC5 2 &pcfg_pull_up_drv_level_2>,
36724ba675SRob Herring				/* emmc_d2 */
37724ba675SRob Herring				<0 RK_PC6 2 &pcfg_pull_up_drv_level_2>,
38724ba675SRob Herring				/* emmc_d3 */
39724ba675SRob Herring				<0 RK_PC7 2 &pcfg_pull_up_drv_level_2>,
40724ba675SRob Herring				/* emmc_d4 */
41724ba675SRob Herring				<0 RK_PD0 2 &pcfg_pull_up_drv_level_2>,
42724ba675SRob Herring				/* emmc_d5 */
43724ba675SRob Herring				<0 RK_PD1 2 &pcfg_pull_up_drv_level_2>,
44724ba675SRob Herring				/* emmc_d6 */
45724ba675SRob Herring				<0 RK_PD2 2 &pcfg_pull_up_drv_level_2>,
46724ba675SRob Herring				/* emmc_d7 */
47724ba675SRob Herring				<0 RK_PD3 2 &pcfg_pull_up_drv_level_2>;
48724ba675SRob Herring		};
49724ba675SRob Herring		/omit-if-no-ref/
50724ba675SRob Herring		emmc_clk: emmc-clk {
51724ba675SRob Herring			rockchip,pins =
52724ba675SRob Herring				/* emmc_clko */
53724ba675SRob Herring				<0 RK_PD7 2 &pcfg_pull_up_drv_level_2>;
54724ba675SRob Herring		};
55724ba675SRob Herring		/omit-if-no-ref/
56724ba675SRob Herring		emmc_cmd: emmc-cmd {
57724ba675SRob Herring			rockchip,pins =
58724ba675SRob Herring				/* emmc_cmd */
59724ba675SRob Herring				<0 RK_PD5 2 &pcfg_pull_up_drv_level_2>;
60724ba675SRob Herring		};
61724ba675SRob Herring	};
62d91d25b1SJagan Teki	fspi {
63d91d25b1SJagan Teki		/omit-if-no-ref/
64d91d25b1SJagan Teki		fspi_pins: fspi-pins {
65d91d25b1SJagan Teki			rockchip,pins =
66d91d25b1SJagan Teki				/* fspi_clk */
67d91d25b1SJagan Teki				<1 RK_PA3 3 &pcfg_pull_down>,
68d91d25b1SJagan Teki				/* fspi_cs0n */
69d91d25b1SJagan Teki				<0 RK_PD4 3 &pcfg_pull_up>,
70d91d25b1SJagan Teki				/* fspi_d0 */
71d91d25b1SJagan Teki				<1 RK_PA0 3 &pcfg_pull_up>,
72d91d25b1SJagan Teki				/* fspi_d1 */
73d91d25b1SJagan Teki				<1 RK_PA1 3 &pcfg_pull_up>,
74d91d25b1SJagan Teki				/* fspi_d2 */
75d91d25b1SJagan Teki				<0 RK_PD6 3 &pcfg_pull_up>,
76d91d25b1SJagan Teki				/* fspi_d3 */
77d91d25b1SJagan Teki				<1 RK_PA2 3 &pcfg_pull_up>;
78d91d25b1SJagan Teki		};
79d91d25b1SJagan Teki	};
80724ba675SRob Herring	i2c0 {
81724ba675SRob Herring		/omit-if-no-ref/
82724ba675SRob Herring		i2c0_xfer: i2c0-xfer {
83724ba675SRob Herring			rockchip,pins =
84724ba675SRob Herring				/* i2c0_scl */
85724ba675SRob Herring				<0 RK_PB4 1 &pcfg_pull_none_drv_level_0_smt>,
86724ba675SRob Herring				/* i2c0_sda */
87724ba675SRob Herring				<0 RK_PB5 1 &pcfg_pull_none_drv_level_0_smt>;
88724ba675SRob Herring		};
89724ba675SRob Herring	};
90*b1ed2566STim Lunn	i2c2 {
91*b1ed2566STim Lunn		/omit-if-no-ref/
92*b1ed2566STim Lunn		i2c2_xfer: i2c2-xfer {
93*b1ed2566STim Lunn			rockchip,pins =
94*b1ed2566STim Lunn				/* i2c2_scl */
95*b1ed2566STim Lunn				<0 RK_PC2 1 &pcfg_pull_none_drv_level_0_smt>,
96*b1ed2566STim Lunn				/* i2c2_sda */
97*b1ed2566STim Lunn				<0 RK_PC3 1 &pcfg_pull_none_drv_level_0_smt>;
98*b1ed2566STim Lunn		};
99*b1ed2566STim Lunn	};
1005162bba5SJagan Teki	pwm2 {
1015162bba5SJagan Teki		/omit-if-no-ref/
1025162bba5SJagan Teki		pwm2m0_pins: pwm2m0-pins {
1035162bba5SJagan Teki			rockchip,pins =
1045162bba5SJagan Teki				/* pwm2_pin_m0 */
1055162bba5SJagan Teki				<0 RK_PC0 3 &pcfg_pull_none>;
1065162bba5SJagan Teki		};
1075162bba5SJagan Teki	};
10861e510dbSJagan Teki	pwm11 {
10961e510dbSJagan Teki		/omit-if-no-ref/
11061e510dbSJagan Teki		pwm11m0_pins: pwm11m0-pins {
11161e510dbSJagan Teki			rockchip,pins =
11261e510dbSJagan Teki				/* pwm11_pin_m0 */
11361e510dbSJagan Teki				<3 RK_PA7 6 &pcfg_pull_none>;
11461e510dbSJagan Teki		};
11561e510dbSJagan Teki	};
116724ba675SRob Herring	rgmii {
117724ba675SRob Herring		/omit-if-no-ref/
118724ba675SRob Herring		rgmiim1_pins: rgmiim1-pins {
119724ba675SRob Herring			rockchip,pins =
120724ba675SRob Herring				/* rgmii_mdc_m1 */
121724ba675SRob Herring				<2 RK_PC2 2 &pcfg_pull_none>,
122724ba675SRob Herring				/* rgmii_mdio_m1 */
123724ba675SRob Herring				<2 RK_PC1 2 &pcfg_pull_none>,
124724ba675SRob Herring				/* rgmii_rxclk_m1 */
125724ba675SRob Herring				<2 RK_PD3 2 &pcfg_pull_none>,
126724ba675SRob Herring				/* rgmii_rxd0_m1 */
127724ba675SRob Herring				<2 RK_PB5 2 &pcfg_pull_none>,
128724ba675SRob Herring				/* rgmii_rxd1_m1 */
129724ba675SRob Herring				<2 RK_PB6 2 &pcfg_pull_none>,
130724ba675SRob Herring				/* rgmii_rxd2_m1 */
131724ba675SRob Herring				<2 RK_PC7 2 &pcfg_pull_none>,
132724ba675SRob Herring				/* rgmii_rxd3_m1 */
133724ba675SRob Herring				<2 RK_PD0 2 &pcfg_pull_none>,
134724ba675SRob Herring				/* rgmii_rxdv_m1 */
135724ba675SRob Herring				<2 RK_PB4 2 &pcfg_pull_none>,
136724ba675SRob Herring				/* rgmii_txclk_m1 */
137724ba675SRob Herring				<2 RK_PD2 2 &pcfg_pull_none_drv_level_3>,
138724ba675SRob Herring				/* rgmii_txd0_m1 */
139724ba675SRob Herring				<2 RK_PC3 2 &pcfg_pull_none_drv_level_3>,
140724ba675SRob Herring				/* rgmii_txd1_m1 */
141724ba675SRob Herring				<2 RK_PC4 2 &pcfg_pull_none_drv_level_3>,
142724ba675SRob Herring				/* rgmii_txd2_m1 */
143724ba675SRob Herring				<2 RK_PD1 2 &pcfg_pull_none_drv_level_3>,
144724ba675SRob Herring				/* rgmii_txd3_m1 */
145724ba675SRob Herring				<2 RK_PA4 2 &pcfg_pull_none_drv_level_3>,
146724ba675SRob Herring				/* rgmii_txen_m1 */
147724ba675SRob Herring				<2 RK_PC6 2 &pcfg_pull_none_drv_level_3>;
148724ba675SRob Herring		};
149724ba675SRob Herring	};
150724ba675SRob Herring	sdmmc0 {
151724ba675SRob Herring		/omit-if-no-ref/
152724ba675SRob Herring		sdmmc0_bus4: sdmmc0-bus4 {
153724ba675SRob Herring			rockchip,pins =
154724ba675SRob Herring				/* sdmmc0_d0 */
155724ba675SRob Herring				<1 RK_PA4 1 &pcfg_pull_up_drv_level_2>,
156724ba675SRob Herring				/* sdmmc0_d1 */
157724ba675SRob Herring				<1 RK_PA5 1 &pcfg_pull_up_drv_level_2>,
158724ba675SRob Herring				/* sdmmc0_d2 */
159724ba675SRob Herring				<1 RK_PA6 1 &pcfg_pull_up_drv_level_2>,
160724ba675SRob Herring				/* sdmmc0_d3 */
161724ba675SRob Herring				<1 RK_PA7 1 &pcfg_pull_up_drv_level_2>;
162724ba675SRob Herring		};
163724ba675SRob Herring		/omit-if-no-ref/
164724ba675SRob Herring		sdmmc0_clk: sdmmc0-clk {
165724ba675SRob Herring			rockchip,pins =
166724ba675SRob Herring				/* sdmmc0_clk */
167724ba675SRob Herring				<1 RK_PB0 1 &pcfg_pull_up_drv_level_2>;
168724ba675SRob Herring		};
169724ba675SRob Herring		/omit-if-no-ref/
170724ba675SRob Herring		sdmmc0_cmd: sdmmc0-cmd {
171724ba675SRob Herring			rockchip,pins =
172724ba675SRob Herring				/* sdmmc0_cmd */
173724ba675SRob Herring				<1 RK_PB1 1 &pcfg_pull_up_drv_level_2>;
174724ba675SRob Herring		};
175724ba675SRob Herring		/omit-if-no-ref/
176724ba675SRob Herring		sdmmc0_det: sdmmc0-det {
177724ba675SRob Herring			rockchip,pins =
178724ba675SRob Herring				<0 RK_PA3 1 &pcfg_pull_none>;
179724ba675SRob Herring		};
180724ba675SRob Herring		/omit-if-no-ref/
181724ba675SRob Herring		sdmmc0_pwr: sdmmc0-pwr {
182724ba675SRob Herring			rockchip,pins =
183724ba675SRob Herring				<0 RK_PC0 1 &pcfg_pull_none>;
184724ba675SRob Herring		};
185724ba675SRob Herring	};
186724ba675SRob Herring	sdmmc1 {
187724ba675SRob Herring		/omit-if-no-ref/
188724ba675SRob Herring		sdmmc1_bus4: sdmmc1-bus4 {
189724ba675SRob Herring			rockchip,pins =
190724ba675SRob Herring				/* sdmmc1_d0 */
191724ba675SRob Herring				<1 RK_PB4 1 &pcfg_pull_up_drv_level_2>,
192724ba675SRob Herring				/* sdmmc1_d1 */
193724ba675SRob Herring				<1 RK_PB5 1 &pcfg_pull_up_drv_level_2>,
194724ba675SRob Herring				/* sdmmc1_d2 */
195724ba675SRob Herring				<1 RK_PB6 1 &pcfg_pull_up_drv_level_2>,
196724ba675SRob Herring				/* sdmmc1_d3 */
197724ba675SRob Herring				<1 RK_PB7 1 &pcfg_pull_up_drv_level_2>;
198724ba675SRob Herring		};
199724ba675SRob Herring		/omit-if-no-ref/
200724ba675SRob Herring		sdmmc1_clk: sdmmc1-clk {
201724ba675SRob Herring			rockchip,pins =
202724ba675SRob Herring				/* sdmmc1_clk */
203724ba675SRob Herring				<1 RK_PB2 1 &pcfg_pull_up_drv_level_2>;
204724ba675SRob Herring		};
205724ba675SRob Herring		/omit-if-no-ref/
206724ba675SRob Herring		sdmmc1_cmd: sdmmc1-cmd {
207724ba675SRob Herring			rockchip,pins =
208724ba675SRob Herring				/* sdmmc1_cmd */
209724ba675SRob Herring				<1 RK_PB3 1 &pcfg_pull_up_drv_level_2>;
210724ba675SRob Herring		};
211724ba675SRob Herring		/omit-if-no-ref/
212724ba675SRob Herring		sdmmc1_det: sdmmc1-det {
213724ba675SRob Herring			rockchip,pins =
214724ba675SRob Herring				<1 RK_PD0 2 &pcfg_pull_none>;
215724ba675SRob Herring		};
216724ba675SRob Herring		/omit-if-no-ref/
217724ba675SRob Herring		sdmmc1_pwr: sdmmc1-pwr {
218724ba675SRob Herring			rockchip,pins =
219724ba675SRob Herring				<1 RK_PD1 2 &pcfg_pull_none>;
220724ba675SRob Herring		};
221724ba675SRob Herring	};
222724ba675SRob Herring	uart0 {
223724ba675SRob Herring		/omit-if-no-ref/
224724ba675SRob Herring		uart0_xfer: uart0-xfer {
225724ba675SRob Herring			rockchip,pins =
226724ba675SRob Herring				/* uart0_rx */
227724ba675SRob Herring				<1 RK_PC2 1 &pcfg_pull_up>,
228724ba675SRob Herring				/* uart0_tx */
229724ba675SRob Herring				<1 RK_PC3 1 &pcfg_pull_up>;
230724ba675SRob Herring		};
231724ba675SRob Herring		/omit-if-no-ref/
232724ba675SRob Herring		uart0_ctsn: uart0-ctsn {
233724ba675SRob Herring			rockchip,pins =
234724ba675SRob Herring				<1 RK_PC1 1 &pcfg_pull_none>;
235724ba675SRob Herring		};
236724ba675SRob Herring		/omit-if-no-ref/
237724ba675SRob Herring		uart0_rtsn: uart0-rtsn {
238724ba675SRob Herring			rockchip,pins =
239724ba675SRob Herring				<1 RK_PC0 1 &pcfg_pull_none>;
240724ba675SRob Herring		};
241724ba675SRob Herring		/omit-if-no-ref/
242724ba675SRob Herring		uart0_rtsn_gpio: uart0-rts-pin {
243724ba675SRob Herring			rockchip,pins =
244724ba675SRob Herring				<1 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>;
245724ba675SRob Herring		};
246724ba675SRob Herring	};
247724ba675SRob Herring	uart1 {
248724ba675SRob Herring		/omit-if-no-ref/
249724ba675SRob Herring		uart1m0_xfer: uart1m0-xfer {
250724ba675SRob Herring			rockchip,pins =
251724ba675SRob Herring				/* uart1_rx_m0 */
252724ba675SRob Herring				<0 RK_PB7 2 &pcfg_pull_up>,
253724ba675SRob Herring				/* uart1_tx_m0 */
254724ba675SRob Herring				<0 RK_PB6 2 &pcfg_pull_up>;
255724ba675SRob Herring		};
256724ba675SRob Herring	};
257724ba675SRob Herring	uart2 {
258724ba675SRob Herring		/omit-if-no-ref/
259724ba675SRob Herring		uart2m1_xfer: uart2m1-xfer {
260724ba675SRob Herring			rockchip,pins =
261724ba675SRob Herring				/* uart2_rx_m1 */
262724ba675SRob Herring				<3 RK_PA3 1 &pcfg_pull_up>,
263724ba675SRob Herring				/* uart2_tx_m1 */
264724ba675SRob Herring				<3 RK_PA2 1 &pcfg_pull_up>;
265724ba675SRob Herring		};
266724ba675SRob Herring	};
267724ba675SRob Herring	uart3 {
268724ba675SRob Herring		/omit-if-no-ref/
269724ba675SRob Herring		uart3m0_xfer: uart3m0-xfer {
270724ba675SRob Herring			rockchip,pins =
271724ba675SRob Herring				/* uart3_rx_m0 */
272724ba675SRob Herring				<3 RK_PC7 4 &pcfg_pull_up>,
273724ba675SRob Herring				/* uart3_tx_m0 */
274724ba675SRob Herring				<3 RK_PC6 4 &pcfg_pull_up>;
275724ba675SRob Herring		};
2762d93f9dcSTim Lunn		/omit-if-no-ref/
2772d93f9dcSTim Lunn		uart3m2_xfer: uart3m2-xfer {
2782d93f9dcSTim Lunn			rockchip,pins =
2792d93f9dcSTim Lunn				/* uart3_rx_m2 */
2802d93f9dcSTim Lunn				<3 RK_PA1 4 &pcfg_pull_up>,
2812d93f9dcSTim Lunn				/* uart3_tx_m2 */
2822d93f9dcSTim Lunn				<3 RK_PA0 4 &pcfg_pull_up>;
2832d93f9dcSTim Lunn		};
284724ba675SRob Herring	};
285724ba675SRob Herring	uart4 {
286724ba675SRob Herring		/omit-if-no-ref/
287724ba675SRob Herring		uart4m0_xfer: uart4m0-xfer {
288724ba675SRob Herring			rockchip,pins =
289724ba675SRob Herring				/* uart4_rx_m0 */
290724ba675SRob Herring				<3 RK_PA5 4 &pcfg_pull_up>,
291724ba675SRob Herring				/* uart4_tx_m0 */
292724ba675SRob Herring				<3 RK_PA4 4 &pcfg_pull_up>;
293724ba675SRob Herring		};
2942d93f9dcSTim Lunn		/omit-if-no-ref/
2952d93f9dcSTim Lunn		uart4m2_xfer: uart4m2-xfer {
2962d93f9dcSTim Lunn			rockchip,pins =
2972d93f9dcSTim Lunn				/* uart4_rx_m2 */
2982d93f9dcSTim Lunn				<1 RK_PD4 3 &pcfg_pull_up>,
2992d93f9dcSTim Lunn				/* uart4_tx_m2 */
3002d93f9dcSTim Lunn				<1 RK_PD5 3 &pcfg_pull_up>;
3012d93f9dcSTim Lunn		};
302724ba675SRob Herring	};
303724ba675SRob Herring	uart5 {
304724ba675SRob Herring		/omit-if-no-ref/
305724ba675SRob Herring		uart5m0_xfer: uart5m0-xfer {
306724ba675SRob Herring			rockchip,pins =
307724ba675SRob Herring				/* uart5_rx_m0 */
308724ba675SRob Herring				<3 RK_PA7 4 &pcfg_pull_up>,
309724ba675SRob Herring				/* uart5_tx_m0 */
310724ba675SRob Herring				<3 RK_PA6 4 &pcfg_pull_up>;
311724ba675SRob Herring		};
312753c8a7dSJagan Teki		/omit-if-no-ref/
313753c8a7dSJagan Teki		uart5m2_xfer: uart5m2-xfer {
314753c8a7dSJagan Teki			rockchip,pins =
315753c8a7dSJagan Teki				/* uart5_rx_m2 */
316753c8a7dSJagan Teki				<2 RK_PA1 3 &pcfg_pull_up>,
317753c8a7dSJagan Teki				/* uart5_tx_m2 */
318753c8a7dSJagan Teki				<2 RK_PA0 3 &pcfg_pull_up>;
319753c8a7dSJagan Teki		};
320724ba675SRob Herring	};
321724ba675SRob Herring};
322