Merge tag 'sunxi-dt64-for-4.15' of https://git.kernel.org/pub/scm/linux/kernel/git...
[sfrench/cifs-2.6.git] / arch / arm64 / boot / dts / renesas / r8a77995-draak.dts
1 /*
2  * Device Tree Source for the Draak board
3  *
4  * Copyright (C) 2016 Renesas Electronics Corp.
5  * Copyright (C) 2017 Glider bvba
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 "r8a77995.dtsi"
14 #include <dt-bindings/gpio/gpio.h>
15
16 / {
17         model = "Renesas Draak board based on r8a77995";
18         compatible = "renesas,draak", "renesas,r8a77995";
19
20         aliases {
21                 serial0 = &scif2;
22                 ethernet0 = &avb;
23         };
24
25         chosen {
26                 bootargs = "ignore_loglevel";
27                 stdout-path = "serial0:115200n8";
28         };
29
30         memory@48000000 {
31                 device_type = "memory";
32                 /* first 128MB is reserved for secure area. */
33                 reg = <0x0 0x48000000 0x0 0x18000000>;
34         };
35 };
36
37 &extal_clk {
38         clock-frequency = <48000000>;
39 };
40
41 &pfc {
42         avb0_pins: avb {
43                 mux {
44                         groups = "avb0_link", "avb0_phy_int", "avb0_mdc",
45                                  "avb0_mii";
46                         function = "avb0";
47                 };
48         };
49
50         scif2_pins: scif2 {
51                 groups = "scif2_data";
52                 function = "scif2";
53         };
54
55         usb0_pins: usb0 {
56                 groups = "usb0";
57                 function = "usb0";
58         };
59 };
60
61 &ehci0 {
62         status = "okay";
63 };
64
65 &ohci0 {
66         status = "okay";
67 };
68
69 &avb {
70         pinctrl-0 = <&avb0_pins>;
71         pinctrl-names = "default";
72         renesas,no-ether-link;
73         phy-handle = <&phy0>;
74         status = "okay";
75
76         phy0: ethernet-phy@0 {
77                 rxc-skew-ps = <1500>;
78                 reg = <0>;
79                 interrupt-parent = <&gpio5>;
80                 interrupts = <19 IRQ_TYPE_LEVEL_LOW>;
81         };
82 };
83
84 &scif2 {
85         pinctrl-0 = <&scif2_pins>;
86         pinctrl-names = "default";
87
88         status = "okay";
89 };
90
91 &usb2_phy0 {
92         pinctrl-0 = <&usb0_pins>;
93         pinctrl-names = "default";
94
95         status = "okay";
96 };
97
98 &rwdt {
99         timeout-sec = <60>;
100         status = "okay";
101 };