blob: fd1cfcdd65ef3becb523990b23e428e45c571383 [file] [log] [blame]
Ulrich Hechta7427952014-09-05 12:23:49 +02001/*
2 * Device Tree Source for the Alt board
3 *
4 * Copyright (C) 2014 Renesas Electronics Corporation
5 *
6 * This file is licensed under the terms of the GNU General Public License
7 * version 2. This program is licensed "as is" without any warranty of any
8 * kind, whether express or implied.
9 */
10
11/dts-v1/;
12#include "r8a7794.dtsi"
13
14/ {
15 model = "Alt";
16 compatible = "renesas,alt", "renesas,r8a7794";
17
18 aliases {
19 serial0 = &scif2;
20 };
21
22 chosen {
Simon Horman89aeff92014-11-04 13:23:38 +090023 bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
Geert Uytterhoevenb4a0f502014-10-03 17:11:43 +020024 stdout-path = &scif2;
Ulrich Hechta7427952014-09-05 12:23:49 +020025 };
26
27 memory@40000000 {
28 device_type = "memory";
29 reg = <0 0x40000000 0 0x40000000>;
30 };
31
32 lbsc {
33 #address-cells = <1>;
34 #size-cells = <1>;
35 };
Magnus Damm876e7fb2015-11-16 17:57:29 +090036
37 vga-encoder {
38 compatible = "adi,adv7123";
39
40 ports {
41 #address-cells = <1>;
42 #size-cells = <0>;
43
44 port@0 {
45 reg = <0>;
46 adv7123_in: endpoint {
47 remote-endpoint = <&du_out_rgb1>;
48 };
49 };
50 port@1 {
51 reg = <1>;
52 adv7123_out: endpoint {
53 remote-endpoint = <&vga_in>;
54 };
55 };
56 };
57 };
58
59 vga {
60 compatible = "vga-connector";
61
62 port {
63 vga_in: endpoint {
64 remote-endpoint = <&adv7123_out>;
65 };
66 };
67 };
68
69 x2_clk: x2-clock {
70 compatible = "fixed-clock";
71 #clock-cells = <0>;
72 clock-frequency = <74250000>;
73 };
74
75 x13_clk: x13-clock {
76 compatible = "fixed-clock";
77 #clock-cells = <0>;
78 clock-frequency = <148500000>;
79 };
80};
81
82&du {
83 status = "okay";
84
85 clocks = <&mstp7_clks R8A7794_CLK_DU0>,
86 <&mstp7_clks R8A7794_CLK_DU0>,
87 <&x13_clk>, <&x2_clk>;
88 clock-names = "du.0", "du.1", "dclkin.0", "dclkin.1";
89
90 ports {
91 port@1 {
92 endpoint {
93 remote-endpoint = <&adv7123_in>;
94 };
95 };
96 };
Ulrich Hechta7427952014-09-05 12:23:49 +020097};
98
99&extal_clk {
100 clock-frequency = <20000000>;
101};
102
Simon Horman22b16072015-11-17 11:10:40 -0800103&pfc {
104 scif2_pins: serial2 {
105 renesas,groups = "scif2_data";
106 renesas,function = "scif2";
107 };
108
109 ether_pins: ether {
110 renesas,groups = "eth_link", "eth_mdio", "eth_rmii";
111 renesas,function = "eth";
112 };
113
114 ether_b_pins: ether {
115 renesas,groups = "eth_link_b", "eth_mdio_b", "eth_rmii_b";
116 renesas,function = "eth";
117 };
Ulrich Hecht7f81bf72015-11-18 13:51:06 +0100118
119 i2c1_pins: i2c1 {
120 renesas,groups = "i2c1";
121 renesas,function = "i2c1";
122 };
Ulrich Hechtd5375432015-11-18 13:51:07 +0100123
124 vin0_pins: vin0 {
125 renesas,groups = "vin0_data8", "vin0_clk";
126 renesas,function = "vin0";
127 };
Simon Horman22b16072015-11-17 11:10:40 -0800128};
129
Ulrich Hechta7427952014-09-05 12:23:49 +0200130&cmt0 {
Geert Uytterhoeven38e02902014-12-09 12:25:04 +0100131 status = "okay";
Ulrich Hechta7427952014-09-05 12:23:49 +0200132};
133
Laurent Pincharta895b7c2015-01-27 10:45:56 +0200134&ether {
135 phy-handle = <&phy1>;
136 renesas,ether-link-active-low;
137 status = "okay";
138
139 phy1: ethernet-phy@1 {
140 reg = <1>;
141 interrupt-parent = <&irqc0>;
Laurent Pinchart1fc58012015-02-26 16:08:33 +0200142 interrupts = <8 IRQ_TYPE_LEVEL_LOW>;
Laurent Pincharta895b7c2015-01-27 10:45:56 +0200143 micrel,led-mode = <1>;
144 };
145};
146
Ulrich Hecht7f81bf72015-11-18 13:51:06 +0100147&i2c1 {
148 pinctrl-0 = <&i2c1_pins>;
149 pinctrl-names = "default";
150
151 status = "okay";
152 clock-frequency = <400000>;
Ulrich Hechtd5375432015-11-18 13:51:07 +0100153
154 composite-in@20 {
155 compatible = "adi,adv7180";
156 reg = <0x20>;
157 remote = <&vin0>;
158
159 port {
160 adv7180: endpoint {
161 bus-width = <8>;
162 remote-endpoint = <&vin0ep>;
163 };
164 };
165 };
166};
167
168&vin0 {
169 status = "okay";
170 pinctrl-0 = <&vin0_pins>;
171 pinctrl-names = "default";
172
173 port {
174 #address-cells = <1>;
175 #size-cells = <0>;
176
177 vin0ep: endpoint {
178 remote-endpoint = <&adv7180>;
179 bus-width = <8>;
180 };
181 };
Ulrich Hecht7f81bf72015-11-18 13:51:06 +0100182};
183
Ulrich Hechta7427952014-09-05 12:23:49 +0200184&scif2 {
Geert Uytterhoeven38e02902014-12-09 12:25:04 +0100185 status = "okay";
Ulrich Hechta7427952014-09-05 12:23:49 +0200186};