xref: /linux/scripts/dtc/include-prefixes/arm64/renesas/r9a07g044l2-smarc.dts (revision 10ca61c6c0fff0985348cc07be0bb037c0bbf15a)
1690ea5d3SLad Prabhakar// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2690ea5d3SLad Prabhakar/*
3690ea5d3SLad Prabhakar * Device Tree Source for the RZ/G2L SMARC EVK board
4690ea5d3SLad Prabhakar *
5690ea5d3SLad Prabhakar * Copyright (C) 2021 Renesas Electronics Corp.
6690ea5d3SLad Prabhakar */
7690ea5d3SLad Prabhakar
8690ea5d3SLad Prabhakar/dts-v1/;
9*10ca61c6SBiju Das
10*10ca61c6SBiju Das/* Enable SCIF2 (SER0) on PMOD1 (CN7) */
11*10ca61c6SBiju Das#define PMOD1_SER0	1
12*10ca61c6SBiju Das
13*10ca61c6SBiju Das/*
14*10ca61c6SBiju Das * To enable MTU3a PWM on PMOD0,
15*10ca61c6SBiju Das * Disable PMOD1_SER0 by setting "#define PMOD1_SER0	0" above and
16*10ca61c6SBiju Das * enable PMOD_MTU3 by setting "#define PMOD_MTU3	1" below.
17*10ca61c6SBiju Das */
18*10ca61c6SBiju Das#define PMOD_MTU3	0
19*10ca61c6SBiju Das
20*10ca61c6SBiju Das#if (PMOD_MTU3 && PMOD1_SER0)
21*10ca61c6SBiju Das#error "Cannot set as PMOD_MTU3 and PMOD1_SER0 are mutually exclusive "
22*10ca61c6SBiju Das#endif
23*10ca61c6SBiju Das
24*10ca61c6SBiju Das#define MTU3_COUNTER_Z_PHASE_SIGNAL	0
25*10ca61c6SBiju Das
26*10ca61c6SBiju Das#if (!PMOD_MTU3 && MTU3_COUNTER_Z_PHASE_SIGNAL)
27*10ca61c6SBiju Das#error "Cannot set 1 to MTU3_COUNTER_Z_PHASE_SIGNAL as PMOD_MTU3=0"
28*10ca61c6SBiju Das#endif
29*10ca61c6SBiju Das
30690ea5d3SLad Prabhakar#include "r9a07g044l2.dtsi"
3155c68261SLad Prabhakar#include "rzg2l-smarc-som.dtsi"
3265d2bc88SBiju Das#include "rzg2l-smarc-pinfunction.dtsi"
33726fd781SBiju Das#include "rz-smarc-common.dtsi"
34690ea5d3SLad Prabhakar#include "rzg2l-smarc.dtsi"
35690ea5d3SLad Prabhakar
36690ea5d3SLad Prabhakar/ {
37690ea5d3SLad Prabhakar	model = "Renesas SMARC EVK based on r9a07g044l2";
38690ea5d3SLad Prabhakar	compatible = "renesas,smarc-evk", "renesas,r9a07g044l2", "renesas,r9a07g044";
39690ea5d3SLad Prabhakar};
40