xref: /linux/scripts/dtc/include-prefixes/arm/rockchip/rv1126-pinctrl.dtsi (revision 5162bba5b38ce18906fe2be14f0c41e016a88d61)
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*5162bba5SJagan Teki	pwm2 {
91*5162bba5SJagan Teki		/omit-if-no-ref/
92*5162bba5SJagan Teki		pwm2m0_pins: pwm2m0-pins {
93*5162bba5SJagan Teki			rockchip,pins =
94*5162bba5SJagan Teki				/* pwm2_pin_m0 */
95*5162bba5SJagan Teki				<0 RK_PC0 3 &pcfg_pull_none>;
96*5162bba5SJagan Teki		};
97*5162bba5SJagan Teki	};
98724ba675SRob Herring	rgmii {
99724ba675SRob Herring		/omit-if-no-ref/
100724ba675SRob Herring		rgmiim1_pins: rgmiim1-pins {
101724ba675SRob Herring			rockchip,pins =
102724ba675SRob Herring				/* rgmii_mdc_m1 */
103724ba675SRob Herring				<2 RK_PC2 2 &pcfg_pull_none>,
104724ba675SRob Herring				/* rgmii_mdio_m1 */
105724ba675SRob Herring				<2 RK_PC1 2 &pcfg_pull_none>,
106724ba675SRob Herring				/* rgmii_rxclk_m1 */
107724ba675SRob Herring				<2 RK_PD3 2 &pcfg_pull_none>,
108724ba675SRob Herring				/* rgmii_rxd0_m1 */
109724ba675SRob Herring				<2 RK_PB5 2 &pcfg_pull_none>,
110724ba675SRob Herring				/* rgmii_rxd1_m1 */
111724ba675SRob Herring				<2 RK_PB6 2 &pcfg_pull_none>,
112724ba675SRob Herring				/* rgmii_rxd2_m1 */
113724ba675SRob Herring				<2 RK_PC7 2 &pcfg_pull_none>,
114724ba675SRob Herring				/* rgmii_rxd3_m1 */
115724ba675SRob Herring				<2 RK_PD0 2 &pcfg_pull_none>,
116724ba675SRob Herring				/* rgmii_rxdv_m1 */
117724ba675SRob Herring				<2 RK_PB4 2 &pcfg_pull_none>,
118724ba675SRob Herring				/* rgmii_txclk_m1 */
119724ba675SRob Herring				<2 RK_PD2 2 &pcfg_pull_none_drv_level_3>,
120724ba675SRob Herring				/* rgmii_txd0_m1 */
121724ba675SRob Herring				<2 RK_PC3 2 &pcfg_pull_none_drv_level_3>,
122724ba675SRob Herring				/* rgmii_txd1_m1 */
123724ba675SRob Herring				<2 RK_PC4 2 &pcfg_pull_none_drv_level_3>,
124724ba675SRob Herring				/* rgmii_txd2_m1 */
125724ba675SRob Herring				<2 RK_PD1 2 &pcfg_pull_none_drv_level_3>,
126724ba675SRob Herring				/* rgmii_txd3_m1 */
127724ba675SRob Herring				<2 RK_PA4 2 &pcfg_pull_none_drv_level_3>,
128724ba675SRob Herring				/* rgmii_txen_m1 */
129724ba675SRob Herring				<2 RK_PC6 2 &pcfg_pull_none_drv_level_3>;
130724ba675SRob Herring		};
131724ba675SRob Herring	};
132724ba675SRob Herring	sdmmc0 {
133724ba675SRob Herring		/omit-if-no-ref/
134724ba675SRob Herring		sdmmc0_bus4: sdmmc0-bus4 {
135724ba675SRob Herring			rockchip,pins =
136724ba675SRob Herring				/* sdmmc0_d0 */
137724ba675SRob Herring				<1 RK_PA4 1 &pcfg_pull_up_drv_level_2>,
138724ba675SRob Herring				/* sdmmc0_d1 */
139724ba675SRob Herring				<1 RK_PA5 1 &pcfg_pull_up_drv_level_2>,
140724ba675SRob Herring				/* sdmmc0_d2 */
141724ba675SRob Herring				<1 RK_PA6 1 &pcfg_pull_up_drv_level_2>,
142724ba675SRob Herring				/* sdmmc0_d3 */
143724ba675SRob Herring				<1 RK_PA7 1 &pcfg_pull_up_drv_level_2>;
144724ba675SRob Herring		};
145724ba675SRob Herring		/omit-if-no-ref/
146724ba675SRob Herring		sdmmc0_clk: sdmmc0-clk {
147724ba675SRob Herring			rockchip,pins =
148724ba675SRob Herring				/* sdmmc0_clk */
149724ba675SRob Herring				<1 RK_PB0 1 &pcfg_pull_up_drv_level_2>;
150724ba675SRob Herring		};
151724ba675SRob Herring		/omit-if-no-ref/
152724ba675SRob Herring		sdmmc0_cmd: sdmmc0-cmd {
153724ba675SRob Herring			rockchip,pins =
154724ba675SRob Herring				/* sdmmc0_cmd */
155724ba675SRob Herring				<1 RK_PB1 1 &pcfg_pull_up_drv_level_2>;
156724ba675SRob Herring		};
157724ba675SRob Herring		/omit-if-no-ref/
158724ba675SRob Herring		sdmmc0_det: sdmmc0-det {
159724ba675SRob Herring			rockchip,pins =
160724ba675SRob Herring				<0 RK_PA3 1 &pcfg_pull_none>;
161724ba675SRob Herring		};
162724ba675SRob Herring		/omit-if-no-ref/
163724ba675SRob Herring		sdmmc0_pwr: sdmmc0-pwr {
164724ba675SRob Herring			rockchip,pins =
165724ba675SRob Herring				<0 RK_PC0 1 &pcfg_pull_none>;
166724ba675SRob Herring		};
167724ba675SRob Herring	};
168724ba675SRob Herring	sdmmc1 {
169724ba675SRob Herring		/omit-if-no-ref/
170724ba675SRob Herring		sdmmc1_bus4: sdmmc1-bus4 {
171724ba675SRob Herring			rockchip,pins =
172724ba675SRob Herring				/* sdmmc1_d0 */
173724ba675SRob Herring				<1 RK_PB4 1 &pcfg_pull_up_drv_level_2>,
174724ba675SRob Herring				/* sdmmc1_d1 */
175724ba675SRob Herring				<1 RK_PB5 1 &pcfg_pull_up_drv_level_2>,
176724ba675SRob Herring				/* sdmmc1_d2 */
177724ba675SRob Herring				<1 RK_PB6 1 &pcfg_pull_up_drv_level_2>,
178724ba675SRob Herring				/* sdmmc1_d3 */
179724ba675SRob Herring				<1 RK_PB7 1 &pcfg_pull_up_drv_level_2>;
180724ba675SRob Herring		};
181724ba675SRob Herring		/omit-if-no-ref/
182724ba675SRob Herring		sdmmc1_clk: sdmmc1-clk {
183724ba675SRob Herring			rockchip,pins =
184724ba675SRob Herring				/* sdmmc1_clk */
185724ba675SRob Herring				<1 RK_PB2 1 &pcfg_pull_up_drv_level_2>;
186724ba675SRob Herring		};
187724ba675SRob Herring		/omit-if-no-ref/
188724ba675SRob Herring		sdmmc1_cmd: sdmmc1-cmd {
189724ba675SRob Herring			rockchip,pins =
190724ba675SRob Herring				/* sdmmc1_cmd */
191724ba675SRob Herring				<1 RK_PB3 1 &pcfg_pull_up_drv_level_2>;
192724ba675SRob Herring		};
193724ba675SRob Herring		/omit-if-no-ref/
194724ba675SRob Herring		sdmmc1_det: sdmmc1-det {
195724ba675SRob Herring			rockchip,pins =
196724ba675SRob Herring				<1 RK_PD0 2 &pcfg_pull_none>;
197724ba675SRob Herring		};
198724ba675SRob Herring		/omit-if-no-ref/
199724ba675SRob Herring		sdmmc1_pwr: sdmmc1-pwr {
200724ba675SRob Herring			rockchip,pins =
201724ba675SRob Herring				<1 RK_PD1 2 &pcfg_pull_none>;
202724ba675SRob Herring		};
203724ba675SRob Herring	};
204724ba675SRob Herring	uart0 {
205724ba675SRob Herring		/omit-if-no-ref/
206724ba675SRob Herring		uart0_xfer: uart0-xfer {
207724ba675SRob Herring			rockchip,pins =
208724ba675SRob Herring				/* uart0_rx */
209724ba675SRob Herring				<1 RK_PC2 1 &pcfg_pull_up>,
210724ba675SRob Herring				/* uart0_tx */
211724ba675SRob Herring				<1 RK_PC3 1 &pcfg_pull_up>;
212724ba675SRob Herring		};
213724ba675SRob Herring		/omit-if-no-ref/
214724ba675SRob Herring		uart0_ctsn: uart0-ctsn {
215724ba675SRob Herring			rockchip,pins =
216724ba675SRob Herring				<1 RK_PC1 1 &pcfg_pull_none>;
217724ba675SRob Herring		};
218724ba675SRob Herring		/omit-if-no-ref/
219724ba675SRob Herring		uart0_rtsn: uart0-rtsn {
220724ba675SRob Herring			rockchip,pins =
221724ba675SRob Herring				<1 RK_PC0 1 &pcfg_pull_none>;
222724ba675SRob Herring		};
223724ba675SRob Herring		/omit-if-no-ref/
224724ba675SRob Herring		uart0_rtsn_gpio: uart0-rts-pin {
225724ba675SRob Herring			rockchip,pins =
226724ba675SRob Herring				<1 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>;
227724ba675SRob Herring		};
228724ba675SRob Herring	};
229724ba675SRob Herring	uart1 {
230724ba675SRob Herring		/omit-if-no-ref/
231724ba675SRob Herring		uart1m0_xfer: uart1m0-xfer {
232724ba675SRob Herring			rockchip,pins =
233724ba675SRob Herring				/* uart1_rx_m0 */
234724ba675SRob Herring				<0 RK_PB7 2 &pcfg_pull_up>,
235724ba675SRob Herring				/* uart1_tx_m0 */
236724ba675SRob Herring				<0 RK_PB6 2 &pcfg_pull_up>;
237724ba675SRob Herring		};
238724ba675SRob Herring	};
239724ba675SRob Herring	uart2 {
240724ba675SRob Herring		/omit-if-no-ref/
241724ba675SRob Herring		uart2m1_xfer: uart2m1-xfer {
242724ba675SRob Herring			rockchip,pins =
243724ba675SRob Herring				/* uart2_rx_m1 */
244724ba675SRob Herring				<3 RK_PA3 1 &pcfg_pull_up>,
245724ba675SRob Herring				/* uart2_tx_m1 */
246724ba675SRob Herring				<3 RK_PA2 1 &pcfg_pull_up>;
247724ba675SRob Herring		};
248724ba675SRob Herring	};
249724ba675SRob Herring	uart3 {
250724ba675SRob Herring		/omit-if-no-ref/
251724ba675SRob Herring		uart3m0_xfer: uart3m0-xfer {
252724ba675SRob Herring			rockchip,pins =
253724ba675SRob Herring				/* uart3_rx_m0 */
254724ba675SRob Herring				<3 RK_PC7 4 &pcfg_pull_up>,
255724ba675SRob Herring				/* uart3_tx_m0 */
256724ba675SRob Herring				<3 RK_PC6 4 &pcfg_pull_up>;
257724ba675SRob Herring		};
258724ba675SRob Herring	};
259724ba675SRob Herring	uart4 {
260724ba675SRob Herring		/omit-if-no-ref/
261724ba675SRob Herring		uart4m0_xfer: uart4m0-xfer {
262724ba675SRob Herring			rockchip,pins =
263724ba675SRob Herring				/* uart4_rx_m0 */
264724ba675SRob Herring				<3 RK_PA5 4 &pcfg_pull_up>,
265724ba675SRob Herring				/* uart4_tx_m0 */
266724ba675SRob Herring				<3 RK_PA4 4 &pcfg_pull_up>;
267724ba675SRob Herring		};
268724ba675SRob Herring	};
269724ba675SRob Herring	uart5 {
270724ba675SRob Herring		/omit-if-no-ref/
271724ba675SRob Herring		uart5m0_xfer: uart5m0-xfer {
272724ba675SRob Herring			rockchip,pins =
273724ba675SRob Herring				/* uart5_rx_m0 */
274724ba675SRob Herring				<3 RK_PA7 4 &pcfg_pull_up>,
275724ba675SRob Herring				/* uart5_tx_m0 */
276724ba675SRob Herring				<3 RK_PA6 4 &pcfg_pull_up>;
277724ba675SRob Herring		};
278753c8a7dSJagan Teki		/omit-if-no-ref/
279753c8a7dSJagan Teki		uart5m2_xfer: uart5m2-xfer {
280753c8a7dSJagan Teki			rockchip,pins =
281753c8a7dSJagan Teki				/* uart5_rx_m2 */
282753c8a7dSJagan Teki				<2 RK_PA1 3 &pcfg_pull_up>,
283753c8a7dSJagan Teki				/* uart5_tx_m2 */
284753c8a7dSJagan Teki				<2 RK_PA0 3 &pcfg_pull_up>;
285753c8a7dSJagan Teki		};
286724ba675SRob Herring	};
287724ba675SRob Herring};
288