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 | f9b28c2 | 2023-10-17 17:02:11 +0000 | [diff] [blame] | 44 | usbdpphy0_grf: syscon@fd5c8000 { |
| 45 | compatible = "rockchip,rk3588-usbdpphy-grf", "syscon"; |
| 46 | reg = <0x0 0xfd5c8000 0x0 0x4000>; |
| 47 | }; |
| 48 | |
Joseph Chen | a1d6321 | 2023-05-29 13:01:34 +0300 | [diff] [blame] | 49 | usb2phy0_grf: syscon@fd5d0000 { |
| 50 | compatible = "rockchip,rk3588-usb2phy-grf", "syscon", |
| 51 | "simple-mfd"; |
| 52 | reg = <0x0 0xfd5d0000 0x0 0x4000>; |
| 53 | #address-cells = <1>; |
| 54 | #size-cells = <1>; |
| 55 | |
| 56 | u2phy0: usb2-phy@0 { |
| 57 | compatible = "rockchip,rk3588-usb2phy"; |
| 58 | reg = <0x0 0x10>; |
| 59 | interrupts = <GIC_SPI 393 IRQ_TYPE_LEVEL_HIGH 0>; |
| 60 | resets = <&cru SRST_OTGPHY_U3_0>, <&cru SRST_P_USB2PHY_U3_0_GRF0>; |
| 61 | reset-names = "phy", "apb"; |
| 62 | clocks = <&cru CLK_USB2PHY_HDPTXRXPHY_REF>; |
| 63 | clock-names = "phyclk"; |
| 64 | clock-output-names = "usb480m_phy0"; |
| 65 | #clock-cells = <0>; |
Joseph Chen | a1d6321 | 2023-05-29 13:01:34 +0300 | [diff] [blame] | 66 | status = "disabled"; |
| 67 | |
| 68 | u2phy0_otg: otg-port { |
| 69 | #phy-cells = <0>; |
| 70 | status = "disabled"; |
| 71 | }; |
| 72 | }; |
| 73 | }; |
| 74 | |
Joseph Chen | a1d6321 | 2023-05-29 13:01:34 +0300 | [diff] [blame] | 75 | vo0_grf: syscon@fd5a6000 { |
| 76 | compatible = "rockchip,rk3588-vo-grf", "syscon"; |
| 77 | reg = <0x0 0xfd5a6000 0x0 0x2000>; |
| 78 | clocks = <&cru PCLK_VO0GRF>; |
| 79 | }; |
| 80 | |
| 81 | usb_grf: syscon@fd5ac000 { |
| 82 | compatible = "rockchip,rk3588-usb-grf", "syscon"; |
| 83 | reg = <0x0 0xfd5ac000 0x0 0x4000>; |
| 84 | }; |
| 85 | |
Joseph Chen | a1d6321 | 2023-05-29 13:01:34 +0300 | [diff] [blame] | 86 | usbdpphy0_grf: syscon@fd5c8000 { |
| 87 | compatible = "rockchip,rk3588-usbdpphy-grf", "syscon"; |
| 88 | reg = <0x0 0xfd5c8000 0x0 0x4000>; |
| 89 | }; |
| 90 | |
Chris Morgan | 7f25504 | 2023-04-13 09:13:03 -0500 | [diff] [blame] | 91 | rng: rng@fe378000 { |
| 92 | compatible = "rockchip,trngv1"; |
| 93 | reg = <0x0 0xfe378000 0x0 0x200>; |
| 94 | status = "disabled"; |
| 95 | }; |
Joseph Chen | 8444550 | 2023-05-17 13:01:00 +0300 | [diff] [blame] | 96 | |
Joseph Chen | a1d6321 | 2023-05-29 13:01:34 +0300 | [diff] [blame] | 97 | usbdp_phy0: phy@fed80000 { |
| 98 | compatible = "rockchip,rk3588-usbdp-phy"; |
| 99 | reg = <0x0 0xfed80000 0x0 0x10000>; |
| 100 | rockchip,u2phy-grf = <&usb2phy0_grf>; |
| 101 | rockchip,usb-grf = <&usb_grf>; |
| 102 | rockchip,usbdpphy-grf = <&usbdpphy0_grf>; |
| 103 | rockchip,vo-grf = <&vo0_grf>; |
| 104 | clocks = <&cru CLK_USBDPPHY_MIPIDCPPHY_REF>, |
| 105 | <&cru CLK_USBDP_PHY0_IMMORTAL>, |
| 106 | <&cru PCLK_USBDPPHY0>, |
| 107 | <&u2phy0>; |
| 108 | clock-names = "refclk", "immortal", "pclk", "utmi"; |
| 109 | resets = <&cru SRST_USBDP_COMBO_PHY0_INIT>, |
| 110 | <&cru SRST_USBDP_COMBO_PHY0_CMN>, |
| 111 | <&cru SRST_USBDP_COMBO_PHY0_LANE>, |
| 112 | <&cru SRST_USBDP_COMBO_PHY0_PCS>, |
| 113 | <&cru SRST_P_USBDPPHY0>; |
| 114 | reset-names = "init", "cmn", "lane", "pcs_apb", "pma_apb"; |
| 115 | status = "disabled"; |
| 116 | |
| 117 | usbdp_phy0_dp: dp-port { |
| 118 | #phy-cells = <0>; |
| 119 | status = "disabled"; |
| 120 | }; |
| 121 | |
| 122 | usbdp_phy0_u3: usb3-port { |
| 123 | #phy-cells = <0>; |
| 124 | status = "disabled"; |
| 125 | }; |
| 126 | }; |
Jagan Teki | a4dd793 | 2023-01-30 20:27:46 +0530 | [diff] [blame] | 127 | }; |
| 128 | |
Eugen Hristev | 2b2416e | 2023-07-04 22:05:11 +0300 | [diff] [blame] | 129 | &emmc_bus8 { |
| 130 | bootph-all; |
| 131 | }; |
| 132 | |
| 133 | &emmc_clk { |
| 134 | bootph-all; |
| 135 | }; |
| 136 | |
| 137 | &emmc_cmd { |
| 138 | bootph-all; |
| 139 | }; |
| 140 | |
| 141 | &emmc_data_strobe { |
| 142 | bootph-all; |
| 143 | }; |
| 144 | |
| 145 | &emmc_rstnout { |
| 146 | bootph-all; |
| 147 | }; |
| 148 | |
| 149 | &pinctrl { |
| 150 | bootph-all; |
| 151 | }; |
| 152 | |
| 153 | &pcfg_pull_none { |
| 154 | bootph-all; |
| 155 | }; |
| 156 | |
| 157 | &pcfg_pull_up_drv_level_2 { |
| 158 | bootph-all; |
| 159 | }; |
| 160 | |
| 161 | &pcfg_pull_up { |
| 162 | bootph-all; |
| 163 | }; |
| 164 | |
Jagan Teki | a4dd793 | 2023-01-30 20:27:46 +0530 | [diff] [blame] | 165 | &xin24m { |
Tom Rini | de70b47 | 2023-03-27 15:20:19 -0400 | [diff] [blame] | 166 | bootph-all; |
Jagan Teki | a4dd793 | 2023-01-30 20:27:46 +0530 | [diff] [blame] | 167 | }; |
| 168 | |
| 169 | &cru { |
Tom Rini | de70b47 | 2023-03-27 15:20:19 -0400 | [diff] [blame] | 170 | bootph-pre-ram; |
Jagan Teki | a4dd793 | 2023-01-30 20:27:46 +0530 | [diff] [blame] | 171 | }; |
| 172 | |
| 173 | &sys_grf { |
Tom Rini | de70b47 | 2023-03-27 15:20:19 -0400 | [diff] [blame] | 174 | bootph-pre-ram; |
Jagan Teki | a4dd793 | 2023-01-30 20:27:46 +0530 | [diff] [blame] | 175 | }; |
| 176 | |
Jonas Karlman | 592101d | 2024-01-26 22:14:52 +0000 | [diff] [blame] | 177 | &pmu1grf { |
| 178 | bootph-all; |
| 179 | }; |
| 180 | |
Jonas Karlman | fc805c2 | 2023-04-17 19:07:21 +0000 | [diff] [blame] | 181 | &scmi { |
| 182 | bootph-pre-ram; |
| 183 | }; |
| 184 | |
| 185 | &scmi_clk { |
| 186 | bootph-pre-ram; |
| 187 | }; |
| 188 | |
| 189 | &sdmmc { |
| 190 | bootph-pre-ram; |
Quentin Schulz | 71f3012 | 2024-03-11 13:01:58 +0100 | [diff] [blame^] | 191 | bootph-some-ram; |
Jonas Karlman | fc805c2 | 2023-04-17 19:07:21 +0000 | [diff] [blame] | 192 | u-boot,spl-fifo-mode; |
| 193 | }; |
| 194 | |
Jonas Karlman | ced8be0 | 2023-04-18 16:46:41 +0000 | [diff] [blame] | 195 | &sdhci { |
| 196 | bootph-pre-ram; |
Quentin Schulz | 71f3012 | 2024-03-11 13:01:58 +0100 | [diff] [blame^] | 197 | bootph-some-ram; |
Jonas Karlman | f79c537 | 2023-05-06 17:41:11 +0000 | [diff] [blame] | 198 | u-boot,spl-fifo-mode; |
Jonas Karlman | ced8be0 | 2023-04-18 16:46:41 +0000 | [diff] [blame] | 199 | }; |
| 200 | |
Eugen Hristev | 2b2416e | 2023-07-04 22:05:11 +0300 | [diff] [blame] | 201 | &sdmmc_bus4 { |
| 202 | bootph-all; |
| 203 | }; |
| 204 | |
| 205 | &sdmmc_clk { |
| 206 | bootph-all; |
| 207 | }; |
| 208 | |
| 209 | &sdmmc_cmd { |
| 210 | bootph-all; |
| 211 | }; |
| 212 | |
| 213 | &sdmmc_det { |
| 214 | bootph-all; |
| 215 | }; |
| 216 | |
Jagan Teki | a4dd793 | 2023-01-30 20:27:46 +0530 | [diff] [blame] | 217 | &uart2 { |
Tom Rini | de70b47 | 2023-03-27 15:20:19 -0400 | [diff] [blame] | 218 | bootph-pre-ram; |
Jonas Karlman | 87fc32b | 2024-01-26 22:14:55 +0000 | [diff] [blame] | 219 | clock-frequency = <24000000>; |
Jagan Teki | a4dd793 | 2023-01-30 20:27:46 +0530 | [diff] [blame] | 220 | }; |
| 221 | |
Eugen Hristev | 2b2416e | 2023-07-04 22:05:11 +0300 | [diff] [blame] | 222 | &uart2m0_xfer { |
| 223 | bootph-all; |
| 224 | }; |
| 225 | |
Jagan Teki | a4dd793 | 2023-01-30 20:27:46 +0530 | [diff] [blame] | 226 | &ioc { |
Tom Rini | de70b47 | 2023-03-27 15:20:19 -0400 | [diff] [blame] | 227 | bootph-pre-ram; |
Jagan Teki | a4dd793 | 2023-01-30 20:27:46 +0530 | [diff] [blame] | 228 | }; |
Jonas Karlman | adb7894 | 2023-05-18 15:39:30 +0000 | [diff] [blame] | 229 | |
| 230 | #ifdef CONFIG_ROCKCHIP_SPI_IMAGE |
| 231 | &binman { |
| 232 | simple-bin-spi { |
| 233 | mkimage { |
| 234 | args = "-n", CONFIG_SYS_SOC, "-T", "rksd"; |
| 235 | offset = <0x8000>; |
| 236 | }; |
| 237 | }; |
| 238 | }; |
| 239 | #endif |