1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright 2020, Compass Electronics Group, LLC
4 */
5
6/dts-v1/;
7
8#include "r8a774a1.dtsi"
9#include "beacon-renesom-som.dtsi"
10#include "beacon-renesom-baseboard.dtsi"
11
12/ {
13	model = "Beacon EmbeddedWorks RZ/G2M Development Kit";
14	compatible = "beacon,beacon-rzg2m", "renesas,r8a774a1";
15
16	aliases {
17		serial0 = &scif2;
18		serial1 = &hscif0;
19		serial2 = &hscif1;
20		serial3 = &scif0;
21		serial4 = &hscif2;
22		serial5 = &scif5;
23		ethernet0 = &avb;
24		mmc0 = &sdhi3;
25		mmc1 = &sdhi0;
26		mmc2 = &sdhi2;
27	};
28
29	chosen {
30		stdout-path = "serial0:115200n8";
31	};
32
33	memory@600000000 {
34		device_type = "memory";
35		reg = <0x6 0x00000000 0x0 0x80000000>;
36	};
37};
38
39&du {
40	pinctrl-0 = <&du_pins>;
41	pinctrl-names = "default";
42	status = "okay";
43
44	clocks = <&cpg CPG_MOD 724>,
45		 <&cpg CPG_MOD 723>,
46		 <&cpg CPG_MOD 722>,
47		 <&versaclock5 1>,
48		 <&x302_clk>,
49		 <&versaclock5 2>;
50	clock-names = "du.0", "du.1", "du.2",
51		      "dclkin.0", "dclkin.1", "dclkin.2";
52};
53
54/* Reference versaclock instead of audio_clk_a */
55&rcar_sound {
56	clocks = <&cpg CPG_MOD 1005>,
57		 <&cpg CPG_MOD 1006>, <&cpg CPG_MOD 1007>,
58		 <&cpg CPG_MOD 1008>, <&cpg CPG_MOD 1009>,
59		 <&cpg CPG_MOD 1010>, <&cpg CPG_MOD 1011>,
60		 <&cpg CPG_MOD 1012>, <&cpg CPG_MOD 1013>,
61		 <&cpg CPG_MOD 1014>, <&cpg CPG_MOD 1015>,
62		 <&cpg CPG_MOD 1022>, <&cpg CPG_MOD 1023>,
63		 <&cpg CPG_MOD 1024>, <&cpg CPG_MOD 1025>,
64		 <&cpg CPG_MOD 1026>, <&cpg CPG_MOD 1027>,
65		 <&cpg CPG_MOD 1028>, <&cpg CPG_MOD 1029>,
66		 <&cpg CPG_MOD 1030>, <&cpg CPG_MOD 1031>,
67		 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
68		 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
69		 <&cpg CPG_MOD 1019>, <&cpg CPG_MOD 1018>,
70		 <&versaclock6_bb 4>, <&audio_clk_b>,
71		 <&audio_clk_c>,
72		 <&cpg CPG_CORE R8A774A1_CLK_S0D4>;
73};
74