1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
/*
* Device Tree Source for the RZ/G3S SMARC Carrier II EVK PMOD parts
*
* Copyright (C) 2024 Renesas Electronics Corp.
*
*
* [Connection]
*
* SMARC Carrier II EVK
* +--------------------------------------------+
* |PMOD1_3A (PMOD1 PIN HEADER) |
* | SCIF1_CTS# (pin1) (pin7) PMOD1_GPIO10 |
* | SCIF1_TXD (pin2) (pin8) PMOD1_GPIO11 |
* | SCIF1_RXD (pin3) (pin9) PMOD1_GPIO12 |
* | SCIF1_RTS# (pin4) (pin10) PMOD1_GPIO13 |
* | GND (pin5) (pin11) GND |
* | PWR_PMOD1 (pin6) (pin12) GND |
* +--------------------------------------------+
*
* The following switches should be set as follows for SCIF1:
* - SW_CONFIG2: ON
* - SW_OPT_MUX4: ON
*/
/dts-v1/;
/plugin/;
#include <dt-bindings/pinctrl/rzg2l-pinctrl.h>
#include "rzg3s-smarc-switches.h"
&pinctrl {
scif1_pins: scif1-pins {
pinmux = <RZG2L_PORT_PINMUX(14, 0, 1)>, /* TXD */
<RZG2L_PORT_PINMUX(14, 1, 1)>, /* RXD */
<RZG2L_PORT_PINMUX(16, 0, 1)>, /* CTS# */
<RZG2L_PORT_PINMUX(16, 1, 1)>; /* RTS# */
};
};
#if SW_CONFIG3 == SW_ON && SW_OPT_MUX4 == SW_ON
&scif1 {
pinctrl-names = "default";
pinctrl-0 = <&scif1_pins>;
uart-has-rtscts;
status = "okay";
};
#endif