blob: 7826d1e70b0f9ba75843581b58f2541ae362330d [file] [log] [blame]
Tom Rini8b0c8a12018-05-06 18:27:01 -04001// SPDX-License-Identifier: GPL-2.0+ OR X11
Philipp Tomsich1620d352017-07-13 01:36:39 +02002/*
3 * (C) Copyright 2017 Theobroma Systems Design und Consulting GmbH
Philipp Tomsich1620d352017-07-13 01:36:39 +02004 */
5
Heiko Stuebner15b1c4d2021-02-09 14:47:08 +01006#include "rk3368-u-boot.dtsi"
7
Philipp Tomsich1620d352017-07-13 01:36:39 +02008/ {
9 config {
10 u-boot,spl-payload-offset = <0x40000>; /* @ 256KB */
11 u-boot,mmc-env-offset = <0x4000>; /* @ 16KB */
12 };
13
14 chosen {
15 stdout-path = "serial0:115200n8";
16 u-boot,spl-boot-order = &emmc, &sdmmc;
17 };
18
Simon Glass8eb227e2020-11-05 06:32:12 -070019 smbios {
20 compatible = "u-boot,sysinfo-smbios";
21
22 smbios {
23 system {
24 manufacturer = "rockchip";
25 product = "sheep_rk3368";
26 };
27
28 baseboard {
29 manufacturer = "rockchip";
30 product = "sheep_rk3368";
31 };
32
33 chassis {
34 manufacturer = "rockchip";
35 product = "sheep_rk3368";
36 };
37 };
38 };
Philipp Tomsich1620d352017-07-13 01:36:39 +020039};
40
Heiko Stuebner5cf783f2021-02-09 14:47:09 +010041&gpio2 {
42 u-boot,dm-pre-reloc;
43};
44
Philipp Tomsich1620d352017-07-13 01:36:39 +020045&pinctrl {
46 u-boot,dm-pre-reloc;
47};
48
49&service_msch {
50 u-boot,dm-pre-reloc;
51};
52
53&dmc {
54 u-boot,dm-pre-reloc;
55
56 /*
57 * Validation of throughput using SPEC2000 shows the following
58 * relative performance for the different memory schedules:
59 * - CBDR: 30.1
60 * - CBRD: 29.8
61 * - CRBD: 29.9
62 * Note that the best performance for any given application workload
63 * may vary from the default configured here (e.g. 164.gzip is fastest
64 * with CBRD, whereas 252.eon and 186.crafty are fastest with CRBD).
65 *
66 * See doc/device-tree-bindings/clock/rockchip,rk3368-dmc.txt for
67 * details on the 'rockchip,memory-schedule' property and how it
68 * affects the physical-address to device-address mapping.
69 */
70 rockchip,memory-schedule = <DMC_MSCH_CBDR>;
71 rockchip,ddr-frequency = <800000000>;
72 rockchip,ddr-speed-bin = <DDR3_1600K>;
73
74 status = "okay";
75};
76
77&pmugrf {
78 u-boot,dm-pre-reloc;
79};
80
81&sgrf {
82 u-boot,dm-pre-reloc;
83};
84
85&cru {
86 u-boot,dm-pre-reloc;
87};
88
89&grf {
90 u-boot,dm-pre-reloc;
91};
92
93&uart0 {
94 u-boot,dm-pre-reloc;
95};
96
97&emmc {
Philipp Tomsiche6b04012017-08-14 19:05:33 +020098 u-boot,dm-spl;
Philipp Tomsich1620d352017-07-13 01:36:39 +020099};
100
101&sdmmc {
Philipp Tomsiche6b04012017-08-14 19:05:33 +0200102 u-boot,dm-spl;
Philipp Tomsich1620d352017-07-13 01:36:39 +0200103};
104
105&spi1 {
Philipp Tomsiche6b04012017-08-14 19:05:33 +0200106 u-boot,dm-spl;
Philipp Tomsich1620d352017-07-13 01:36:39 +0200107
108 spiflash: w25q32dw@0 {
Philipp Tomsiche6b04012017-08-14 19:05:33 +0200109 u-boot,dm-spl;
Philipp Tomsich1620d352017-07-13 01:36:39 +0200110 };
111};
112
Philipp Tomsich0a4873f2017-07-28 17:46:39 +0200113&timer0 {
114 u-boot,dm-pre-reloc;
115 clock-frequency = <24000000>;
Philipp Tomsichbfe07cc2017-09-11 22:04:26 +0200116 status = "okay";
Philipp Tomsich0a4873f2017-07-28 17:46:39 +0200117};
118
Philipp Tomsich1620d352017-07-13 01:36:39 +0200119