Debian Codegraph @

arch/arm64/boot/dts/renesas/r9a07g044l2-smarc.dts

raw
1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 /*
3 * Device Tree Source for the RZ/G2L SMARC EVK board
4 *
5 * Copyright (C) 2021 Renesas Electronics Corp.
6 */
7
8 /dts-v1/;
9
10 /* Enable SCIF2 (SER0) on PMOD1 (CN7) */
11 #define PMOD1_SER0 1
12
13 /*
14 * To enable MTU3a PWM on PMOD0,
15 * Disable PMOD1_SER0 by setting "#define PMOD1_SER0 0" above and
16 * enable PMOD_MTU3 by setting "#define PMOD_MTU3 1" below.
17 */
18 #define PMOD_MTU3 0
19
20 #if (PMOD_MTU3 && PMOD1_SER0)
21 #error "Cannot set as PMOD_MTU3 and PMOD1_SER0 are mutually exclusive "
22 #endif
23
24 #define MTU3_COUNTER_Z_PHASE_SIGNAL 0
25
26 #if (!PMOD_MTU3 && MTU3_COUNTER_Z_PHASE_SIGNAL)
27 #error "Cannot set 1 to MTU3_COUNTER_Z_PHASE_SIGNAL as PMOD_MTU3=0"
28 #endif
29
30 /*
31 * To enable the GPT pins GTIOC4A(PMOD0_PIN7) and GTIOC4B(PMOD0_PIN10) on the
32 * PMOD0 connector (J1), enable PMOD0_GPT by setting "#define PMOD0_GPT 1"
33 * below.
34 */
35 #define PMOD0_GPT 0
36
37 #include "r9a07g044l2.dtsi"
38 #include "rzg2l-smarc-som.dtsi"
39 #include "rzg2l-smarc-pinfunction.dtsi"
40 #include "rz-smarc-common.dtsi"
41 #include "rzg2l-smarc.dtsi"
42
43 / {
44 model = "Renesas SMARC EVK based on r9a07g044l2";
45 compatible = "renesas,smarc-evk", "renesas,r9a07g044l2", "renesas,r9a07g044";
46 };