Tom Rini | 8b0c8a1 | 2018-05-06 18:27:01 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ OR X11 |
Andy Yan | a1579a4 | 2017-08-02 21:08:59 +0800 | [diff] [blame] | 2 | /* |
3 | * (C) Copyright 2017 Theobroma Systems Design und Consulting GmbH | ||||
Andy Yan | a1579a4 | 2017-08-02 21:08:59 +0800 | [diff] [blame] | 4 | */ |
Heiko Stuebner | 15b1c4d | 2021-02-09 14:47:08 +0100 | [diff] [blame] | 5 | |
6 | #include "rk3368-u-boot.dtsi" | ||||
7 | |||||
Kever Yang | 6dc01e9 | 2019-03-29 22:48:25 +0800 | [diff] [blame] | 8 | / { |
9 | chosen { | ||||
10 | u-boot,spl-boot-order = &emmc; | ||||
11 | }; | ||||
12 | }; | ||||
13 | |||||
14 | &dmc { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 15 | bootph-all; |
Kever Yang | 6dc01e9 | 2019-03-29 22:48:25 +0800 | [diff] [blame] | 16 | |
17 | /* | ||||
18 | * PX5-evb(2GB) need to use CBRD mode, or else the dram is not correct | ||||
19 | * See doc/device-tree-bindings/clock/rockchip,rk3368-dmc.txt for | ||||
20 | * details on the 'rockchip,memory-schedule' property and how it | ||||
21 | * affects the physical-address to device-address mapping. | ||||
22 | */ | ||||
23 | rockchip,memory-schedule = <DMC_MSCH_CBRD>; | ||||
24 | rockchip,ddr-frequency = <800000000>; | ||||
25 | rockchip,ddr-speed-bin = <DDR3_1600K>; | ||||
26 | |||||
27 | status = "okay"; | ||||
28 | }; | ||||
Andy Yan | a1579a4 | 2017-08-02 21:08:59 +0800 | [diff] [blame] | 29 | |
30 | &pinctrl { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 31 | bootph-all; |
Andy Yan | a1579a4 | 2017-08-02 21:08:59 +0800 | [diff] [blame] | 32 | }; |
33 | |||||
34 | &service_msch { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 35 | bootph-all; |
Andy Yan | a1579a4 | 2017-08-02 21:08:59 +0800 | [diff] [blame] | 36 | }; |
37 | |||||
38 | &dmc { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 39 | bootph-all; |
Andy Yan | a1579a4 | 2017-08-02 21:08:59 +0800 | [diff] [blame] | 40 | status = "okay"; |
41 | }; | ||||
42 | |||||
43 | &pmugrf { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 44 | bootph-all; |
Andy Yan | a1579a4 | 2017-08-02 21:08:59 +0800 | [diff] [blame] | 45 | }; |
46 | |||||
Kever Yang | 6dc01e9 | 2019-03-29 22:48:25 +0800 | [diff] [blame] | 47 | &sgrf { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 48 | bootph-all; |
Kever Yang | 6dc01e9 | 2019-03-29 22:48:25 +0800 | [diff] [blame] | 49 | }; |
50 | |||||
Andy Yan | a1579a4 | 2017-08-02 21:08:59 +0800 | [diff] [blame] | 51 | &cru { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 52 | bootph-all; |
Andy Yan | a1579a4 | 2017-08-02 21:08:59 +0800 | [diff] [blame] | 53 | }; |
54 | |||||
55 | &grf { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 56 | bootph-all; |
Andy Yan | a1579a4 | 2017-08-02 21:08:59 +0800 | [diff] [blame] | 57 | }; |
58 | |||||
59 | &uart4 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 60 | bootph-all; |
Andy Yan | a1579a4 | 2017-08-02 21:08:59 +0800 | [diff] [blame] | 61 | }; |
Kever Yang | 6dc01e9 | 2019-03-29 22:48:25 +0800 | [diff] [blame] | 62 | |
63 | &emmc { | ||||
Andy Yan | 16bff199 | 2019-11-26 21:15:39 +0800 | [diff] [blame] | 64 | /* mmc to sram can't do dma, prevent aborts transferring TF-A parts */ |
65 | u-boot,spl-fifo-mode; | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 66 | bootph-all; |
Kever Yang | 6dc01e9 | 2019-03-29 22:48:25 +0800 | [diff] [blame] | 67 | }; |
Kever Yang | 2fb4567 | 2019-03-29 22:48:31 +0800 | [diff] [blame] | 68 | |
69 | &timer0 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 70 | bootph-all; |
Kever Yang | 2fb4567 | 2019-03-29 22:48:31 +0800 | [diff] [blame] | 71 | clock-frequency = <24000000>; |
72 | status = "okay"; | ||||
73 | }; |