Merge tag 'pxa-dt-4.20' of https://github.com/rjarzmik/linux into next/dt
[sfrench/cifs-2.6.git] / arch / arm64 / boot / dts / renesas / r8a77990-ebisu.dts
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Device Tree Source for the ebisu board
4  *
5  * Copyright (C) 2018 Renesas Electronics Corp.
6  */
7
8 /dts-v1/;
9 #include "r8a77990.dtsi"
10 #include <dt-bindings/gpio/gpio.h>
11
12 / {
13         model = "Renesas Ebisu board based on r8a77990";
14         compatible = "renesas,ebisu", "renesas,r8a77990";
15
16         aliases {
17                 serial0 = &scif2;
18                 ethernet0 = &avb;
19         };
20
21         chosen {
22                 bootargs = "ignore_loglevel";
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         pinctrl-0 = <&avb_pins>;
35         pinctrl-names = "default";
36         renesas,no-ether-link;
37         phy-handle = <&phy0>;
38         phy-mode = "rgmii-txid";
39         status = "okay";
40
41         phy0: ethernet-phy@0 {
42                 rxc-skew-ps = <1500>;
43                 reg = <0>;
44                 interrupt-parent = <&gpio2>;
45                 interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
46                 reset-gpios = <&gpio1 20 GPIO_ACTIVE_LOW>;
47         };
48 };
49
50 &ehci0 {
51         status = "okay";
52 };
53
54 &extal_clk {
55         clock-frequency = <48000000>;
56 };
57
58 &ohci0 {
59         status = "okay";
60 };
61
62 &pfc {
63         avb_pins: avb {
64                 mux {
65                         groups = "avb_link", "avb_mii";
66                         function = "avb";
67                 };
68         };
69
70         pwm3_pins: pwm3 {
71                 groups = "pwm3_b";
72                 function = "pwm3";
73         };
74
75         pwm5_pins: pwm5 {
76                 groups = "pwm5_a";
77                 function = "pwm5";
78         };
79
80         usb0_pins: usb {
81                 groups = "usb0_b";
82                 function = "usb0";
83         };
84
85         usb30_pins: usb30 {
86                 groups = "usb30";
87                 function = "usb30";
88         };
89 };
90
91 &pwm3 {
92         pinctrl-0 = <&pwm3_pins>;
93         pinctrl-names = "default";
94
95         status = "okay";
96 };
97
98 &pwm5 {
99         pinctrl-0 = <&pwm5_pins>;
100         pinctrl-names = "default";
101
102         status = "okay";
103 };
104
105 &rwdt {
106         timeout-sec = <60>;
107         status = "okay";
108 };
109
110 &scif2 {
111         status = "okay";
112 };
113
114 &usb2_phy0 {
115         pinctrl-0 = <&usb0_pins>;
116         pinctrl-names = "default";
117
118         status = "okay";
119 };
120
121 &xhci0 {
122         pinctrl-0 = <&usb30_pins>;
123         pinctrl-names = "default";
124
125         status = "okay";
126 };