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