Jagan Teki | a4dd793 | 2023-01-30 20:27:46 +0530 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 | /* |
| 3 | * Copyright (c) 2022 Edgeble AI Technologies Pvt. Ltd. |
| 4 | */ |
| 5 | |
| 6 | #include "rockchip-u-boot.dtsi" |
| 7 | |
| 8 | / { |
Jonas Karlman | a5e2865 | 2023-07-28 12:05:41 +0000 | [diff] [blame] | 9 | aliases { |
Jonas Karlman | a5e2865 | 2023-07-28 12:05:41 +0000 | [diff] [blame] | 10 | spi5 = &sfc; |
| 11 | }; |
| 12 | |
Jonas Karlman | eb19301 | 2024-01-26 22:14:54 +0000 | [diff] [blame] | 13 | chosen { |
| 14 | u-boot,spl-boot-order = "same-as-spl", &sdmmc, &sdhci; |
| 15 | }; |
| 16 | |
Jagan Teki | a4dd793 | 2023-01-30 20:27:46 +0530 | [diff] [blame] | 17 | dmc { |
| 18 | compatible = "rockchip,rk3588-dmc"; |
Tom Rini | de70b47 | 2023-03-27 15:20:19 -0400 | [diff] [blame] | 19 | bootph-all; |
Jagan Teki | a4dd793 | 2023-01-30 20:27:46 +0530 | [diff] [blame] | 20 | }; |
| 21 | |
Jonas Karlman | f9b28c2 | 2023-10-17 17:02:11 +0000 | [diff] [blame] | 22 | usb_host0_xhci: usb@fc000000 { |
Jonas Karlman | 592101d | 2024-01-26 22:14:52 +0000 | [diff] [blame] | 23 | compatible = "rockchip,rk3588-dwc3", "snps,dwc3"; |
Jonas Karlman | f9b28c2 | 2023-10-17 17:02:11 +0000 | [diff] [blame] | 24 | reg = <0x0 0xfc000000 0x0 0x400000>; |
| 25 | interrupts = <GIC_SPI 220 IRQ_TYPE_LEVEL_HIGH 0>; |
Joseph Chen | a1d6321 | 2023-05-29 13:01:34 +0300 | [diff] [blame] | 26 | clocks = <&cru REF_CLK_USB3OTG0>, <&cru SUSPEND_CLK_USB3OTG0>, |
| 27 | <&cru ACLK_USB3OTG0>; |
Jonas Karlman | f9b28c2 | 2023-10-17 17:02:11 +0000 | [diff] [blame] | 28 | clock-names = "ref_clk", "suspend_clk", "bus_clk"; |
| 29 | dr_mode = "otg"; |
| 30 | phys = <&u2phy0_otg>, <&usbdp_phy0_u3>; |
| 31 | phy-names = "usb2-phy", "usb3-phy"; |
| 32 | phy_type = "utmi_wide"; |
| 33 | power-domains = <&power RK3588_PD_USB>; |
| 34 | resets = <&cru SRST_A_USB3OTG0>; |
| 35 | snps,dis_enblslpm_quirk; |
| 36 | snps,dis-u1-entry-quirk; |
| 37 | snps,dis-u2-entry-quirk; |
| 38 | snps,dis-u2-freeclk-exists-quirk; |
| 39 | snps,dis-del-phy-power-chg-quirk; |
| 40 | snps,dis-tx-ipgap-linecheck-quirk; |
Joseph Chen | a1d6321 | 2023-05-29 13:01:34 +0300 | [diff] [blame] | 41 | status = "disabled"; |
Jonas Karlman | f9b28c2 | 2023-10-17 17:02:11 +0000 | [diff] [blame] | 42 | }; |
Joseph Chen | a1d6321 | 2023-05-29 13:01:34 +0300 | [diff] [blame] | 43 | |
Jonas Karlman | 7b733dd | 2024-04-22 06:28:48 +0000 | [diff] [blame] | 44 | vo0_grf: syscon@fd5a6000 { |
| 45 | compatible = "rockchip,rk3588-vo-grf", "syscon"; |
| 46 | reg = <0x0 0xfd5a6000 0x0 0x2000>; |
| 47 | clocks = <&cru PCLK_VO0GRF>; |
| 48 | }; |
| 49 | |
| 50 | usb_grf: syscon@fd5ac000 { |
| 51 | compatible = "rockchip,rk3588-usb-grf", "syscon"; |
| 52 | reg = <0x0 0xfd5ac000 0x0 0x4000>; |
| 53 | }; |
| 54 | |
Jonas Karlman | f9b28c2 | 2023-10-17 17:02:11 +0000 | [diff] [blame] | 55 | usbdpphy0_grf: syscon@fd5c8000 { |
| 56 | compatible = "rockchip,rk3588-usbdpphy-grf", "syscon"; |
| 57 | reg = <0x0 0xfd5c8000 0x0 0x4000>; |
| 58 | }; |
| 59 | |
Joseph Chen | a1d6321 | 2023-05-29 13:01:34 +0300 | [diff] [blame] | 60 | usb2phy0_grf: syscon@fd5d0000 { |
| 61 | compatible = "rockchip,rk3588-usb2phy-grf", "syscon", |
| 62 | "simple-mfd"; |
| 63 | reg = <0x0 0xfd5d0000 0x0 0x4000>; |
| 64 | #address-cells = <1>; |
| 65 | #size-cells = <1>; |
| 66 | |
| 67 | u2phy0: usb2-phy@0 { |
| 68 | compatible = "rockchip,rk3588-usb2phy"; |
| 69 | reg = <0x0 0x10>; |
| 70 | interrupts = <GIC_SPI 393 IRQ_TYPE_LEVEL_HIGH 0>; |
| 71 | resets = <&cru SRST_OTGPHY_U3_0>, <&cru SRST_P_USB2PHY_U3_0_GRF0>; |
| 72 | reset-names = "phy", "apb"; |
| 73 | clocks = <&cru CLK_USB2PHY_HDPTXRXPHY_REF>; |
| 74 | clock-names = "phyclk"; |
| 75 | clock-output-names = "usb480m_phy0"; |
| 76 | #clock-cells = <0>; |
Joseph Chen | a1d6321 | 2023-05-29 13:01:34 +0300 | [diff] [blame] | 77 | status = "disabled"; |
| 78 | |
| 79 | u2phy0_otg: otg-port { |
| 80 | #phy-cells = <0>; |
| 81 | status = "disabled"; |
| 82 | }; |
| 83 | }; |
| 84 | }; |
| 85 | |
Chris Morgan | 7f25504 | 2023-04-13 09:13:03 -0500 | [diff] [blame] | 86 | rng: rng@fe378000 { |
| 87 | compatible = "rockchip,trngv1"; |
| 88 | reg = <0x0 0xfe378000 0x0 0x200>; |
Chris Morgan | 7f25504 | 2023-04-13 09:13:03 -0500 | [diff] [blame] | 89 | }; |
Joseph Chen | 8444550 | 2023-05-17 13:01:00 +0300 | [diff] [blame] | 90 | |
Joseph Chen | a1d6321 | 2023-05-29 13:01:34 +0300 | [diff] [blame] | 91 | usbdp_phy0: phy@fed80000 { |
| 92 | compatible = "rockchip,rk3588-usbdp-phy"; |
| 93 | reg = <0x0 0xfed80000 0x0 0x10000>; |
| 94 | rockchip,u2phy-grf = <&usb2phy0_grf>; |
| 95 | rockchip,usb-grf = <&usb_grf>; |
| 96 | rockchip,usbdpphy-grf = <&usbdpphy0_grf>; |
| 97 | rockchip,vo-grf = <&vo0_grf>; |
| 98 | clocks = <&cru CLK_USBDPPHY_MIPIDCPPHY_REF>, |
| 99 | <&cru CLK_USBDP_PHY0_IMMORTAL>, |
| 100 | <&cru PCLK_USBDPPHY0>, |
| 101 | <&u2phy0>; |
| 102 | clock-names = "refclk", "immortal", "pclk", "utmi"; |
| 103 | resets = <&cru SRST_USBDP_COMBO_PHY0_INIT>, |
| 104 | <&cru SRST_USBDP_COMBO_PHY0_CMN>, |
| 105 | <&cru SRST_USBDP_COMBO_PHY0_LANE>, |
| 106 | <&cru SRST_USBDP_COMBO_PHY0_PCS>, |
| 107 | <&cru SRST_P_USBDPPHY0>; |
| 108 | reset-names = "init", "cmn", "lane", "pcs_apb", "pma_apb"; |
| 109 | status = "disabled"; |
| 110 | |
| 111 | usbdp_phy0_dp: dp-port { |
| 112 | #phy-cells = <0>; |
| 113 | status = "disabled"; |
| 114 | }; |
| 115 | |
| 116 | usbdp_phy0_u3: usb3-port { |
| 117 | #phy-cells = <0>; |
| 118 | status = "disabled"; |
| 119 | }; |
| 120 | }; |
Jagan Teki | a4dd793 | 2023-01-30 20:27:46 +0530 | [diff] [blame] | 121 | }; |
| 122 | |
Jonas Karlman | 7b733dd | 2024-04-22 06:28:48 +0000 | [diff] [blame] | 123 | #ifdef CONFIG_ROCKCHIP_SPI_IMAGE |
| 124 | &binman { |
| 125 | simple-bin-spi { |
| 126 | mkimage { |
| 127 | args = "-n", CONFIG_SYS_SOC, "-T", "rksd"; |
| 128 | offset = <0x8000>; |
| 129 | }; |
| 130 | }; |
| 131 | }; |
| 132 | #endif |
| 133 | |
| 134 | &cru { |
Jonas Karlman | ab956bb | 2024-04-22 06:28:50 +0000 | [diff] [blame^] | 135 | bootph-all; |
Jonas Karlman | 7b733dd | 2024-04-22 06:28:48 +0000 | [diff] [blame] | 136 | }; |
| 137 | |
Eugen Hristev | 2b2416e | 2023-07-04 22:05:11 +0300 | [diff] [blame] | 138 | &emmc_bus8 { |
Jonas Karlman | ab956bb | 2024-04-22 06:28:50 +0000 | [diff] [blame^] | 139 | bootph-pre-ram; |
| 140 | bootph-some-ram; |
Eugen Hristev | 2b2416e | 2023-07-04 22:05:11 +0300 | [diff] [blame] | 141 | }; |
| 142 | |
| 143 | &emmc_clk { |
Jonas Karlman | ab956bb | 2024-04-22 06:28:50 +0000 | [diff] [blame^] | 144 | bootph-pre-ram; |
| 145 | bootph-some-ram; |
Eugen Hristev | 2b2416e | 2023-07-04 22:05:11 +0300 | [diff] [blame] | 146 | }; |
| 147 | |
| 148 | &emmc_cmd { |
Jonas Karlman | ab956bb | 2024-04-22 06:28:50 +0000 | [diff] [blame^] | 149 | bootph-pre-ram; |
| 150 | bootph-some-ram; |
Eugen Hristev | 2b2416e | 2023-07-04 22:05:11 +0300 | [diff] [blame] | 151 | }; |
| 152 | |
| 153 | &emmc_data_strobe { |
Jonas Karlman | ab956bb | 2024-04-22 06:28:50 +0000 | [diff] [blame^] | 154 | bootph-pre-ram; |
| 155 | bootph-some-ram; |
Eugen Hristev | 2b2416e | 2023-07-04 22:05:11 +0300 | [diff] [blame] | 156 | }; |
| 157 | |
| 158 | &emmc_rstnout { |
Jonas Karlman | ab956bb | 2024-04-22 06:28:50 +0000 | [diff] [blame^] | 159 | bootph-pre-ram; |
| 160 | bootph-some-ram; |
Eugen Hristev | 2b2416e | 2023-07-04 22:05:11 +0300 | [diff] [blame] | 161 | }; |
| 162 | |
Jonas Karlman | 7b733dd | 2024-04-22 06:28:48 +0000 | [diff] [blame] | 163 | &ioc { |
Jonas Karlman | ab956bb | 2024-04-22 06:28:50 +0000 | [diff] [blame^] | 164 | bootph-all; |
Eugen Hristev | 2b2416e | 2023-07-04 22:05:11 +0300 | [diff] [blame] | 165 | }; |
| 166 | |
Jonas Karlman | ab956bb | 2024-04-22 06:28:50 +0000 | [diff] [blame^] | 167 | &pcfg_pull_down { |
| 168 | bootph-all; |
| 169 | }; |
| 170 | |
Eugen Hristev | 2b2416e | 2023-07-04 22:05:11 +0300 | [diff] [blame] | 171 | &pcfg_pull_none { |
| 172 | bootph-all; |
| 173 | }; |
| 174 | |
Eugen Hristev | 2b2416e | 2023-07-04 22:05:11 +0300 | [diff] [blame] | 175 | &pcfg_pull_up { |
| 176 | bootph-all; |
| 177 | }; |
| 178 | |
Jonas Karlman | 7b733dd | 2024-04-22 06:28:48 +0000 | [diff] [blame] | 179 | &pcfg_pull_up_drv_level_2 { |
Jonas Karlman | ab956bb | 2024-04-22 06:28:50 +0000 | [diff] [blame^] | 180 | bootph-pre-ram; |
| 181 | bootph-some-ram; |
| 182 | }; |
| 183 | |
| 184 | &php_grf { |
Tom Rini | de70b47 | 2023-03-27 15:20:19 -0400 | [diff] [blame] | 185 | bootph-all; |
Jagan Teki | a4dd793 | 2023-01-30 20:27:46 +0530 | [diff] [blame] | 186 | }; |
| 187 | |
Jonas Karlman | 7b733dd | 2024-04-22 06:28:48 +0000 | [diff] [blame] | 188 | &pinctrl { |
| 189 | bootph-all; |
Jagan Teki | a4dd793 | 2023-01-30 20:27:46 +0530 | [diff] [blame] | 190 | }; |
| 191 | |
Jonas Karlman | 592101d | 2024-01-26 22:14:52 +0000 | [diff] [blame] | 192 | &pmu1grf { |
| 193 | bootph-all; |
| 194 | }; |
| 195 | |
Jonas Karlman | fc805c2 | 2023-04-17 19:07:21 +0000 | [diff] [blame] | 196 | &scmi { |
| 197 | bootph-pre-ram; |
Jonas Karlman | ab956bb | 2024-04-22 06:28:50 +0000 | [diff] [blame^] | 198 | bootph-some-ram; |
Jonas Karlman | fc805c2 | 2023-04-17 19:07:21 +0000 | [diff] [blame] | 199 | }; |
| 200 | |
| 201 | &scmi_clk { |
| 202 | bootph-pre-ram; |
Jonas Karlman | ab956bb | 2024-04-22 06:28:50 +0000 | [diff] [blame^] | 203 | bootph-some-ram; |
Jonas Karlman | fc805c2 | 2023-04-17 19:07:21 +0000 | [diff] [blame] | 204 | }; |
| 205 | |
Jonas Karlman | 7b733dd | 2024-04-22 06:28:48 +0000 | [diff] [blame] | 206 | &sdhci { |
Jonas Karlman | fc805c2 | 2023-04-17 19:07:21 +0000 | [diff] [blame] | 207 | bootph-pre-ram; |
Quentin Schulz | 71f3012 | 2024-03-11 13:01:58 +0100 | [diff] [blame] | 208 | bootph-some-ram; |
Jonas Karlman | fc805c2 | 2023-04-17 19:07:21 +0000 | [diff] [blame] | 209 | u-boot,spl-fifo-mode; |
| 210 | }; |
| 211 | |
Jonas Karlman | 7b733dd | 2024-04-22 06:28:48 +0000 | [diff] [blame] | 212 | &sdmmc { |
Jonas Karlman | ced8be0 | 2023-04-18 16:46:41 +0000 | [diff] [blame] | 213 | bootph-pre-ram; |
Quentin Schulz | 71f3012 | 2024-03-11 13:01:58 +0100 | [diff] [blame] | 214 | bootph-some-ram; |
Jonas Karlman | f79c537 | 2023-05-06 17:41:11 +0000 | [diff] [blame] | 215 | u-boot,spl-fifo-mode; |
Jonas Karlman | ced8be0 | 2023-04-18 16:46:41 +0000 | [diff] [blame] | 216 | }; |
| 217 | |
Eugen Hristev | 2b2416e | 2023-07-04 22:05:11 +0300 | [diff] [blame] | 218 | &sdmmc_bus4 { |
Jonas Karlman | ab956bb | 2024-04-22 06:28:50 +0000 | [diff] [blame^] | 219 | bootph-pre-ram; |
| 220 | bootph-some-ram; |
Eugen Hristev | 2b2416e | 2023-07-04 22:05:11 +0300 | [diff] [blame] | 221 | }; |
| 222 | |
| 223 | &sdmmc_clk { |
Jonas Karlman | ab956bb | 2024-04-22 06:28:50 +0000 | [diff] [blame^] | 224 | bootph-pre-ram; |
| 225 | bootph-some-ram; |
Eugen Hristev | 2b2416e | 2023-07-04 22:05:11 +0300 | [diff] [blame] | 226 | }; |
| 227 | |
| 228 | &sdmmc_cmd { |
Jonas Karlman | ab956bb | 2024-04-22 06:28:50 +0000 | [diff] [blame^] | 229 | bootph-pre-ram; |
| 230 | bootph-some-ram; |
Eugen Hristev | 2b2416e | 2023-07-04 22:05:11 +0300 | [diff] [blame] | 231 | }; |
| 232 | |
| 233 | &sdmmc_det { |
Jonas Karlman | ab956bb | 2024-04-22 06:28:50 +0000 | [diff] [blame^] | 234 | bootph-pre-ram; |
| 235 | bootph-some-ram; |
Eugen Hristev | 2b2416e | 2023-07-04 22:05:11 +0300 | [diff] [blame] | 236 | }; |
| 237 | |
Jonas Karlman | ab956bb | 2024-04-22 06:28:50 +0000 | [diff] [blame^] | 238 | &sfc { |
| 239 | u-boot,spl-sfc-no-dma; |
| 240 | }; |
| 241 | |
Jonas Karlman | 7b733dd | 2024-04-22 06:28:48 +0000 | [diff] [blame] | 242 | &sys_grf { |
Jonas Karlman | ab956bb | 2024-04-22 06:28:50 +0000 | [diff] [blame^] | 243 | bootph-all; |
Jonas Karlman | 7b733dd | 2024-04-22 06:28:48 +0000 | [diff] [blame] | 244 | }; |
| 245 | |
Jagan Teki | a4dd793 | 2023-01-30 20:27:46 +0530 | [diff] [blame] | 246 | &uart2 { |
Jonas Karlman | ab956bb | 2024-04-22 06:28:50 +0000 | [diff] [blame^] | 247 | bootph-all; |
Jonas Karlman | 87fc32b | 2024-01-26 22:14:55 +0000 | [diff] [blame] | 248 | clock-frequency = <24000000>; |
Jagan Teki | a4dd793 | 2023-01-30 20:27:46 +0530 | [diff] [blame] | 249 | }; |
| 250 | |
Eugen Hristev | 2b2416e | 2023-07-04 22:05:11 +0300 | [diff] [blame] | 251 | &uart2m0_xfer { |
| 252 | bootph-all; |
| 253 | }; |
| 254 | |
Jonas Karlman | 7b733dd | 2024-04-22 06:28:48 +0000 | [diff] [blame] | 255 | &xin24m { |
| 256 | bootph-all; |
Jonas Karlman | adb7894 | 2023-05-18 15:39:30 +0000 | [diff] [blame] | 257 | }; |