1// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2/*
3 * Device Tree Source for the RZ/G2UL Type-1 SMARC EVK parts
4 *
5 * Copyright (C) 2022 Renesas Electronics Corp.
6 */
7
8/*
9 * DIP-Switch SW1 setting
10 * 1 : High; 0: Low
11 * SW1-2 : SW_SD0_DEV_SEL	(0: uSD; 1: eMMC)
12 * SW1-3 : SW_ET0_EN_N		(0: ETHER0; 1: CAN0, CAN1, SSI1, RSPI1)
13 * Please change below macros according to SW1 setting
14 */
15#define SW_SW0_DEV_SEL	1
16#define SW_ET0_EN_N	1
17
18#include "rzg2ul-smarc-som.dtsi"
19#include "rzg2ul-smarc-pinfunction.dtsi"
20#include "rz-smarc-common.dtsi"
21
22#if (!SW_ET0_EN_N)
23&canfd {
24	/delete-property/ pinctrl-0;
25	/delete-property/ pinctrl-names;
26	status = "disabled";
27};
28#endif
29
30&i2c1 {
31	wm8978: codec@1a {
32		compatible = "wlf,wm8978";
33		#sound-dai-cells = <0>;
34		reg = <0x1a>;
35	};
36};
37
38&vccq_sdhi1 {
39	gpios = <&pinctrl RZG2L_GPIO(6, 1) GPIO_ACTIVE_HIGH>;
40};
41