]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - src/arm64/renesas/r8a77970-v3msk.dts
Import latest DTS files from Linux 4.18
[FreeBSD/FreeBSD.git] / src / arm64 / renesas / r8a77970-v3msk.dts
1 /*
2  * Device Tree Source for the V3M Starter Kit board
3  *
4  * Copyright (C) 2017 Renesas Electronics Corp.
5  * Copyright (C) 2017 Cogent Embedded, Inc.
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 "r8a77970.dtsi"
14
15 / {
16         model = "Renesas V3M Starter Kit board";
17         compatible = "renesas,v3msk", "renesas,r8a77970";
18
19         aliases {
20                 serial0 = &scif0;
21         };
22
23         chosen {
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         osc5_clk: osc5-clock {
34                 compatible = "fixed-clock";
35                 #clock-cells = <0>;
36                 clock-frequency = <148500000>;
37         };
38
39         vcc_d1_8v: regulator-0 {
40                 compatible = "regulator-fixed";
41                 regulator-name = "VCC_D1.8V";
42                 regulator-min-microvolt = <1800000>;
43                 regulator-max-microvolt = <1800000>;
44                 regulator-boot-on;
45                 regulator-always-on;
46         };
47
48         vcc_d3_3v: regulator-1 {
49                 compatible = "regulator-fixed";
50                 regulator-name = "VCC_D3.3V";
51                 regulator-min-microvolt = <3300000>;
52                 regulator-max-microvolt = <3300000>;
53                 regulator-boot-on;
54                 regulator-always-on;
55         };
56
57         lvds-decoder {
58                 compatible = "thine,thc63lvd1024";
59                 vcc-supply = <&vcc_d3_3v>;
60
61                 ports {
62                         #address-cells = <1>;
63                         #size-cells = <0>;
64
65                         port@0 {
66                                 reg = <0>;
67                                 thc63lvd1024_in: endpoint {
68                                         remote-endpoint = <&lvds0_out>;
69                                 };
70                         };
71
72                         port@2 {
73                                 reg = <2>;
74                                 thc63lvd1024_out: endpoint {
75                                         remote-endpoint = <&adv7511_in>;
76                                 };
77                         };
78                 };
79         };
80
81         hdmi-out {
82                 compatible = "hdmi-connector";
83                 type = "a";
84
85                 port {
86                         hdmi_con: endpoint {
87                                 remote-endpoint = <&adv7511_out>;
88                         };
89                 };
90         };
91 };
92
93 &avb {
94         pinctrl-0 = <&avb_pins>;
95         pinctrl-names = "default";
96
97         renesas,no-ether-link;
98         phy-handle = <&phy0>;
99         phy-mode = "rgmii-id";
100         status = "okay";
101
102         phy0: ethernet-phy@0 {
103                 rxc-skew-ps = <1500>;
104                 reg = <0>;
105         };
106 };
107
108 &du {
109         clocks = <&cpg CPG_MOD 724>,
110                  <&osc5_clk>;
111         clock-names = "du.0", "dclkin.0";
112         status = "okay";
113 };
114
115 &extal_clk {
116         clock-frequency = <16666666>;
117 };
118
119 &extalr_clk {
120         clock-frequency = <32768>;
121 };
122
123 &pfc {
124         avb_pins: avb0 {
125                 groups = "avb0_mdio", "avb0_rgmii", "avb0_txcrefclk";
126                 function = "avb0";
127         };
128
129         i2c0_pins: i2c0 {
130                 groups = "i2c0";
131                 function = "i2c0";
132         };
133
134         scif0_pins: scif0 {
135                 groups = "scif0_data";
136                 function = "scif0";
137         };
138 };
139
140 &i2c0 {
141         pinctrl-0 = <&i2c0_pins>;
142         pinctrl-names = "default";
143
144         status = "okay";
145         clock-frequency = <400000>;
146
147         hdmi@39{
148                 compatible = "adi,adv7511w";
149                 #sound-dai-cells = <0>;
150                 reg = <0x39>;
151                 interrupt-parent = <&gpio1>;
152                 interrupts = <20 IRQ_TYPE_LEVEL_LOW>;
153                 avdd-supply = <&vcc_d1_8v>;
154                 dvdd-supply = <&vcc_d1_8v>;
155                 pvdd-supply = <&vcc_d1_8v>;
156                 bgvdd-supply = <&vcc_d1_8v>;
157                 dvdd-3v-supply = <&vcc_d3_3v>;
158
159                 adi,input-depth = <8>;
160                 adi,input-colorspace = "rgb";
161                 adi,input-clock = "1x";
162                 adi,input-style = <1>;
163                 adi,input-justification = "evenly";
164
165                 ports {
166                         #address-cells = <1>;
167                         #size-cells = <0>;
168
169                         port@0 {
170                                 reg = <0>;
171                                 adv7511_in: endpoint {
172                                         remote-endpoint = <&thc63lvd1024_out>;
173                                 };
174                         };
175
176                         port@1 {
177                                 reg = <1>;
178                                 adv7511_out: endpoint {
179                                         remote-endpoint = <&hdmi_con>;
180                                 };
181                         };
182                 };
183         };
184 };
185
186 &lvds0 {
187         status = "okay";
188
189         ports {
190                 port@1 {
191                         lvds0_out: endpoint {
192                                 remote-endpoint = <&thc63lvd1024_in>;
193                         };
194                 };
195         };
196 };
197
198 &scif0 {
199         pinctrl-0 = <&scif0_pins>;
200         pinctrl-names = "default";
201
202         status = "okay";
203 };