xref: /openbmc/linux/scripts/dtc/include-prefixes/arm64/renesas/r9a07g043u11-smarc.dts (revision c900529f3d9161bfde5cca0754f83b4d3c3e0220)
1895199bcSBiju Das// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2895199bcSBiju Das/*
3895199bcSBiju Das * Device Tree Source for the RZ/G2UL Type-1 SMARC EVK board
4895199bcSBiju Das *
5895199bcSBiju Das * Copyright (C) 2022 Renesas Electronics Corp.
6895199bcSBiju Das */
7895199bcSBiju Das
8895199bcSBiju Das/dts-v1/;
953072ba6SLad Prabhakar
1053072ba6SLad Prabhakar/*
1153072ba6SLad Prabhakar * DIP-Switch SW1 setting
1253072ba6SLad Prabhakar * 1 : High; 0: Low
1353072ba6SLad Prabhakar * SW1-2 : SW_SD0_DEV_SEL	(0: uSD; 1: eMMC)
1453072ba6SLad Prabhakar * SW1-3 : SW_ET0_EN_N		(0: ETHER0; 1: CAN0, CAN1, SSI1, RSPI1)
1553072ba6SLad Prabhakar * Please change below macros according to SW1 setting on the SoM
1653072ba6SLad Prabhakar */
1753072ba6SLad Prabhakar#define SW_SW0_DEV_SEL	1
1853072ba6SLad Prabhakar#define SW_ET0_EN_N	1
1953072ba6SLad Prabhakar
20*e578a363SBiju Das/*
21*e578a363SBiju Das * To enable MTU3a PWM on PMOD0,
22*e578a363SBiju Das *  - Set DIP-Switch SW1-3 to On position.
23*e578a363SBiju Das *  - Set PMOD_MTU3 macro to 1.
24*e578a363SBiju Das */
25*e578a363SBiju Das#define PMOD_MTU3	0
26*e578a363SBiju Das
27*e578a363SBiju Das#if (PMOD_MTU3 && !SW_ET0_EN_N)
28*e578a363SBiju Das#error "Cannot set as both PMOD_MTU3 and !SW_ET0_EN_N are mutually exclusive"
29*e578a363SBiju Das#endif
30*e578a363SBiju Das
3149669da6SLad Prabhakar#include "r9a07g043u.dtsi"
3253072ba6SLad Prabhakar#include "rzg2ul-smarc-som.dtsi"
33a74a0bf3SBiju Das#include "rzg2ul-smarc.dtsi"
34895199bcSBiju Das
35895199bcSBiju Das/ {
36895199bcSBiju Das	model = "Renesas SMARC EVK based on r9a07g043u11";
37895199bcSBiju Das	compatible = "renesas,smarc-evk", "renesas,r9a07g043u11", "renesas,r9a07g043";
38895199bcSBiju Das};
39