1/* 2 * (C) Copyright 2021 Rockchip Electronics Co., Ltd 3 * 4 * SPDX-License-Identifier: GPL-2.0+ 5 */ 6 7#include <dt-bindings/gpio/gpio.h> 8 9/ { 10 aliases { 11 mmc0 = &sdhci; 12 mmc1 = &sdmmc; 13 }; 14 15 chosen { 16 stdout-path = &uart2; 17 u-boot,spl-boot-order = &sdmmc, &sdhci, &spi_nand, &spi_nor; 18 }; 19 20 secure-otp@fe3a0000 { 21 u-boot,dm-spl; 22 compatible = "rockchip,rk3588-secure-otp"; 23 reg = <0x0 0xfe3a0000 0x0 0x4000>; 24 }; 25}; 26 27&firmware { 28 u-boot,dm-spl; 29}; 30 31&gpio0 { 32 u-boot,dm-spl; 33 status = "okay"; 34}; 35&gpio1 { 36 u-boot,dm-pre-reloc; 37 status = "okay"; 38}; 39 40&gpio2 { 41 u-boot,dm-pre-reloc; 42 status = "okay"; 43}; 44&gpio3 { 45 u-boot,dm-pre-reloc; 46 status = "okay"; 47}; 48 49&gpio4 { 50 u-boot,dm-pre-reloc; 51 status = "okay"; 52}; 53 54&scmi { 55 u-boot,dm-spl; 56}; 57 58&scmi_clk { 59 u-boot,dm-spl; 60}; 61 62&sram { 63 u-boot,dm-spl; 64}; 65 66&scmi_shmem { 67 u-boot,dm-spl; 68}; 69 70&xin24m { 71 u-boot,dm-pre-reloc; 72 status = "okay"; 73}; 74 75&cru { 76 u-boot,dm-spl; 77 status = "okay"; 78}; 79 80&psci { 81 u-boot,dm-pre-reloc; 82 status = "okay"; 83}; 84 85&crypto { 86 u-boot,dm-spl; 87 status = "okay"; 88}; 89 90&sys_grf { 91 u-boot,dm-spl; 92 status = "okay"; 93}; 94 95&pcie30_phy_grf { 96 u-boot,dm-pre-reloc; 97 status = "okay"; 98}; 99 100&php_grf { 101 u-boot,dm-pre-reloc; 102 status = "okay"; 103}; 104 105&pipe_phy0_grf { 106 u-boot,dm-pre-reloc; 107 status = "okay"; 108}; 109 110&pipe_phy1_grf { 111 u-boot,dm-pre-reloc; 112 status = "okay"; 113}; 114 115&pipe_phy2_grf { 116 u-boot,dm-pre-reloc; 117 status = "okay"; 118}; 119 120&uart2 { 121 u-boot,dm-spl; 122 status = "okay"; 123}; 124 125&hw_decompress { 126 u-boot,dm-spl; 127 status = "okay"; 128}; 129 130&rng { 131 u-boot,dm-pre-reloc; 132 status = "okay"; 133}; 134 135&sfc { 136 u-boot,dm-spl; 137 status = "okay"; 138 139 #address-cells = <1>; 140 #size-cells = <0>; 141 spi_nand: flash@0 { 142 u-boot,dm-spl; 143 compatible = "spi-nand"; 144 reg = <0>; 145 spi-tx-bus-width = <1>; 146 spi-rx-bus-width = <4>; 147 spi-max-frequency = <80000000>; 148 }; 149 150 spi_nor: flash@1 { 151 u-boot,dm-spl; 152 compatible = "jedec,spi-nor"; 153 label = "sfc_nor"; 154 reg = <0>; 155 spi-tx-bus-width = <1>; 156 spi-rx-bus-width = <4>; 157 spi-max-frequency = <80000000>; 158 }; 159}; 160 161&saradc { 162 u-boot,dm-pre-reloc; 163 status = "okay"; 164}; 165 166&sdmmc { 167 bus-width = <4>; 168 u-boot,dm-spl; 169 cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>; 170 status = "okay"; 171}; 172 173&sdhci { 174 bus-width = <8>; 175 u-boot,dm-spl; 176 mmc-hs400-1_8v; 177 non-removable; 178 status = "okay"; 179}; 180 181/* Support SPL-PINCTRL: 182 * 1. ioc 183 * 2. pinctrl(sdmmc) 184 * 3. gpio if need 185 */ 186&ioc { 187 u-boot,dm-spl; 188}; 189 190&pinctrl { 191 u-boot,dm-spl; 192 /delete-node/ sdmmc; 193 sdmmc { 194 u-boot,dm-spl; 195 sdmmc_bus4: sdmmc-bus4 { 196 u-boot,dm-spl; 197 rockchip,pins = 198 /* sdmmc_d0 */ 199 <4 RK_PD0 1 &pcfg_pull_up_drv_level_2>, 200 /* sdmmc_d1 */ 201 <4 RK_PD1 1 &pcfg_pull_up_drv_level_2>, 202 /* sdmmc_d2 */ 203 <4 RK_PD2 1 &pcfg_pull_up_drv_level_2>, 204 /* sdmmc_d3 */ 205 <4 RK_PD3 1 &pcfg_pull_up_drv_level_2>; 206 }; 207 208 sdmmc_clk: sdmmc-clk { 209 u-boot,dm-spl; 210 rockchip,pins = 211 /* sdmmc_clk */ 212 <4 RK_PD5 1 &pcfg_pull_up_drv_level_2>; 213 }; 214 215 sdmmc_cmd: sdmmc-cmd { 216 u-boot,dm-spl; 217 rockchip,pins = 218 /* sdmmc_cmd */ 219 <4 RK_PD4 1 &pcfg_pull_up_drv_level_2>; 220 }; 221 222 sdmmc_det: sdmmc-det { 223 u-boot,dm-spl; 224 rockchip,pins = 225 /* sdmmc_det */ 226 <0 RK_PA4 1 &pcfg_pull_up>; 227 }; 228 229 sdmmc_pwren: sdmmc-pwren { 230 u-boot,dm-spl; 231 rockchip,pins = 232 /* sdmmc_pwren */ 233 <0 RK_PA5 2 &pcfg_pull_none>; 234 }; 235 }; 236}; 237 238&pcfg_pull_up_drv_level_2 { 239 u-boot,dm-spl; 240}; 241 242&pcfg_pull_up { 243 u-boot,dm-spl; 244}; 245 246&pcfg_pull_none 247{ 248 u-boot,dm-spl; 249}; 250