blob: d7ab58267ebe765c5cb52eed478397b7a8526074 [file] [log] [blame]
Jit Loon Lim977071e2024-03-12 22:01:03 +08001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * U-Boot additions
4 *
5 * Copyright (C) 2024 Intel Corporation <www.intel.com>
Tien Fong Cheec7e31122025-02-18 16:34:56 +08006 * Copyright (C) 2025 Altera Corporation <www.altera.com>
Jit Loon Lim977071e2024-03-12 22:01:03 +08007 */
8
9#include "socfpga_agilex5-u-boot.dtsi"
10
11/{
12 aliases {
13 spi0 = &qspi;
14 freeze_br0 = &freeze_controller;
15 };
16
17 soc {
18 freeze_controller: freeze_controller@0x20000450 {
19 compatible = "altr,freeze-bridge-controller";
20 reg = <0x20000450 0x00000010>;
21 status = "disabled";
22 };
23 };
24
Tingting Menga1a24f12025-02-21 21:49:41 +080025 /*
26 * Both Memory base address and size default info is retrieved from HW setting.
27 * Reconfiguration / Overwrite these info can be done with examples below.
28 */
29 /*
30 * Example for memory size with 2GB:
31 * memory {
32 * reg = <0x0 0x80000000 0x0 0x80000000>;
33 * };
34 */
35 /*
36 * Example for memory size with 8GB:
37 * memory {
38 * reg = <0x0 0x80000000 0x0 0x80000000>,
39 * <0x8 0x80000000 0x1 0x80000000>;
40 * };
41 */
42 /*
43 * Example for memory size with 32GB:
44 * memory {
45 * reg = <0x0 0x80000000 0x0 0x80000000>,
46 * <0x8 0x80000000 0x7 0x80000000>;
47 * };
48 */
49 /*
50 * Example for memory size with 512GB:
51 * memory {
52 * reg = <0x0 0x80000000 0x0 0x80000000>,
53 * <0x8 0x80000000 0x7 0x80000000>,
54 * <0x88 0x00000000 0x78 0x00000000>;
55 * };
56 */
Jit Loon Lim977071e2024-03-12 22:01:03 +080057
58 chosen {
59 stdout-path = "serial0:115200n8";
60 u-boot,spl-boot-order = &mmc,&flash0,"/memory";
61 };
62};
63
64&flash0 {
65 compatible = "jedec,spi-nor";
66 spi-tx-bus-width = <4>;
67 spi-rx-bus-width = <4>;
68 bootph-all;
69 /delete-property/ cdns,read-delay;
70};
71
Dinesh Maniyam26368952025-02-27 00:18:16 +080072&flash1 {
73 bootph-all;
74};
75
Jit Loon Lim977071e2024-03-12 22:01:03 +080076&i3c0 {
77 bootph-all;
78};
79
80&i3c1 {
81 bootph-all;
82};
83
84&mmc {
85 status = "okay";
86 bus-width = <4>;
87 sd-uhs-sdr50;
88 cap-mmc-highspeed;
89 bootph-all;
90};
91
92&combophy0 {
93 status = "okay";
94 bootph-all;
95 cdns,phy-use-ext-lpbk-dqs = <1>;
96 cdns,phy-use-lpbk-dqs = <1>;
97 cdns,phy-use-phony-dqs = <1>;
98 cdns,phy-use-phony-dqs-cmd = <1>;
99 cdns,phy-io-mask-always-on = <0>;
100 cdns,phy-io-mask-end = <5>;
101 cdns,phy-io-mask-start = <0>;
102 cdns,phy-data-select-oe-end = <1>;
103 cdns,phy-sync-method = <1>;
104 cdns,phy-sw-half-cycle-shift = <0>;
105 cdns,phy-rd-del-sel = <52>;
106 cdns,phy-underrun-suppress = <1>;
107 cdns,phy-gate-cfg-always-on = <1>;
108 cdns,phy-param-dll-bypass-mode = <1>;
109 cdns,phy-param-phase-detect-sel = <2>;
110 cdns,phy-param-dll-start-point = <254>;
111 cdns,phy-read-dqs-cmd-delay = <0>;
112 cdns,phy-clk-wrdqs-delay = <0>;
113 cdns,phy-clk-wr-delay = <0>;
114 cdns,phy-read-dqs-delay = <0>;
115 cdns,phy-phony-dqs-timing = <0>;
116 cdns,hrs09-rddata-en = <1>;
117 cdns,hrs09-rdcmd-en = <1>;
118 cdns,hrs09-extended-wr-mode = <1>;
119 cdns,hrs09-extended-rd-mode = <1>;
120 cdns,hrs10-hcsdclkadj = <3>;
121 cdns,hrs16-wrdata1-sdclk-dly = <0>;
122 cdns,hrs16-wrdata0-sdclk-dly = <0>;
123 cdns,hrs16-wrcmd1-sdclk-dly = <0>;
124 cdns,hrs16-wrcmd0-sdclk-dly = <0>;
125 cdns,hrs16-wrdata1-dly = <0>;
126 cdns,hrs16-wrdata0-dly = <0>;
127 cdns,hrs16-wrcmd1-dly = <0>;
128 cdns,hrs16-wrcmd0-dly = <0>;
129 cdns,hrs07-rw-compensate = <10>;
130 cdns,hrs07-idelay-val = <0>;
131};
132
133&qspi {
134 status = "okay";
135};
136
Dinesh Maniyam26368952025-02-27 00:18:16 +0800137&nand {
138 bootph-all;
139};
140
Jit Loon Lim977071e2024-03-12 22:01:03 +0800141&timer0 {
142 bootph-all;
143};
144
145&timer1 {
146 bootph-all;
147};
148
149&timer2 {
150 bootph-all;
151};
152
153&timer3 {
154 bootph-all;
155};
156
157&watchdog0 {
158 bootph-all;
159};
160
Tien Fong Cheec7e31122025-02-18 16:34:56 +0800161&gmac0 {
162 status = "okay";
163 phy-mode = "rgmii";
164 phy-handle = <&emac0_phy0>;
165
166 max-frame-size = <9000>;
167
168 mdio0 {
169 #address-cells = <1>;
170 #size-cells = <0>;
171 compatible = "snps,dwxgmac-mdio";
172 emac0_phy0: ethernet-phy@0 {
173 reg = <0>;
174 };
175 };
176};
177
178&gmac2 {
179 status = "okay";
180 phy-mode = "rgmii";
181 phy-handle = <&emac2_phy0>;
182
183 max-frame-size = <9000>;
184
185 mdio0 {
186 #address-cells = <1>;
187 #size-cells = <0>;
188 compatible = "snps,dwxgmac-mdio";
189 emac2_phy0: ethernet-phy@0 {
190 reg = <0>;
191 };
192 };
193};