blob: 2438825c9b22e26d9f1a5ae8ba5d40706d17ea01 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0
Marek Vasutb938f382017-07-21 23:16:59 +02002/*
Marek Vasutadaa0162020-04-04 16:12:48 +02003 * Device Tree Source for the Salvator-X board with R-Car H3 ES1.x
Marek Vasutb938f382017-07-21 23:16:59 +02004 *
5 * Copyright (C) 2015 Renesas Electronics Corp.
Marek Vasutb938f382017-07-21 23:16:59 +02006 */
7
Marek Vasutb938f382017-07-21 23:16:59 +02008/dts-v1/;
Marek Vasutadaa0162020-04-04 16:12:48 +02009#include "r8a77950.dtsi"
Marek Vasut36f83d92017-09-12 23:01:51 +020010#include "salvator-x.dtsi"
Marek Vasutb938f382017-07-21 23:16:59 +020011
12/ {
Marek Vasutadaa0162020-04-04 16:12:48 +020013 model = "Renesas Salvator-X board based on r8a77950";
Marek Vasutb938f382017-07-21 23:16:59 +020014 compatible = "renesas,salvator-x", "renesas,r8a7795";
15
Marek Vasutb938f382017-07-21 23:16:59 +020016 memory@48000000 {
17 device_type = "memory";
18 /* first 128MB is reserved for secure area. */
19 reg = <0x0 0x48000000 0x0 0x38000000>;
20 };
21
Marek Vasut36f83d92017-09-12 23:01:51 +020022 memory@500000000 {
23 device_type = "memory";
24 reg = <0x5 0x00000000 0x0 0x40000000>;
Marek Vasutb938f382017-07-21 23:16:59 +020025 };
26
Marek Vasut36f83d92017-09-12 23:01:51 +020027 memory@600000000 {
28 device_type = "memory";
29 reg = <0x6 0x00000000 0x0 0x40000000>;
Marek Vasutb938f382017-07-21 23:16:59 +020030 };
31
Marek Vasut36f83d92017-09-12 23:01:51 +020032 memory@700000000 {
33 device_type = "memory";
34 reg = <0x7 0x00000000 0x0 0x40000000>;
Marek Vasutb938f382017-07-21 23:16:59 +020035 };
Marek Vasut36f83d92017-09-12 23:01:51 +020036};
Marek Vasutb938f382017-07-21 23:16:59 +020037
Marek Vasut36f83d92017-09-12 23:01:51 +020038&du {
39 clocks = <&cpg CPG_MOD 724>,
40 <&cpg CPG_MOD 723>,
41 <&cpg CPG_MOD 722>,
42 <&cpg CPG_MOD 721>,
Marek Vasut36f83d92017-09-12 23:01:51 +020043 <&versaclock5 1>,
44 <&x21_clk>,
45 <&x22_clk>,
46 <&versaclock5 2>;
Marek Vasutfde558e2019-03-04 22:53:28 +010047 clock-names = "du.0", "du.1", "du.2", "du.3",
Marek Vasut36f83d92017-09-12 23:01:51 +020048 "dclkin.0", "dclkin.1", "dclkin.2", "dclkin.3";
49};
Marek Vasutb938f382017-07-21 23:16:59 +020050
Marek Vasut36f83d92017-09-12 23:01:51 +020051&ehci2 {
52 status = "okay";
53};
Marek Vasutb938f382017-07-21 23:16:59 +020054
Marek Vasut36f83d92017-09-12 23:01:51 +020055&hdmi0 {
56 status = "okay";
Marek Vasutb938f382017-07-21 23:16:59 +020057
Marek Vasut36f83d92017-09-12 23:01:51 +020058 ports {
59 port@1 {
60 reg = <1>;
61 rcar_dw_hdmi0_out: endpoint {
62 remote-endpoint = <&hdmi0_con>;
Marek Vasutb938f382017-07-21 23:16:59 +020063 };
64 };
Marek Vasutab9fbe92018-12-03 21:43:05 +010065 port@2 {
66 reg = <2>;
67 dw_hdmi0_snd_in: endpoint {
68 remote-endpoint = <&rsnd_endpoint1>;
69 };
70 };
Marek Vasutb938f382017-07-21 23:16:59 +020071 };
Marek Vasut36f83d92017-09-12 23:01:51 +020072};
Marek Vasutb938f382017-07-21 23:16:59 +020073
Marek Vasut36f83d92017-09-12 23:01:51 +020074&hdmi0_con {
75 remote-endpoint = <&rcar_dw_hdmi0_out>;
Marek Vasutb938f382017-07-21 23:16:59 +020076};
77
Marek Vasut36f83d92017-09-12 23:01:51 +020078&hdmi1 {
Marek Vasutb938f382017-07-21 23:16:59 +020079 status = "okay";
80
81 ports {
Marek Vasut36f83d92017-09-12 23:01:51 +020082 port@1 {
83 reg = <1>;
84 rcar_dw_hdmi1_out: endpoint {
85 remote-endpoint = <&hdmi1_con>;
Marek Vasutb938f382017-07-21 23:16:59 +020086 };
87 };
Marek Vasutab9fbe92018-12-03 21:43:05 +010088 port@2 {
89 reg = <2>;
90 dw_hdmi1_snd_in: endpoint {
91 remote-endpoint = <&rsnd_endpoint2>;
92 };
93 };
Marek Vasutb938f382017-07-21 23:16:59 +020094 };
95};
96
Marek Vasut36f83d92017-09-12 23:01:51 +020097&hdmi1_con {
98 remote-endpoint = <&rcar_dw_hdmi1_out>;
Marek Vasutb938f382017-07-21 23:16:59 +020099};
100
Marek Vasut36f83d92017-09-12 23:01:51 +0200101&ohci2 {
102 status = "okay";
Marek Vasutb938f382017-07-21 23:16:59 +0200103};
104
Marek Vasutadaa0162020-04-04 16:12:48 +0200105&pfc {
106 usb2_pins: usb2 {
107 groups = "usb2";
108 function = "usb2";
109 };
110};
111
Marek Vasutab9fbe92018-12-03 21:43:05 +0100112&rcar_sound {
113 ports {
114 /* rsnd_port0 is on salvator-common */
115 rsnd_port1: port@1 {
Marek Vasutfde558e2019-03-04 22:53:28 +0100116 reg = <1>;
Marek Vasutab9fbe92018-12-03 21:43:05 +0100117 rsnd_endpoint1: endpoint {
118 remote-endpoint = <&dw_hdmi0_snd_in>;
119
120 dai-format = "i2s";
121 bitclock-master = <&rsnd_endpoint1>;
122 frame-master = <&rsnd_endpoint1>;
123
124 playback = <&ssi2>;
125 };
126 };
127 rsnd_port2: port@2 {
Marek Vasutfde558e2019-03-04 22:53:28 +0100128 reg = <2>;
Marek Vasutab9fbe92018-12-03 21:43:05 +0100129 rsnd_endpoint2: endpoint {
130 remote-endpoint = <&dw_hdmi1_snd_in>;
131
132 dai-format = "i2s";
133 bitclock-master = <&rsnd_endpoint2>;
134 frame-master = <&rsnd_endpoint2>;
135
136 playback = <&ssi3>;
137 };
138 };
139 };
140};
141
Marek Vasutb938f382017-07-21 23:16:59 +0200142&sata {
143 status = "okay";
144};
145
Marek Vasutadaa0162020-04-04 16:12:48 +0200146&sound_card {
147 dais = <&rsnd_port0 /* ak4613 */
148 &rsnd_port1 /* HDMI0 */
149 &rsnd_port2>; /* HDMI1 */
150};
151
Marek Vasutb938f382017-07-21 23:16:59 +0200152&usb2_phy2 {
153 pinctrl-0 = <&usb2_pins>;
154 pinctrl-names = "default";
155
Marek Vasutb938f382017-07-21 23:16:59 +0200156 status = "okay";
157};