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