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#include "rzg2ul-smarc-pinfunction.dtsi"
9#include "rz-smarc-common.dtsi"
10
11#if (!SW_ET0_EN_N)
12&canfd {
13	/delete-property/ pinctrl-0;
14	/delete-property/ pinctrl-names;
15	status = "disabled";
16};
17#endif
18
19&cpu_dai {
20	sound-dai = <&ssi1>;
21};
22
23&i2c1 {
24	wm8978: codec@1a {
25		compatible = "wlf,wm8978";
26		#sound-dai-cells = <0>;
27		reg = <0x1a>;
28	};
29};
30
31#if (SW_ET0_EN_N)
32&ssi1 {
33	pinctrl-0 = <&ssi1_pins>;
34	pinctrl-names = "default";
35
36	status = "okay";
37};
38#else
39&snd_rzg2l {
40	status = "disabled";
41};
42
43&spi1 {
44	/delete-property/ pinctrl-0;
45	/delete-property/ pinctrl-names;
46	status = "disabled";
47};
48
49&ssi1 {
50	/delete-property/ pinctrl-0;
51	/delete-property/ pinctrl-names;
52	status = "disabled";
53};
54#endif
55
56&vccq_sdhi1 {
57	gpios = <&pinctrl RZG2L_GPIO(6, 1) GPIO_ACTIVE_HIGH>;
58};
59