Chris Morgan | 8c4e304 | 2023-04-21 10:59:19 -0500 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 | |
| 3 | #include "rk356x-u-boot.dtsi" |
| 4 | |
| 5 | / { |
| 6 | chosen { |
Chris Morgan | 8c4e304 | 2023-04-21 10:59:19 -0500 | [diff] [blame] | 7 | u-boot,spl-boot-order = "same-as-spl", &sdmmc1, &sdmmc0; |
| 8 | }; |
| 9 | |
| 10 | rng: rng@fe388000 { |
| 11 | compatible = "rockchip,cryptov2-rng"; |
| 12 | reg = <0x0 0xfe388000 0x0 0x2000>; |
| 13 | status = "okay"; |
| 14 | }; |
| 15 | }; |
| 16 | |
| 17 | &cru { |
| 18 | assigned-clocks = |
| 19 | <&pmucru CLK_RTC_32K>, |
| 20 | <&pmucru PLL_PPLL>, |
| 21 | <&pmucru PCLK_PMU>, <&cru PLL_CPLL>, |
| 22 | <&cru PLL_GPLL>, |
| 23 | <&cru ACLK_BUS>, <&cru PCLK_BUS>, |
| 24 | <&cru ACLK_TOP_HIGH>, <&cru ACLK_TOP_LOW>, |
| 25 | <&cru HCLK_TOP>, <&cru PCLK_TOP>, |
| 26 | <&cru ACLK_PERIMID>, <&cru HCLK_PERIMID>, |
| 27 | <&cru CPLL_500M>, <&cru CPLL_333M>, |
| 28 | <&cru CPLL_250M>, <&cru CPLL_125M>, |
| 29 | <&cru CPLL_100M>, <&cru CPLL_62P5M>, |
| 30 | <&cru CPLL_50M>, <&cru CPLL_25M>; |
| 31 | assigned-clock-rates = |
| 32 | <32768>, |
| 33 | <200000000>, |
| 34 | <100000000>, <1000000000>, |
| 35 | <1188000000>, |
| 36 | <150000000>, <100000000>, |
| 37 | <500000000>, <400000000>, |
| 38 | <150000000>, <100000000>, |
| 39 | <300000000>, <150000000>, |
| 40 | <500000000>, <333333333>, |
| 41 | <250000000>, <125000000>, |
| 42 | <100000000>, <62500000>, |
| 43 | <50000000>, <25000000>; |
| 44 | assigned-clock-parents = |
| 45 | <&pmucru CLK_RTC32K_FRAC>; |
| 46 | }; |
| 47 | |
Chris Morgan | a1deb13 | 2023-05-15 11:00:28 -0500 | [diff] [blame] | 48 | &dsi_dphy0 { |
| 49 | status = "okay"; |
| 50 | }; |
| 51 | |
| 52 | &dsi0 { |
| 53 | status = "okay"; |
| 54 | }; |
| 55 | |
Chris Morgan | 8c4e304 | 2023-04-21 10:59:19 -0500 | [diff] [blame] | 56 | &i2c2 { |
Chris Morgan | b1f3222 | 2023-05-15 11:00:27 -0500 | [diff] [blame] | 57 | pinctrl-0 = <&i2c2m1_xfer>; |
| 58 | pinctrl-names = "default"; |
Chris Morgan | 8c4e304 | 2023-04-21 10:59:19 -0500 | [diff] [blame] | 59 | status = "okay"; |
| 60 | }; |
| 61 | |
| 62 | &pmucru { |
| 63 | assigned-clocks = <&pmucru SCLK_32K_IOE>; |
| 64 | assigned-clock-parents = <&pmucru CLK_RTC_32K>; |
| 65 | }; |
| 66 | |
| 67 | /* |
| 68 | * We don't need the clocks, but if they are present they may cause |
| 69 | * probing to fail so we remove them for U-Boot. |
| 70 | */ |
| 71 | &rk817 { |
| 72 | /delete-property/ assigned-clocks; |
| 73 | /delete-property/ assigned-clock-parents; |
| 74 | /delete-property/ clocks; |
| 75 | /delete-property/ clock-names; |
| 76 | }; |
| 77 | |
| 78 | &sdhci { |
| 79 | pinctrl-0 = <&emmc_bus8>, <&emmc_clk>, <&emmc_cmd>, |
| 80 | <&emmc_datastrobe>, <&emmc_rstnout>; |
| 81 | pinctrl-names = "default"; |
| 82 | bus-width = <8>; |
| 83 | max-frequency = <200000000>; |
| 84 | mmc-hs200-1_8v; |
| 85 | non-removable; |
| 86 | vmmc-supply = <&vcc_3v3>; |
| 87 | vqmmc-supply = <&vcc_1v8>; |
| 88 | status = "okay"; |
| 89 | }; |