xref: /linux/arch/arm64/boot/dts/renesas/rzg2ul-smarc-pinfunction.dtsi (revision a1c613ae4c322ddd58d5a8539dbfba2a0380a8c0)
14e440554SBiju Das// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
24e440554SBiju Das/*
34e440554SBiju Das * Device Tree Source for the RZ/G2UL SMARC pincontrol parts
44e440554SBiju Das *
54e440554SBiju Das * Copyright (C) 2022 Renesas Electronics Corp.
64e440554SBiju Das */
74e440554SBiju Das
84e440554SBiju Das#include <dt-bindings/gpio/gpio.h>
94e440554SBiju Das#include <dt-bindings/pinctrl/rzg2l-pinctrl.h>
104e440554SBiju Das
114e440554SBiju Das&pinctrl {
124e440554SBiju Das	pinctrl-0 = <&sound_clk_pins>;
134e440554SBiju Das	pinctrl-names = "default";
144e440554SBiju Das
15820e9769SBiju Das	can0_pins: can0 {
16820e9769SBiju Das		pinmux = <RZG2L_PORT_PINMUX(1, 1, 3)>, /* TX */
17820e9769SBiju Das			 <RZG2L_PORT_PINMUX(1, 2, 3)>; /* RX */
18820e9769SBiju Das	};
19820e9769SBiju Das
20820e9769SBiju Das#if (SW_ET0_EN_N)
21820e9769SBiju Das	can0-stb-hog {
22820e9769SBiju Das		gpio-hog;
23820e9769SBiju Das		gpios = <RZG2L_GPIO(2, 2) GPIO_ACTIVE_HIGH>;
24820e9769SBiju Das		output-low;
25820e9769SBiju Das		line-name = "can0_stb";
26820e9769SBiju Das	};
27820e9769SBiju Das#endif
28820e9769SBiju Das
29820e9769SBiju Das	can1_pins: can1 {
30820e9769SBiju Das		pinmux = <RZG2L_PORT_PINMUX(2, 0, 3)>, /* TX */
31820e9769SBiju Das			 <RZG2L_PORT_PINMUX(2, 1, 3)>; /* RX */
32820e9769SBiju Das	};
33820e9769SBiju Das
34820e9769SBiju Das#if (SW_ET0_EN_N)
35820e9769SBiju Das	can1-stb-hog {
36820e9769SBiju Das		gpio-hog;
37820e9769SBiju Das		gpios = <RZG2L_GPIO(2, 3) GPIO_ACTIVE_HIGH>;
38820e9769SBiju Das		output-low;
39820e9769SBiju Das		line-name = "can1_stb";
40820e9769SBiju Das	};
41820e9769SBiju Das#endif
42820e9769SBiju Das
43b0fa698bSBiju Das	i2c0_pins: i2c0 {
44b0fa698bSBiju Das		pins = "RIIC0_SDA", "RIIC0_SCL";
45b0fa698bSBiju Das		input-enable;
46b0fa698bSBiju Das	};
47b0fa698bSBiju Das
48b0fa698bSBiju Das	i2c1_pins: i2c1 {
49b0fa698bSBiju Das		pins = "RIIC1_SDA", "RIIC1_SCL";
50b0fa698bSBiju Das		input-enable;
51b0fa698bSBiju Das	};
52b0fa698bSBiju Das
53*e578a363SBiju Das	mtu3_pins: mtu3 {
54*e578a363SBiju Das		mtu2-pwm {
55*e578a363SBiju Das			pinmux = <RZG2L_PORT_PINMUX(4, 0, 4)>; /* MTIOC2A */
56*e578a363SBiju Das		};
57*e578a363SBiju Das	};
58*e578a363SBiju Das
594e440554SBiju Das	scif0_pins: scif0 {
604e440554SBiju Das		pinmux = <RZG2L_PORT_PINMUX(6, 4, 6)>, /* TxD */
614e440554SBiju Das			 <RZG2L_PORT_PINMUX(6, 3, 6)>; /* RxD */
624e440554SBiju Das	};
634e440554SBiju Das
64a74a0bf3SBiju Das	sd1-pwr-en-hog {
65a74a0bf3SBiju Das		gpio-hog;
66a74a0bf3SBiju Das		gpios = <RZG2L_GPIO(0, 3) GPIO_ACTIVE_HIGH>;
67a74a0bf3SBiju Das		output-high;
68a74a0bf3SBiju Das		line-name = "sd1_pwr_en";
69a74a0bf3SBiju Das	};
70a74a0bf3SBiju Das
71a74a0bf3SBiju Das	sdhi1_pins: sd1 {
72a74a0bf3SBiju Das		sd1_data {
73a74a0bf3SBiju Das			pins = "SD1_DATA0", "SD1_DATA1", "SD1_DATA2", "SD1_DATA3";
74a74a0bf3SBiju Das			power-source = <3300>;
75a74a0bf3SBiju Das		};
76a74a0bf3SBiju Das
77a74a0bf3SBiju Das		sd1_ctrl {
78a74a0bf3SBiju Das			pins = "SD1_CLK", "SD1_CMD";
79a74a0bf3SBiju Das			power-source = <3300>;
80a74a0bf3SBiju Das		};
81a74a0bf3SBiju Das
82a74a0bf3SBiju Das		sd1_mux {
83a74a0bf3SBiju Das			pinmux = <RZG2L_PORT_PINMUX(0, 2, 1)>; /* SD1_CD */
84a74a0bf3SBiju Das		};
85a74a0bf3SBiju Das	};
86a74a0bf3SBiju Das
87a74a0bf3SBiju Das	sdhi1_pins_uhs: sd1_uhs {
88a74a0bf3SBiju Das		sd1_data_uhs {
89a74a0bf3SBiju Das			pins = "SD1_DATA0", "SD1_DATA1", "SD1_DATA2", "SD1_DATA3";
90a74a0bf3SBiju Das			power-source = <1800>;
91a74a0bf3SBiju Das		};
92a74a0bf3SBiju Das
93a74a0bf3SBiju Das		sd1_ctrl_uhs {
94a74a0bf3SBiju Das			pins = "SD1_CLK", "SD1_CMD";
95a74a0bf3SBiju Das			power-source = <1800>;
96a74a0bf3SBiju Das		};
97a74a0bf3SBiju Das
98a74a0bf3SBiju Das		sd1_mux_uhs {
99a74a0bf3SBiju Das			pinmux = <RZG2L_PORT_PINMUX(0, 2, 1)>; /* SD1_CD */
100a74a0bf3SBiju Das		};
101a74a0bf3SBiju Das	};
102a74a0bf3SBiju Das
1034e440554SBiju Das	sound_clk_pins: sound_clk {
1044e440554SBiju Das		pins = "AUDIO_CLK1", "AUDIO_CLK2";
1054e440554SBiju Das		input-enable;
1064e440554SBiju Das	};
1071ed914e3SBiju Das
108affab0afSLad Prabhakar	spi1_pins: spi1 {
109affab0afSLad Prabhakar		pinmux = <RZG2L_PORT_PINMUX(4, 0, 2)>, /* CK */
110affab0afSLad Prabhakar			 <RZG2L_PORT_PINMUX(4, 1, 2)>, /* MOSI */
111affab0afSLad Prabhakar			 <RZG2L_PORT_PINMUX(4, 2, 2)>, /* MISO */
112affab0afSLad Prabhakar			 <RZG2L_PORT_PINMUX(4, 3, 2)>; /* SSL */
113affab0afSLad Prabhakar	};
114affab0afSLad Prabhakar
1151ed914e3SBiju Das	ssi1_pins: ssi1 {
1161ed914e3SBiju Das		pinmux = <RZG2L_PORT_PINMUX(3, 0, 2)>, /* BCK */
1171ed914e3SBiju Das			 <RZG2L_PORT_PINMUX(3, 1, 2)>, /* RCK */
1181ed914e3SBiju Das			 <RZG2L_PORT_PINMUX(3, 2, 2)>, /* TXD */
1191ed914e3SBiju Das			 <RZG2L_PORT_PINMUX(3, 3, 2)>; /* RXD */
1201ed914e3SBiju Das	};
121094ff348SBiju Das
122094ff348SBiju Das	usb0_pins: usb0 {
123094ff348SBiju Das		pinmux = <RZG2L_PORT_PINMUX(5, 0, 1)>, /* VBUS */
124094ff348SBiju Das			 <RZG2L_PORT_PINMUX(5, 2, 1)>, /* OVC */
125094ff348SBiju Das			 <RZG2L_PORT_PINMUX(5, 3, 1)>; /* OTG_ID */
126094ff348SBiju Das	};
127094ff348SBiju Das
128094ff348SBiju Das	usb1_pins: usb1 {
129094ff348SBiju Das		pinmux = <RZG2L_PORT_PINMUX(5, 4, 5)>, /* OVC */
130094ff348SBiju Das			 <RZG2L_PORT_PINMUX(6, 0, 1)>; /* VBUS */
131094ff348SBiju Das	};
1324e440554SBiju Das};
133