1/*
2 * Device Tree Source for the Eagle board
3 *
4 * Copyright (C) 2016-2017 Renesas Electronics Corp.
5 * Copyright (C) 2017 Cogent Embedded, Inc.
6 *
7 * This file is licensed under the terms of the GNU General Public License
8 * version 2.  This program is licensed "as is" without any warranty of any
9 * kind, whether express or implied.
10 */
11
12/dts-v1/;
13#include "r8a77970.dtsi"
14
15/ {
16	model = "Renesas Eagle board based on r8a77970";
17	compatible = "renesas,eagle", "renesas,r8a77970";
18
19	aliases {
20		serial0 = &scif0;
21		ethernet0 = &avb;
22	};
23
24	chosen {
25		bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
26		stdout-path = "serial0:115200n8";
27	};
28
29	memory@48000000 {
30		device_type = "memory";
31		/* first 128MB is reserved for secure area. */
32		reg = <0x0 0x48000000 0x0 0x38000000>;
33	};
34};
35
36&avb {
37	renesas,no-ether-link;
38	phy-handle = <&phy0>;
39	phy-mode = "rgmii-id";
40	status = "okay";
41
42	phy0: ethernet-phy@0 {
43		rxc-skew-ps = <1500>;
44		reg = <0>;
45		interrupt-parent = <&gpio1>;
46		interrupts = <17 IRQ_TYPE_LEVEL_LOW>;
47	};
48};
49
50&extal_clk {
51	clock-frequency = <16666666>;
52};
53
54&extalr_clk {
55	clock-frequency = <32768>;
56};
57
58&i2c0 {
59	pinctrl-0 = <&i2c0_pins>;
60	pinctrl-names = "default";
61
62	status = "okay";
63	clock-frequency = <400000>;
64
65	io_expander: gpio@20 {
66		compatible = "onnn,pca9654";
67		reg = <0x20>;
68		gpio-controller;
69		#gpio-cells = <2>;
70	};
71};
72
73&pfc {
74	i2c0_pins: i2c0 {
75		groups = "i2c0";
76		function = "i2c0";
77	};
78
79	scif0_pins: scif0 {
80		groups = "scif0_data";
81		function = "scif0";
82	};
83};
84
85&rwdt {
86	timeout-sec = <60>;
87	status = "okay";
88};
89
90&scif0 {
91	pinctrl-0 = <&scif0_pins>;
92	pinctrl-names = "default";
93
94	status = "okay";
95};
96