1f91c4c74SBiju Das// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2f91c4c74SBiju Das/* 3d1273f54SChris Paterson * Device Tree Source for the RZ/V2L SMARC EVK board 4f91c4c74SBiju Das * 5f91c4c74SBiju Das * Copyright (C) 2021 Renesas Electronics Corp. 6f91c4c74SBiju Das */ 7f91c4c74SBiju Das 8f91c4c74SBiju Das/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#if (!PMOD_MTU3 && MTU3_COUNTER_Z_PHASE_SIGNAL) 26*10ca61c6SBiju Das#error "Cannot set 1 to MTU3_COUNTER_Z_PHASE_SIGNAL as PMOD_MTU3=0" 27*10ca61c6SBiju Das#endif 28*10ca61c6SBiju Das 29f91c4c74SBiju Das#include "r9a07g054l2.dtsi" 30f91c4c74SBiju Das#include "rzg2l-smarc-som.dtsi" 31f91c4c74SBiju Das#include "rzg2l-smarc-pinfunction.dtsi" 32726fd781SBiju Das#include "rz-smarc-common.dtsi" 33f91c4c74SBiju Das#include "rzg2l-smarc.dtsi" 34f91c4c74SBiju Das 35f91c4c74SBiju Das/ { 36f91c4c74SBiju Das model = "Renesas SMARC EVK based on r9a07g054l2"; 37f91c4c74SBiju Das compatible = "renesas,smarc-evk", "renesas,r9a07g054l2", "renesas,r9a07g054"; 38f91c4c74SBiju Das}; 39