Akash Gajjar | b44c54f | 2023-02-14 20:48:40 +0530 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
2 | /* | ||||
3 | * (C) Copyright 2021 Rockchip Electronics Co., Ltd | ||||
4 | * (C) Copyright 2023 Akash Gajjar <gajjar04akash@gmail.com> | ||||
5 | */ | ||||
6 | |||||
7 | #include "rk356x-u-boot.dtsi" | ||||
8 | |||||
9 | / { | ||||
Jonas Karlman | 64f79f8 | 2023-05-17 18:26:35 +0000 | [diff] [blame] | 10 | aliases { |
11 | spi0 = &sfc; | ||||
12 | }; | ||||
13 | |||||
Akash Gajjar | b44c54f | 2023-02-14 20:48:40 +0530 | [diff] [blame] | 14 | chosen { |
15 | stdout-path = &uart2; | ||||
Akash Gajjar | b44c54f | 2023-02-14 20:48:40 +0530 | [diff] [blame] | 16 | }; |
17 | }; | ||||
18 | |||||
Jonas Karlman | 674803f | 2023-05-17 18:26:34 +0000 | [diff] [blame] | 19 | &emmc_bus8 { |
20 | bootph-all; | ||||
21 | }; | ||||
22 | |||||
23 | &emmc_clk { | ||||
24 | bootph-all; | ||||
25 | }; | ||||
26 | |||||
27 | &emmc_cmd { | ||||
28 | bootph-all; | ||||
29 | }; | ||||
30 | |||||
31 | &emmc_datastrobe { | ||||
32 | bootph-all; | ||||
33 | }; | ||||
34 | |||||
Jonas Karlman | 64f79f8 | 2023-05-17 18:26:35 +0000 | [diff] [blame] | 35 | &fspi_pins { |
36 | bootph-all; | ||||
37 | }; | ||||
38 | |||||
Jonas Karlman | a76aa6f | 2023-07-22 13:30:23 +0000 | [diff] [blame] | 39 | &pcie2x1 { |
40 | pinctrl-0 = <&pcie20m1_pins &pcie_reset_h>; | ||||
41 | }; | ||||
42 | |||||
43 | &pcie3x2 { | ||||
44 | pinctrl-0 = <&pcie30x2m1_pins &pcie3x2_reset_h>; | ||||
45 | }; | ||||
46 | |||||
Jonas Karlman | 674803f | 2023-05-17 18:26:34 +0000 | [diff] [blame] | 47 | &pinctrl { |
48 | bootph-all; | ||||
Jonas Karlman | a76aa6f | 2023-07-22 13:30:23 +0000 | [diff] [blame] | 49 | |
50 | pcie { | ||||
51 | pcie3x2_reset_h: pcie3x2-reset-h { | ||||
52 | rockchip,pins = <2 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>; | ||||
53 | }; | ||||
54 | }; | ||||
Jonas Karlman | 674803f | 2023-05-17 18:26:34 +0000 | [diff] [blame] | 55 | }; |
56 | |||||
57 | &pcfg_pull_none { | ||||
58 | bootph-all; | ||||
59 | }; | ||||
60 | |||||
61 | &pcfg_pull_up_drv_level_2 { | ||||
62 | bootph-all; | ||||
63 | }; | ||||
64 | |||||
65 | &pcfg_pull_up { | ||||
66 | bootph-all; | ||||
67 | }; | ||||
68 | |||||
69 | &sdmmc0_bus4 { | ||||
70 | bootph-all; | ||||
71 | }; | ||||
72 | |||||
73 | &sdmmc0_clk { | ||||
74 | bootph-all; | ||||
75 | }; | ||||
76 | |||||
77 | &sdmmc0_cmd { | ||||
78 | bootph-all; | ||||
79 | }; | ||||
80 | |||||
81 | &sdmmc0_det { | ||||
82 | bootph-all; | ||||
83 | }; | ||||
84 | |||||
Jonas Karlman | 72b0576 | 2023-04-18 16:46:38 +0000 | [diff] [blame] | 85 | &sdhci { |
86 | cap-mmc-highspeed; | ||||
87 | mmc-ddr-1_8v; | ||||
88 | mmc-hs200-1_8v; | ||||
89 | mmc-hs400-1_8v; | ||||
90 | mmc-hs400-enhanced-strobe; | ||||
91 | }; | ||||
92 | |||||
Jonas Karlman | 64f79f8 | 2023-05-17 18:26:35 +0000 | [diff] [blame] | 93 | &sfc { |
94 | bootph-pre-ram; | ||||
95 | u-boot,spl-sfc-no-dma; | ||||
96 | #address-cells = <1>; | ||||
97 | #size-cells = <0>; | ||||
98 | status = "okay"; | ||||
99 | |||||
100 | flash@0 { | ||||
101 | bootph-pre-ram; | ||||
102 | compatible = "jedec,spi-nor"; | ||||
103 | reg = <0>; | ||||
104 | spi-max-frequency = <24000000>; | ||||
105 | spi-rx-bus-width = <4>; | ||||
106 | spi-tx-bus-width = <1>; | ||||
107 | }; | ||||
108 | }; | ||||
109 | |||||
Jonas Karlman | 073d911 | 2023-03-14 00:38:24 +0000 | [diff] [blame] | 110 | &sdmmc2 { |
111 | status = "disabled"; | ||||
112 | }; | ||||
113 | |||||
114 | &uart1 { | ||||
115 | status = "disabled"; | ||||
Akash Gajjar | b44c54f | 2023-02-14 20:48:40 +0530 | [diff] [blame] | 116 | }; |
117 | |||||
Jonas Karlman | 674803f | 2023-05-17 18:26:34 +0000 | [diff] [blame] | 118 | &uart2m0_xfer { |
119 | bootph-all; | ||||
120 | }; | ||||
121 | |||||
Akash Gajjar | b44c54f | 2023-02-14 20:48:40 +0530 | [diff] [blame] | 122 | &uart2 { |
123 | clock-frequency = <24000000>; | ||||
Tom Rini | 82b896c | 2023-03-27 15:20:19 -0400 | [diff] [blame] | 124 | bootph-all; |
Akash Gajjar | b44c54f | 2023-02-14 20:48:40 +0530 | [diff] [blame] | 125 | status = "okay"; |
126 | }; |