ARM: dts: rmobile: Extract RPC node to u-boot specific DT
[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 #include <dt-bindings/gpio/gpio.h>
12
13 / {
14         model = "Renesas Eagle board based on r8a77970";
15         compatible = "renesas,eagle", "renesas,r8a77970";
16
17         aliases {
18                 serial0 = &scif0;
19                 ethernet0 = &avb;
20         };
21
22         chosen {
23                 bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
24                 stdout-path = "serial0:115200n8";
25         };
26
27         memory@48000000 {
28                 device_type = "memory";
29                 /* first 128MB is reserved for secure area. */
30                 reg = <0x0 0x48000000 0x0 0x38000000>;
31         };
32 };
33
34 &avb {
35         pinctrl-0 = <&avb0_pins>;
36         pinctrl-names = "default";
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                 reset-gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
48         };
49 };
50
51 &extal_clk {
52         clock-frequency = <16666666>;
53 };
54
55 &extalr_clk {
56         clock-frequency = <32768>;
57 };
58
59 &i2c0 {
60         pinctrl-0 = <&i2c0_pins>;
61         pinctrl-names = "default";
62
63         status = "okay";
64         clock-frequency = <400000>;
65
66         io_expander: gpio@20 {
67                 compatible = "onnn,pca9654";
68                 reg = <0x20>;
69                 gpio-controller;
70                 #gpio-cells = <2>;
71         };
72 };
73
74 &pfc {
75         avb0_pins: avb {
76                 mux {
77                         groups = "avb0_link", "avb0_mdio", "avb0_rgmii", "avb0_txcrefclk";
78                         function = "avb0";
79                 };
80         };
81
82         i2c0_pins: i2c0 {
83                 groups = "i2c0";
84                 function = "i2c0";
85         };
86
87         scif0_pins: scif0 {
88                 groups = "scif0_data";
89                 function = "scif0";
90         };
91 };
92
93 &rwdt {
94         timeout-sec = <60>;
95         status = "okay";
96 };
97
98 &scif0 {
99         pinctrl-0 = <&scif0_pins>;
100         pinctrl-names = "default";
101
102         status = "okay";
103 };