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