Tom Rini | 8b0c8a1 | 2018-05-06 18:27:01 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ OR X11 |
Philipp Tomsich | 1620d35 | 2017-07-13 01:36:39 +0200 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2017 Theobroma Systems Design und Consulting GmbH |
Philipp Tomsich | 1620d35 | 2017-07-13 01:36:39 +0200 | [diff] [blame] | 4 | */ |
| 5 | |
Heiko Stuebner | 15b1c4d | 2021-02-09 14:47:08 +0100 | [diff] [blame^] | 6 | #include "rk3368-u-boot.dtsi" |
| 7 | |
Philipp Tomsich | 1620d35 | 2017-07-13 01:36:39 +0200 | [diff] [blame] | 8 | / { |
| 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 Glass | 8eb227e | 2020-11-05 06:32:12 -0700 | [diff] [blame] | 19 | 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 Tomsich | 1620d35 | 2017-07-13 01:36:39 +0200 | [diff] [blame] | 39 | }; |
| 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 Tomsich | e6b0401 | 2017-08-14 19:05:33 +0200 | [diff] [blame] | 94 | u-boot,dm-spl; |
Philipp Tomsich | 1620d35 | 2017-07-13 01:36:39 +0200 | [diff] [blame] | 95 | }; |
| 96 | |
| 97 | &sdmmc { |
Philipp Tomsich | e6b0401 | 2017-08-14 19:05:33 +0200 | [diff] [blame] | 98 | u-boot,dm-spl; |
Philipp Tomsich | 1620d35 | 2017-07-13 01:36:39 +0200 | [diff] [blame] | 99 | }; |
| 100 | |
| 101 | &spi1 { |
Philipp Tomsich | e6b0401 | 2017-08-14 19:05:33 +0200 | [diff] [blame] | 102 | u-boot,dm-spl; |
Philipp Tomsich | 1620d35 | 2017-07-13 01:36:39 +0200 | [diff] [blame] | 103 | |
| 104 | spiflash: w25q32dw@0 { |
Philipp Tomsich | e6b0401 | 2017-08-14 19:05:33 +0200 | [diff] [blame] | 105 | u-boot,dm-spl; |
Philipp Tomsich | 1620d35 | 2017-07-13 01:36:39 +0200 | [diff] [blame] | 106 | }; |
| 107 | }; |
| 108 | |
Philipp Tomsich | 0a4873f | 2017-07-28 17:46:39 +0200 | [diff] [blame] | 109 | &timer0 { |
| 110 | u-boot,dm-pre-reloc; |
| 111 | clock-frequency = <24000000>; |
Philipp Tomsich | bfe07cc | 2017-09-11 22:04:26 +0200 | [diff] [blame] | 112 | status = "okay"; |
Philipp Tomsich | 0a4873f | 2017-07-28 17:46:39 +0200 | [diff] [blame] | 113 | }; |
| 114 | |
Philipp Tomsich | 1620d35 | 2017-07-13 01:36:39 +0200 | [diff] [blame] | 115 | |