1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * Device Tree Source for the Falcon CPU board
4 *
5 * Copyright (C) 2020 Renesas Electronics Corp.
6 */
7
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/leds/common.h>
11
12 #include "r8a779a0.dtsi"
13
14 / {
15 model = "Renesas Falcon CPU board";
16 compatible = "renesas,falcon-cpu", "renesas,r8a779a0";
17
18 aliases {
19 serial0 = &scif0;
20 };
21
22 chosen {
23 stdout-path = "serial0:115200n8";
24 };
25
26 keys {
27 compatible = "gpio-keys";
28
29 pinctrl-0 = <&keys_pins>;
30 pinctrl-names = "default";
31
32 key-1 {
33 gpios = <&gpio6 18 GPIO_ACTIVE_LOW>;
34 linux,code = <KEY_1>;
35 label = "SW47";
36 wakeup-source;
37 debounce-interval = <20>;
38 };
39
40 key-2 {
41 gpios = <&gpio6 19 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_2>;
43 label = "SW48";
44 wakeup-source;
45 debounce-interval = <20>;
46 };
47
48 key-3 {
49 gpios = <&gpio6 20 GPIO_ACTIVE_LOW>;
50 linux,code = <KEY_3>;
51 label = "SW49";
52 wakeup-source;
53 debounce-interval = <20>;
54 };
55 };
56
57 leds {
58 compatible = "gpio-leds";
59
60 led-1 {
61 gpios = <&gpio4 18 GPIO_ACTIVE_HIGH>;
62 color = <LED_COLOR_ID_GREEN>;
63 function = LED_FUNCTION_INDICATOR;
64 function-enumerator = <1>;
65 };
66 led-2 {
67 gpios = <&gpio4 19 GPIO_ACTIVE_HIGH>;
68 color = <LED_COLOR_ID_GREEN>;
69 function = LED_FUNCTION_INDICATOR;
70 function-enumerator = <2>;
71 };
72 led-3 {
73 gpios = <&gpio4 20 GPIO_ACTIVE_HIGH>;
74 color = <LED_COLOR_ID_GREEN>;
75 function = LED_FUNCTION_INDICATOR;
76 function-enumerator = <3>;
77 };
78 };
79
80 memory@48000000 {
81 device_type = "memory";
82 /* first 128MB is reserved for secure area. */
83 reg = <0x0 0x48000000 0x0 0x78000000>;
84 };
85
86 memory@500000000 {
87 device_type = "memory";
88 reg = <0x5 0x00000000 0x0 0x80000000>;
89 };
90
91 memory@600000000 {
92 device_type = "memory";
93 reg = <0x6 0x00000000 0x0 0x80000000>;
94 };
95
96 memory@700000000 {
97 device_type = "memory";
98 reg = <0x7 0x00000000 0x0 0x80000000>;
99 };
100
101 mini-dp-con {
102 compatible = "dp-connector";
103 label = "CN5";
104 type = "mini";
105
106 port {
107 mini_dp_con_in: endpoint {
108 remote-endpoint = <&sn65dsi86_out>;
109 };
110 };
111 };
112
113 reg_1p2v: regulator-1p2v {
114 compatible = "regulator-fixed";
115 regulator-name = "fixed-1.2V";
116 regulator-min-microvolt = <1200000>;
117 regulator-max-microvolt = <1200000>;
118 regulator-boot-on;
119 regulator-always-on;
120 };
121
122 reg_1p8v: regulator-1p8v {
123 compatible = "regulator-fixed";
124 regulator-name = "fixed-1.8V";
125 regulator-min-microvolt = <1800000>;
126 regulator-max-microvolt = <1800000>;
127 regulator-boot-on;
128 regulator-always-on;
129 };
130
131 reg_3p3v: regulator-3p3v {
132 compatible = "regulator-fixed";
133 regulator-name = "fixed-3.3V";
134 regulator-min-microvolt = <3300000>;
135 regulator-max-microvolt = <3300000>;
136 regulator-boot-on;
137 regulator-always-on;
138 };
139
140 sn65dsi86_refclk: clk-x6 {
141 compatible = "fixed-clock";
142 #clock-cells = <0>;
143 clock-frequency = <38400000>;
144 };
145 };
146
147 &dsi0 {
148 status = "okay";
149
150 ports {
151 port@1 {
152 dsi0_out: endpoint {
153 remote-endpoint = <&sn65dsi86_in>;
154 data-lanes = <1 2 3 4>;
155 };
156 };
157 };
158 };
159
160 &du {
161 status = "okay";
162 };
163
164 &extal_clk {
165 clock-frequency = <16666666>;
166 };
167
168 &extalr_clk {
169 clock-frequency = <32768>;
170 };
171
172 &i2c0 {
173 pinctrl-0 = <&i2c0_pins>;
174 pinctrl-names = "default";
175
176 status = "okay";
177 clock-frequency = <400000>;
178
179 eeprom@50 {
180 compatible = "rohm,br24g01", "atmel,24c01";
181 label = "cpu-board";
182 reg = <0x50>;
183 pagesize = <8>;
184 };
185 };
186
187 &i2c1 {
188 pinctrl-0 = <&i2c1_pins>;
189 pinctrl-names = "default";
190
191 status = "okay";
192 clock-frequency = <400000>;
193
194 bridge@2c {
195 pinctrl-0 = <&irq0_pins>;
196 pinctrl-names = "default";
197
198 compatible = "ti,sn65dsi86";
199 reg = <0x2c>;
200
201 clocks = <&sn65dsi86_refclk>;
202 clock-names = "refclk";
203
204 interrupt-parent = <&intc_ex>;
205 interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
206
207 vccio-supply = <®_1p8v>;
208 vpll-supply = <®_1p8v>;
209 vcca-supply = <®_1p2v>;
210 vcc-supply = <®_1p2v>;
211
212 ports {
213 #address-cells = <1>;
214 #size-cells = <0>;
215
216 port@0 {
217 reg = <0>;
218 sn65dsi86_in: endpoint {
219 remote-endpoint = <&dsi0_out>;
220 };
221 };
222
223 port@1 {
224 reg = <1>;
225 sn65dsi86_out: endpoint {
226 remote-endpoint = <&mini_dp_con_in>;
227 };
228 };
229 };
230 };
231 };
232
233 &i2c6 {
234 pinctrl-0 = <&i2c6_pins>;
235 pinctrl-names = "default";
236
237 status = "okay";
238 clock-frequency = <400000>;
239 };
240
241 &mmc0 {
242 pinctrl-0 = <&mmc_pins>;
243 pinctrl-1 = <&mmc_pins>;
244 pinctrl-names = "default", "state_uhs";
245
246 vmmc-supply = <®_3p3v>;
247 vqmmc-supply = <®_1p8v>;
248 mmc-hs200-1_8v;
249 mmc-hs400-1_8v;
250 bus-width = <8>;
251 no-sd;
252 no-sdio;
253 non-removable;
254 full-pwr-cycle-in-suspend;
255 status = "okay";
256 };
257
258 &pfc {
259 pinctrl-0 = <&scif_clk_pins>;
260 pinctrl-names = "default";
261
262 i2c0_pins: i2c0 {
263 groups = "i2c0";
264 function = "i2c0";
265 };
266
267 i2c1_pins: i2c1 {
268 groups = "i2c1";
269 function = "i2c1";
270 };
271
272 i2c6_pins: i2c6 {
273 groups = "i2c6";
274 function = "i2c6";
275 };
276
277 irq0_pins: irq0 {
278 groups = "intc_ex_irq0";
279 function = "intc_ex";
280 };
281
282 keys_pins: keys {
283 pins = "GP_6_18", "GP_6_19", "GP_6_20";
284 bias-pull-up;
285 };
286
287 mmc_pins: mmc {
288 groups = "mmc_data8", "mmc_ctrl", "mmc_ds";
289 function = "mmc";
290 power-source = <1800>;
291 };
292
293 qspi0_pins: qspi0 {
294 groups = "qspi0_ctrl", "qspi0_data4";
295 function = "qspi0";
296 };
297
298 scif0_pins: scif0 {
299 groups = "scif0_data", "scif0_ctrl";
300 function = "scif0";
301 };
302
303 scif_clk_pins: scif_clk {
304 groups = "scif_clk";
305 function = "scif_clk";
306 };
307 };
308
309 &rpc {
310 pinctrl-0 = <&qspi0_pins>;
311 pinctrl-names = "default";
312
313 status = "okay";
314
315 flash@0 {
316 compatible = "spansion,s25fs512s", "jedec,spi-nor";
317 reg = <0>;
318 spi-max-frequency = <40000000>;
319 spi-rx-bus-width = <4>;
320
321 partitions {
322 compatible = "fixed-partitions";
323 #address-cells = <1>;
324 #size-cells = <1>;
325
326 boot@0 {
327 reg = <0x0 0xcc0000>;
328 read-only;
329 };
330 user@cc0000 {
331 reg = <0xcc0000 0x3340000>;
332 };
333 };
334 };
335 };
336
337 &rwdt {
338 timeout-sec = <60>;
339 status = "okay";
340 };
341
342 &scif0 {
343 pinctrl-0 = <&scif0_pins>;
344 pinctrl-names = "default";
345
346 uart-has-rtscts;
347 status = "okay";
348 };
349
350 &scif_clk {
351 clock-frequency = <24000000>;
352 };
Cache object: 1f61929d4878f33b5b41d08a94c53ab1
|