2021-06-09 16:32:30 +01:00
|
|
|
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
|
|
/*
|
|
|
|
* Device Tree Source for the RZ/G2L SMARC EVK board
|
|
|
|
*
|
|
|
|
* Copyright (C) 2021 Renesas Electronics Corp.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
2023-07-06 16:30:47 +01:00
|
|
|
|
|
|
|
/* Enable SCIF2 (SER0) on PMOD1 (CN7) */
|
|
|
|
#define PMOD1_SER0 1
|
|
|
|
|
|
|
|
/*
|
|
|
|
* To enable MTU3a PWM on PMOD0,
|
|
|
|
* Disable PMOD1_SER0 by setting "#define PMOD1_SER0 0" above and
|
|
|
|
* enable PMOD_MTU3 by setting "#define PMOD_MTU3 1" below.
|
|
|
|
*/
|
|
|
|
#define PMOD_MTU3 0
|
|
|
|
|
|
|
|
#if (PMOD_MTU3 && PMOD1_SER0)
|
|
|
|
#error "Cannot set as PMOD_MTU3 and PMOD1_SER0 are mutually exclusive "
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define MTU3_COUNTER_Z_PHASE_SIGNAL 0
|
|
|
|
|
|
|
|
#if (!PMOD_MTU3 && MTU3_COUNTER_Z_PHASE_SIGNAL)
|
|
|
|
#error "Cannot set 1 to MTU3_COUNTER_Z_PHASE_SIGNAL as PMOD_MTU3=0"
|
|
|
|
#endif
|
|
|
|
|
2025-04-24 06:40:46 +01:00
|
|
|
/*
|
|
|
|
* To enable the GPT pins GTIOC4A(PMOD0_PIN7) and GTIOC4B(PMOD0_PIN10) on the
|
|
|
|
* PMOD0 connector (J1), enable PMOD0_GPT by setting "#define PMOD0_GPT 1"
|
|
|
|
* below.
|
|
|
|
*/
|
|
|
|
#define PMOD0_GPT 0
|
|
|
|
|
2021-06-09 16:32:30 +01:00
|
|
|
#include "r9a07g044l2.dtsi"
|
2021-09-22 22:20:47 +01:00
|
|
|
#include "rzg2l-smarc-som.dtsi"
|
2021-12-16 11:43:03 +00:00
|
|
|
#include "rzg2l-smarc-pinfunction.dtsi"
|
2022-02-03 17:06:33 +00:00
|
|
|
#include "rz-smarc-common.dtsi"
|
2021-06-09 16:32:30 +01:00
|
|
|
#include "rzg2l-smarc.dtsi"
|
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "Renesas SMARC EVK based on r9a07g044l2";
|
|
|
|
compatible = "renesas,smarc-evk", "renesas,r9a07g044l2", "renesas,r9a07g044";
|
|
|
|
};
|