ARM: rmobile: Sync Gen3 DTS with Linux v4.17
[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                 spi0 = &rpc;
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         renesas,no-ether-link;
36         phy-handle = <&phy0>;
37         phy-mode = "rgmii-id";
38         status = "okay";
39
40         phy0: ethernet-phy@0 {
41                 rxc-skew-ps = <1500>;
42                 reg = <0>;
43                 interrupt-parent = <&gpio1>;
44                 interrupts = <17 IRQ_TYPE_LEVEL_LOW>;
45         };
46 };
47
48 &extal_clk {
49         clock-frequency = <16666666>;
50 };
51
52 &extalr_clk {
53         clock-frequency = <32768>;
54 };
55
56 &i2c0 {
57         pinctrl-0 = <&i2c0_pins>;
58         pinctrl-names = "default";
59
60         status = "okay";
61         clock-frequency = <400000>;
62
63         io_expander: gpio@20 {
64                 compatible = "onnn,pca9654";
65                 reg = <0x20>;
66                 gpio-controller;
67                 #gpio-cells = <2>;
68         };
69 };
70
71 &pfc {
72         i2c0_pins: i2c0 {
73                 groups = "i2c0";
74                 function = "i2c0";
75         };
76
77         scif0_pins: scif0 {
78                 groups = "scif0_data";
79                 function = "scif0";
80         };
81 };
82
83 &rpc {
84         num-cs = <1>;
85         status = "okay";
86         spi-max-frequency = <50000000>;
87         #address-cells = <1>;
88         #size-cells = <0>;
89
90         flash0: spi-flash@0 {
91                 #address-cells = <1>;
92                 #size-cells = <1>;
93                 compatible = "s25fs512s", "spi-flash", "jedec,spi-nor";
94                 spi-max-frequency = <50000000>;
95                 spi-tx-bus-width = <1>;
96                 spi-rx-bus-width = <1>;
97                 reg = <0>;
98                 status = "okay";
99         };
100 };
101
102 &rwdt {
103         timeout-sec = <60>;
104         status = "okay";
105 };
106
107 &scif0 {
108         pinctrl-0 = <&scif0_pins>;
109         pinctrl-names = "default";
110
111         status = "okay";
112 };