15956d97fSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 25956d97fSEmmanuel Vadot/* 35956d97fSEmmanuel Vadot * Device Tree Source for the RZ/G2L SMARC EVK board 45956d97fSEmmanuel Vadot * 55956d97fSEmmanuel Vadot * Copyright (C) 2021 Renesas Electronics Corp. 65956d97fSEmmanuel Vadot */ 75956d97fSEmmanuel Vadot 85956d97fSEmmanuel Vadot/dts-v1/; 9*aa1a8ff2SEmmanuel Vadot 10*aa1a8ff2SEmmanuel Vadot/* Enable SCIF2 (SER0) on PMOD1 (CN7) */ 11*aa1a8ff2SEmmanuel Vadot#define PMOD1_SER0 1 12*aa1a8ff2SEmmanuel Vadot 13*aa1a8ff2SEmmanuel Vadot/* 14*aa1a8ff2SEmmanuel Vadot * To enable MTU3a PWM on PMOD0, 15*aa1a8ff2SEmmanuel Vadot * Disable PMOD1_SER0 by setting "#define PMOD1_SER0 0" above and 16*aa1a8ff2SEmmanuel Vadot * enable PMOD_MTU3 by setting "#define PMOD_MTU3 1" below. 17*aa1a8ff2SEmmanuel Vadot */ 18*aa1a8ff2SEmmanuel Vadot#define PMOD_MTU3 0 19*aa1a8ff2SEmmanuel Vadot 20*aa1a8ff2SEmmanuel Vadot#if (PMOD_MTU3 && PMOD1_SER0) 21*aa1a8ff2SEmmanuel Vadot#error "Cannot set as PMOD_MTU3 and PMOD1_SER0 are mutually exclusive " 22*aa1a8ff2SEmmanuel Vadot#endif 23*aa1a8ff2SEmmanuel Vadot 24*aa1a8ff2SEmmanuel Vadot#define MTU3_COUNTER_Z_PHASE_SIGNAL 0 25*aa1a8ff2SEmmanuel Vadot 26*aa1a8ff2SEmmanuel Vadot#if (!PMOD_MTU3 && MTU3_COUNTER_Z_PHASE_SIGNAL) 27*aa1a8ff2SEmmanuel Vadot#error "Cannot set 1 to MTU3_COUNTER_Z_PHASE_SIGNAL as PMOD_MTU3=0" 28*aa1a8ff2SEmmanuel Vadot#endif 29*aa1a8ff2SEmmanuel Vadot 305956d97fSEmmanuel Vadot#include "r9a07g044l2.dtsi" 318cc087a1SEmmanuel Vadot#include "rzg2l-smarc-som.dtsi" 32c9ccf3a3SEmmanuel Vadot#include "rzg2l-smarc-pinfunction.dtsi" 33c9ccf3a3SEmmanuel Vadot#include "rz-smarc-common.dtsi" 345956d97fSEmmanuel Vadot#include "rzg2l-smarc.dtsi" 355956d97fSEmmanuel Vadot 365956d97fSEmmanuel Vadot/ { 375956d97fSEmmanuel Vadot model = "Renesas SMARC EVK based on r9a07g044l2"; 385956d97fSEmmanuel Vadot compatible = "renesas,smarc-evk", "renesas,r9a07g044l2", "renesas,r9a07g044"; 395956d97fSEmmanuel Vadot}; 40