hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts
....@@ -26,6 +26,26 @@
2626 no-map;
2727 reg = <0x98000000 0x04000000>; /* 64M */
2828 };
29
+
30
+ vga_memory: region@9f000000 {
31
+ no-map;
32
+ compatible = "shared-dma-pool";
33
+ reg = <0x9f000000 0x01000000>; /* 16M */
34
+ };
35
+
36
+ gfx_memory: framebuffer {
37
+ size = <0x01000000>;
38
+ alignment = <0x01000000>;
39
+ compatible = "shared-dma-pool";
40
+ reusable;
41
+ };
42
+
43
+ video_engine_memory: jpegbuffer {
44
+ size = <0x02000000>; /* 32MM */
45
+ alignment = <0x01000000>;
46
+ compatible = "shared-dma-pool";
47
+ reusable;
48
+ };
2949 };
3050
3151 gpio-keys {
....@@ -56,10 +76,13 @@
5676 };
5777 };
5878
79
+ iio-hwmon-battery {
80
+ compatible = "iio-hwmon";
81
+ io-channels = <&adc 12>;
82
+ };
83
+
5984 gpio-keys-polled {
6085 compatible = "gpio-keys-polled";
61
- #address-cells = <1>;
62
- #size-cells = <0>;
6386 poll-interval = <1000>;
6487
6588 fan0-presence {
....@@ -174,6 +197,40 @@
174197
175198 };
176199
200
+&gpio {
201
+ gpio-line-names =
202
+ /*A0-A7*/ "","cfam-reset","","","","","fsi-mux","",
203
+ /*B0-B7*/ "","","","","","air-water","","",
204
+ /*C0-C7*/ "","","","","","","","",
205
+ /*D0-D7*/ "fsi-enable","","","","","","","",
206
+ /*E0-E7*/ "fsi-data","","","","","","","",
207
+ /*F0-F7*/ "","","","","","","","",
208
+ /*G0-G7*/ "","","","","","","","",
209
+ /*H0-H7*/ "","","","","","","","",
210
+ /*I0-I7*/ "","","","","","","","",
211
+ /*J0-J7*/ "","","checkstop","","","","","",
212
+ /*K0-K7*/ "","","","","","","","",
213
+ /*L0-L7*/ "","","","","","","","",
214
+ /*M0-M7*/ "","","","","","","","",
215
+ /*N0-N7*/ "presence-ps1","","led-rear-fault","led-rear-power",
216
+ "led-rear-id","","","",
217
+ /*O0-O7*/ "","","","","","","","",
218
+ /*P0-P7*/ "","","","","","","","presence-ps0",
219
+ /*Q0-Q7*/ "","","","","","","","",
220
+ /*R0-R7*/ "","","fsi-trans","","","power-button","","",
221
+ /*S0-S7*/ "","","","","","","","",
222
+ /*T0-T7*/ "","","","","","","","",
223
+ /*U0-U7*/ "","","","","","","","",
224
+ /*V0-V7*/ "","","","","","","","",
225
+ /*W0-W7*/ "","","","","","","","",
226
+ /*X0-X7*/ "","","","","","","","",
227
+ /*Y0-Y7*/ "","","","","","","","",
228
+ /*Z0-Z7*/ "","","","","","","","",
229
+ /*AA0-AA7*/ "fsi-clock","","","","","","","",
230
+ /*AB0-AB7*/ "","","","","","","","",
231
+ /*AC0-AC7*/ "","","","","","","","";
232
+};
233
+
177234 &fmc {
178235 status = "okay";
179236
....@@ -181,13 +238,50 @@
181238 status = "okay";
182239 label = "bmc";
183240 m25p,fast-read;
184
-#include "openbmc-flash-layout.dtsi"
241
+ spi-max-frequency = <50000000>;
242
+
243
+ partitions {
244
+ #address-cells = < 1 >;
245
+ #size-cells = < 1 >;
246
+ compatible = "fixed-partitions";
247
+ u-boot@0 {
248
+ reg = < 0 0x60000 >;
249
+ label = "u-boot";
250
+ };
251
+ u-boot-env@60000 {
252
+ reg = < 0x60000 0x20000 >;
253
+ label = "u-boot-env";
254
+ };
255
+ obmc-ubi@80000 {
256
+ reg = < 0x80000 0x1F80000 >;
257
+ label = "obmc-ubi";
258
+ };
259
+ };
185260 };
186261
187262 flash@1 {
188263 status = "okay";
189
- label = "alt";
264
+ label = "alt-bmc";
190265 m25p,fast-read;
266
+ spi-max-frequency = <50000000>;
267
+
268
+ partitions {
269
+ #address-cells = < 1 >;
270
+ #size-cells = < 1 >;
271
+ compatible = "fixed-partitions";
272
+ u-boot@0 {
273
+ reg = < 0 0x60000 >;
274
+ label = "alt-u-boot";
275
+ };
276
+ u-boot-env@60000 {
277
+ reg = < 0x60000 0x20000 >;
278
+ label = "alt-u-boot-env";
279
+ };
280
+ obmc-ubi@80000 {
281
+ reg = < 0x80000 0x1F80000 >;
282
+ label = "alt-obmc-ubi";
283
+ };
284
+ };
191285 };
192286 };
193287
....@@ -200,6 +294,7 @@
200294 status = "okay";
201295 label = "pnor";
202296 m25p,fast-read;
297
+ spi-max-frequency = <100000000>;
203298 };
204299 };
205300
....@@ -238,6 +333,9 @@
238333 status = "okay";
239334 pinctrl-names = "default";
240335 pinctrl-0 = <&pinctrl_rmii1_default>;
336
+ clocks = <&syscon ASPEED_CLK_GATE_MAC1CLK>,
337
+ <&syscon ASPEED_CLK_MAC1RCLK>;
338
+ clock-names = "MACCLK", "RCLK";
241339 use-ncsi;
242340 };
243341
....@@ -560,6 +658,7 @@
560658
561659 &gfx {
562660 status = "okay";
661
+ memory-region = <&gfx_memory>;
563662 };
564663
565664 &pinctrl {
....@@ -583,3 +682,23 @@
583682 &ibt {
584683 status = "okay";
585684 };
685
+
686
+&adc {
687
+ status = "okay";
688
+};
689
+
690
+&vhub {
691
+ status = "okay";
692
+};
693
+
694
+&video {
695
+ status = "okay";
696
+ memory-region = <&video_engine_memory>;
697
+};
698
+
699
+&xdma {
700
+ status = "okay";
701
+ memory-region = <&vga_memory>;
702
+};
703
+
704
+#include "ibm-power9-dual.dtsi"