Kever Yang | 162cebd | 2019-07-01 11:49:10 +0800 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Copyright (C) 2019 Rockchip Electronics Co., Ltd |
| 4 | */ |
| 5 | |
Jagan Teki | b22da75 | 2020-01-10 00:16:21 +0530 | [diff] [blame] | 6 | #include "rockchip-u-boot.dtsi" |
Simon Glass | 6a50cd1 | 2020-07-19 13:56:12 -0600 | [diff] [blame] | 7 | #include "rockchip-optee.dtsi" |
Jagan Teki | b22da75 | 2020-01-10 00:16:21 +0530 | [diff] [blame] | 8 | |
Kever Yang | e5f3c6e | 2019-07-09 21:58:54 +0800 | [diff] [blame] | 9 | / { |
Johan Jonker | 8ba3d406 | 2022-04-15 23:21:39 +0200 | [diff] [blame] | 10 | aliases { |
| 11 | gpio0 = &gpio0; |
| 12 | gpio1 = &gpio1; |
| 13 | gpio2 = &gpio2; |
| 14 | gpio3 = &gpio3; |
| 15 | gpio4 = &gpio4; |
| 16 | gpio5 = &gpio5; |
| 17 | gpio6 = &gpio6; |
| 18 | gpio7 = &gpio7; |
| 19 | gpio8 = &gpio8; |
| 20 | mmc0 = &emmc; |
| 21 | mmc1 = &sdmmc; |
| 22 | mmc2 = &sdio0; |
| 23 | mmc3 = &sdio1; |
| 24 | }; |
| 25 | |
Kever Yang | e5f3c6e | 2019-07-09 21:58:54 +0800 | [diff] [blame] | 26 | chosen { |
| 27 | u-boot,spl-boot-order = \ |
| 28 | "same-as-spl", &emmc, &sdmmc; |
| 29 | }; |
Johan Jonker | 8ba3d406 | 2022-04-15 23:21:39 +0200 | [diff] [blame] | 30 | |
| 31 | dmc: dmc@ff610000 { |
| 32 | compatible = "rockchip,rk3288-dmc", "syscon"; |
| 33 | reg = <0xff610000 0x3fc |
| 34 | 0xff620000 0x294 |
| 35 | 0xff630000 0x3fc |
| 36 | 0xff640000 0x294>; |
| 37 | clocks = <&cru PCLK_DDRUPCTL0>, <&cru PCLK_PUBL0>, |
| 38 | <&cru PCLK_DDRUPCTL1>, <&cru PCLK_PUBL1>, |
| 39 | <&cru ARMCLK>; |
| 40 | clock-names = "pclk_ddrupctl0", "pclk_publ0", |
| 41 | "pclk_ddrupctl1", "pclk_publ1", |
| 42 | "arm_clk"; |
| 43 | rockchip,cru = <&cru>; |
| 44 | rockchip,grf = <&grf>; |
| 45 | rockchip,noc = <&noc>; |
| 46 | rockchip,pmu = <&pmu>; |
| 47 | rockchip,sgrf = <&sgrf>; |
| 48 | rockchip,sram = <&ddr_sram>; |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 49 | bootph-all; |
Johan Jonker | 8ba3d406 | 2022-04-15 23:21:39 +0200 | [diff] [blame] | 50 | }; |
| 51 | |
| 52 | noc: syscon@ffac0000 { |
| 53 | compatible = "rockchip,rk3288-noc", "syscon"; |
| 54 | reg = <0xffac0000 0x2000>; |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 55 | bootph-all; |
Johan Jonker | 8ba3d406 | 2022-04-15 23:21:39 +0200 | [diff] [blame] | 56 | }; |
Kever Yang | e5f3c6e | 2019-07-09 21:58:54 +0800 | [diff] [blame] | 57 | }; |
| 58 | |
Quentin Schulz | 12df9cf | 2022-09-02 15:10:54 +0200 | [diff] [blame] | 59 | #if defined(CONFIG_ROCKCHIP_SPI_IMAGE) && defined(CONFIG_HAS_ROM) |
Simon Glass | 88315f7 | 2020-07-19 13:55:57 -0600 | [diff] [blame] | 60 | &binman { |
| 61 | rom { |
| 62 | filename = "u-boot.rom"; |
| 63 | size = <0x400000>; |
| 64 | pad-byte = <0xff>; |
| 65 | |
| 66 | mkimage { |
| 67 | args = "-n rk3288 -T rkspi"; |
| 68 | u-boot-spl { |
| 69 | }; |
| 70 | }; |
| 71 | u-boot-img { |
| 72 | offset = <0x20000>; |
| 73 | }; |
| 74 | u-boot { |
| 75 | offset = <0x300000>; |
| 76 | }; |
| 77 | fdtmap { |
| 78 | }; |
| 79 | }; |
| 80 | }; |
| 81 | #endif |
| 82 | |
Johan Jonker | 8ba3d406 | 2022-04-15 23:21:39 +0200 | [diff] [blame] | 83 | &bus_intmem { |
| 84 | ddr_sram: ddr-sram@1000 { |
| 85 | compatible = "rockchip,rk3288-ddr-sram"; |
| 86 | reg = <0x1000 0x4000>; |
| 87 | }; |
Kever Yang | 162cebd | 2019-07-01 11:49:10 +0800 | [diff] [blame] | 88 | }; |
| 89 | |
Johan Jonker | 8ba3d406 | 2022-04-15 23:21:39 +0200 | [diff] [blame] | 90 | &cru { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 91 | bootph-all; |
Kever Yang | 162cebd | 2019-07-01 11:49:10 +0800 | [diff] [blame] | 92 | }; |
| 93 | |
Johan Jonker | 8d7b6a8 | 2023-03-15 19:33:50 +0100 | [diff] [blame] | 94 | &edp { |
| 95 | clocks = <&cru SCLK_EDP>, <&cru SCLK_EDP_24M>, <&cru PCLK_EDP_CTRL>; |
| 96 | clock-names = "clk_edp", "clk_edp_24m", "pclk_edp"; |
| 97 | }; |
| 98 | |
Johan Jonker | 8ba3d406 | 2022-04-15 23:21:39 +0200 | [diff] [blame] | 99 | &gpio7 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 100 | bootph-all; |
Kever Yang | 162cebd | 2019-07-01 11:49:10 +0800 | [diff] [blame] | 101 | }; |
| 102 | |
Johan Jonker | 8ba3d406 | 2022-04-15 23:21:39 +0200 | [diff] [blame] | 103 | &grf { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 104 | bootph-all; |
Kever Yang | 162cebd | 2019-07-01 11:49:10 +0800 | [diff] [blame] | 105 | }; |
| 106 | |
Johan Jonker | 8ba3d406 | 2022-04-15 23:21:39 +0200 | [diff] [blame] | 107 | &pmu { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 108 | bootph-all; |
Kever Yang | 162cebd | 2019-07-01 11:49:10 +0800 | [diff] [blame] | 109 | }; |
| 110 | |
Johan Jonker | 8ba3d406 | 2022-04-15 23:21:39 +0200 | [diff] [blame] | 111 | &sgrf { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 112 | bootph-all; |
Kever Yang | 162cebd | 2019-07-01 11:49:10 +0800 | [diff] [blame] | 113 | }; |
| 114 | |
Johan Jonker | 8ba3d406 | 2022-04-15 23:21:39 +0200 | [diff] [blame] | 115 | &uart0 { |
| 116 | clock-frequency = <24000000>; |
| 117 | }; |
| 118 | |
| 119 | &uart1 { |
| 120 | clock-frequency = <24000000>; |
Kever Yang | 162cebd | 2019-07-01 11:49:10 +0800 | [diff] [blame] | 121 | }; |
| 122 | |
Johan Jonker | 8ba3d406 | 2022-04-15 23:21:39 +0200 | [diff] [blame] | 123 | &uart2 { |
| 124 | clock-frequency = <24000000>; |
| 125 | }; |
| 126 | |
| 127 | &uart3 { |
| 128 | clock-frequency = <24000000>; |
| 129 | }; |
| 130 | |
| 131 | &vopb { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 132 | bootph-all; |
Kever Yang | 162cebd | 2019-07-01 11:49:10 +0800 | [diff] [blame] | 133 | }; |
Walter Lozano | 6dc8d7e | 2020-06-25 01:10:15 -0300 | [diff] [blame] | 134 | |
Johan Jonker | 8ba3d406 | 2022-04-15 23:21:39 +0200 | [diff] [blame] | 135 | &vopl { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 136 | bootph-all; |
Walter Lozano | 6dc8d7e | 2020-06-25 01:10:15 -0300 | [diff] [blame] | 137 | }; |