blob: a3c2b707e9a84c00ade5fd3392133f921bfd4cc7 [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 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070042 bootph-all;
Heiko Stuebner5cf783f2021-02-09 14:47:09 +010043};
44
Philipp Tomsich1620d352017-07-13 01:36:39 +020045&pinctrl {
Simon Glassd3a98cb2023-02-13 08:56:33 -070046 bootph-all;
Philipp Tomsich1620d352017-07-13 01:36:39 +020047};
48
49&service_msch {
Simon Glassd3a98cb2023-02-13 08:56:33 -070050 bootph-all;
Philipp Tomsich1620d352017-07-13 01:36:39 +020051};
52
53&dmc {
Simon Glassd3a98cb2023-02-13 08:56:33 -070054 bootph-all;
Philipp Tomsich1620d352017-07-13 01:36:39 +020055
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 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070078 bootph-all;
Philipp Tomsich1620d352017-07-13 01:36:39 +020079};
80
81&sgrf {
Simon Glassd3a98cb2023-02-13 08:56:33 -070082 bootph-all;
Philipp Tomsich1620d352017-07-13 01:36:39 +020083};
84
85&cru {
Simon Glassd3a98cb2023-02-13 08:56:33 -070086 bootph-all;
Philipp Tomsich1620d352017-07-13 01:36:39 +020087};
88
89&grf {
Simon Glassd3a98cb2023-02-13 08:56:33 -070090 bootph-all;
Philipp Tomsich1620d352017-07-13 01:36:39 +020091};
92
93&uart0 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070094 bootph-all;
Philipp Tomsich1620d352017-07-13 01:36:39 +020095};
96
97&emmc {
Simon Glassd3a98cb2023-02-13 08:56:33 -070098 bootph-pre-ram;
Philipp Tomsich1620d352017-07-13 01:36:39 +020099};
100
101&sdmmc {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700102 bootph-pre-ram;
Philipp Tomsich1620d352017-07-13 01:36:39 +0200103};
104
105&spi1 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700106 bootph-pre-ram;
Philipp Tomsich1620d352017-07-13 01:36:39 +0200107
108 spiflash: w25q32dw@0 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700109 bootph-pre-ram;
Philipp Tomsich1620d352017-07-13 01:36:39 +0200110 };
111};
112
Philipp Tomsich0a4873f2017-07-28 17:46:39 +0200113&timer0 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700114 bootph-all;
Philipp Tomsich0a4873f2017-07-28 17:46:39 +0200115 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