blob: b39fe39fa2b373ec82648b120033af423266aee0 [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
Jonas Karlman747c9572024-04-30 15:30:18 +000017 chosen {
18 u-boot,spl-boot-order = "same-as-spl", &sdhci, &sdmmc;
19 };
20
Jonas Karlman47f7e5f2024-04-30 15:30:20 +000021 pmusgrf: syscon@ff330000 {
22 compatible = "rockchip,rk3399-pmusgrf", "syscon";
23 reg = <0x0 0xff330000 0x0 0xe3d4>;
Simon Glassd3a98cb2023-02-13 08:56:33 -070024 bootph-all;
Jonas Karlman47f7e5f2024-04-30 15:30:20 +000025 };
26
27 cic: syscon@ff620000 {
Peter Robinson94fb4c42020-01-20 09:17:00 +000028 compatible = "rockchip,rk3399-cic", "syscon";
29 reg = <0x0 0xff620000 0x0 0x100>;
Jonas Karlman47f7e5f2024-04-30 15:30:20 +000030 bootph-all;
Peter Robinson94fb4c42020-01-20 09:17:00 +000031 };
32
33 dfi: dfi@ff630000 {
Peter Robinson94fb4c42020-01-20 09:17:00 +000034 reg = <0x00 0xff630000 0x00 0x4000>;
35 compatible = "rockchip,rk3399-dfi";
36 rockchip,pmu = <&pmugrf>;
37 clocks = <&cru PCLK_DDR_MON>;
38 clock-names = "pclk_ddr_mon";
Jonas Karlman47f7e5f2024-04-30 15:30:20 +000039 bootph-all;
Peter Robinson94fb4c42020-01-20 09:17:00 +000040 };
41
Lin Jinhan3e714cf2020-03-31 17:39:57 +080042 rng: rng@ff8b8000 {
Jonas Karlman64ba61f2024-02-17 00:22:36 +000043 compatible = "rockchip,rk3399-crypto";
Lin Jinhan3e714cf2020-03-31 17:39:57 +080044 reg = <0x0 0xff8b8000 0x0 0x1000>;
Lin Jinhan3e714cf2020-03-31 17:39:57 +080045 };
46
Peter Robinson94fb4c42020-01-20 09:17:00 +000047 dmc: dmc {
Peter Robinson94fb4c42020-01-20 09:17:00 +000048 compatible = "rockchip,rk3399-dmc";
Peter Robinson94fb4c42020-01-20 09:17:00 +000049 reg = <0x0 0xffa80000 0x0 0x0800
50 0x0 0xffa80800 0x0 0x1800
51 0x0 0xffa82000 0x0 0x2000
52 0x0 0xffa84000 0x0 0x1000
53 0x0 0xffa88000 0x0 0x0800
54 0x0 0xffa88800 0x0 0x1800
55 0x0 0xffa8a000 0x0 0x2000
56 0x0 0xffa8c000 0x0 0x1000>;
Jonas Karlman47f7e5f2024-04-30 15:30:20 +000057 devfreq-events = <&dfi>;
58 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH 0>;
59 clocks = <&cru SCLK_DDRCLK>;
60 clock-names = "dmc_clk";
Simon Glassd3a98cb2023-02-13 08:56:33 -070061 bootph-all;
Peter Robinson94fb4c42020-01-20 09:17:00 +000062 };
Simon Glass8251e032020-07-19 13:55:58 -060063};
64
Quentin Schulz12df9cf2022-09-02 15:10:54 +020065#if defined(CONFIG_ROCKCHIP_SPI_IMAGE) && defined(CONFIG_HAS_ROM)
Simon Glass8251e032020-07-19 13:55:58 -060066&binman {
Simon Glassf1268222023-01-07 14:07:17 -070067 multiple-images;
Simon Glass8251e032020-07-19 13:55:58 -060068 rom {
69 filename = "u-boot.rom";
70 size = <0x400000>;
71 pad-byte = <0xff>;
72
73 mkimage {
74 args = "-n rk3399 -T rkspi";
75 u-boot-spl {
76 };
77 };
78 u-boot-img {
79 offset = <0x40000>;
80 };
81 u-boot {
82 offset = <0x300000>;
83 };
84 fdtmap {
85 };
86 };
Peter Robinsondd44a152019-11-09 20:30:05 +000087};
Simon Glassf1268222023-01-07 14:07:17 -070088#endif /* CONFIG_ROCKCHIP_SPI_IMAGE && CONFIG_HAS_ROM */
Peter Robinsondd44a152019-11-09 20:30:05 +000089
Peter Robinson94fb4c42020-01-20 09:17:00 +000090&cru {
Simon Glassd3a98cb2023-02-13 08:56:33 -070091 bootph-all;
Peter Robinsondd44a152019-11-09 20:30:05 +000092};
93
Yifeng Zhaod7e4c322021-11-01 12:43:47 +080094&emmc_phy {
Simon Glassd3a98cb2023-02-13 08:56:33 -070095 bootph-all;
Yifeng Zhaod7e4c322021-11-01 12:43:47 +080096};
97
Peter Robinsondd44a152019-11-09 20:30:05 +000098&grf {
Simon Glassd3a98cb2023-02-13 08:56:33 -070099 bootph-all;
Peter Robinsondd44a152019-11-09 20:30:05 +0000100};
101
102&pinctrl {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700103 bootph-all;
Peter Robinsondd44a152019-11-09 20:30:05 +0000104};
105
Jagan Teki9b545852019-07-16 17:27:34 +0530106&pmu {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700107 bootph-all;
Jagan Teki9b545852019-07-16 17:27:34 +0530108};
109
Jonas Karlman47f7e5f2024-04-30 15:30:20 +0000110&pmucru {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700111 bootph-all;
Peter Robinsondd44a152019-11-09 20:30:05 +0000112};
113
Jonas Karlman47f7e5f2024-04-30 15:30:20 +0000114&pmugrf {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700115 bootph-all;
Peter Robinsondd44a152019-11-09 20:30:05 +0000116};
117
Peter Robinsondd44a152019-11-09 20:30:05 +0000118&sdhci {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700119 bootph-all;
Jonas Karlman47f7e5f2024-04-30 15:30:20 +0000120 max-frequency = <200000000>;
121
122 /* mmc to sram can't do dma, prevent aborts transferring TF-A parts */
Jonas Karlmanf79c5372023-05-06 17:41:11 +0000123 u-boot,spl-fifo-mode;
Peter Robinsondd44a152019-11-09 20:30:05 +0000124};
125
Jagan Teki208badd2019-03-11 13:50:03 +0530126&sdmmc {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700127 bootph-all;
Deepak Das4ef2ded2020-04-15 08:55:24 +0530128
129 /* mmc to sram can't do dma, prevent aborts transferring TF-A parts */
130 u-boot,spl-fifo-mode;
Jagan Teki208badd2019-03-11 13:50:03 +0530131};
Jagan Teki60c5fed2019-05-07 23:51:51 +0530132
133&spi1 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700134 bootph-all;
Jagan Teki60c5fed2019-05-07 23:51:51 +0530135};
Jagan Teki2ff51fd2019-06-21 00:25:02 +0530136
Jagan Teki2ff51fd2019-06-21 00:25:02 +0530137&uart2 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700138 bootph-all;
Jonas Karlmanfab0bd32024-04-30 15:30:23 +0000139 clock-frequency = <24000000>;
140};
141
142&uart2c_xfer {
143 bootph-pre-sram;
144 bootph-pre-ram;
Jagan Teki2ff51fd2019-06-21 00:25:02 +0530145};
Peter Robinsondd44a152019-11-09 20:30:05 +0000146
147&vopb {
Jonas Karlman98519912024-04-30 15:30:21 +0000148 bootph-some-ram;
Peter Robinsondd44a152019-11-09 20:30:05 +0000149};
150
151&vopl {
Jonas Karlman98519912024-04-30 15:30:21 +0000152 bootph-some-ram;
Peter Robinsondd44a152019-11-09 20:30:05 +0000153};