1d5b0e70fSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2d5b0e70fSEmmanuel Vadot/* 3d5b0e70fSEmmanuel Vadot * Device Tree Source for the RZ/G2UL Type-1 SMARC EVK board 4d5b0e70fSEmmanuel Vadot * 5d5b0e70fSEmmanuel Vadot * Copyright (C) 2022 Renesas Electronics Corp. 6d5b0e70fSEmmanuel Vadot */ 7d5b0e70fSEmmanuel Vadot 8d5b0e70fSEmmanuel Vadot/dts-v1/; 97ef62cebSEmmanuel Vadot 107ef62cebSEmmanuel Vadot/* 117ef62cebSEmmanuel Vadot * DIP-Switch SW1 setting 127ef62cebSEmmanuel Vadot * 1 : High; 0: Low 137ef62cebSEmmanuel Vadot * SW1-2 : SW_SD0_DEV_SEL (0: uSD; 1: eMMC) 147ef62cebSEmmanuel Vadot * SW1-3 : SW_ET0_EN_N (0: ETHER0; 1: CAN0, CAN1, SSI1, RSPI1) 157ef62cebSEmmanuel Vadot * Please change below macros according to SW1 setting on the SoM 167ef62cebSEmmanuel Vadot */ 177ef62cebSEmmanuel Vadot#define SW_SW0_DEV_SEL 1 187ef62cebSEmmanuel Vadot#define SW_ET0_EN_N 1 197ef62cebSEmmanuel Vadot 20*aa1a8ff2SEmmanuel Vadot/* 21*aa1a8ff2SEmmanuel Vadot * To enable MTU3a PWM on PMOD0, 22*aa1a8ff2SEmmanuel Vadot * - Set DIP-Switch SW1-3 to On position. 23*aa1a8ff2SEmmanuel Vadot * - Set PMOD_MTU3 macro to 1. 24*aa1a8ff2SEmmanuel Vadot */ 25*aa1a8ff2SEmmanuel Vadot#define PMOD_MTU3 0 26*aa1a8ff2SEmmanuel Vadot 27*aa1a8ff2SEmmanuel Vadot#if (PMOD_MTU3 && !SW_ET0_EN_N) 28*aa1a8ff2SEmmanuel Vadot#error "Cannot set as both PMOD_MTU3 and !SW_ET0_EN_N are mutually exclusive" 29*aa1a8ff2SEmmanuel Vadot#endif 30*aa1a8ff2SEmmanuel Vadot 318bab661aSEmmanuel Vadot#include "r9a07g043u.dtsi" 327ef62cebSEmmanuel Vadot#include "rzg2ul-smarc-som.dtsi" 33d5b0e70fSEmmanuel Vadot#include "rzg2ul-smarc.dtsi" 34d5b0e70fSEmmanuel Vadot 35d5b0e70fSEmmanuel Vadot/ { 36d5b0e70fSEmmanuel Vadot model = "Renesas SMARC EVK based on r9a07g043u11"; 37d5b0e70fSEmmanuel Vadot compatible = "renesas,smarc-evk", "renesas,r9a07g043u11", "renesas,r9a07g043"; 38d5b0e70fSEmmanuel Vadot}; 39