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