blob: 0b0a90acf4318dbd2510bda0c8bd34fda2cec9ce [file] [log] [blame]
Jagan Tekie05b4a42019-03-11 13:50:03 +05301// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright (C) 2019 Jagan Teki <jagan@amarulasolutions.com>
4 */
Peter Robinson5532e3b2020-01-20 09:17:00 +00005#define USB_CLASS_HUB 9
Jagan Tekie05b4a42019-03-11 13:50:03 +05306
Simon Glassc4cea2b2020-07-19 13:55:58 -06007#include "rockchip-u-boot.dtsi"
8
Peter Robinson5532e3b2020-01-20 09:17:00 +00009/ {
10 aliases {
11 mmc0 = &sdhci;
12 mmc1 = &sdmmc;
Jagan Teki765a12d2020-05-09 22:26:23 +053013 pci0 = &pcie0;
Simon Glassc4cea2b2020-07-19 13:55:58 -060014 spi1 = &spi1;
Peter Robinson5532e3b2020-01-20 09:17:00 +000015 };
16
17 cic: syscon@ff620000 {
Simon Glass8c103c32023-02-13 08:56:33 -070018 bootph-all;
Peter Robinson5532e3b2020-01-20 09:17:00 +000019 compatible = "rockchip,rk3399-cic", "syscon";
20 reg = <0x0 0xff620000 0x0 0x100>;
21 };
22
23 dfi: dfi@ff630000 {
Simon Glass8c103c32023-02-13 08:56:33 -070024 bootph-all;
Peter Robinson5532e3b2020-01-20 09:17:00 +000025 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 Jinhan91e858d2020-03-31 17:39:57 +080032 rng: rng@ff8b8000 {
Jonas Karlman1bc79dc2024-02-17 00:22:36 +000033 compatible = "rockchip,rk3399-crypto";
Lin Jinhan91e858d2020-03-31 17:39:57 +080034 reg = <0x0 0xff8b8000 0x0 0x1000>;
Lin Jinhan91e858d2020-03-31 17:39:57 +080035 };
36
Peter Robinson5532e3b2020-01-20 09:17:00 +000037 dmc: dmc {
Simon Glass8c103c32023-02-13 08:56:33 -070038 bootph-all;
Peter Robinson5532e3b2020-01-20 09:17:00 +000039 compatible = "rockchip,rk3399-dmc";
40 devfreq-events = <&dfi>;
41 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH 0>;
42 clocks = <&cru SCLK_DDRCLK>;
43 clock-names = "dmc_clk";
44 reg = <0x0 0xffa80000 0x0 0x0800
45 0x0 0xffa80800 0x0 0x1800
46 0x0 0xffa82000 0x0 0x2000
47 0x0 0xffa84000 0x0 0x1000
48 0x0 0xffa88000 0x0 0x0800
49 0x0 0xffa88800 0x0 0x1800
50 0x0 0xffa8a000 0x0 0x2000
51 0x0 0xffa8c000 0x0 0x1000>;
52 };
53
54 pmusgrf: syscon@ff330000 {
Simon Glass8c103c32023-02-13 08:56:33 -070055 bootph-all;
Peter Robinson5532e3b2020-01-20 09:17:00 +000056 compatible = "rockchip,rk3399-pmusgrf", "syscon";
57 reg = <0x0 0xff330000 0x0 0xe3d4>;
58 };
59
Peter Robinsonf459e232019-11-09 20:30:05 +000060};
61
Quentin Schulza4bb36d2022-09-02 15:10:54 +020062#if defined(CONFIG_ROCKCHIP_SPI_IMAGE) && defined(CONFIG_HAS_ROM)
Simon Glassc4cea2b2020-07-19 13:55:58 -060063&binman {
Simon Glass4170dd92023-01-07 14:07:17 -070064 multiple-images;
Simon Glassc4cea2b2020-07-19 13:55:58 -060065 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 };
84};
Simon Glass4170dd92023-01-07 14:07:17 -070085#endif /* CONFIG_ROCKCHIP_SPI_IMAGE && CONFIG_HAS_ROM */
Simon Glassc4cea2b2020-07-19 13:55:58 -060086
Peter Robinsonf459e232019-11-09 20:30:05 +000087&cru {
Simon Glass8c103c32023-02-13 08:56:33 -070088 bootph-all;
Peter Robinsonf459e232019-11-09 20:30:05 +000089};
90
Yifeng Zhaof8b36082021-11-01 12:43:47 +080091&emmc_phy {
Simon Glass8c103c32023-02-13 08:56:33 -070092 bootph-all;
Yifeng Zhaof8b36082021-11-01 12:43:47 +080093};
94
Peter Robinsonf459e232019-11-09 20:30:05 +000095&grf {
Simon Glass8c103c32023-02-13 08:56:33 -070096 bootph-all;
Peter Robinsonf459e232019-11-09 20:30:05 +000097};
98
99&pinctrl {
Simon Glass8c103c32023-02-13 08:56:33 -0700100 bootph-all;
Peter Robinsonf459e232019-11-09 20:30:05 +0000101};
102
Jagan Tekiab0ce362019-07-16 17:27:34 +0530103&pmu {
Simon Glass8c103c32023-02-13 08:56:33 -0700104 bootph-all;
Jagan Tekiab0ce362019-07-16 17:27:34 +0530105};
106
Peter Robinsonf459e232019-11-09 20:30:05 +0000107&pmugrf {
Simon Glass8c103c32023-02-13 08:56:33 -0700108 bootph-all;
Peter Robinsonf459e232019-11-09 20:30:05 +0000109};
110
111&pmu {
Simon Glass8c103c32023-02-13 08:56:33 -0700112 bootph-all;
Peter Robinsonf459e232019-11-09 20:30:05 +0000113};
114
115&pmucru {
Simon Glass8c103c32023-02-13 08:56:33 -0700116 bootph-all;
Peter Robinsonf459e232019-11-09 20:30:05 +0000117};
118
Peter Robinsonf459e232019-11-09 20:30:05 +0000119&sdhci {
Jagan Teki167efc22020-04-28 15:30:17 +0530120 max-frequency = <200000000>;
Simon Glass8c103c32023-02-13 08:56:33 -0700121 bootph-all;
Jonas Karlman3b804b32023-05-06 17:41:11 +0000122 u-boot,spl-fifo-mode;
Peter Robinsonf459e232019-11-09 20:30:05 +0000123};
124
Jagan Tekie05b4a42019-03-11 13:50:03 +0530125&sdmmc {
Simon Glass8c103c32023-02-13 08:56:33 -0700126 bootph-all;
Deepak Das5c606ca2020-04-15 08:55:24 +0530127
128 /* mmc to sram can't do dma, prevent aborts transferring TF-A parts */
129 u-boot,spl-fifo-mode;
Jagan Tekie05b4a42019-03-11 13:50:03 +0530130};
Jagan Tekib5f88912019-05-07 23:51:51 +0530131
132&spi1 {
Simon Glass8c103c32023-02-13 08:56:33 -0700133 bootph-all;
Jagan Tekib5f88912019-05-07 23:51:51 +0530134};
Jagan Teki16b0dd42019-06-21 00:25:02 +0530135
136&uart0 {
Simon Glass8c103c32023-02-13 08:56:33 -0700137 bootph-all;
Jagan Teki16b0dd42019-06-21 00:25:02 +0530138};
139
140&uart2 {
Simon Glass8c103c32023-02-13 08:56:33 -0700141 bootph-all;
Jagan Teki16b0dd42019-06-21 00:25:02 +0530142};
Peter Robinsonf459e232019-11-09 20:30:05 +0000143
144&vopb {
Simon Glass8c103c32023-02-13 08:56:33 -0700145 bootph-all;
Peter Robinsonf459e232019-11-09 20:30:05 +0000146};
147
148&vopl {
Simon Glass8c103c32023-02-13 08:56:33 -0700149 bootph-all;
Peter Robinsonf459e232019-11-09 20:30:05 +0000150};