xref: /linux/scripts/dtc/include-prefixes/arm/rockchip/rv1126-pinctrl.dtsi (revision 32de939ae49d541a7892f77da8fe78bc6fe73f13)
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	};
90b1ed2566STim Lunn	i2c2 {
91b1ed2566STim Lunn		/omit-if-no-ref/
92b1ed2566STim Lunn		i2c2_xfer: i2c2-xfer {
93b1ed2566STim Lunn			rockchip,pins =
94b1ed2566STim Lunn				/* i2c2_scl */
95b1ed2566STim Lunn				<0 RK_PC2 1 &pcfg_pull_none_drv_level_0_smt>,
96b1ed2566STim Lunn				/* i2c2_sda */
97b1ed2566STim Lunn				<0 RK_PC3 1 &pcfg_pull_none_drv_level_0_smt>;
98b1ed2566STim Lunn		};
99b1ed2566STim 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/
118*32de939aSTim Lunn		rgmiim1_miim: rgmiim1-miim {
119724ba675SRob Herring			rockchip,pins =
120724ba675SRob Herring				/* rgmii_mdc_m1 */
121724ba675SRob Herring				<2 RK_PC2 2 &pcfg_pull_none>,
122724ba675SRob Herring				/* rgmii_mdio_m1 */
123*32de939aSTim Lunn				<2 RK_PC1 2 &pcfg_pull_none>;
124*32de939aSTim Lunn		};
125*32de939aSTim Lunn		/omit-if-no-ref/
126*32de939aSTim Lunn		rgmiim1_rxer: rgmiim1-rxer {
127*32de939aSTim Lunn			rockchip,pins =
128*32de939aSTim Lunn				/* rgmii_rxer_m1 */
129*32de939aSTim Lunn				<2 RK_PC0 2 &pcfg_pull_none>;
130*32de939aSTim Lunn		};
131*32de939aSTim Lunn		/omit-if-no-ref/
132*32de939aSTim Lunn		rgmiim1_bus2: rgmiim1-bus2 {
133*32de939aSTim Lunn			rockchip,pins =
134724ba675SRob Herring				/* rgmii_rxd0_m1 */
135724ba675SRob Herring				<2 RK_PB5 2 &pcfg_pull_none>,
136724ba675SRob Herring				/* rgmii_rxd1_m1 */
137724ba675SRob Herring				<2 RK_PB6 2 &pcfg_pull_none>,
138724ba675SRob Herring				/* rgmii_rxdv_m1 */
139724ba675SRob Herring				<2 RK_PB4 2 &pcfg_pull_none>,
140724ba675SRob Herring				/* rgmii_txd0_m1 */
141724ba675SRob Herring				<2 RK_PC3 2 &pcfg_pull_none_drv_level_3>,
142724ba675SRob Herring				/* rgmii_txd1_m1 */
143724ba675SRob Herring				<2 RK_PC4 2 &pcfg_pull_none_drv_level_3>,
144*32de939aSTim Lunn				/* rgmii_txen_m1 */
145*32de939aSTim Lunn				<2 RK_PC6 2 &pcfg_pull_none_drv_level_3>;
146*32de939aSTim Lunn		};
147*32de939aSTim Lunn		/omit-if-no-ref/
148*32de939aSTim Lunn		rgmiim1_bus4: rgmiim1-bus4 {
149*32de939aSTim Lunn			rockchip,pins =
150*32de939aSTim Lunn				/* rgmii_rxclk_m1 */
151*32de939aSTim Lunn				<2 RK_PD3 2 &pcfg_pull_none>,
152*32de939aSTim Lunn				/* rgmii_rxd2_m1 */
153*32de939aSTim Lunn				<2 RK_PC7 2 &pcfg_pull_none>,
154*32de939aSTim Lunn				/* rgmii_rxd3_m1 */
155*32de939aSTim Lunn				<2 RK_PD0 2 &pcfg_pull_none>,
156*32de939aSTim Lunn				/* rgmii_txclk_m1 */
157*32de939aSTim Lunn				<2 RK_PD2 2 &pcfg_pull_none_drv_level_3>,
158724ba675SRob Herring				/* rgmii_txd2_m1 */
159724ba675SRob Herring				<2 RK_PD1 2 &pcfg_pull_none_drv_level_3>,
160724ba675SRob Herring				/* rgmii_txd3_m1 */
161*32de939aSTim Lunn				<2 RK_PA4 2 &pcfg_pull_none_drv_level_3>;
162*32de939aSTim Lunn		};
163*32de939aSTim Lunn		/omit-if-no-ref/
164*32de939aSTim Lunn		rgmiim1_mclkinout: rgmiim1-mclkinout {
165*32de939aSTim Lunn			rockchip,pins =
166*32de939aSTim Lunn				/* rgmii_clk_m1 */
167*32de939aSTim Lunn				<2 RK_PB7 2 &pcfg_pull_none>;
168724ba675SRob Herring		};
169724ba675SRob Herring	};
170724ba675SRob Herring	sdmmc0 {
171724ba675SRob Herring		/omit-if-no-ref/
172724ba675SRob Herring		sdmmc0_bus4: sdmmc0-bus4 {
173724ba675SRob Herring			rockchip,pins =
174724ba675SRob Herring				/* sdmmc0_d0 */
175724ba675SRob Herring				<1 RK_PA4 1 &pcfg_pull_up_drv_level_2>,
176724ba675SRob Herring				/* sdmmc0_d1 */
177724ba675SRob Herring				<1 RK_PA5 1 &pcfg_pull_up_drv_level_2>,
178724ba675SRob Herring				/* sdmmc0_d2 */
179724ba675SRob Herring				<1 RK_PA6 1 &pcfg_pull_up_drv_level_2>,
180724ba675SRob Herring				/* sdmmc0_d3 */
181724ba675SRob Herring				<1 RK_PA7 1 &pcfg_pull_up_drv_level_2>;
182724ba675SRob Herring		};
183724ba675SRob Herring		/omit-if-no-ref/
184724ba675SRob Herring		sdmmc0_clk: sdmmc0-clk {
185724ba675SRob Herring			rockchip,pins =
186724ba675SRob Herring				/* sdmmc0_clk */
187724ba675SRob Herring				<1 RK_PB0 1 &pcfg_pull_up_drv_level_2>;
188724ba675SRob Herring		};
189724ba675SRob Herring		/omit-if-no-ref/
190724ba675SRob Herring		sdmmc0_cmd: sdmmc0-cmd {
191724ba675SRob Herring			rockchip,pins =
192724ba675SRob Herring				/* sdmmc0_cmd */
193724ba675SRob Herring				<1 RK_PB1 1 &pcfg_pull_up_drv_level_2>;
194724ba675SRob Herring		};
195724ba675SRob Herring		/omit-if-no-ref/
196724ba675SRob Herring		sdmmc0_det: sdmmc0-det {
197724ba675SRob Herring			rockchip,pins =
198724ba675SRob Herring				<0 RK_PA3 1 &pcfg_pull_none>;
199724ba675SRob Herring		};
200724ba675SRob Herring		/omit-if-no-ref/
201724ba675SRob Herring		sdmmc0_pwr: sdmmc0-pwr {
202724ba675SRob Herring			rockchip,pins =
203724ba675SRob Herring				<0 RK_PC0 1 &pcfg_pull_none>;
204724ba675SRob Herring		};
205724ba675SRob Herring	};
206724ba675SRob Herring	sdmmc1 {
207724ba675SRob Herring		/omit-if-no-ref/
208724ba675SRob Herring		sdmmc1_bus4: sdmmc1-bus4 {
209724ba675SRob Herring			rockchip,pins =
210724ba675SRob Herring				/* sdmmc1_d0 */
211724ba675SRob Herring				<1 RK_PB4 1 &pcfg_pull_up_drv_level_2>,
212724ba675SRob Herring				/* sdmmc1_d1 */
213724ba675SRob Herring				<1 RK_PB5 1 &pcfg_pull_up_drv_level_2>,
214724ba675SRob Herring				/* sdmmc1_d2 */
215724ba675SRob Herring				<1 RK_PB6 1 &pcfg_pull_up_drv_level_2>,
216724ba675SRob Herring				/* sdmmc1_d3 */
217724ba675SRob Herring				<1 RK_PB7 1 &pcfg_pull_up_drv_level_2>;
218724ba675SRob Herring		};
219724ba675SRob Herring		/omit-if-no-ref/
220724ba675SRob Herring		sdmmc1_clk: sdmmc1-clk {
221724ba675SRob Herring			rockchip,pins =
222724ba675SRob Herring				/* sdmmc1_clk */
223724ba675SRob Herring				<1 RK_PB2 1 &pcfg_pull_up_drv_level_2>;
224724ba675SRob Herring		};
225724ba675SRob Herring		/omit-if-no-ref/
226724ba675SRob Herring		sdmmc1_cmd: sdmmc1-cmd {
227724ba675SRob Herring			rockchip,pins =
228724ba675SRob Herring				/* sdmmc1_cmd */
229724ba675SRob Herring				<1 RK_PB3 1 &pcfg_pull_up_drv_level_2>;
230724ba675SRob Herring		};
231724ba675SRob Herring		/omit-if-no-ref/
232724ba675SRob Herring		sdmmc1_det: sdmmc1-det {
233724ba675SRob Herring			rockchip,pins =
234724ba675SRob Herring				<1 RK_PD0 2 &pcfg_pull_none>;
235724ba675SRob Herring		};
236724ba675SRob Herring		/omit-if-no-ref/
237724ba675SRob Herring		sdmmc1_pwr: sdmmc1-pwr {
238724ba675SRob Herring			rockchip,pins =
239724ba675SRob Herring				<1 RK_PD1 2 &pcfg_pull_none>;
240724ba675SRob Herring		};
241724ba675SRob Herring	};
242724ba675SRob Herring	uart0 {
243724ba675SRob Herring		/omit-if-no-ref/
244724ba675SRob Herring		uart0_xfer: uart0-xfer {
245724ba675SRob Herring			rockchip,pins =
246724ba675SRob Herring				/* uart0_rx */
247724ba675SRob Herring				<1 RK_PC2 1 &pcfg_pull_up>,
248724ba675SRob Herring				/* uart0_tx */
249724ba675SRob Herring				<1 RK_PC3 1 &pcfg_pull_up>;
250724ba675SRob Herring		};
251724ba675SRob Herring		/omit-if-no-ref/
252724ba675SRob Herring		uart0_ctsn: uart0-ctsn {
253724ba675SRob Herring			rockchip,pins =
254724ba675SRob Herring				<1 RK_PC1 1 &pcfg_pull_none>;
255724ba675SRob Herring		};
256724ba675SRob Herring		/omit-if-no-ref/
257724ba675SRob Herring		uart0_rtsn: uart0-rtsn {
258724ba675SRob Herring			rockchip,pins =
259724ba675SRob Herring				<1 RK_PC0 1 &pcfg_pull_none>;
260724ba675SRob Herring		};
261724ba675SRob Herring		/omit-if-no-ref/
262724ba675SRob Herring		uart0_rtsn_gpio: uart0-rts-pin {
263724ba675SRob Herring			rockchip,pins =
264724ba675SRob Herring				<1 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>;
265724ba675SRob Herring		};
266724ba675SRob Herring	};
267724ba675SRob Herring	uart1 {
268724ba675SRob Herring		/omit-if-no-ref/
269724ba675SRob Herring		uart1m0_xfer: uart1m0-xfer {
270724ba675SRob Herring			rockchip,pins =
271724ba675SRob Herring				/* uart1_rx_m0 */
272724ba675SRob Herring				<0 RK_PB7 2 &pcfg_pull_up>,
273724ba675SRob Herring				/* uart1_tx_m0 */
274724ba675SRob Herring				<0 RK_PB6 2 &pcfg_pull_up>;
275724ba675SRob Herring		};
276724ba675SRob Herring	};
277724ba675SRob Herring	uart2 {
278724ba675SRob Herring		/omit-if-no-ref/
279724ba675SRob Herring		uart2m1_xfer: uart2m1-xfer {
280724ba675SRob Herring			rockchip,pins =
281724ba675SRob Herring				/* uart2_rx_m1 */
282724ba675SRob Herring				<3 RK_PA3 1 &pcfg_pull_up>,
283724ba675SRob Herring				/* uart2_tx_m1 */
284724ba675SRob Herring				<3 RK_PA2 1 &pcfg_pull_up>;
285724ba675SRob Herring		};
286724ba675SRob Herring	};
287724ba675SRob Herring	uart3 {
288724ba675SRob Herring		/omit-if-no-ref/
289724ba675SRob Herring		uart3m0_xfer: uart3m0-xfer {
290724ba675SRob Herring			rockchip,pins =
291724ba675SRob Herring				/* uart3_rx_m0 */
292724ba675SRob Herring				<3 RK_PC7 4 &pcfg_pull_up>,
293724ba675SRob Herring				/* uart3_tx_m0 */
294724ba675SRob Herring				<3 RK_PC6 4 &pcfg_pull_up>;
295724ba675SRob Herring		};
2962d93f9dcSTim Lunn		/omit-if-no-ref/
2972d93f9dcSTim Lunn		uart3m2_xfer: uart3m2-xfer {
2982d93f9dcSTim Lunn			rockchip,pins =
2992d93f9dcSTim Lunn				/* uart3_rx_m2 */
3002d93f9dcSTim Lunn				<3 RK_PA1 4 &pcfg_pull_up>,
3012d93f9dcSTim Lunn				/* uart3_tx_m2 */
3022d93f9dcSTim Lunn				<3 RK_PA0 4 &pcfg_pull_up>;
3032d93f9dcSTim Lunn		};
304724ba675SRob Herring	};
305724ba675SRob Herring	uart4 {
306724ba675SRob Herring		/omit-if-no-ref/
307724ba675SRob Herring		uart4m0_xfer: uart4m0-xfer {
308724ba675SRob Herring			rockchip,pins =
309724ba675SRob Herring				/* uart4_rx_m0 */
310724ba675SRob Herring				<3 RK_PA5 4 &pcfg_pull_up>,
311724ba675SRob Herring				/* uart4_tx_m0 */
312724ba675SRob Herring				<3 RK_PA4 4 &pcfg_pull_up>;
313724ba675SRob Herring		};
3142d93f9dcSTim Lunn		/omit-if-no-ref/
3152d93f9dcSTim Lunn		uart4m2_xfer: uart4m2-xfer {
3162d93f9dcSTim Lunn			rockchip,pins =
3172d93f9dcSTim Lunn				/* uart4_rx_m2 */
3182d93f9dcSTim Lunn				<1 RK_PD4 3 &pcfg_pull_up>,
3192d93f9dcSTim Lunn				/* uart4_tx_m2 */
3202d93f9dcSTim Lunn				<1 RK_PD5 3 &pcfg_pull_up>;
3212d93f9dcSTim Lunn		};
322724ba675SRob Herring	};
323724ba675SRob Herring	uart5 {
324724ba675SRob Herring		/omit-if-no-ref/
325724ba675SRob Herring		uart5m0_xfer: uart5m0-xfer {
326724ba675SRob Herring			rockchip,pins =
327724ba675SRob Herring				/* uart5_rx_m0 */
328724ba675SRob Herring				<3 RK_PA7 4 &pcfg_pull_up>,
329724ba675SRob Herring				/* uart5_tx_m0 */
330724ba675SRob Herring				<3 RK_PA6 4 &pcfg_pull_up>;
331724ba675SRob Herring		};
332753c8a7dSJagan Teki		/omit-if-no-ref/
333753c8a7dSJagan Teki		uart5m2_xfer: uart5m2-xfer {
334753c8a7dSJagan Teki			rockchip,pins =
335753c8a7dSJagan Teki				/* uart5_rx_m2 */
336753c8a7dSJagan Teki				<2 RK_PA1 3 &pcfg_pull_up>,
337753c8a7dSJagan Teki				/* uart5_tx_m2 */
338753c8a7dSJagan Teki				<2 RK_PA0 3 &pcfg_pull_up>;
339753c8a7dSJagan Teki		};
340724ba675SRob Herring	};
341724ba675SRob Herring};
342