xref: /linux/arch/arm64/boot/dts/renesas/rzg2ul-smarc-pinfunction.dtsi (revision 1ed914e341392dbb7c29f0f62c105a81cce6b3e0)
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
534e440554SBiju Das	scif0_pins: scif0 {
544e440554SBiju Das		pinmux = <RZG2L_PORT_PINMUX(6, 4, 6)>, /* TxD */
554e440554SBiju Das			 <RZG2L_PORT_PINMUX(6, 3, 6)>; /* RxD */
564e440554SBiju Das	};
574e440554SBiju Das
58a74a0bf3SBiju Das	sd1-pwr-en-hog {
59a74a0bf3SBiju Das		gpio-hog;
60a74a0bf3SBiju Das		gpios = <RZG2L_GPIO(0, 3) GPIO_ACTIVE_HIGH>;
61a74a0bf3SBiju Das		output-high;
62a74a0bf3SBiju Das		line-name = "sd1_pwr_en";
63a74a0bf3SBiju Das	};
64a74a0bf3SBiju Das
65a74a0bf3SBiju Das	sdhi1_pins: sd1 {
66a74a0bf3SBiju Das		sd1_data {
67a74a0bf3SBiju Das			pins = "SD1_DATA0", "SD1_DATA1", "SD1_DATA2", "SD1_DATA3";
68a74a0bf3SBiju Das			power-source = <3300>;
69a74a0bf3SBiju Das		};
70a74a0bf3SBiju Das
71a74a0bf3SBiju Das		sd1_ctrl {
72a74a0bf3SBiju Das			pins = "SD1_CLK", "SD1_CMD";
73a74a0bf3SBiju Das			power-source = <3300>;
74a74a0bf3SBiju Das		};
75a74a0bf3SBiju Das
76a74a0bf3SBiju Das		sd1_mux {
77a74a0bf3SBiju Das			pinmux = <RZG2L_PORT_PINMUX(0, 2, 1)>; /* SD1_CD */
78a74a0bf3SBiju Das		};
79a74a0bf3SBiju Das	};
80a74a0bf3SBiju Das
81a74a0bf3SBiju Das	sdhi1_pins_uhs: sd1_uhs {
82a74a0bf3SBiju Das		sd1_data_uhs {
83a74a0bf3SBiju Das			pins = "SD1_DATA0", "SD1_DATA1", "SD1_DATA2", "SD1_DATA3";
84a74a0bf3SBiju Das			power-source = <1800>;
85a74a0bf3SBiju Das		};
86a74a0bf3SBiju Das
87a74a0bf3SBiju Das		sd1_ctrl_uhs {
88a74a0bf3SBiju Das			pins = "SD1_CLK", "SD1_CMD";
89a74a0bf3SBiju Das			power-source = <1800>;
90a74a0bf3SBiju Das		};
91a74a0bf3SBiju Das
92a74a0bf3SBiju Das		sd1_mux_uhs {
93a74a0bf3SBiju Das			pinmux = <RZG2L_PORT_PINMUX(0, 2, 1)>; /* SD1_CD */
94a74a0bf3SBiju Das		};
95a74a0bf3SBiju Das	};
96a74a0bf3SBiju Das
974e440554SBiju Das	sound_clk_pins: sound_clk {
984e440554SBiju Das		pins = "AUDIO_CLK1", "AUDIO_CLK2";
994e440554SBiju Das		input-enable;
1004e440554SBiju Das	};
101*1ed914e3SBiju Das
102*1ed914e3SBiju Das	ssi1_pins: ssi1 {
103*1ed914e3SBiju Das		pinmux = <RZG2L_PORT_PINMUX(3, 0, 2)>, /* BCK */
104*1ed914e3SBiju Das			 <RZG2L_PORT_PINMUX(3, 1, 2)>, /* RCK */
105*1ed914e3SBiju Das			 <RZG2L_PORT_PINMUX(3, 2, 2)>, /* TXD */
106*1ed914e3SBiju Das			 <RZG2L_PORT_PINMUX(3, 3, 2)>; /* RXD */
107*1ed914e3SBiju Das	};
1084e440554SBiju Das};
109