forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts
....@@ -30,6 +30,25 @@
3030 no-map;
3131 reg = <0x98000000 0x04000000>; /* 64M */
3232 };
33
+
34
+ coldfire_memory: codefire_memory@9ef00000 {
35
+ reg = <0x9ef00000 0x00100000>;
36
+ no-map;
37
+ };
38
+
39
+ gfx_memory: framebuffer {
40
+ size = <0x01000000>;
41
+ alignment = <0x01000000>;
42
+ compatible = "shared-dma-pool";
43
+ reusable;
44
+ };
45
+
46
+ video_engine_memory: jpegbuffer {
47
+ size = <0x02000000>; /* 32M */
48
+ alignment = <0x01000000>;
49
+ compatible = "shared-dma-pool";
50
+ reusable;
51
+ };
3352 };
3453
3554 leds {
....@@ -49,10 +68,14 @@
4968 };
5069
5170 fsi: gpio-fsi {
52
- compatible = "fsi-master-gpio", "fsi-master";
71
+ compatible = "aspeed,ast2500-cf-fsi-master", "fsi-master";
5372 #address-cells = <2>;
5473 #size-cells = <0>;
5574 no-gpio-delays;
75
+
76
+ memory-region = <&coldfire_memory>;
77
+ aspeed,sram = <&sram>;
78
+ aspeed,cvic = <&cvic>;
5679
5780 clock-gpios = <&gpio ASPEED_GPIO(AA, 0) GPIO_ACTIVE_HIGH>;
5881 data-gpios = <&gpio ASPEED_GPIO(AA, 2) GPIO_ACTIVE_HIGH>;
....@@ -76,6 +99,11 @@
7699 linux,code = <ASPEED_GPIO(Q, 7)>;
77100 };
78101 };
102
+
103
+ iio-hwmon-battery {
104
+ compatible = "iio-hwmon";
105
+ io-channels = <&adc 12>;
106
+ };
79107 };
80108
81109 &fmc {
....@@ -84,6 +112,7 @@
84112 status = "okay";
85113 m25p,fast-read;
86114 label = "bmc";
115
+ spi-max-frequency = <50000000>;
87116 #include "openbmc-flash-layout.dtsi"
88117 };
89118 };
....@@ -97,6 +126,7 @@
97126 status = "okay";
98127 m25p,fast-read;
99128 label = "pnor";
129
+ spi-max-frequency = <100000000>;
100130 };
101131 };
102132
....@@ -132,6 +162,9 @@
132162
133163 pinctrl-names = "default";
134164 pinctrl-0 = <&pinctrl_rmii1_default>;
165
+ clocks = <&syscon ASPEED_CLK_GATE_MAC1CLK>,
166
+ <&syscon ASPEED_CLK_MAC1RCLK>;
167
+ clock-names = "MACCLK", "RCLK";
135168 };
136169
137170 &i2c1 {
....@@ -198,23 +231,52 @@
198231 };
199232
200233 &gpio {
234
+ gpio-line-names =
235
+ /*A0-A7*/ "","cfam-reset","","","","","fsi-mux","",
236
+ /*B0-B7*/ "","","","","","","","",
237
+ /*C0-C7*/ "","","","","","","","",
238
+ /*D0-D7*/ "fsi-enable","","","nic_func_mode0","nic_func_mode1","","","",
239
+ /*E0-E7*/ "","","","","","","","",
240
+ /*F0-F7*/ "","","","","","","","",
241
+ /*G0-G7*/ "","","","","","","","",
242
+ /*H0-H7*/ "","","","","","","","",
243
+ /*I0-I7*/ "","","","power-button","","","","",
244
+ /*J0-J7*/ "","","checkstop","","","","","",
245
+ /*K0-K7*/ "","","","","","","","",
246
+ /*L0-L7*/ "","","","","","","","",
247
+ /*M0-M7*/ "","","","","","","","",
248
+ /*N0-N7*/ "","","led-fault","",
249
+ "led-identify","","","",
250
+ /*O0-O7*/ "","","","","","","","",
251
+ /*P0-P7*/ "","","","","","","","",
252
+ /*Q0-Q7*/ "","","","","","","","id-button",
253
+ /*R0-R7*/ "","","fsi-trans","","","led-power","","",
254
+ /*S0-S7*/ "","","","","","","","seq_cont",
255
+ /*T0-T7*/ "","","","","","","","",
256
+ /*U0-U7*/ "","","","","","","","",
257
+ /*V0-V7*/ "","","","","","","","",
258
+ /*W0-W7*/ "","","","","","","","",
259
+ /*X0-X7*/ "","","","","","","","",
260
+ /*Y0-Y7*/ "","","","","","","","",
261
+ /*Z0-Z7*/ "","","","","","","","",
262
+ /*AA0-AA7*/ "fsi-clock","","fsi-data","","","","","",
263
+ /*AB0-AB7*/ "","","","","","","","",
264
+ /*AC0-AC7*/ "","","","","","","","";
265
+
201266 nic_func_mode0 {
202267 gpio-hog;
203268 gpios = <ASPEED_GPIO(D, 3) GPIO_ACTIVE_HIGH>;
204269 output-low;
205
- line-name = "nic_func_mode0";
206270 };
207271 nic_func_mode1 {
208272 gpio-hog;
209273 gpios = <ASPEED_GPIO(D, 4) GPIO_ACTIVE_HIGH>;
210274 output-low;
211
- line-name = "nic_func_mode1";
212275 };
213276 seq_cont {
214277 gpio-hog;
215278 gpios = <ASPEED_GPIO(S, 7) GPIO_ACTIVE_HIGH>;
216279 output-low;
217
- line-name = "seq_cont";
218280 };
219281 };
220282
....@@ -224,6 +286,7 @@
224286
225287 &gfx {
226288 status = "okay";
289
+ memory-region = <&gfx_memory>;
227290 };
228291
229292 &pinctrl {
....@@ -274,3 +337,18 @@
274337 &ibt {
275338 status = "okay";
276339 };
340
+
341
+&vhub {
342
+ status = "okay";
343
+};
344
+
345
+&adc {
346
+ status = "okay";
347
+};
348
+
349
+&video {
350
+ status = "okay";
351
+ memory-region = <&video_engine_memory>;
352
+};
353
+
354
+#include "ibm-power9-dual.dtsi"