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 | |
Heiko Stuebner | 5cf783f | 2021-02-09 14:47:09 +0100 | [diff] [blame] | 41 | &gpio2 { |
| 42 | u-boot,dm-pre-reloc; |
| 43 | }; |
| 44 | |
Philipp Tomsich | 1620d35 | 2017-07-13 01:36:39 +0200 | [diff] [blame] | 45 | &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 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 | &sdmmc { |
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 | |
| 105 | &spi1 { |
Philipp Tomsich | e6b0401 | 2017-08-14 19:05:33 +0200 | [diff] [blame] | 106 | u-boot,dm-spl; |
Philipp Tomsich | 1620d35 | 2017-07-13 01:36:39 +0200 | [diff] [blame] | 107 | |
| 108 | spiflash: w25q32dw@0 { |
Philipp Tomsich | e6b0401 | 2017-08-14 19:05:33 +0200 | [diff] [blame] | 109 | u-boot,dm-spl; |
Philipp Tomsich | 1620d35 | 2017-07-13 01:36:39 +0200 | [diff] [blame] | 110 | }; |
| 111 | }; |
| 112 | |
Philipp Tomsich | 0a4873f | 2017-07-28 17:46:39 +0200 | [diff] [blame] | 113 | &timer0 { |
| 114 | u-boot,dm-pre-reloc; |
| 115 | clock-frequency = <24000000>; |
Philipp Tomsich | bfe07cc | 2017-09-11 22:04:26 +0200 | [diff] [blame] | 116 | status = "okay"; |
Philipp Tomsich | 0a4873f | 2017-07-28 17:46:39 +0200 | [diff] [blame] | 117 | }; |
| 118 | |
Philipp Tomsich | 1620d35 | 2017-07-13 01:36:39 +0200 | [diff] [blame] | 119 | |