1 // SPDX-License-Identifier: (GPL-2.0-only OR B 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 /* 2 /* 3 * Device Tree Source for the RZ/V2L SMARC EVK 3 * Device Tree Source for the RZ/V2L SMARC EVK board 4 * 4 * 5 * Copyright (C) 2021 Renesas Electronics Corp 5 * Copyright (C) 2021 Renesas Electronics Corp. 6 */ 6 */ 7 7 8 /dts-v1/; 8 /dts-v1/; 9 9 10 /* Enable SCIF2 (SER0) on PMOD1 (CN7) */ 10 /* Enable SCIF2 (SER0) on PMOD1 (CN7) */ 11 #define PMOD1_SER0 1 11 #define PMOD1_SER0 1 12 12 13 /* 13 /* 14 * To enable MTU3a PWM on PMOD0, 14 * To enable MTU3a PWM on PMOD0, 15 * Disable PMOD1_SER0 by setting "#define PMOD 15 * Disable PMOD1_SER0 by setting "#define PMOD1_SER0 0" above and 16 * enable PMOD_MTU3 by setting "#define PMOD_M 16 * enable PMOD_MTU3 by setting "#define PMOD_MTU3 1" below. 17 */ 17 */ 18 #define PMOD_MTU3 0 18 #define PMOD_MTU3 0 19 19 20 #if (PMOD_MTU3 && PMOD1_SER0) 20 #if (PMOD_MTU3 && PMOD1_SER0) 21 #error "Cannot set as PMOD_MTU3 and PMOD1_SER0 21 #error "Cannot set as PMOD_MTU3 and PMOD1_SER0 are mutually exclusive " 22 #endif 22 #endif 23 23 24 #define MTU3_COUNTER_Z_PHASE_SIGNAL 0 24 #define MTU3_COUNTER_Z_PHASE_SIGNAL 0 25 #if (!PMOD_MTU3 && MTU3_COUNTER_Z_PHASE_SIGNAL 25 #if (!PMOD_MTU3 && MTU3_COUNTER_Z_PHASE_SIGNAL) 26 #error "Cannot set 1 to MTU3_COUNTER_Z_PHASE_S 26 #error "Cannot set 1 to MTU3_COUNTER_Z_PHASE_SIGNAL as PMOD_MTU3=0" 27 #endif 27 #endif 28 28 29 #include "r9a07g054l2.dtsi" 29 #include "r9a07g054l2.dtsi" 30 #include "rzg2l-smarc-som.dtsi" 30 #include "rzg2l-smarc-som.dtsi" 31 #include "rzg2l-smarc-pinfunction.dtsi" 31 #include "rzg2l-smarc-pinfunction.dtsi" 32 #include "rz-smarc-common.dtsi" 32 #include "rz-smarc-common.dtsi" 33 #include "rzg2l-smarc.dtsi" 33 #include "rzg2l-smarc.dtsi" 34 34 35 / { 35 / { 36 model = "Renesas SMARC EVK based on r9 36 model = "Renesas SMARC EVK based on r9a07g054l2"; 37 compatible = "renesas,smarc-evk", "ren 37 compatible = "renesas,smarc-evk", "renesas,r9a07g054l2", "renesas,r9a07g054"; 38 }; 38 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.