blob: 716b9a433a100f6eb1458ce81bade1e9dac27a0b [file] [log] [blame]
Jagan Teki208badd2019-03-11 13:50:03 +05301// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright (C) 2019 Jagan Teki <jagan@amarulasolutions.com>
4 */
Peter Robinson94fb4c42020-01-20 09:17:00 +00005#define USB_CLASS_HUB 9
Jagan Teki208badd2019-03-11 13:50:03 +05306
Simon Glass8251e032020-07-19 13:55:58 -06007#include "rockchip-u-boot.dtsi"
8
Peter Robinson94fb4c42020-01-20 09:17:00 +00009/ {
10 aliases {
11 mmc0 = &sdhci;
12 mmc1 = &sdmmc;
Jagan Teki77c31a82020-05-09 22:26:23 +053013 pci0 = &pcie0;
Simon Glass8251e032020-07-19 13:55:58 -060014 spi1 = &spi1;
Peter Robinson94fb4c42020-01-20 09:17:00 +000015 };
Peter Robinsondd44a152019-11-09 20:30:05 +000016
Peter Robinson94fb4c42020-01-20 09:17:00 +000017 cic: syscon@ff620000 {
18 u-boot,dm-pre-reloc;
19 compatible = "rockchip,rk3399-cic", "syscon";
20 reg = <0x0 0xff620000 0x0 0x100>;
21 };
22
23 dfi: dfi@ff630000 {
24 u-boot,dm-pre-reloc;
25 reg = <0x00 0xff630000 0x00 0x4000>;
26 compatible = "rockchip,rk3399-dfi";
27 rockchip,pmu = <&pmugrf>;
28 clocks = <&cru PCLK_DDR_MON>;
29 clock-names = "pclk_ddr_mon";
30 };
31
Lin Jinhan3e714cf2020-03-31 17:39:57 +080032 rng: rng@ff8b8000 {
33 compatible = "rockchip,cryptov1-rng";
34 reg = <0x0 0xff8b8000 0x0 0x1000>;
Peter Robinson0ef3a0e2020-12-16 15:48:42 +000035 status = "okay";
Lin Jinhan3e714cf2020-03-31 17:39:57 +080036 };
37
Peter Robinson94fb4c42020-01-20 09:17:00 +000038 dmc: dmc {
39 u-boot,dm-pre-reloc;
40 compatible = "rockchip,rk3399-dmc";
41 devfreq-events = <&dfi>;
42 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH 0>;
43 clocks = <&cru SCLK_DDRCLK>;
44 clock-names = "dmc_clk";
45 reg = <0x0 0xffa80000 0x0 0x0800
46 0x0 0xffa80800 0x0 0x1800
47 0x0 0xffa82000 0x0 0x2000
48 0x0 0xffa84000 0x0 0x1000
49 0x0 0xffa88000 0x0 0x0800
50 0x0 0xffa88800 0x0 0x1800
51 0x0 0xffa8a000 0x0 0x2000
52 0x0 0xffa8c000 0x0 0x1000>;
53 };
54
55 pmusgrf: syscon@ff330000 {
56 u-boot,dm-pre-reloc;
57 compatible = "rockchip,rk3399-pmusgrf", "syscon";
58 reg = <0x0 0xff330000 0x0 0xe3d4>;
59 };
60
Simon Glass8251e032020-07-19 13:55:58 -060061};
62
63#ifdef CONFIG_ROCKCHIP_SPI_IMAGE
64&binman {
65 rom {
66 filename = "u-boot.rom";
67 size = <0x400000>;
68 pad-byte = <0xff>;
69
70 mkimage {
71 args = "-n rk3399 -T rkspi";
72 u-boot-spl {
73 };
74 };
75 u-boot-img {
76 offset = <0x40000>;
77 };
78 u-boot {
79 offset = <0x300000>;
80 };
81 fdtmap {
82 };
83 };
Peter Robinsondd44a152019-11-09 20:30:05 +000084};
Simon Glass8251e032020-07-19 13:55:58 -060085#endif
Peter Robinsondd44a152019-11-09 20:30:05 +000086
Peter Robinson94fb4c42020-01-20 09:17:00 +000087&cru {
Peter Robinsondd44a152019-11-09 20:30:05 +000088 u-boot,dm-pre-reloc;
89};
90
Yifeng Zhaod7e4c322021-11-01 12:43:47 +080091&emmc_phy {
92 u-boot,dm-pre-reloc;
93};
94
Peter Robinsondd44a152019-11-09 20:30:05 +000095&grf {
96 u-boot,dm-pre-reloc;
97};
98
99&pinctrl {
100 u-boot,dm-pre-reloc;
101};
102
Jagan Teki9b545852019-07-16 17:27:34 +0530103&pmu {
104 u-boot,dm-pre-reloc;
105};
106
Peter Robinsondd44a152019-11-09 20:30:05 +0000107&pmugrf {
108 u-boot,dm-pre-reloc;
109};
110
111&pmu {
112 u-boot,dm-pre-reloc;
113};
114
115&pmucru {
116 u-boot,dm-pre-reloc;
117};
118
Peter Robinsondd44a152019-11-09 20:30:05 +0000119&sdhci {
Jagan Teki5cc21182020-04-28 15:30:17 +0530120 max-frequency = <200000000>;
Peter Robinsondd44a152019-11-09 20:30:05 +0000121 u-boot,dm-pre-reloc;
122};
123
Jagan Teki208badd2019-03-11 13:50:03 +0530124&sdmmc {
125 u-boot,dm-pre-reloc;
Deepak Das4ef2ded2020-04-15 08:55:24 +0530126
127 /* mmc to sram can't do dma, prevent aborts transferring TF-A parts */
128 u-boot,spl-fifo-mode;
Jagan Teki208badd2019-03-11 13:50:03 +0530129};
Jagan Teki60c5fed2019-05-07 23:51:51 +0530130
131&spi1 {
132 u-boot,dm-pre-reloc;
133};
Jagan Teki2ff51fd2019-06-21 00:25:02 +0530134
135&uart0 {
136 u-boot,dm-pre-reloc;
137};
138
139&uart2 {
140 u-boot,dm-pre-reloc;
141};
Peter Robinsondd44a152019-11-09 20:30:05 +0000142
143&vopb {
144 u-boot,dm-pre-reloc;
145};
146
147&vopl {
148 u-boot,dm-pre-reloc;
149};