blob: 9bd63527555eb1a52412758e0197ff314fcf3d5d [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
41&pinctrl {
42 u-boot,dm-pre-reloc;
43};
44
45&service_msch {
46 u-boot,dm-pre-reloc;
47};
48
49&dmc {
50 u-boot,dm-pre-reloc;
51
52 /*
53 * Validation of throughput using SPEC2000 shows the following
54 * relative performance for the different memory schedules:
55 * - CBDR: 30.1
56 * - CBRD: 29.8
57 * - CRBD: 29.9
58 * Note that the best performance for any given application workload
59 * may vary from the default configured here (e.g. 164.gzip is fastest
60 * with CBRD, whereas 252.eon and 186.crafty are fastest with CRBD).
61 *
62 * See doc/device-tree-bindings/clock/rockchip,rk3368-dmc.txt for
63 * details on the 'rockchip,memory-schedule' property and how it
64 * affects the physical-address to device-address mapping.
65 */
66 rockchip,memory-schedule = <DMC_MSCH_CBDR>;
67 rockchip,ddr-frequency = <800000000>;
68 rockchip,ddr-speed-bin = <DDR3_1600K>;
69
70 status = "okay";
71};
72
73&pmugrf {
74 u-boot,dm-pre-reloc;
75};
76
77&sgrf {
78 u-boot,dm-pre-reloc;
79};
80
81&cru {
82 u-boot,dm-pre-reloc;
83};
84
85&grf {
86 u-boot,dm-pre-reloc;
87};
88
89&uart0 {
90 u-boot,dm-pre-reloc;
91};
92
93&emmc {
Philipp Tomsiche6b04012017-08-14 19:05:33 +020094 u-boot,dm-spl;
Philipp Tomsich1620d352017-07-13 01:36:39 +020095};
96
97&sdmmc {
Philipp Tomsiche6b04012017-08-14 19:05:33 +020098 u-boot,dm-spl;
Philipp Tomsich1620d352017-07-13 01:36:39 +020099};
100
101&spi1 {
Philipp Tomsiche6b04012017-08-14 19:05:33 +0200102 u-boot,dm-spl;
Philipp Tomsich1620d352017-07-13 01:36:39 +0200103
104 spiflash: w25q32dw@0 {
Philipp Tomsiche6b04012017-08-14 19:05:33 +0200105 u-boot,dm-spl;
Philipp Tomsich1620d352017-07-13 01:36:39 +0200106 };
107};
108
Philipp Tomsich0a4873f2017-07-28 17:46:39 +0200109&timer0 {
110 u-boot,dm-pre-reloc;
111 clock-frequency = <24000000>;
Philipp Tomsichbfe07cc2017-09-11 22:04:26 +0200112 status = "okay";
Philipp Tomsich0a4873f2017-07-28 17:46:39 +0200113};
114
Philipp Tomsich1620d352017-07-13 01:36:39 +0200115